[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [umbrello] umbrello/dialogs/pages: QAction fixup
From:       Ralf Habacker <ralf.habacker () freenet ! de>
Date:       2015-05-31 14:12:19
Message-ID: E1Yz3yN-0002ON-PB () scm ! kde ! org
[Download RAW message or body]

Git commit 572e18049a5d45095090dbc6d99a440847c27d5f by Ralf Habacker.
Committed on 31/05/2015 at 14:01.
Pushed by habacker into branch 'master'.

QAction fixup

M  +4    -0    umbrello/dialogs/pages/constraintlistpage.cpp

http://commits.kde.org/umbrello/572e18049a5d45095090dbc6d99a440847c27d5f

diff --git a/umbrello/dialogs/pages/constraintlistpage.cpp b/umbrello/dialogs/pages/constraintlistpage.cpp
index 757f2d7..138c434 100644
--- a/umbrello/dialogs/pages/constraintlistpage.cpp
+++ b/umbrello/dialogs/pages/constraintlistpage.cpp
@@ -50,7 +50,11 @@ ConstraintListPage::ConstraintListPage(QWidget* parent, UMLClassifier* classifie
 {
     setupActions();
 
+#if QT_VERSION >= 0x050000
+    buttonMenu = new QMenu(this);
+#else
     buttonMenu = new KMenu(this);
+#endif
     // add a button menu
     m_pNewClassifierListItemButton->setMenu(buttonMenu);
     buttonMenu->addAction(newPrimaryKeyConstraintAction);
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic