| 28 | {} |
| 29 | |
| 30 | static QIcon::Mode IconMode( QStyle::State state ) |
| 31 | { |
| 32 | if (!(state & QStyle::State_Enabled)) { |
| 33 | return QIcon::Disabled; |
| 34 | } else if (state & QStyle::State_Selected) { |
| 35 | return QIcon::Selected; |
| 36 | } else { |
| 37 | return QIcon::Normal; |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | static QIcon::State IconState(QStyle::State state) |
| 42 | { |