@@ -213,72 +213,72 @@ void QgsGrassEdit::init()
213
213
214
214
QToolBar *tb = addToolBar (tr (" Edit tools" ));
215
215
216
- QAction * mNewPointAction = new QAction (
216
+ mNewPointAction = new QAction (
217
217
QIcon (myIconPath+" grass_new_point.png" ), tr (" New point" ), this );
218
218
mNewPointAction ->setShortcut ( QKeySequence (Qt::Key_F1) );
219
219
tb->addAction ( mNewPointAction );
220
220
connect ( mNewPointAction , SIGNAL (triggered ()), this , SLOT (newPoint ()) );
221
221
222
- QAction * mNewLineAction = new QAction (
222
+ mNewLineAction = new QAction (
223
223
QIcon (myIconPath+" grass_new_line.png" ), tr (" New line" ), this );
224
224
mNewLineAction ->setShortcut ( QKeySequence (Qt::Key_F2) );
225
225
tb->addAction ( mNewLineAction );
226
226
connect ( mNewLineAction , SIGNAL (triggered ()), this , SLOT (newLine ()) );
227
227
228
- QAction * mNewBoundaryAction = new QAction (
228
+ mNewBoundaryAction = new QAction (
229
229
QIcon (myIconPath+" grass_new_boundary.png" ), tr (" New boundary" ), this );
230
230
mNewBoundaryAction ->setShortcut ( QKeySequence (Qt::Key_F3) );
231
231
tb->addAction ( mNewBoundaryAction );
232
232
connect ( mNewBoundaryAction , SIGNAL (triggered ()), this , SLOT (newBoundary ()) );
233
233
234
- QAction * mNewCentroidAction = new QAction (
234
+ mNewCentroidAction = new QAction (
235
235
QIcon (myIconPath+" grass_new_centroid.png" ), tr (" New centroid" ), this );
236
236
mNewCentroidAction ->setShortcut ( QKeySequence (Qt::Key_F4) );
237
237
tb->addAction ( mNewCentroidAction );
238
238
connect ( mNewCentroidAction , SIGNAL (triggered ()), this , SLOT (newCentroid ()) );
239
239
240
- QAction * mMoveVertexAction = new QAction (
240
+ mMoveVertexAction = new QAction (
241
241
QIcon (myIconPath+" grass_move_vertex.png" ), tr (" Move vertex" ), this );
242
242
mMoveVertexAction ->setShortcut ( QKeySequence (Qt::Key_F5) );
243
243
tb->addAction ( mMoveVertexAction );
244
244
connect ( mMoveVertexAction , SIGNAL (triggered ()), this , SLOT (moveVertex ()) );
245
245
246
- QAction * mAddVertexAction = new QAction (
246
+ mAddVertexAction = new QAction (
247
247
QIcon (myIconPath+" grass_add_vertex.png" ), tr (" Add vertex" ), this );
248
248
mAddVertexAction ->setShortcut ( QKeySequence (Qt::Key_F6) );
249
249
tb->addAction ( mAddVertexAction );
250
250
connect ( mAddVertexAction , SIGNAL (triggered ()), this , SLOT (addVertex ()) );
251
251
252
- QAction * mDeleteVertexAction = new QAction (
252
+ mDeleteVertexAction = new QAction (
253
253
QIcon (myIconPath+" grass_delete_vertex.png" ), tr (" Delete vertex" ), this );
254
254
mDeleteVertexAction ->setShortcut ( QKeySequence (Qt::Key_F7) );
255
255
tb->addAction ( mDeleteVertexAction );
256
256
connect ( mDeleteVertexAction , SIGNAL (triggered ()), this , SLOT (deleteVertex ()) );
257
257
258
- QAction * mMoveLineAction = new QAction (
258
+ mMoveLineAction = new QAction (
259
259
QIcon (myIconPath+" grass_move_line.png" ), tr (" Move line" ), this );
260
260
mMoveLineAction ->setShortcut ( QKeySequence (Qt::Key_F9) );
261
261
tb->addAction ( mMoveLineAction );
262
262
connect ( mMoveLineAction , SIGNAL (triggered ()), this , SLOT (moveLine ()) );
263
263
264
- QAction * mSplitLineAction = new QAction (
264
+ mSplitLineAction = new QAction (
265
265
QIcon (myIconPath+" grass_split_line.png" ), tr (" Split line" ), this );
266
266
mSplitLineAction ->setShortcut ( QKeySequence (Qt::Key_F10) );
267
267
tb->addAction ( mSplitLineAction );
268
268
connect ( mSplitLineAction , SIGNAL (triggered ()), this , SLOT (splitLine ()) );
269
269
270
- QAction * mDeleteLineAction = new QAction (
270
+ mDeleteLineAction = new QAction (
271
271
QIcon (myIconPath+" grass_delete_line.png" ), tr (" Delete line" ), this );
272
272
mDeleteLineAction ->setShortcut ( QKeySequence (Qt::Key_F11) );
273
273
tb->addAction ( mDeleteLineAction );
274
274
connect ( mDeleteLineAction , SIGNAL (triggered ()), this , SLOT (deleteLine ()) );
275
275
276
- QAction * mEditAttributesAction = new QAction (
276
+ mEditAttributesAction = new QAction (
277
277
QIcon (myIconPath+" grass_edit_attributes.png" ), tr (" Edit attributes" ), this );
278
278
tb->addAction ( mEditAttributesAction );
279
279
connect ( mEditAttributesAction , SIGNAL (triggered ()), this , SLOT (editAttributes ()) );
280
280
281
- QAction * mCloseEditAction = new QAction (
281
+ mCloseEditAction = new QAction (
282
282
QIcon (myIconPath+" grass_close_edit.png" ), tr (" Close" ), this );
283
283
tb->addAction ( mCloseEditAction );
284
284
connect ( mCloseEditAction , SIGNAL (triggered ()), this , SLOT (closeEdit ()) );
0 commit comments