Skip to content

Commit

Permalink
[addlayerbutton] Removed button bar from main dialog
Browse files Browse the repository at this point in the history
No Close button anymore ... prepare your wrist for
a precise hit on the [X] or hit ESC to close the
dialog.
  • Loading branch information
elpaso committed Jun 2, 2017
1 parent 23ae508 commit 14cc77c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 38 deletions.
2 changes: 1 addition & 1 deletion src/gui/qgsoptionsdialogbase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ void QgsOptionsDialogBase::initOptionsBase( bool restoreUi, const QString &title
buttonBoxFrame->layout()->setContentsMargins( 0, 0, 0, 0 );
layout->insertWidget( layout->count() + 1, buttonBoxFrame );
}
else
else if ( mOptButtonBox )
{
layout->insertWidget( layout->count() + 1, mOptButtonBox );
}
Expand Down
37 changes: 0 additions & 37 deletions src/ui/qgsdatasourcemanagerdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -154,43 +154,6 @@
</widget>
</widget>
</item>
<item>
<widget class="QFrame" name="mButtonBoxFrame">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QGridLayout" name="gridLayout">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item row="0" column="0">
<widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons">
<set>QDialogButtonBox::Close</set>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<resources>
Expand Down

0 comments on commit 14cc77c

Please sign in to comment.