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

@@ -15,6 +15,7 @@
#include <QListIterator>
#include <QSignalMapper>
#include <QCloseEvent>
#include <QStatusBar>
using namespace BlackMisc;
@@ -156,6 +157,12 @@ namespace BlackGui
return this->getDockableWidgetByTabBarIndex(tabBarIndex) == infoArea;
}
void CInfoArea::paintEvent(QPaintEvent *event)
{
Q_UNUSED(event);
CStyleSheetUtility::useStyleSheetInDerivedWidget(this);
}
void CInfoArea::dockAllWidgets()
{
this->tabifyAllWidgets();
@@ -421,8 +428,6 @@ namespace BlackGui
void CInfoArea::ps_onStyleSheetChanged()
{
QString qss = CStyleSheetUtility::instance().style(CStyleSheetUtility::fileNameMainInfoArea());
this->setStyleSheet(qss);
if (this->m_tabBar)
{
QString qss = CStyleSheetUtility::instance().style(CStyleSheetUtility::fileNameDockWidgetTab());