Skip to content

Commit

Permalink
Set stock icon for speed, options and statistics buttons in qt (#2179)
Browse files Browse the repository at this point in the history
* Set stock icon for options and statistics buttons
  • Loading branch information
buckmelanoma committed Nov 21, 2021
1 parent da855a7 commit 3183b43
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions qt/MainWindow.cc
Expand Up @@ -185,6 +185,9 @@ MainWindow::MainWindow(Session& session, Prefs& prefs, TorrentModel& model, bool
ui_.action_QueueMoveDown->setIcon(getStockIcon(QStringLiteral("go-down"), QStyle::SP_ArrowDown));
ui_.action_QueueMoveBottom->setIcon(getStockIcon(QStringLiteral("go-bottom")));

ui_.optionsButton->setIcon(getStockIcon(QStringLiteral("preferences-other")));
ui_.statsModeButton->setIcon(getStockIcon(QStringLiteral("view-statistics")));

auto make_network_pixmap = [this](QString name, QSize size = { 16, 16 })
{
return getStockIcon(name, QStyle::SP_DriveNetIcon).pixmap(size);
Expand Down

0 comments on commit 3183b43

Please sign in to comment.