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

Method setRestoreButton

DSView/pv/toolbars/titlebar.cpp:205–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

203}
204
205void TitleBar::setRestoreButton(bool max)
206{
207 QString iconPath = GetIconPath();
208 if (!max) {
209 _maximizeButton->setIcon(QIcon(iconPath+"/maximize.svg"));
210 } else {
211 _maximizeButton->setIcon(QIcon(iconPath+"/restore.svg"));
212 }
213}
214
215void TitleBar::mousePressEvent(QMouseEvent* event)
216{

Callers 2

resizeEventMethod · 0.80
ReadSettingsMethod · 0.80

Calls 1

GetIconPathFunction · 0.85

Tested by

no test coverage detected