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

Mike Fenton mike at staikos.net
Fri Dec 12 20:21:12 CET 2008


SVN commit 896180 by fenton:

Add labellineedit support widget.


 A             labellineedit.cpp   [License: GPL (v2+)]
 A             labellineedit.h   [License: GPL (v2+)]
 M  +1 -0      widgets.cpp  
 M  +14 -0     widgets.h  
 M  +2 -0      widgets.pro  


--- branches/work/kst/portto4/kst/src/widgets/widgets.cpp #896179:896180
@@ -31,6 +31,7 @@
   _plugins.append(new FFTOptionsPlugin(this));
   _plugins.append(new ColorPalettePlugin(this));
   _plugins.append(new LabelBuilderPlugin(this));
+  _plugins.append(new LabelLineEditPlugin(this));
 }
 
 
--- branches/work/kst/portto4/kst/src/widgets/widgets.h #896179:896180
@@ -33,6 +33,7 @@
 #include "colorpalette.h"
 #include "datasourceselector.h"
 #include "labelbuilder.h"
+#include "labellineedit.h"
 
 namespace Kst {
 
@@ -279,6 +280,19 @@
     }
 };
 
+class LabelLineEditPlugin : public WidgetPlugin {
+  Q_OBJECT
+  Q_INTERFACES(QDesignerCustomWidgetInterface)
+  public:
+    LabelLineEditPlugin(QObject *parent = 0) : WidgetPlugin(parent) {}
+    QString name() const {
+      return QLatin1String("LabelLineEdit");
+    } //do not translate
+    QWidget *createWidget(QWidget *parent) {
+      return new LabelLineEdit(parent);
+    }
+};
+
 }
 
 #endif
--- branches/work/kst/portto4/kst/src/widgets/widgets.pro #896179:896180
@@ -37,6 +37,7 @@
     filerequester.cpp \
     gradienteditor.cpp \
     labelbuilder.cpp \
+    labellineedit.cpp \
     matrixselector.cpp \
     scalarlistselector.cpp \
     scalarselector.cpp \
@@ -59,6 +60,7 @@
     filerequester.h \
     gradienteditor.h \
     labelbuilder.h \
+    labellineedit.h \
     matrixselector.h \
     scalarselector.h \
     scalarlistselector.h \


More information about the Kst mailing list