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

Andi Fischer andi.fischer at hispeed.ch
Wed Jan 25 18:55:34 UTC 2012


SVN commit 1275886 by fischer:

Beautify code.

 M  +11 -18    defaultcodegenpolicypage.cpp  
 M  +3 -19     defaultcodegenpolicypage.h  


--- trunk/KDE/kdesdk/umbrello/umbrello/dialogs/defaultcodegenpolicypage.cpp #1275885:1275886
@@ -1,20 +1,11 @@
-
 /***************************************************************************
-                          codegenerationpolicypage.cpp  -  description
-                             -------------------
-    begin                : Tue Jul 29 2003
-    copyright            : (C) 2003 by Brian Thomas
-    email                : brian.thomas at gsfc.nasa.gov
- ***************************************************************************/
-
-/***************************************************************************
- *                                                                         *
  *   This program is free software; you can redistribute it and/or modify  *
  *   it under the terms of the GNU General Public License as published by  *
  *   the Free Software Foundation; either version 2 of the License, or     *
  *   (at your option) any later version.                                   *
  *                                                                         *
- *   copyright (C) 2004-2007                                               *
+ *   copyright (C) 2003      Brian Thomas <brian.thomas at gsfc.nasa.gov>     *
+ *   copyright (C) 2004-2011                                               *
  *   Umbrello UML Modeller Authors <uml-devel at uml.sf.net>                  *
  ***************************************************************************/
 
@@ -22,21 +13,23 @@
 #include "defaultcodegenpolicypage.h"
 
 // qt/kde includes
-#include <QLabel>
+#include <QtGui/QLabel>
 #include <klocale.h>
 
-
-/** This is the page which comes up IF there is no special options for the
+/**
+ * This is the page which comes up IF there is no special options for the
  * code generator.
  */
 DefaultCodeGenPolicyPage::DefaultCodeGenPolicyPage ( QWidget *parent, const char *name, CodeGenPolicyExt * policy )
         :CodeGenerationPolicyPage(parent,name,policy)
 {
-    textLabel = new QLabel(this);
-    textLabel->setObjectName("textLabel");
-    textLabel->setText(tr2i18n("<p align=\"center\">No Options Available.</p>"));
+    m_textLabel = new QLabel(this);
+    m_textLabel->setObjectName("textLabel");
+    m_textLabel->setText(tr2i18n("<p align=\"center\">No Options Available.</p>"));
 }
 
-DefaultCodeGenPolicyPage::~DefaultCodeGenPolicyPage() { }
+DefaultCodeGenPolicyPage::~DefaultCodeGenPolicyPage()
+{
+}
 
 #include "defaultcodegenpolicypage.moc"
--- trunk/KDE/kdesdk/umbrello/umbrello/dialogs/defaultcodegenpolicypage.h #1275885:1275886
@@ -1,4 +1,3 @@
-
 /****************************************************************************
 ** Form interface generated from reading ui file 'Defaultcodegenpolicypage.ui'
 **
@@ -11,36 +10,21 @@
 #ifndef DEFAULTCODEGENPOLICYPAGE_H
 #define DEFAULTCODEGENPOLICYPAGE_H
 
-#include <qvariant.h>
-#include <qwidget.h>
-//Added by qt3to4:
-#include <QLabel>
-#include <QVBoxLayout>
-#include <QHBoxLayout>
-#include <QGridLayout>
 #include "codegenerationpolicypage.h"
 
-class QVBoxLayout;
-class QHBoxLayout;
-class QGridLayout;
 class QLabel;
+class QWidget;
 
 class DefaultCodeGenPolicyPage : public CodeGenerationPolicyPage
 {
     Q_OBJECT
-
 public:
-
     explicit DefaultCodeGenPolicyPage( QWidget* parent = 0, const char* name = 0, CodeGenPolicyExt * policy =0);
-
     ~DefaultCodeGenPolicyPage();
 
-    QLabel* textLabel;
+private:
+    QLabel* m_textLabel;
 
-protected:
-
-protected slots:
-
 };
 
 #endif // DEFAULTCODEGENPOLICYPAGE_H




More information about the umbrello-devel mailing list