diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-12-15 21:21:01 +0100 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-12-15 21:21:01 +0100 |
commit | 930c972169249251ef238a454d0126f2b7fec2c5 (patch) | |
tree | c94de07dee48b089a04a412cbd1b0a76b7990ab3 /src/widgets | |
parent | Using Q_CHECK_PTR instead of Q_ASSERT on pointers (diff) | |
download | smolbote-930c972169249251ef238a454d0126f2b7fec2c5.tar.xz |
WebView pageMenu implementation
Diffstat (limited to 'src/widgets')
-rw-r--r-- | src/widgets/mainwindowmenubar.cpp | 14 | ||||
-rw-r--r-- | src/widgets/mainwindowmenubar.h | 2 |
2 files changed, 2 insertions, 14 deletions
diff --git a/src/widgets/mainwindowmenubar.cpp b/src/widgets/mainwindowmenubar.cpp index aef61b4..cdd473a 100644 --- a/src/widgets/mainwindowmenubar.cpp +++ b/src/widgets/mainwindowmenubar.cpp @@ -75,30 +75,20 @@ MainWindowMenuBar::MainWindowMenuBar(std::shared_ptr<Configuration> config, Main QMenu *profileMenu = new QMenu(tr("Profile"), this); addMenu(profileMenu); //profileMenu->addAction(tr("Profiles"), this, SLOT(handleLoadProfile())); - - // Page menu - QMenu *pageMenu = new QMenu(tr("Page"), this); - addMenu(pageMenu); - pageMenu->addAction(tr("Print"))->setEnabled(false); - m_printAction = pageMenu->addAction(tr("Print to PDF")); - pageMenu->addAction(tr("Zoom"))->setEnabled(false); } QAction *MainWindowMenuBar::bookmarksAction() { + Q_CHECK_PTR(m_bookmarksAction); return m_bookmarksAction; } QAction *MainWindowMenuBar::downloadsAction() { + Q_CHECK_PTR(m_downloadsAction); return m_downloadsAction; } -QAction *MainWindowMenuBar::printAction() -{ - return m_printAction; -} - void MainWindowMenuBar::handleLoadProfile(MainWindow *window) { ProfilesDialog *dlg = new ProfilesDialog(window, this); diff --git a/src/widgets/mainwindowmenubar.h b/src/widgets/mainwindowmenubar.h index bbfc3fc..5a7094b 100644 --- a/src/widgets/mainwindowmenubar.h +++ b/src/widgets/mainwindowmenubar.h @@ -34,7 +34,6 @@ public: QAction *bookmarksAction(); QAction *downloadsAction(); - QAction *printAction(); private slots: void handleLoadProfile(MainWindow *window); @@ -42,7 +41,6 @@ private slots: private: QAction *m_bookmarksAction; QAction *m_downloadsAction; - QAction *m_printAction; }; #endif // MAINWINDOWMENUBAR_H |