Changeset View
Changeset View
Standalone View
Standalone View
kmplot/equationeditwidget.h
Show All 30 Lines | |||||
31 | 31 | | |||
32 | 32 | | |||
33 | /** | 33 | /** | ||
34 | * The actual line edit. | 34 | * The actual line edit. | ||
35 | */ | 35 | */ | ||
36 | class EquationEditWidget : public KTextEdit | 36 | class EquationEditWidget : public KTextEdit | ||
37 | { | 37 | { | ||
38 | public: | 38 | public: | ||
39 | Q_PROPERTY(QString document READ document NOTIFY textEdited USER true) | ||||
aacid: Q_PROPERTY are ignored if the class doesn't have a Q_OBJECT
which this one doesn't have.
Once… | |||||
39 | explicit EquationEditWidget(EquationEdit* parent); | 40 | explicit EquationEditWidget(EquationEdit* parent); | ||
40 | 41 | | |||
41 | /** | 42 | /** | ||
42 | * Call this after changing font size. | 43 | * Call this after changing font size. | ||
43 | */ | 44 | */ | ||
44 | void recalculateGeometry(); | 45 | void recalculateGeometry(); | ||
45 | /** | 46 | /** | ||
46 | * Whether to clear the selection when focus is lost. | 47 | * Whether to clear the selection when focus is lost. | ||
Show All 16 Lines |
Q_PROPERTY are ignored if the class doesn't have a Q_OBJECT
which this one doesn't have.
Once you add the Q_OBJECT marked, it stops compiling because document() doesn't return a QString.
Which brings me the question of, what was that KConfigDialogManager line doing?
Did we even need it?