mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 21:56:43 +08:00
* allow to set/unset frameless mode in CDockWidget * adjusted context menus * adjusted style sheets * ini settings for margins * hidden info area to host floating widgets only visible when floating (allows to CDockInfoArea widgets) * made some private slots non-virtual
This commit is contained in:
@@ -22,9 +22,7 @@ namespace BlackGui
|
||||
{
|
||||
CDockWidgetInfoBar::CDockWidgetInfoBar(QWidget *parent) : CDockWidget(parent)
|
||||
{
|
||||
this->setProperty("frameless", CGuiUtility::isMainWindowFrameless());
|
||||
this->setMarginsWhenDocked(0, 0, 0, -1);
|
||||
this->setWindowTitle("Info bar");
|
||||
this->setWindowTitle("Info status bar");
|
||||
this->setWindowIcon(CIcons::swift24());
|
||||
this->ps_onStyleSheetsChanged();
|
||||
}
|
||||
@@ -37,6 +35,7 @@ namespace BlackGui
|
||||
|
||||
void CDockWidgetInfoBar::ps_onStyleSheetsChanged()
|
||||
{
|
||||
if (!this->objectName().isEmpty()) { this->setMarginsFromSettings(); }
|
||||
QString st = CStyleSheetUtility::instance().style(CStyleSheetUtility::fileNameInfoBar());
|
||||
this->setStyleSheet(st);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user