Changeset 14453


Ignore:
Timestamp:
Jan 17, 2015, 1:49:02 PM (6 years ago)
Author:
mikedld
Message:

Fallback to message box warning icon if emblem-important is not provided by the icon theme

Location:
trunk/qt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/torrent-delegate-min.cc

    r14452 r14453  
    138138
    139139  const QIcon::Mode emblemIm = isItemSelected ? QIcon::Selected : QIcon::Normal;
    140   const QIcon emblemIcon = tor.hasError () ? QIcon::fromTheme ("emblem-important") : QIcon ();
     140  const QIcon emblemIcon = tor.hasError () ? QIcon::fromTheme ("emblem-important", style->standardIcon (QStyle::SP_MessageBoxWarning)) : QIcon ();
    141141
    142142  // layout
  • trunk/qt/torrent-delegate.cc

    r14452 r14453  
    421421
    422422  const QIcon::Mode emblemIm = isItemSelected ? QIcon::Selected : QIcon::Normal;
    423   const QIcon emblemIcon = tor.hasError () ? QIcon::fromTheme ("emblem-important") : QIcon ();
     423  const QIcon emblemIcon = tor.hasError () ? QIcon::fromTheme ("emblem-important", style->standardIcon (QStyle::SP_MessageBoxWarning)) : QIcon ();
    424424
    425425  // layout
Note: See TracChangeset for help on using the changeset viewer.