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:
Klaus Basan
2016-06-22 12:07:24 +02:00
parent 2d669e0e21
commit 635410857e
13 changed files with 12 additions and 56 deletions

View File

@@ -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);