mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
Try to avoid showing the window before placing it
This commit is contained in:
@@ -28,7 +28,6 @@ class DelegateConfigWrapper : public QDialog
|
|||||||
public:
|
public:
|
||||||
DelegateConfigWrapper( QWidget* conf, const QString& title, QWidget* parent, Qt::WindowFlags flags = 0 ) : QDialog( parent, flags ), m_widget( conf )
|
DelegateConfigWrapper( QWidget* conf, const QString& title, QWidget* parent, Qt::WindowFlags flags = 0 ) : QDialog( parent, flags ), m_widget( conf )
|
||||||
{
|
{
|
||||||
m_widget->setVisible( true );
|
|
||||||
m_widget->setWindowFlags( Qt::Sheet );
|
m_widget->setWindowFlags( Qt::Sheet );
|
||||||
|
|
||||||
setWindowTitle( title );
|
setWindowTitle( title );
|
||||||
@@ -50,6 +49,7 @@ public:
|
|||||||
|
|
||||||
connect( conf, SIGNAL( sizeHintChanged() ), this, SLOT( updateSizeHint() ) );
|
connect( conf, SIGNAL( sizeHintChanged() ), this, SLOT( updateSizeHint() ) );
|
||||||
#endif
|
#endif
|
||||||
|
m_widget->setVisible( true );
|
||||||
}
|
}
|
||||||
public slots:
|
public slots:
|
||||||
void closed( QAbstractButton* b )
|
void closed( QAbstractButton* b )
|
||||||
|
Reference in New Issue
Block a user