Skip to content

Commit 97fffb1

Browse files
author
g_j_m
committed
Prevent a 'missing signal/slot' message when opening the project
properties dialog box git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@6299 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 99de4ab commit 97fffb1

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

src/gui/qgsprojectproperties.cpp

+1-11
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
: QDialog(parent, fl)
4040
{
4141
setupUi(this);
42-
connect(btnGrpMapUnits, SIGNAL(clicked(int)), this, SLOT(mapUnitChange(int)));
42+
4343
connect(buttonApply, SIGNAL(clicked()), this, SLOT(apply()));
4444
connect(buttonCancel, SIGNAL(clicked()), this, SLOT(reject()));
4545
connect(buttonOk, SIGNAL(clicked()), this, SLOT(accept()));
@@ -135,16 +135,6 @@ QGis::units QgsProjectProperties::mapUnits() const
135135
return QgsProject::instance()->mapUnits();
136136
}
137137

138-
139-
void QgsProjectProperties::mapUnitChange(int unit)
140-
{
141-
/*
142-
QgsProject::instance()->mapUnits(
143-
static_cast<QGis::units>(unit));
144-
*/
145-
}
146-
147-
148138
void QgsProjectProperties::setMapUnits(QGis::units unit)
149139
{
150140
// select the button

src/gui/qgsprojectproperties.h

-6
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,6 @@ class QgsProjectProperties : public QDialog, private Ui::QgsProjectPropertiesBas
5959
/*! Indicates that the projection switch is on */
6060
bool isProjected();
6161
public slots:
62-
/*!
63-
* Slot called when a new button (unit) is selected
64-
* @param int specifying which button was selected. The button ids match the enum
65-
* values in QGis::units
66-
*/
67-
void mapUnitChange(int);
6862
/*!
6963
* Slot called when apply button is pressed
7064
*/

0 commit comments

Comments
 (0)