| 15 | } |
| 16 | |
| 17 | void WorkingSetFileLabel::setIsActiveFile(bool active) |
| 18 | { |
| 19 | if(active) |
| 20 | { |
| 21 | ///@todo Use a nicer-looking "blended" highlighting for the active item, like in the area-tabs |
| 22 | setAutoFillBackground(true); |
| 23 | setBackgroundRole(QPalette::Highlight); |
| 24 | setForegroundRole(QPalette::HighlightedText); |
| 25 | }else{ |
| 26 | setAutoFillBackground(false); |
| 27 | setBackgroundRole(QPalette::Window); |
| 28 | setForegroundRole(QPalette::WindowText); |
| 29 | } |
| 30 | m_isActive = active; |
| 31 | } |
| 32 | |
| 33 | void WorkingSetFileLabel::mouseReleaseEvent(QMouseEvent* ev) |
| 34 | { |