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

@@ -66,13 +66,6 @@ namespace BlackGui
return m;
}
void CMarginsInput::paintEvent(QPaintEvent *event)
{
bool s = CStyleSheetUtility::useStyleSheetInDerivedWidget(this, QStyle::PE_Widget);
if (s) { return; }
QFrame::paintEvent(event);
}
void CMarginsInput::ps_Confirmed()
{
const QMargins m(this->getMargins());