From afcfe0ca21e0102591378af1a3eac71937bd271c Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Tue, 15 Dec 2020 23:09:06 +0200 Subject: webengine: remove dependency on autogen/utils --- src/mainwindow/widgets/navigationbar.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/mainwindow') 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(), tr("Back")); + backAction = addAction(style()->standardIcon(QStyle::SP_ArrowBack), tr("Back")); config.shortcut(*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(), tr("Forward")); + forwardAction = addAction(style()->standardIcon(QStyle::SP_ArrowForward), tr("Forward")); config.shortcut(*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(), tr("Refresh")); + stopReloadAction = addAction(style()->standardIcon(QStyle::SP_BrowserReload), tr("Refresh")); config.shortcut(*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(), tr("Home")); + homeAction = addAction(style()->standardIcon(QStyle::SP_DirHomeIcon), tr("Home")); config.shortcut(*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()); + 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()); + stopReloadAction->setIcon(style()->standardIcon(QStyle::SP_BrowserReload)); } -- cgit v1.2.1