Switch to unified view

a/src/qtgui/ssearch_w.h b/src/qtgui/ssearch_w.h
...
...
21
#include <qvariant.h>
21
#include <qvariant.h>
22
#include <qwidget.h>
22
#include <qwidget.h>
23
#include "recoll.h"
23
#include "recoll.h"
24
#include "searchdata.h"
24
#include "searchdata.h"
25
#include "refcntr.h"
25
#include "refcntr.h"
26
#if (QT_VERSION < 0x040000)
26
27
#include "ssearchb.h"
28
#else
29
#include "ui_ssearchb.h"
27
#include "ui_ssearchb.h"
30
#endif
31
28
32
//MOC_SKIP_BEGIN
33
#if QT_VERSION < 0x040000
34
class DummySSearchBase : public SSearchBase
35
{
36
 public: DummySSearchBase(QWidget* parent = 0) : SSearchBase(parent) {}
37
};
38
#else
39
class DummySSearchBase : public QWidget, public Ui::SSearchBase
29
class SSearch : public QWidget, public Ui::SSearchBase
40
{
41
public: DummySSearchBase(QWidget* parent) : QWidget(parent) {setupUi(this);}
42
};
43
#endif
44
//MOC_SKIP_END
45
46
class SSearch : public DummySSearchBase
47
{
30
{
48
    Q_OBJECT
31
    Q_OBJECT
49
32
50
public:
33
public:
51
    enum SSearchType {SST_ANY = 0, SST_ALL = 1, SST_FNM = 2, SST_LANG = 3};
34
    enum SSearchType {SST_ANY = 0, SST_ALL = 1, SST_FNM = 2, SST_LANG = 3};
52
35
53
    SSearch(QWidget* parent = 0, const char * = 0)
36
    SSearch(QWidget* parent = 0, const char * = 0)
54
  : DummySSearchBase(parent) 
37
  : QWidget(parent) 
55
    {
38
    {
39
  setupUi(this);
56
    init();
40
    init();
57
    }
41
    }
58
    ~SSearch(){}
42
    ~SSearch(){}
59
43
60
    virtual void init();
44
    virtual void init();