@@ -155,10 +155,7 @@ QgsGrassTools::QgsGrassTools ( QgisInterface *iface,
155
155
connect ( mModulesListView , SIGNAL (itemClicked (QTreeWidgetItem *, int )),
156
156
this , SLOT (moduleClicked ( QTreeWidgetItem *, int )) );
157
157
158
- QString title = tr (" GRASS Tools: " ) + QgsGrass::getDefaultLocation ()
159
- + " /" + QgsGrass::getDefaultMapset ();
160
- setCaption (title);
161
- mModulesListView ->show ();
158
+
162
159
163
160
164
161
//
@@ -173,7 +170,7 @@ QgsGrassTools::QgsGrassTools ( QgisInterface *iface,
173
170
mListView ->setFocus ();
174
171
mListView ->setItemDelegateForColumn (0 ,new QgsDetailedItemDelegate ());
175
172
mListView ->setUniformItemSizes (false );
176
- mListView -> show ();
173
+
177
174
QWidget * mypBase = new QWidget (this );
178
175
QVBoxLayout * mypListTabLayout = new QVBoxLayout (mypBase);
179
176
mypListTabLayout->addWidget (mListView );
@@ -199,13 +196,20 @@ QgsGrassTools::QgsGrassTools ( QgisInterface *iface,
199
196
loadConfig ( conf );
200
197
QApplication::restoreOverrideCursor ();
201
198
// statusBar()->hide();
202
-
203
- // Add map browser
199
+
200
+ // set the dialog title
201
+ QString title = tr (" GRASS Tools: " ) + QgsGrass::getDefaultLocation ()
202
+ + " /" + QgsGrass::getDefaultMapset ();
203
+ setCaption (title);
204
+ mModulesListView ->show ();
205
+ mListView ->show ();
206
+
207
+ // Add map browser
204
208
mBrowser = new QgsGrassBrowser ( mIface , this );
205
209
mTabWidget ->addTab ( mBrowser , tr (" Browser" ) );
206
210
207
211
connect ( mBrowser , SIGNAL (regionChanged ()),
208
- this , SLOT (emitRegionChanged ()) );
212
+ this , SLOT (emitRegionChanged ()) );
209
213
}
210
214
211
215
void QgsGrassTools::moduleClicked ( QTreeWidgetItem * item, int column )
0 commit comments