mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2025-07-05 16:55:25 +08:00
qt 6.6.0 clean
This commit is contained in:
@ -107,6 +107,7 @@ private slots:
|
||||
void QTBUG36933_brokenPseudoClassLookup();
|
||||
void styleSheetChangeBeforePolish();
|
||||
void placeholderColor();
|
||||
void accent();
|
||||
void enumPropertySelector_data();
|
||||
void enumPropertySelector();
|
||||
//at the end because it mess with the style.
|
||||
@ -2405,6 +2406,15 @@ void tst_QStyleSheetStyle::placeholderColor()
|
||||
QCOMPARE(le1.palette().placeholderText().color(), QColor(phSpec));
|
||||
}
|
||||
|
||||
void tst_QStyleSheetStyle::accent()
|
||||
{
|
||||
QLineEdit lineEdit;
|
||||
const QColor universe(42, 42, 42);
|
||||
lineEdit.setStyleSheet(QString("QLineEdit { accent-color: %1; }").arg(universe.name()));
|
||||
lineEdit.ensurePolished();
|
||||
QCOMPARE(lineEdit.palette().accent().color(), universe);
|
||||
}
|
||||
|
||||
void tst_QStyleSheetStyle::enumPropertySelector_data()
|
||||
{
|
||||
QTest::addColumn<QString>("styleSheet");
|
||||
|
Reference in New Issue
Block a user