Skip to content

Commit

Permalink
Merge pull request #122 from mbernasocchi/android
Browse files Browse the repository at this point in the history
Android
  • Loading branch information
timlinux committed Apr 13, 2012
2 parents 7f29572 + 5310b5b commit a65ded0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app/main.cpp
Expand Up @@ -241,6 +241,11 @@ int main( int argc, char *argv[] )
int mySnapshotHeight = 600;

bool myHideSplash = false;
#if defined(ANDROID)
QgsDebugMsg( QString( "Android: Splash hidden" ) );
myHideSplash = true;
#endif

bool myRestorePlugins = true;
bool myCustomization = true;

Expand Down
5 changes: 5 additions & 0 deletions src/app/qgisapp.cpp
Expand Up @@ -645,6 +645,10 @@ 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;
mActionTouch=0;
#endif

// update windows
Expand Down Expand Up @@ -2785,6 +2789,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 a65ded0

Please sign in to comment.