Skip to content

Commit

Permalink
Prevent a 'missing signal/slot' message when opening the project
Browse files Browse the repository at this point in the history
properties dialog box


git-svn-id: http://svn.osgeo.org/qgis/trunk@6299 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Dec 22, 2006
1 parent 624034a commit c271fc8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 17 deletions.
12 changes: 1 addition & 11 deletions src/gui/qgsprojectproperties.cpp
Expand Up @@ -39,7 +39,7 @@
: QDialog(parent, fl)
{
setupUi(this);
connect(btnGrpMapUnits, SIGNAL(clicked(int)), this, SLOT(mapUnitChange(int)));

connect(buttonApply, SIGNAL(clicked()), this, SLOT(apply()));
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(reject()));
connect(buttonOk, SIGNAL(clicked()), this, SLOT(accept()));
Expand Down Expand Up @@ -135,16 +135,6 @@ QGis::units QgsProjectProperties::mapUnits() const
return QgsProject::instance()->mapUnits();
}


void QgsProjectProperties::mapUnitChange(int unit)
{
/*
QgsProject::instance()->mapUnits(
static_cast<QGis::units>(unit));
*/
}


void QgsProjectProperties::setMapUnits(QGis::units unit)
{
// select the button
Expand Down
6 changes: 0 additions & 6 deletions src/gui/qgsprojectproperties.h
Expand Up @@ -59,12 +59,6 @@ class QgsProjectProperties : public QDialog, private Ui::QgsProjectPropertiesBas
/*! Indicates that the projection switch is on */
bool isProjected();
public slots:
/*!
* Slot called when a new button (unit) is selected
* @param int specifying which button was selected. The button ids match the enum
* values in QGis::units
*/
void mapUnitChange(int);
/*!
* Slot called when apply button is pressed
*/
Expand Down

0 comments on commit c271fc8

Please sign in to comment.