[Marble-commits] branches/KDE/4.3/kdeedu/marble

Torsten Rahn tackat at kde.org
Fri Oct 16 20:10:28 CEST 2009


SVN commit 1036159 by rahn:

- Support systems with a Qt version that doesn't have printer support compiled in.

 M  +1 -0      CMakeLists.txt  
 M  +2 -0      src/QtMainWindow.cpp  
 M  +2 -0      src/lib/TinyWebBrowser.cpp  


--- branches/KDE/4.3/kdeedu/marble/CMakeLists.txt #1036158:1036159
@@ -3,6 +3,7 @@
 ####################################################
 # CMake Settings 
 SET(CMAKE_COLOR_MAKEFILE ON)
+# SET(CMAKE_SKIP_RPATH ON)
 
 ####################################################
 # Generate the tiles with the tilecreator at compile time
--- branches/KDE/4.3/kdeedu/marble/src/QtMainWindow.cpp #1036158:1036159
@@ -330,6 +330,7 @@
 
 void MainWindow::printMapScreenShot()
 {
+#ifndef QT_NO_PRINTER
     QPixmap mapPixmap = m_controlView->mapScreenShot();
 
     QSize printSize = mapPixmap.size();
@@ -354,6 +355,7 @@
         painter.drawPixmap( mapPrintRect, mapPixmap, mapPixmap.rect() );
 
     }
+#endif    
 }
 
 void MainWindow::showFullScreen( bool isChecked )
--- branches/KDE/4.3/kdeedu/marble/src/lib/TinyWebBrowser.cpp #1036158:1036159
@@ -80,11 +80,13 @@
 
 void TinyWebBrowser::print()
 {
+#ifndef QT_NO_PRINTER	
   QPrinter printer;
 
   QPrintDialog dlg( &printer, this );
   if ( dlg.exec() )
     QWebView::print( &printer );
+#endif
 }
 
 void TinyWebBrowser::openExternalLink( QUrl url )


More information about the Marble-commits mailing list