MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / reStyle

Method reStyle

DSView/pv/toolbars/titlebar.cpp:112–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110}
111
112void TitleBar::reStyle()
113{
114 QString iconPath = GetIconPath();
115
116 if (_isTop) {
117 _minimizeButton->setIcon(QIcon(iconPath+"/minimize.svg"));
118 if (ParentIsMaxsized())
119 _maximizeButton->setIcon(QIcon(iconPath+"/restore.svg"));
120 else
121 _maximizeButton->setIcon(QIcon(iconPath+"/maximize.svg"));
122 }
123 if (_isTop || _hasClose)
124 _closeButton->setIcon(QIcon(iconPath+"/close.svg"));
125}
126
127bool TitleBar::ParentIsMaxsized()
128{

Callers

nothing calls this directly

Calls 1

GetIconPathFunction · 0.85

Tested by

no test coverage detected