From f9b2d4fa2579ee70d0868128263509ea3b7efa02 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 9 Feb 2022 17:02:01 -0800 Subject: [PATCH] Qt6: adjust for changed argument types Signed-off-by: Dirk Hohndel --- desktop-widgets/tagwidget.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/desktop-widgets/tagwidget.cpp b/desktop-widgets/tagwidget.cpp index 01ddd15be..ad5ff7c38 100644 --- a/desktop-widgets/tagwidget.cpp +++ b/desktop-widgets/tagwidget.cpp @@ -11,7 +11,11 @@ TagWidget::TagWidget(QWidget *parent) : GroupedLineEdit(parent), m_completer(NUL connect(this, SIGNAL(textChanged()), this, SLOT(reparse())); QColor textColor = palette().color(QPalette::Text); +#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) + float h, s, l, a; +#else qreal h, s, l, a; +#endif textColor.getHslF(&h, &s, &l, &a); // I use dark themes if (l <= 0.3) { // very dark text. get a brigth background