mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
Add icon to private browsing menu action, and add the action to super menu
This commit is contained in:
parent
373050bef0
commit
6681a9156b
@ -560,7 +560,7 @@ void QupZilla::setupMenu()
|
||||
m_menuTools->addAction(QIcon(":/icons/menu/rss.png"), tr("RSS &Reader"), MENU_RECEIVER, SLOT(showRSSManager()));
|
||||
m_menuTools->addAction(tr("Web In&spector"), MENU_RECEIVER, SLOT(showWebInspector()))->setShortcut(QKeySequence("Ctrl+Shift+I"));
|
||||
m_menuTools->addAction(QIcon::fromTheme("edit-clear"), tr("Clear Recent &History"), MENU_RECEIVER, SLOT(showClearPrivateData()))->setShortcut(QKeySequence("Ctrl+Shift+Del"));
|
||||
m_actionPrivateBrowsing = new QAction(mApp->isPrivateSession() ? tr("New &Private Browsing Window") : tr("&Private Browsing"), MENU_RECEIVER);
|
||||
m_actionPrivateBrowsing = new QAction(QIcon(":/icons/locationbar/privatebrowsing.png"), mApp->isPrivateSession() ? tr("New &Private Browsing Window") : tr("&Private Browsing"), MENU_RECEIVER);
|
||||
m_actionPrivateBrowsing->setShortcut(QKeySequence("Ctrl+Shift+P"));
|
||||
connect(m_actionPrivateBrowsing, SIGNAL(triggered(bool)), mApp, SLOT(startPrivateBrowsing()));
|
||||
m_menuTools->addAction(m_actionPrivateBrowsing);
|
||||
@ -625,6 +625,7 @@ void QupZilla::setupMenu()
|
||||
m_superMenu->addAction(new ActionCopy(m_actionPreferences, this));
|
||||
|
||||
m_superMenu->addSeparator();
|
||||
m_superMenu->addAction(new ActionCopy(m_menuTools->actions().at(9), this));
|
||||
m_superMenu->addMenu(m_menuView);
|
||||
m_superMenu->addMenu(m_menuHistory);
|
||||
m_superMenu->addMenu(m_menuBookmarks);
|
||||
|
Loading…
Reference in New Issue
Block a user