[Uml-devel] KDE/kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Sun May 20 16:27:24 UTC 2012


SVN commit 1295770 by okellogg:

Be friendly with less recent Qt4 minors (QAction::setPriority() was introduced in 4.6)

 M  +5 -1      uml.cpp  


--- trunk/KDE/kdesdk/umbrello/umbrello/uml.cpp #1295769:1295770
@@ -230,15 +230,19 @@
     QAction* fileSaveAs = KStandardAction::saveAs(this, SLOT(slotFileSaveAs()), actionCollection());
     QAction* fileClose = KStandardAction::close(this, SLOT(slotFileClose()), actionCollection());
     filePrint = KStandardAction::print(this, SLOT(slotFilePrint()), actionCollection());
+    printPreview = KStandardAction::printPreview(this, SLOT(slotPrintPreview()), actionCollection());
+#if QT_VERSION >= 0x040600
     filePrint->setPriority(QAction::LowPriority);  // icon only
-    printPreview = KStandardAction::printPreview(this, SLOT(slotPrintPreview()), actionCollection());
     printPreview->setPriority(QAction::LowPriority);  // icon only
+#endif
     QAction* fileQuit = KStandardAction::quit(this, SLOT(slotFileQuit()), actionCollection());
 
     editUndo = m_pUndoStack->createUndoAction(actionCollection());
     editRedo = m_pUndoStack->createRedoAction(actionCollection());
+#if QT_VERSION >= 0x040600
     editUndo->setPriority(QAction::LowPriority);   // icon only
     editRedo->setPriority(QAction::LowPriority);   // icon only
+#endif
 
     disconnect( m_pUndoStack, SIGNAL(undoTextChanged(QString)), editUndo, 0 );
     disconnect( m_pUndoStack, SIGNAL(redoTextChanged(QString)), editRedo, 0 );




More information about the umbrello-devel mailing list