[Kst] kdeextragear-2/kst/kst

George Staikos staikos at kde.org
Fri Sep 24 04:35:46 CEST 2004


CVS commit by staikos: 

disable date printing here too


  M +7 -1      kst.cpp   1.237


--- kdeextragear-2/kst/kst/kst.cpp  #1.236:1.237
@@ -1053,5 +1053,4 @@ void KstApp::immediatePrintToFile(const 
   if (it) {
     bool firstPage = true;
-    QDateTime dateTime = QDateTime::currentDateTime();
     QPainter paint(&printer);
     QPaintDeviceMetrics metrics(&printer);
@@ -1062,5 +1061,8 @@ void KstApp::immediatePrintToFile(const 
     rect.setRight(size.height());
     rect.setBottom(size.height());
+#if 0
+    QDateTime dateTime = QDateTime::currentDateTime();
     size.setHeight(9 * size.height() / 10);
+#endif
     rect.setTop(size.height());
 
@@ -1072,8 +1074,12 @@ void KstApp::immediatePrintToFile(const 
         }
 
+#if 0
         QString title = i18n("Name: %1  Date: %2").arg(view->caption()).arg(dateTime.toString(Qt::ISODate));
+#endif
 
         view->view()->resizeForPrint(size);
+#if 0
         paint.drawText(rect, Qt::AlignLeft | Qt::AlignVCenter, title);
+#endif
         view->view()->paint(P_PRINT, paint);
         view->view()->revertForPrint();





More information about the Kst mailing list