Skip to content

Commit 7c4f3f9

Browse files
committed
remove lineEdit method from projection selection widget
this will allow to change the widget design without breaking the API
1 parent 73a2858 commit 7c4f3f9

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

python/gui/qgsprojectionselectionwidget.sip

-5
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ class QgsProjectionSelectionWidget : QWidget
2020
*/
2121
QgsGenericProjectionSelector* dialog();
2222

23-
/* Returns a pointer to the line edit used by the widget
24-
* @returns CRS line edit
25-
*/
26-
QLineEdit* lineEdit();
27-
2823
/* Returns the currently selected CRS for the widget
2924
* @returns current CRS
3025
*/

src/app/ogr/qgsvectorlayersaveasdialog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ void QgsVectorLayerSaveAsDialog::accept()
188188

189189
void QgsVectorLayerSaveAsDialog::on_mCRSSelection_currentIndexChanged( int idx )
190190
{
191-
mCrsSelector->lineEdit()->setEnabled( idx == 2 );
191+
mCrsSelector->setEnabled( idx == 2 );
192192

193193
QgsCoordinateReferenceSystem crs;
194194
if ( mCRSSelection->currentIndex() == 0 )

src/gui/qgsprojectionselectionwidget.h

-5
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,6 @@ class GUI_EXPORT QgsProjectionSelectionWidget : public QWidget
4242
*/
4343
QgsGenericProjectionSelector* dialog() { return mDialog; }
4444

45-
/* Returns a pointer to the line edit used by the widget
46-
* @returns CRS line edit
47-
*/
48-
QLineEdit* lineEdit() { return mCrsLineEdit; }
49-
5045
/* Returns the currently selected CRS for the widget
5146
* @returns current CRS
5247
*/

0 commit comments

Comments
 (0)