Skip to content

Commit 14cc77c

Browse files
committedJun 2, 2017
[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.
1 parent 23ae508 commit 14cc77c

File tree

2 files changed

+1
-38
lines changed

2 files changed

+1
-38
lines changed
 

‎src/gui/qgsoptionsdialogbase.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ void QgsOptionsDialogBase::initOptionsBase( bool restoreUi, const QString &title
126126
buttonBoxFrame->layout()->setContentsMargins( 0, 0, 0, 0 );
127127
layout->insertWidget( layout->count() + 1, buttonBoxFrame );
128128
}
129-
else
129+
else if ( mOptButtonBox )
130130
{
131131
layout->insertWidget( layout->count() + 1, mOptButtonBox );
132132
}

‎src/ui/qgsdatasourcemanagerdialog.ui

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -154,43 +154,6 @@
154154
</widget>
155155
</widget>
156156
</item>
157-
<item>
158-
<widget class="QFrame" name="mButtonBoxFrame">
159-
<property name="sizePolicy">
160-
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
161-
<horstretch>0</horstretch>
162-
<verstretch>0</verstretch>
163-
</sizepolicy>
164-
</property>
165-
<property name="frameShape">
166-
<enum>QFrame::NoFrame</enum>
167-
</property>
168-
<property name="frameShadow">
169-
<enum>QFrame::Raised</enum>
170-
</property>
171-
<layout class="QGridLayout" name="gridLayout">
172-
<property name="leftMargin">
173-
<number>0</number>
174-
</property>
175-
<property name="topMargin">
176-
<number>0</number>
177-
</property>
178-
<property name="rightMargin">
179-
<number>0</number>
180-
</property>
181-
<property name="bottomMargin">
182-
<number>0</number>
183-
</property>
184-
<item row="0" column="0">
185-
<widget class="QDialogButtonBox" name="buttonBox">
186-
<property name="standardButtons">
187-
<set>QDialogButtonBox::Close</set>
188-
</property>
189-
</widget>
190-
</item>
191-
</layout>
192-
</widget>
193-
</item>
194157
</layout>
195158
</widget>
196159
<resources>

0 commit comments

Comments
 (0)
Please sign in to comment.