feat: update icon theme on theme change
This commit is contained in:
parent
6b05c2abc0
commit
42b90a2b14
2 changed files with 12 additions and 0 deletions
|
|
@ -1049,6 +1049,15 @@ void MainWindow::hide()
|
||||||
m_actionMinimize->setVisible(false);
|
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)
|
void MainWindow::showConfigureServer(const QString &message)
|
||||||
{
|
{
|
||||||
ServerConfigDialog dialog(this, serverConfig());
|
ServerConfigDialog dialog(this, serverConfig());
|
||||||
|
|
|
||||||
|
|
@ -89,6 +89,9 @@ public:
|
||||||
|
|
||||||
void hide();
|
void hide();
|
||||||
|
|
||||||
|
protected:
|
||||||
|
void changeEvent(QEvent *e) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void toggleLogVisible(bool visible);
|
void toggleLogVisible(bool visible);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue