[QGIS Commit] r11782 - trunk/qgis/src/app/composer

svn_qgis at osgeo.org svn_qgis at osgeo.org
Fri Oct 9 06:31:56 EDT 2009


Author: mhugent
Date: 2009-10-09 06:31:56 -0400 (Fri, 09 Oct 2009)
New Revision: 11782

Modified:
   trunk/qgis/src/app/composer/qgscomposer.cpp
Log:
Add export to pdf to composer menu

Modified: trunk/qgis/src/app/composer/qgscomposer.cpp
===================================================================
--- trunk/qgis/src/app/composer/qgscomposer.cpp	2009-10-09 00:19:57 UTC (rev 11781)
+++ trunk/qgis/src/app/composer/qgscomposer.cpp	2009-10-09 10:31:56 UTC (rev 11782)
@@ -123,25 +123,11 @@
   QMenu *fileMenu = menuBar()->addMenu( tr( "File" ) );
   QAction *closeAction = fileMenu->addAction( tr( "Close" ), this, SLOT( close() ), tr( "Ctrl+W" ) );
   fileMenu->addAction( mActionExportAsImage );
+  fileMenu->addAction( mActionExportAsPDF );
   fileMenu->addAction( mActionExportAsSVG );
   fileMenu->addSeparator();
   fileMenu->addAction( mActionPrint );
 
-#if 0
-  QMenu *editMenu = menuBar()->addMenu( tr( "Edit" ) );
-  QAction *undoAction = editMenu->addAction( tr( "&Undo" ), this, SLOT( undo() ), tr( "Ctrl+Z" ) );
-  undoAction->setEnabled( false );
-  editMenu->addSeparator();
-  QAction *cutAction = editMenu->addAction( tr( "Cu&t" ), this, SLOT( cut() ), tr( "Ctrl+X" ) );
-  cutAction->setEnabled( false );
-  QAction *copyAction = editMenu->addAction( tr( "&Copy" ), this, SLOT( copy() ), tr( "Ctrl+C" ) );
-  copyAction->setEnabled( false );
-  QAction *pasteAction = editMenu->addAction( tr( "&Paste" ), this, SLOT( paste() ), tr( "Ctrl+V" ) );
-  pasteAction->setEnabled( false );
-  QAction *deleteAction = editMenu->addAction( tr( "Delete" ) );
-  deleteAction->setEnabled( false );
-#endif //0
-
   QMenu *viewMenu = menuBar()->addMenu( tr( "View" ) );
   viewMenu->addAction( mActionZoomIn );
   viewMenu->addAction( mActionZoomOut );



More information about the QGIS-commit mailing list