feat: update icon theme on theme change
This commit is contained in:
committed by
Chris Rizzitello
parent
6b05c2abc0
commit
42b90a2b14
@ -1049,6 +1049,15 @@ void MainWindow::hide()
|
||||
m_actionMinimize->setVisible(false);
|
||||
}
|
||||
|
||||
void MainWindow::changeEvent(QEvent *e)
|
||||
{
|
||||
QMainWindow::changeEvent(e);
|
||||
if (e->type() == QEvent::PaletteChange) {
|
||||
updateIconTheme();
|
||||
setTrayIcon();
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::showConfigureServer(const QString &message)
|
||||
{
|
||||
ServerConfigDialog dialog(this, serverConfig());
|
||||
|
||||
@ -89,6 +89,9 @@ public:
|
||||
|
||||
void hide();
|
||||
|
||||
protected:
|
||||
void changeEvent(QEvent *e) override;
|
||||
|
||||
private:
|
||||
void toggleLogVisible(bool visible);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user