mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
Reduced hard coded stylesheet values
* disabled hardcoded wizard pages style sheet * adjusted style sheet * fixed QMneu issue: https://stackoverflow.com/questions/53991839/qt-5-12-menu-items-with-unwanted-extra-space * tagged remaining ones as "\fixme hardcoded"
This commit is contained in:
committed by
Mat Sutcliffe
parent
cd095dbb3f
commit
2de192600f
@@ -258,12 +258,15 @@ namespace BlackGui
|
||||
BLACK_VERIFY_X(checkBox, Q_FUNC_INFO, "no checkbox");
|
||||
if (!checkBox) { return; }
|
||||
|
||||
static const QString background("background: rgba(40,40,40)"); //! \todo hardcoded, should come from stylesheet
|
||||
static const QString background("background: rgba(40,40,40)"); //! \fixme hardcoded stylesheet setting, should come from stylesheet
|
||||
if (readOnly)
|
||||
{
|
||||
checkBox->setAttribute(Qt::WA_TransparentForMouseEvents);
|
||||
checkBox->setFocusPolicy(Qt::NoFocus);
|
||||
checkBox->setStyleSheet(background);
|
||||
|
||||
// without that, the checkboxes appear not readonly
|
||||
// obviously style sheet only does not work
|
||||
checkBox->setStyleSheet(background); //! fixme hardcoded stylesheet setting
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user