Switch to unified view

a/src/qtgui/uiprefs_w.h b/src/qtgui/uiprefs_w.h
...
...
21
21
22
#include "ui_uiprefs.h"
22
#include "ui_uiprefs.h"
23
23
24
class QDialog;
24
class QDialog;
25
class ViewAction;
25
class ViewAction;
26
class RclMain;
26
27
27
class UIPrefsDialog : public QDialog, public Ui::uiPrefsDialogBase
28
class UIPrefsDialog : public QDialog, public Ui::uiPrefsDialogBase
28
{
29
{
29
    Q_OBJECT
30
    Q_OBJECT
30
31
31
public:
32
public:
32
    UIPrefsDialog(QDialog* parent = 0)
33
    UIPrefsDialog(RclMain* parent)
33
  : QDialog(parent) 
34
  : QDialog((QWidget*)parent), m_mainWindow(parent)
34
    {
35
    {
35
        setupUi(this);
36
        setupUi(this);
36
        init();
37
        init();
37
    }
38
    }
38
    ~UIPrefsDialog(){};
39
    ~UIPrefsDialog(){};
...
...
69
    // Locally stored data (pending ok/cancel)
70
    // Locally stored data (pending ok/cancel)
70
    QString paraFormat;
71
    QString paraFormat;
71
    QString headerText;
72
    QString headerText;
72
    void setFromPrefs();
73
    void setFromPrefs();
73
    ViewAction *m_viewAction;
74
    ViewAction *m_viewAction;
74
75
    RclMain *m_mainWindow;
75
};
76
};
76
77
77
#endif /* _UIPREFS_W_H_INCLUDED_ */
78
#endif /* _UIPREFS_W_H_INCLUDED_ */