[Kst] extragear/graphics/kst/kst/extensions/js
George Staikos
staikos at kde.org
Wed Jan 18 23:32:29 CET 2006
SVN commit 499869 by staikos:
less crashy - it has to be a QObject
M +2 -2 bind_axis.cpp
M +1 -1 bind_axis.h
--- trunk/extragear/graphics/kst/kst/extensions/js/bind_axis.cpp #499868:499869
@@ -25,14 +25,14 @@
#include <kjsembed/jsbinding.h>
KstBindAxis::KstBindAxis(KJS::ExecState *exec, Kst2DPlotPtr d, bool isX)
-: KstBinding("Axis", false), _d(d.data()), _xAxis(isX) {
+: QObject(), KstBinding("Axis", false), _d(d.data()), _xAxis(isX) {
KJS::Object o(this);
addBindings(exec, o);
}
KstBindAxis::KstBindAxis(int id)
-: KstBinding("Axis Method", id) {
+: QObject(), KstBinding("Axis Method", id) {
}
--- trunk/extragear/graphics/kst/kst/extensions/js/bind_axis.h #499868:499869
@@ -30,7 +30,7 @@
/* @class Axis
@description A class representing a plot axis.
*/
-class KstBindAxis : public KstBinding {
+class KstBindAxis : public QObject, public KstBinding {
public:
KstBindAxis(KJS::ExecState *exec, Kst2DPlotPtr d, bool isX);
~KstBindAxis();
More information about the Kst
mailing list