widgets/colorbutton.cpp

changeset 345
81cd5dee6d77
parent 344
a24da8de2a3b
child 346
3e3784c4cd3e
--- a/widgets/colorbutton.cpp	Sat Apr 08 15:03:54 2023 +0300
+++ b/widgets/colorbutton.cpp	Sat Apr 08 15:05:57 2023 +0300
@@ -36,13 +36,6 @@
 		this->setStyleSheet(QStringLiteral(
 			"*{background-color: %1; color: %2;}"
 		).arg(color.name()).arg(foreground.name()));
-		/*
-		palette.setColor(QPalette::ButtonText, foreground);
-		for (QWidget* widget : {(QWidget*)this->lineEdit, (QWidget*)this->button}) {
-			widget->setPalette(palette);
-			widget->setStyle(style);
-		}
-		*/
 		Q_EMIT this->colorChanged(this->color());
 	});
 	this->setColor(Qt::black);

mercurial