diff options
Diffstat (limited to 'src/mainwindow')
-rw-r--r-- | src/mainwindow/widgets/navigationbar.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mainwindow/widgets/navigationbar.cpp b/src/mainwindow/widgets/navigationbar.cpp index dcb845c..f76d348 100644 --- a/src/mainwindow/widgets/navigationbar.cpp +++ b/src/mainwindow/widgets/navigationbar.cpp @@ -28,7 +28,7 @@ NavigationBar::NavigationBar(QWidget *parent) Configuration config; // Back button - backAction = addAction(Util::icon<QStyle::SP_ArrowBack>(), tr("Back")); + backAction = addAction(style()->standardIcon(QStyle::SP_ArrowBack), tr("Back")); config.shortcut<QAction>(*backAction, "shortcuts.navigation.back"); connect(backAction, &QAction::triggered, this, [this]() { m_view->history()->back(); @@ -56,7 +56,7 @@ NavigationBar::NavigationBar(QWidget *parent) }); // Forward button - forwardAction = addAction(Util::icon<QStyle::SP_ArrowForward>(), tr("Forward")); + forwardAction = addAction(style()->standardIcon(QStyle::SP_ArrowForward), tr("Forward")); config.shortcut<QAction>(*forwardAction, "shortcuts.navigation.forward"); connect(forwardAction, &QAction::triggered, this, [this]() { m_view->history()->forward(); @@ -84,7 +84,7 @@ NavigationBar::NavigationBar(QWidget *parent) }); // Stop/Refresh button - stopReloadAction = addAction(Util::icon<QStyle::SP_BrowserReload>(), tr("Refresh")); + stopReloadAction = addAction(style()->standardIcon(QStyle::SP_BrowserReload), tr("Refresh")); config.shortcut<QAction>(*stopReloadAction, "shortcuts.navigation.refresh"); connect(stopReloadAction, &QAction::triggered, this, [this]() { if(m_view->isLoaded()) @@ -99,7 +99,7 @@ NavigationBar::NavigationBar(QWidget *parent) }); // Home button - homeAction = addAction(Util::icon<QStyle::SP_DirHomeIcon>(), tr("Home")); + homeAction = addAction(style()->standardIcon(QStyle::SP_DirHomeIcon), tr("Home")); config.shortcut<QAction>(*homeAction, "shortcuts.navigation.home"); connect(homeAction, &QAction::triggered, this, [this]() { m_view->load(m_view->profile()->homepage()); @@ -138,12 +138,12 @@ void NavigationBar::update_loadStarted() { backAction->setEnabled(m_view->history()->canGoForward()); forwardAction->setEnabled(m_view->history()->canGoForward()); - stopReloadAction->setIcon(Util::icon<QStyle::SP_BrowserStop>()); + stopReloadAction->setIcon(style()->standardIcon(QStyle::SP_BrowserStop)); } void NavigationBar::update_loadFinished() { backAction->setEnabled(m_view->history()->canGoBack()); forwardAction->setEnabled(m_view->history()->canGoForward()); - stopReloadAction->setIcon(Util::icon<QStyle::SP_BrowserReload>()); + stopReloadAction->setIcon(style()->standardIcon(QStyle::SP_BrowserReload)); } |