Gui: save active palette

If the QLineEdit is disabled the current color group of the cached QPalette is set to 'Inactive'. Now when enabling the QLineEdit the wrong palette is set and the text looks like it's inactive.
This commit is contained in:
wmayer
2023-11-17 16:49:39 +01:00
committed by wwmayer
parent 574a964a29
commit eab181965c

View File

@@ -295,6 +295,7 @@ QPixmap ExpressionWidget::getIcon(const char* name, const QSize& size) const
void ExpressionWidget::makeLabel(QLineEdit* le)
{
defaultPalette = le->palette();
defaultPalette.setCurrentColorGroup(QPalette::Active);
/* Icon for f(x) */
QFontMetrics fm(le->font());