Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge Vector Layer Server Dimensions Dialog: use explicit connection …
…instead of in the UI file

Use explicit connection instead of in the UI file in QgsWmsDimensionDialog
  • Loading branch information
rldhont committed Sep 12, 2019
2 parents 5d05322 + 69af5a2 commit 1e4df22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 34 deletions.
2 changes: 2 additions & 0 deletions src/app/qgswmsdimensiondialog.cpp
Expand Up @@ -38,6 +38,8 @@ QgsWmsDimensionDialog::QgsWmsDimensionDialog( QgsVectorLayer *layer, QStringList
mEndFieldComboBox->setLayer( mLayer );
mEndFieldComboBox->setAllowEmptyFieldName( true );

connect( buttonBox, &QDialogButtonBox::accepted, this, &QgsWmsDimensionDialog::accept );
connect( buttonBox, &QDialogButtonBox::rejected, this, &QgsWmsDimensionDialog::reject );
connect( mFieldComboBox, &QgsFieldComboBox::fieldChanged, this, &QgsWmsDimensionDialog::fieldChanged );
connect( mEndFieldComboBox, &QgsFieldComboBox::fieldChanged, this, &QgsWmsDimensionDialog::fieldChanged );
connect( mNameComboBox, &QComboBox::editTextChanged, this, &QgsWmsDimensionDialog::nameChanged );
Expand Down
35 changes: 1 addition & 34 deletions src/ui/qgswmsdimensiondialogbase.ui
Expand Up @@ -149,38 +149,5 @@
</customwidget>
</customwidgets>
<resources/>
<connections>
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>QgsWmsDimensionDialogBase</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
<x>248</x>
<y>254</y>
</hint>
<hint type="destinationlabel">
<x>157</x>
<y>274</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>QgsWmsDimensionDialogBase</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">
<x>316</x>
<y>260</y>
</hint>
<hint type="destinationlabel">
<x>286</x>
<y>274</y>
</hint>
</hints>
</connection>
</connections>
<connections/>
</ui>

0 comments on commit 1e4df22

Please sign in to comment.