mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
refs #419, reviewed style sheet paintEvent code
* removed for QWidget * added for QDialog http://stackoverflow.com/questions/37952348/enable-own-widget-for-stylesheet
This commit is contained in:
@@ -152,6 +152,13 @@ namespace BlackGui
|
||||
this->buildNavigator(this->m_currentColumns);
|
||||
}
|
||||
|
||||
void CNavigatorDialog::paintEvent(QPaintEvent *event)
|
||||
{
|
||||
bool s = CStyleSheetUtility::useStyleSheetInDerivedWidget(this, QStyle::PE_Widget);
|
||||
if (s) { return; }
|
||||
QDialog::paintEvent(event);
|
||||
}
|
||||
|
||||
void CNavigatorDialog::ps_showContextMenu(const QPoint &pos)
|
||||
{
|
||||
QPoint globalPos = this->mapToGlobal(pos);
|
||||
|
||||
Reference in New Issue
Block a user