diff --git a/src/gui/ApplicationSettingsWidget.cpp b/src/gui/ApplicationSettingsWidget.cpp index 8d958ab7a..cd2b48c65 100644 --- a/src/gui/ApplicationSettingsWidget.cpp +++ b/src/gui/ApplicationSettingsWidget.cpp @@ -126,6 +126,7 @@ ApplicationSettingsWidget::ApplicationSettingsWidget(QWidget* parent) m_generalUi->faviconTimeoutSpinBox->installEventFilter(mouseWheelFilter); m_generalUi->toolButtonStyleComboBox->installEventFilter(mouseWheelFilter); m_generalUi->languageComboBox->installEventFilter(mouseWheelFilter); + m_generalUi->trayIconAppearance->installEventFilter(mouseWheelFilter); #ifdef WITH_XC_UPDATECHECK connect(m_generalUi->checkForUpdatesOnStartupCheckBox, SIGNAL(toggled(bool)), SLOT(checkUpdatesToggled(bool))); diff --git a/src/gui/ApplicationSettingsWidgetGeneral.ui b/src/gui/ApplicationSettingsWidgetGeneral.ui index 7324c5ab7..8d5ba8ad7 100644 --- a/src/gui/ApplicationSettingsWidgetGeneral.ui +++ b/src/gui/ApplicationSettingsWidgetGeneral.ui @@ -626,6 +626,12 @@ 0 + + Qt::StrongFocus + + + Tray icon type + diff --git a/src/gui/MessageWidget.cpp b/src/gui/MessageWidget.cpp index 494a81542..6479dd280 100644 --- a/src/gui/MessageWidget.cpp +++ b/src/gui/MessageWidget.cpp @@ -103,4 +103,4 @@ void MessageWidget::openHttpUrl(const QString& link) if (link.startsWith("http://") || link.startsWith("https://")) { QDesktopServices::openUrl(QUrl(link)); } -} \ No newline at end of file +} diff --git a/src/gui/MessageWidget.h b/src/gui/MessageWidget.h index 2c8c9a217..f7067904a 100644 --- a/src/gui/MessageWidget.h +++ b/src/gui/MessageWidget.h @@ -52,7 +52,7 @@ public slots: private: QTimer* m_autoHideTimer; int m_autoHideTimeout; - bool m_animate; + bool m_animate = true; }; #endif // MESSAGEWIDGET_H diff --git a/src/main.cpp b/src/main.cpp index 31d760be4..7e340da4d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -52,7 +52,7 @@ int main(int argc, char** argv) QApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps); #endif -#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) +#if QT_VERSION >= QT_VERSION_CHECK(5, 14, 0) && defined(Q_OS_WIN) QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::PassThrough); #endif