|
a/src/qtgui/spell_w.h |
|
b/src/qtgui/spell_w.h |
|
... |
|
... |
19 |
*/
|
19 |
*/
|
20 |
|
20 |
|
21 |
#include <qvariant.h>
|
21 |
#include <qvariant.h>
|
22 |
#include <qwidget.h>
|
22 |
#include <qwidget.h>
|
23 |
|
23 |
|
24 |
//MOC_SKIP_BEGIN
|
|
|
25 |
#if QT_VERSION < 0x040000
|
|
|
26 |
#include "spell.h"
|
|
|
27 |
class DummySpellBase : public SpellBase
|
|
|
28 |
{
|
|
|
29 |
public: DummySpellBase(QWidget* parent = 0) : SpellBase(parent) {}
|
|
|
30 |
};
|
|
|
31 |
#else
|
|
|
32 |
#include "ui_spell.h"
|
24 |
#include "ui_spell.h"
|
33 |
class DummySpellBase : public QWidget, public Ui::SpellBase
|
|
|
34 |
{
|
|
|
35 |
public: DummySpellBase(QWidget* parent):QWidget(parent){setupUi(this);}
|
|
|
36 |
};
|
|
|
37 |
#endif
|
|
|
38 |
//MOC_SKIP_END
|
|
|
39 |
|
25 |
|
40 |
class SpellW : public DummySpellBase
|
26 |
class SpellW : public QWidget, public Ui::SpellBase
|
41 |
{
|
27 |
{
|
42 |
Q_OBJECT
|
28 |
Q_OBJECT
|
43 |
|
|
|
44 |
public:
|
29 |
public:
|
45 |
SpellW(QWidget* parent = 0)
|
30 |
SpellW(QWidget* parent = 0)
|
46 |
: DummySpellBase(parent)
|
31 |
: QWidget(parent)
|
47 |
{
|
32 |
{
|
|
|
33 |
setupUi(this);
|
48 |
init();
|
34 |
init();
|
49 |
}
|
35 |
}
|
50 |
|
36 |
|
51 |
~SpellW(){}
|
37 |
~SpellW(){}
|
52 |
|
38 |
|