| 110 | } |
| 111 | |
| 112 | void 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 | |
| 127 | bool TitleBar::ParentIsMaxsized() |
| 128 | { |
nothing calls this directly
no test coverage detected