refs #304, style sheet support for dock widgets

This commit is contained in:
Klaus Basan
2014-08-02 22:22:58 +02:00
parent f8774540f2
commit c197ec8296
2 changed files with 31 additions and 6 deletions

View File

@@ -79,12 +79,19 @@ namespace BlackGui
//! Contribute to menu
virtual void addToContextMenu(QMenu *contextMenu) const;
//! Paint event
virtual void paintEvent(QPaintEvent *event) override;
protected slots:
//! Style sheet has changed
virtual void ps_onStyleSheetsChanged();
private slots:
//! Top level has been chaged
virtual void ps_onTopLevelChanged(bool topLevel);
//! Context menu
void ps_showContextMenu(const QPoint &pos);
virtual void ps_showContextMenu(const QPoint &pos);
private:
QWidget *m_emptyTitleBar = nullptr; //!< replacing default title bar
@@ -96,7 +103,6 @@ namespace BlackGui
//! Empty widget with no size
void initTitleBarWidgets();
};
} // namespace