diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2010-11-28 14:43:53 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2010-11-28 14:47:33 (GMT) |
commit | c4c27dd09c8caade06bba4143833a5dbba0cd6e6 (patch) | |
tree | f302059d5675f93deab588e23440e99defa6cba2 /tools/assistant | |
parent | 66ca4c949adaae5e3e07bbb776646bee283effdc (diff) | |
download | Qt-c4c27dd09c8caade06bba4143833a5dbba0cd6e6.zip Qt-c4c27dd09c8caade06bba4143833a5dbba0cd6e6.tar.gz Qt-c4c27dd09c8caade06bba4143833a5dbba0cd6e6.tar.bz2 |
Rename File > Quit to Exit on Windows.
Task: QTBUG-15676
Diffstat (limited to 'tools/assistant')
-rw-r--r-- | tools/assistant/tools/assistant/mainwindow.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tools/assistant/tools/assistant/mainwindow.cpp b/tools/assistant/tools/assistant/mainwindow.cpp index 48469d4..d7d01da 100644 --- a/tools/assistant/tools/assistant/mainwindow.cpp +++ b/tools/assistant/tools/assistant/mainwindow.cpp @@ -460,14 +460,20 @@ void MainWindow::setupActions() menu->addAction(globalActions->printAction()); menu->addSeparator(); - QAction *tmp = menu->addAction(QIcon::fromTheme("application-exit"), - tr("&Quit"), this, SLOT(close())); - tmp->setMenuRole(QAction::QuitRole); + m_closeTabAction = menu->addAction(tr("&Close Tab"), m_centralWidget, + SLOT(closeTab())); + m_closeTabAction->setShortcuts(QKeySequence::Close); + + QIcon appExitIcon = QIcon::fromTheme("application-exit"); + QAction *tmp; #ifdef Q_OS_WIN + tmp = menu->addAction(appExitIcon, tr("E&xit"), this, SLOT(close())); tmp->setShortcut(QKeySequence(tr("CTRL+Q"))); #else + tmp = menu->addAction(appExitIcon, tr("&Quit"), this, SLOT(close())); tmp->setShortcut(QKeySequence::Quit); #endif + tmp->setMenuRole(QAction::QuitRole); menu = menuBar()->addMenu(tr("&Edit")); menu->addAction(globalActions->copyAction()); |