mirror of
https://github.com/transmission/transmission
synced 2025-02-07 06:54:40 +00:00
Set stock icon for speed, options and statistics buttons in qt (#2179)
* Set stock icon for options and statistics buttons
This commit is contained in:
parent
da855a7257
commit
3183b43050
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue