Switch to unified view

a/src/qtgui/viewaction_w.h b/src/qtgui/viewaction_w.h
...
...
19
 */
19
 */
20
20
21
#include <qvariant.h>
21
#include <qvariant.h>
22
#include <qdialog.h>
22
#include <qdialog.h>
23
23
24
#if (QT_VERSION < 0x040000)
25
#include "viewaction.h"
26
#else
27
#include "ui_viewaction.h"
24
#include "ui_viewaction.h"
28
#endif
29
25
30
class QDialog;
26
class QDialog;
31
class QMouseEvent;
27
class QMouseEvent;
28
class QTableWidget;
32
29
33
//MOC_SKIP_BEGIN
34
#if QT_VERSION < 0x040000
35
class DummyViewActionBase : public ViewActionBase
36
{
37
 public: DummyViewActionBase(QWidget* parent = 0) : ViewActionBase(parent) {}
38
};
39
#else
40
class DummyViewActionBase : public QDialog, public Ui::ViewActionBase
30
class ViewAction : public QDialog, public Ui::ViewActionBase
41
{
42
public:
43
    DummyViewActionBase(QWidget* parent)
44
  : QDialog(parent)
45
    {
46
  setupUi(this);
47
    }
48
};
49
#endif
50
//MOC_SKIP_END
51
52
class ViewAction : public DummyViewActionBase
53
{
31
{
54
    Q_OBJECT
32
    Q_OBJECT
55
33
56
public:
34
public:
57
    ViewAction(QDialog* parent = 0) 
35
    ViewAction(QWidget* parent = 0) 
58
  : DummyViewActionBase(parent) 
36
  : QDialog(parent) 
59
    {
37
    {
38
  setupUi(this);
60
    init();
39
    init();
61
    }
40
    }
62
    ~ViewAction() {}
41
    ~ViewAction() {}
63
64
    void selectMT(const QString& mt);
42
    void selectMT(const QString& mt);
65
43
66
public slots:
44
public slots:
67
    virtual void editAction();
45
    virtual void editActions();
68
    virtual void listDblClicked();
46
    virtual void onItemDoubleClicked(QTableWidgetItem *);
69
70
private:
47
private:
71
    virtual void init();
48
    virtual void init();
72
    virtual void fillLists();
49
    virtual void fillLists();
73
};
50
};
74
51