Skip to content

Commit 65bf2ce

Browse files
committed
Size hints for the embedded message bar widget
1 parent 611eb70 commit 65bf2ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/gui/qgsdatasourcemanagerdialog.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,13 @@ QgsDataSourceManagerDialog::QgsDataSourceManagerDialog( QgsBrowserModel *browser
3535
, mPreviousRow( -1 )
3636
, mMapCanvas( canvas )
3737
{
38-
mMessageBar = new QgsMessageBar( this );
3938
ui->setupUi( this );
4039
ui->verticalLayout_2->setSpacing( 6 );
4140
ui->verticalLayout_2->setMargin( 0 );
4241
ui->verticalLayout_2->setContentsMargins( 0, 0, 0, 0 );
4342

43+
mMessageBar = new QgsMessageBar( this );
44+
mMessageBar->setSizePolicy( QSizePolicy::MinimumExpanding, QSizePolicy::Fixed );
4445
static_cast<QVBoxLayout *>( layout() )->insertWidget( 0, mMessageBar );
4546

4647
// QgsOptionsDialogBase handles saving/restoring of geometry, splitter and current tab states,

0 commit comments

Comments
 (0)