[QGIS Commit] r14644 - trunk/qgis/src/plugins/offline_editing

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sun Nov 14 11:34:01 EST 2010


Author: brushtyler
Date: 2010-11-14 08:34:01 -0800 (Sun, 14 Nov 2010)
New Revision: 14644

Modified:
   trunk/qgis/src/plugins/offline_editing/offline_editing_plugin.cpp
Log:
moved to the new Database menu


Modified: trunk/qgis/src/plugins/offline_editing/offline_editing_plugin.cpp
===================================================================
--- trunk/qgis/src/plugins/offline_editing/offline_editing_plugin.cpp	2010-11-14 15:49:52 UTC (rev 14643)
+++ trunk/qgis/src/plugins/offline_editing/offline_editing_plugin.cpp	2010-11-14 16:34:01 UTC (rev 14644)
@@ -60,14 +60,14 @@
   connect( mActionConvertProject, SIGNAL( triggered() ), this, SLOT( convertProject() ) );
   // Add the icon to the toolbar
   mQGisIface->addToolBarIcon( mActionConvertProject );
-  mQGisIface->addPluginToMenu( tr( "&Offline Editing" ), mActionConvertProject );
+  mQGisIface->addPluginToDatabaseMenu( tr( "&Offline Editing" ), mActionConvertProject );
   mActionConvertProject->setEnabled( false );
 
   mActionSynchronize = new QAction( QIcon( ":/offline_editing/offline_editing_sync.png" ), tr( "Synchronize" ), this );
   mActionSynchronize->setWhatsThis( tr( "Synchronize offline project with remote layers" ) );
   connect( mActionSynchronize, SIGNAL( triggered() ), this, SLOT( synchronize() ) );
   mQGisIface->addToolBarIcon( mActionSynchronize );
-  mQGisIface->addPluginToMenu( tr( "&Offline Editing" ), mActionSynchronize );
+  mQGisIface->addPluginToDatabaseMenu( tr( "&Offline Editing" ), mActionSynchronize );
   mActionSynchronize->setEnabled( false );
 
   mOfflineEditing = new QgsOfflineEditing( new QgsOfflineEditingProgressDialog( mQGisIface->mainWindow(), QgisGui::ModalDialogFlags ) );
@@ -117,9 +117,9 @@
   disconnect( QgsProject::instance(), SIGNAL( writeProject( QDomDocument & ) ), this, SLOT( updateActions() ) );
 
   // remove the GUI
-  mQGisIface->removePluginMenu( "&Offline Editing", mActionConvertProject );
+  mQGisIface->removePluginDatabaseMenu( "&Offline Editing", mActionConvertProject );
   mQGisIface->removeToolBarIcon( mActionConvertProject );
-  mQGisIface->removePluginMenu( "&Offline Editing", mActionSynchronize );
+  mQGisIface->removePluginDatabaseMenu( "&Offline Editing", mActionSynchronize );
   mQGisIface->removeToolBarIcon( mActionSynchronize );
   delete mActionConvertProject;
   delete mActionSynchronize;



More information about the QGIS-commit mailing list