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

Method showMaxRestore

DSView/pv/toolbars/titlebar.cpp:193–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191}
192
193void TitleBar::showMaxRestore()
194{
195 QString iconPath = GetIconPath();
196 if (ParentIsMaxsized()) {
197 _maximizeButton->setIcon(QIcon(iconPath+"/maximize.svg"));
198 normalShow();
199 } else {
200 _maximizeButton->setIcon(QIcon(iconPath+"/restore.svg"));
201 maximizedShow();
202 }
203}
204
205void TitleBar::setRestoreButton(bool max)
206{

Callers

nothing calls this directly

Calls 1

GetIconPathFunction · 0.85

Tested by

no test coverage detected