LmmsPalette: retrieve palette properties via polishing
Fix the short palette widget popup which is annoying and not neccessary as polishing does the same job without flicker.
This commit is contained in:
@@ -399,8 +399,6 @@ int main( int argc, char * * argv )
|
||||
QApplication::setStyle( lmmsstyle );
|
||||
|
||||
LmmsPalette * lmmspal = new LmmsPalette( NULL, lmmsstyle );
|
||||
lmmspal->show(); // necessary to get properties
|
||||
lmmspal->hide();
|
||||
QPalette lpal = lmmspal->palette();
|
||||
|
||||
QApplication::setPalette( lpal );
|
||||
|
||||
@@ -49,6 +49,7 @@ LmmsPalette::LmmsPalette( QWidget * parent, QStyle * stylearg ) :
|
||||
{
|
||||
setStyle( stylearg );
|
||||
stylearg->polish( this );
|
||||
ensurePolished();
|
||||
}
|
||||
|
||||
LmmsPalette::~LmmsPalette()
|
||||
|
||||
Reference in New Issue
Block a user