mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
refs #368, filter for views
This commit is contained in:
@@ -233,4 +233,13 @@ namespace BlackGui
|
||||
QPainter p(usedWidget);
|
||||
usedWidget->style()->drawPrimitive(element, &opt, &p, usedWidget);
|
||||
}
|
||||
|
||||
QString CStyleSheetUtility::styleForIconCheckBox(const QString &checkedIcon, const QString &uncheckedIcon, const QString &width, const QString &height)
|
||||
{
|
||||
Q_ASSERT(!checkedIcon.isEmpty());
|
||||
Q_ASSERT(!uncheckedIcon.isEmpty());
|
||||
|
||||
static const QString st = "QCheckBox::indicator { width: %1; height: %2; } QCheckBox::indicator:checked { image: url(%3); } QCheckBox::indicator:unchecked { image: url(%4); }";
|
||||
return st.arg(width).arg(height).arg(checkedIcon).arg(uncheckedIcon);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user