refs #335, style sheet fixes / improvements and support methods

style sheets:
* style sheets with background textures
* scroll area / toolbox style sheet fix
* floating dock widgets
* kept 1st version of stylesheets in backup directory
* removed maininfoarea stylesheet, no longer needed with fixed style sheet

code
* central paintEvent method to enable style sheets in derived widgets
* detect frameless windows, dynamic properties
This commit is contained in:
Klaus Basan
2014-10-01 17:05:37 +02:00
committed by Roland Winklmeier
parent 65c2ed9db4
commit c965fbb785
27 changed files with 1056 additions and 156 deletions

View File

@@ -89,9 +89,9 @@ namespace BlackGui
}
//! File name maininfoarea.qss
static const QString &fileNameMainInfoArea()
static const QString &fileNameInfoWindow()
{
static const QString f("maininfoarea.qss");
static const QString f("stylesheetinfo.qss");
return f;
}
@@ -109,6 +109,13 @@ namespace BlackGui
return s;
}
//! Transparent background color
static const QString &transparentBackgroundColor()
{
static const QString t = "background-color: transparent;";
return t;
}
//! qss directory
static QString qssDirectory();
@@ -121,6 +128,10 @@ namespace BlackGui
//! Font as combined weight and style
static QString fontAsCombinedWeightStyle(const QFont &font);
//! Use style sheets in derived widgets
//! \sa QWidget::paintEvent
static void useStyleSheetInDerivedWidget(QWidget *derivedWidget);
signals:
//! Sheets have been changed
void styleSheetsChanged();