[Kst] branches/work/kst/portto4/kst/src/widgets

Adam Treat treat at kde.org
Thu Sep 27 18:57:23 CEST 2007


SVN commit 717832 by treat:

* Properly namespace and cleanup style.


 M  +6 -9      editmultiplewidget.cpp  
 M  +14 -16    editmultiplewidget.h  
 M  +0 -1      kstwidgets.h  


--- branches/work/kst/portto4/kst/src/widgets/editmultiplewidget.cpp #717831:717832
@@ -1,13 +1,7 @@
 /***************************************************************************
-                   editmultiplewidget.cpp
-                             -------------------
-    begin                : 02/27/07
-    copyright            : (C) 2007 The University of Toronto
-    email                :
- ***************************************************************************/
-
-/***************************************************************************
  *                                                                         *
+ *   copyright : (C) 2007 The University of Toronto                        *
+ *                                                                         *
  *   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     *
@@ -19,8 +13,10 @@
 
 #include <QRegExp>
 
+namespace Kst {
+
 EditMultipleWidget::EditMultipleWidget(QWidget *parent)
-    : QWidget(parent) {
+  : QWidget(parent) {
   setupUi(this);
 
   connect(_selectAllBut, SIGNAL(clicked()), this, SLOT(selectAllObjects()));
@@ -53,5 +49,6 @@
   }
 }
 
+}
 
 // vim: ts=2 sw=2 et
--- branches/work/kst/portto4/kst/src/widgets/editmultiplewidget.h #717831:717832
@@ -1,13 +1,7 @@
 /***************************************************************************
-                   editmultiplewidget.h
-                             -------------------
-    begin                : 02/27/07
-    copyright            : (C) 2007 The University of Toronto
-    email                :
- ***************************************************************************/
-
-/***************************************************************************
  *                                                                         *
+ *   copyright : (C) 2007 The University of Toronto                        *
+ *                                                                         *
  *   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     *
@@ -23,17 +17,21 @@
 
 #include "kst_export.h"
 
-class EditMultipleWidget : public QWidget, public Ui::EditMultipleWidget {
+namespace Kst {
+
+class KST_EXPORT EditMultipleWidget : public QWidget, public Ui::EditMultipleWidget {
   Q_OBJECT
+  public:
+    EditMultipleWidget(QWidget *parent = 0);
+    virtual ~EditMultipleWidget();
 
-public:
-  EditMultipleWidget(QWidget *parent = 0);
-  ~EditMultipleWidget();
+  public slots:
+    void selectAllObjects();
+    void applyFilter(const QString &filter);
+};
 
-public slots:
-  void selectAllObjects();
-  void applyFilter(const QString &filter);
-} KST_EXPORT;
+}
 
 #endif
+
 // vim: ts=2 sw=2 et
--- branches/work/kst/portto4/kst/src/widgets/kstwidgets.h #717831:717832
@@ -138,7 +138,6 @@
   }
 };
 
-
 class KstWidgets : public QObject, public QDesignerCustomWidgetCollectionInterface {
   Q_OBJECT
   Q_INTERFACES(QDesignerCustomWidgetCollectionInterface)


More information about the Kst mailing list