Skip to content
Permalink
Browse files

[addlayerbutton] Removed button bar from main dialog

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 14cc77c4eca607d73cb64a22f3a08b1cff6148a6
Showing with 1 addition and 38 deletions.
  1. +1 −1 src/gui/qgsoptionsdialogbase.cpp
  2. +0 −37 src/ui/qgsdatasourcemanagerdialog.ui
@@ -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 );
}
@@ -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>

0 comments on commit 14cc77c

Please sign in to comment.
You can’t perform that action at this time.