Make icon colorizing dependant on Qt6.3 and above.

This commit is contained in:
Ernie Pasveer
2026-06-01 17:28:47 -05:00
parent 491205826b
commit 070805cede
14 changed files with 2166 additions and 5 deletions
+4
View File
@@ -11,8 +11,10 @@
#include <QtPrintSupport/QPrinter>
#include <QtPrintSupport/QPrintDialog>
#include <QtGui/QFont>
#if QT_VERSION >= QT_VERSION_CHECK(6, 3, 0)
#include <QtGui/QGuiApplication>
#include <QtGui/QStyleHints>
#endif
#include <QtCore/QTextStream>
#include <QtCore/QRegularExpression>
#include <QtCore/QSettings>
@@ -60,7 +62,9 @@ SeerGdbMonitorWidget::SeerGdbMonitorWidget (QWidget* parent) : QWidget(parent) {
QObject::connect(printToolButton, &QToolButton::clicked, this, &SeerGdbMonitorWidget::handlePrintButton);
QObject::connect(helpToolButton, &QToolButton::clicked, this, &SeerGdbMonitorWidget::handleHelpButton);
QObject::connect(macroButtonGroup, &QButtonGroup::buttonClicked, this, &SeerGdbMonitorWidget::handleMacroToolButtonClicked);
#if QT_VERSION >= QT_VERSION_CHECK(6, 3, 0)
QObject::connect(QGuiApplication::styleHints(), &QStyleHints::colorSchemeChanged, this, &SeerGdbMonitorWidget::handleThemeChanged);
#endif
// Colorize icons for theme.
Seer::colorizeAllIcons(this);