Rearrange the 'File' menu

* Rename "Quit" to "Close Window" for accuracy
  * Move "Close Tab" downwards to be adjacent to "Close Window"

REVIEW:103920
This commit is contained in:
Jekyll Wu
2012-02-11 03:13:59 +08:00
parent af325e2942
commit 2301ab5b81
3 changed files with 10 additions and 9 deletions

View File

@@ -274,10 +274,11 @@ void MainWindow::setupActions()
action->setAutoRepeat(false);
connect(action , SIGNAL(triggered()) , this , SLOT(newWindow()));
action = KStandardAction::quit(this , SLOT(close()) , collection);
// the default shortcut for quit is typically Ctrl+[Some Letter, usually Q]
// but that is reserved for use by terminal applications
action = collection->addAction("close-window");
action->setIcon(KIcon("window-close"));
action->setText(i18n("Close Window"));
action->setShortcut(QKeySequence(Qt::CTRL + Qt::SHIFT + Qt::Key_Q));
connect(action , SIGNAL(triggered()) , this , SLOT(close()));
// Bookmark Menu
KActionMenu* bookmarkMenu = new KActionMenu(i18n("&Bookmarks") , collection);