Skip to content

Commit 18dd78e

Browse files
author
brushtyler
committedNov 14, 2010
shrinked some GUIs,
used GUI guideline for Browse buttons text git-svn-id: http://svn.osgeo.org/qgis/trunk@14663 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent ceaff47 commit 18dd78e

File tree

3 files changed

+3
-26
lines changed

3 files changed

+3
-26
lines changed
 

‎src/plugins/grass/qgsgrassselect.cpp

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -92,28 +92,11 @@ QgsGrassSelect::QgsGrassSelect( int type ): QgsGrassSelectBase()
9292
egisdbase->setText( lastGisdbase );
9393

9494
setLocations();
95-
96-
restorePosition();
97-
}
98-
99-
QgsGrassSelect::~QgsGrassSelect()
100-
{
101-
saveWindowLocation();
102-
}
103-
104-
void QgsGrassSelect::restorePosition()
105-
{
106-
//optionsFrame->adjustSize();
10795
adjustSize();
108-
109-
QSettings settings;
110-
restoreGeometry( settings.value( "/GRASS/windows/select/geometry" ).toByteArray() );
11196
}
11297

113-
void QgsGrassSelect::saveWindowLocation()
98+
QgsGrassSelect::~QgsGrassSelect()
11499
{
115-
QSettings settings;
116-
settings.setValue( "/GRASS/windows/select/geometry", saveGeometry() );
117100
}
118101

119102
bool QgsGrassSelect::first = true;
@@ -493,8 +476,6 @@ void QgsGrassSelect::on_GisdbaseBrowse_clicked()
493476

494477
void QgsGrassSelect::on_ok_clicked()
495478
{
496-
saveWindowLocation();
497-
498479
gisdbase = egisdbase->text();
499480
lastGisdbase = QString( gisdbase );
500481

@@ -558,6 +539,5 @@ void QgsGrassSelect::on_ok_clicked()
558539

559540
void QgsGrassSelect::on_cancel_clicked()
560541
{
561-
saveWindowLocation();
562542
QDialog::reject();
563543
}

‎src/plugins/grass/qgsgrassselect.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,6 @@ class QgsGrassSelect: public QDialog, private Ui::QgsGrassSelectBase
8888
static QString lastRasterMap;
8989
static QString lastLayer; // vector layer
9090
static QString lastMapcalc;
91-
92-
void restorePosition( void );
93-
void saveWindowLocation( void );
9491
};
9592

9693

‎src/plugins/grass/qgsgrassselectbase.ui

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<rect>
77
<x>0</x>
88
<y>0</y>
9-
<width>393</width>
9+
<width>478</width>
1010
<height>221</height>
1111
</rect>
1212
</property>
@@ -94,7 +94,7 @@
9494
<item row="0" column="2">
9595
<widget class="QPushButton" name="GisdbaseBrowse">
9696
<property name="text">
97-
<string>Browse</string>
97+
<string>Browse...</string>
9898
</property>
9999
</widget>
100100
</item>

0 commit comments

Comments
 (0)
Please sign in to comment.