# HG changeset patch # User John Tsiombikas # Date 1334433101 -10800 # Node ID 7e5a2dd9bca68d1de182ef4bf3d980204426e3a1 # Parent c1dd5b1205047359897a8af914b2f46757c31fe5 actions and shit diff -r c1dd5b120504 -r 7e5a2dd9bca6 src/ui.cc --- a/src/ui.cc Sat Apr 14 22:32:14 2012 +0300 +++ b/src/ui.cc Sat Apr 14 22:51:41 2012 +0300 @@ -35,11 +35,12 @@ // actions QAction *act_open = new QAction(qApp->style()->standardIcon(QStyle::SP_DialogOpenButton), "&Open...", this); act_open->setStatusTip("Open a volume dataset"); + act_open->setShortcut(QKeySequence::Open); QObject::connect(act_open, SIGNAL(triggered()), this, SLOT(open_volume())); - QAction *act_quit = new QAction("&Quit", this); - act_quit->setStatusTip("Quit"); - //act_quit->setShortcut(QKeySequence(QKeySequence::Quit)); + QAction *act_quit = new QAction(qApp->style()->standardIcon(QStyle::SP_DialogCloseButton), "&Quit", this); + act_quit->setStatusTip("Exit program"); + //act_quit->setShortcut(QKeySequence::Quit); act_quit->setShortcut(QKeySequence(tr("Ctrl+Q", "File|Quit"))); QObject::connect(act_quit, SIGNAL(triggered()), this, SLOT(close()));