Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Size hints for the embedded message bar widget
  • Loading branch information
elpaso committed Jan 27, 2019
1 parent 611eb70 commit 65bf2ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/qgsdatasourcemanagerdialog.cpp
Expand Up @@ -35,12 +35,13 @@ QgsDataSourceManagerDialog::QgsDataSourceManagerDialog( QgsBrowserModel *browser
, mPreviousRow( -1 )
, mMapCanvas( canvas )
{
mMessageBar = new QgsMessageBar( this );
ui->setupUi( this );
ui->verticalLayout_2->setSpacing( 6 );
ui->verticalLayout_2->setMargin( 0 );
ui->verticalLayout_2->setContentsMargins( 0, 0, 0, 0 );

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

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

0 comments on commit 65bf2ce

Please sign in to comment.