qvolray

diff src/ui.cc @ 32:7e5a2dd9bca6

actions and shit
author John Tsiombikas <nuclear@member.fsf.org>
date Sat, 14 Apr 2012 22:51:41 +0300
parents c1dd5b120504
children e7c006b774ed
line diff
     1.1 --- a/src/ui.cc	Sat Apr 14 22:32:14 2012 +0300
     1.2 +++ b/src/ui.cc	Sat Apr 14 22:51:41 2012 +0300
     1.3 @@ -35,11 +35,12 @@
     1.4  	// actions
     1.5  	QAction *act_open = new QAction(qApp->style()->standardIcon(QStyle::SP_DialogOpenButton), "&Open...", this);
     1.6  	act_open->setStatusTip("Open a volume dataset");
     1.7 +	act_open->setShortcut(QKeySequence::Open);
     1.8  	QObject::connect(act_open, SIGNAL(triggered()), this, SLOT(open_volume()));
     1.9  
    1.10 -	QAction *act_quit = new QAction("&Quit", this);
    1.11 -	act_quit->setStatusTip("Quit");
    1.12 -	//act_quit->setShortcut(QKeySequence(QKeySequence::Quit));
    1.13 +	QAction *act_quit = new QAction(qApp->style()->standardIcon(QStyle::SP_DialogCloseButton), "&Quit", this);
    1.14 +	act_quit->setStatusTip("Exit program");
    1.15 +	//act_quit->setShortcut(QKeySequence::Quit);
    1.16  	act_quit->setShortcut(QKeySequence(tr("Ctrl+Q", "File|Quit")));
    1.17  	QObject::connect(act_quit, SIGNAL(triggered()), this, SLOT(close()));
    1.18