Skip to content

Commit a65ded0

Browse files
committed
Merge pull request #122 from mbernasocchi/android
Android
2 parents 7f29572 + 5310b5b commit a65ded0

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/app/main.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,11 @@ int main( int argc, char *argv[] )
241241
int mySnapshotHeight = 600;
242242

243243
bool myHideSplash = false;
244+
#if defined(ANDROID)
245+
QgsDebugMsg( QString( "Android: Splash hidden" ) );
246+
myHideSplash = true;
247+
#endif
248+
244249
bool myRestorePlugins = true;
245250
bool myCustomization = true;
246251

src/app/qgisapp.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,10 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, QWidget * parent,
645645
#ifdef HAVE_TOUCH
646646
//add reacting to long click in android
647647
grabGesture( Qt::TapAndHoldGesture );
648+
#else
649+
//remove mActionTouch button
650+
delete mActionTouch;
651+
mActionTouch=0;
648652
#endif
649653

650654
// update windows
@@ -2785,6 +2789,7 @@ void QgisApp::fileNew( bool thePromptToSaveFlag )
27852789
// set the initial map tool
27862790
mMapCanvas->setMapTool( mMapTools.mPan );
27872791
mNonEditMapTool = mMapTools.mPan; // signals are not yet setup to catch this
2792+
27882793
#ifdef HAVE_TOUCH
27892794
mMapCanvas->setMapTool( mMapTools.mTouch );
27902795
mNonEditMapTool = mMapTools.mTouch; // signals are not yet setup to catch this

0 commit comments

Comments
 (0)