Skip to content

Commit da39e8a

Browse files
Marco Bernasocchipka
Marco Bernasocchi
authored andcommitted
fixed typo
1 parent eb30bf0 commit da39e8a

File tree

1 file changed

+15
-17
lines changed

1 file changed

+15
-17
lines changed

src/plugins/globe/globe_plugin.cpp

+15-17
Original file line numberDiff line numberDiff line change
@@ -266,58 +266,56 @@ void GlobePlugin::setupControls()
266266
std::string imgDir = QDir::cleanPath( QgsApplication::pkgDataPath() + "/globe/gui" ).toStdString();
267267

268268
//MOVE CONTROLS
269+
269270
//Horizontal container
270271
HBox* moveHControls = new HBox();
271272
moveHControls->setFrame( new RoundedFrame() );
272273
//moveHControls->getFrame()->setBackColor(0.5,0.5,0.5,0.1);
273-
//moveHControls->setMargin( 10 );
274+
moveHControls->setMargin( 10 );
274275
moveHControls->setSpacing( 15 );
275276
moveHControls->setVertAlign( Control::ALIGN_CENTER );
276277
moveHControls->setHorizAlign( Control::ALIGN_CENTER );
277-
moveHControls->setPosition( 20, 40);
278+
moveHControls->setPosition( 20, 40 );
278279

279280
//Move Left
280-
osg::Image* moveLeftImg = osgDB::readImageFile( imgDir + "/move-left.png");
281-
ImageControl* moveLeft = new ImageControl(moveLeftImg);
282-
//moveLeft->setPosition( 0, 5 );
281+
osg::Image* moveLeftImg = osgDB::readImageFile( imgDir + "/move-left.png" );
282+
ImageControl* moveLeft = new ImageControl( moveLeftImg );
283283
moveLeft->addEventHandler( new MyClickHandler );
284284

285285
//Move Right
286-
osg::Image* moveRightImg = osgDB::readImageFile( imgDir + "/move-right.png");
287-
ImageControl* moveRight = new ImageControl(moveRightImg);
288-
//moveRight->setPosition( 10, 5 );
286+
osg::Image* moveRightImg = osgDB::readImageFile( imgDir + "/move-right.png" );
287+
ImageControl* moveRight = new ImageControl( moveRightImg );
289288
moveRight->addEventHandler( new MyClickHandler );
290289

291290

292291
//Vertical container
293292
VBox* moveVControls = new VBox();
294293
moveVControls->setFrame( new RoundedFrame() );
295294
//moveControls->getFrame()->setBackColor(0.5,0.5,0.5,0.1);
296-
//moveControls->setMargin( 10 );
295+
moveControls->setMargin( 10 );
297296
moveVControls->setSpacing( 15 );
298297
moveVControls->setVertAlign( Control::ALIGN_CENTER );
299298
moveVControls->setHorizAlign( Control::ALIGN_CENTER );
300-
moveVControls->setPosition( 40, 20);
299+
moveVControls->setPosition( 40, 20 );
301300

302301
//Move Up
303-
osg::Image* moveUpImg = osgDB::readImageFile( imgDir + "/move-up.png");
304-
ImageControl* moveUp = new ImageControl(moveUpImg);
305-
//moveUp->setPosition( 5, 10 );
302+
osg::Image* moveUpImg = osgDB::readImageFile( imgDir + "/move-up.png" );
303+
ImageControl* moveUp = new ImageControl( moveUpImg );
306304
moveUp->addEventHandler( new MyClickHandler );
307305

308306
//Move Down
309-
osg::Image* moveDownImg = osgDB::readImageFile( imgDir + "/move-down.png");
310-
ImageControl* moveDown = new ImageControl(moveDownImg);
311-
//moveDown->setPosition( 5, 0 );
307+
osg::Image* moveDownImg = osgDB::readImageFile( imgDir + "/move-down.png" );
308+
ImageControl* moveDown = new ImageControl( moveDownImg );
312309
moveDown->addEventHandler( new MyClickHandler );
313-
//END MOVE CONTROLS
314310

315311
//add controls to moveControls group
316312
moveHControls->addControl( moveLeft );
317313
moveHControls->addControl( moveRight );
318314
moveVControls->addControl( moveUp );
319315
moveVControls->addControl( moveDown );
320316

317+
//END MOVE CONTROLS
318+
321319
//add controls groups to canavas
322320
mControlCanvas->addControl( moveHControls );
323321
mControlCanvas->addControl( moveVControls );

0 commit comments

Comments
 (0)