Skip to content
Permalink
Browse files

Use new style connect.

  • Loading branch information
ismailsunni committed Mar 12, 2017
1 parent 43b5ea1 commit 18851e4b7283b603e8707ebf2695b19fb21be11f
Showing with 4 additions and 28 deletions.
  1. +4 −24 src/providers/wms/qgsxyzconnectiondialog.cpp
  2. +0 −4 src/providers/wms/qgsxyzconnectiondialog.h
@@ -21,6 +21,10 @@ QgsXyzConnectionDialog::QgsXyzConnectionDialog( QWidget *parent )
: QDialog( parent )
{
setupUi( this );

// Behavior for min and max zoom check box
connect( mCheckBoxZMin, &QCheckBox::toggled, mSpinZMin, &QSpinBox::setEnabled );
connect( mCheckBoxZMax, &QCheckBox::toggled, mSpinZMax, &QSpinBox::setEnabled );
}

void QgsXyzConnectionDialog::setConnection( const QgsXyzConnection &conn )
@@ -44,27 +48,3 @@ QgsXyzConnection QgsXyzConnectionDialog::connection() const
conn.zMax = mSpinZMax->value();
return conn;
}

void QgsXyzConnectionDialog::on_mCheckBoxZMin_stateChanged( int state )
{
if ( state == Qt::Checked )
{
mSpinZMin->setEnabled( true );
}
else
{
mSpinZMin->setEnabled( false );
}
}

void QgsXyzConnectionDialog::on_mCheckBoxZMax_stateChanged( int state )
{
if ( state == Qt::Checked )
{
mSpinZMax->setEnabled( true );
}
else
{
mSpinZMax->setEnabled( false );
}
}
@@ -33,10 +33,6 @@ class QgsXyzConnectionDialog : public QDialog, public Ui::QgsXyzConnectionDialog

QgsXyzConnection connection() const;

public slots:
void on_mCheckBoxZMin_stateChanged( int state );
void on_mCheckBoxZMax_stateChanged( int state );

};

#endif // QGSXYZCONNECTIONDIALOG_H

0 comments on commit 18851e4

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