mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
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:
committed by
Roland Winklmeier
parent
65c2ed9db4
commit
c965fbb785
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user