[Uml-devel] KDE/kdesdk/umbrello/umbrello/dialogs
Ralf Habacker
ralf.habacker at gmail.com
Fri Jan 13 07:31:13 UTC 2012
SVN commit 1273380 by habacker:
Refactored ClassPropDlg to use class DialogBase.
M +3 -13 classpropdlg.cpp
M +2 -4 classpropdlg.h
--- trunk/KDE/kdesdk/umbrello/umbrello/dialogs/classpropdlg.cpp #1273379:1273380
@@ -45,7 +45,7 @@
* @param assoc Determines whether to display associations
*/
ClassPropDlg::ClassPropDlg(QWidget *parent, UMLObject * c, bool assoc)
- : KPageDialog(parent)
+ : DialogBase(parent)
{
init();
m_pWidget = 0;
@@ -65,7 +65,7 @@
* @param o The ObjectWidget to display properties of.
*/
ClassPropDlg::ClassPropDlg(QWidget *parent, ObjectWidget *o)
- : KPageDialog(parent)
+ : DialogBase(parent)
{
init();
m_pWidget = o;
@@ -89,7 +89,7 @@
* @param o The UMLWidget to display properties of.
*/
ClassPropDlg::ClassPropDlg(QWidget *parent, UMLWidget *w)
- : KPageDialog(parent)
+ : DialogBase(parent)
{
init();
m_pWidget = w;
@@ -231,16 +231,6 @@
}
}
-QFrame* ClassPropDlg::createPage(const QString& name, const QString& header, Icon_Utils::IconType icon)
-{
- QFrame* page = new QFrame();
- KPageWidgetItem *pageItem = new KPageWidgetItem( page, name );
- pageItem->setHeader( header );
- pageItem->setIcon( Icon_Utils::DesktopIcon(icon) );
- addPage( pageItem );
- return page;
-}
-
/**
* Sets up the page "General" for the component.
*/
--- trunk/KDE/kdesdk/umbrello/umbrello/dialogs/classpropdlg.h #1273379:1273380
@@ -12,10 +12,10 @@
#define CLASSPROPDLG_H
#include "basictypes.h"
+#include "dialogbase.h"
#include "icon_utils.h"
// kde class includes
-#include <kpagedialog.h>
#include <kfontdialog.h>
// qt class includes
@@ -39,7 +39,7 @@
* @version 1.0
* Bugs and comments to uml-devel at lists.sf.net or http://bugs.kde.org
*/
-class ClassPropDlg : public KPageDialog
+class ClassPropDlg : public DialogBase
{
Q_OBJECT
public:
@@ -101,8 +101,6 @@
private:
void init();
- QFrame* createPage(const QString& name, const QString& header, Icon_Utils::IconType icon);
-
};
#endif
More information about the umbrello-devel
mailing list