Skip to content

Commit

Permalink
remove the touch button if HAVE_TOUCH=0
Browse files Browse the repository at this point in the history
  • Loading branch information
mbernasocchi committed Apr 13, 2012
1 parent b8953c9 commit 751222b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/app/qgisapp.cpp
Expand Up @@ -645,6 +645,9 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, QWidget * parent,
#ifdef HAVE_TOUCH
//add reacting to long click in android
grabGesture( Qt::TapAndHoldGesture );
#else
//remove mActionTouch button
delete mActionTouch;
#endif

// update windows
Expand Down Expand Up @@ -2785,6 +2788,7 @@ void QgisApp::fileNew( bool thePromptToSaveFlag )
// set the initial map tool
mMapCanvas->setMapTool( mMapTools.mPan );
mNonEditMapTool = mMapTools.mPan; // signals are not yet setup to catch this

#ifdef HAVE_TOUCH
mMapCanvas->setMapTool( mMapTools.mTouch );
mNonEditMapTool = mMapTools.mTouch; // signals are not yet setup to catch this
Expand Down

0 comments on commit 751222b

Please sign in to comment.