mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Qt6: adjust for changed argument types
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
e61509b032
commit
f9b2d4fa25
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue