MCPcopy Create free account
hub / github.com/KDE/kdevelop / setIsActiveFile

Method setIsActiveFile

kdevplatform/shell/workingsets/workingsetfilelabel.cpp:17–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17void 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
33void WorkingSetFileLabel::mouseReleaseEvent(QMouseEvent* ev)
34{

Callers 1

updateFileButtonsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected