Switch to unified view

a/src/qtgui/confgui/confgui.cpp b/src/qtgui/confgui/confgui.cpp
...
...
110
110
111
ConfParamIntW::ConfParamIntW(QWidget *parent, ConfLink cflink, 
111
ConfParamIntW::ConfParamIntW(QWidget *parent, ConfLink cflink, 
112
                 const QString& lbltxt,
112
                 const QString& lbltxt,
113
                 const QString& tltptxt,
113
                 const QString& tltptxt,
114
                 int minvalue, 
114
                 int minvalue, 
115
                 int maxvalue)
115
                 int maxvalue,
116
    : ConfParamW(parent, cflink)
116
                             int defaultvalue)
117
    : ConfParamW(parent, cflink), m_defaultvalue(defaultvalue)
117
{
118
{
118
    if (!createCommon(lbltxt, tltptxt))
119
    if (!createCommon(lbltxt, tltptxt))
119
    return;
120
    return;
120
121
121
    m_sb = new QSpinBox(this);
122
    m_sb = new QSpinBox(this);
...
...
142
}
143
}
143
144
144
void ConfParamIntW::loadValue()
145
void ConfParamIntW::loadValue()
145
{
146
{
146
    string s;
147
    string s;
147
    m_cflink->get(s);
148
    if (m_cflink->get(s)) 
148
    m_sb->setValue(atoi(s.c_str()));
149
        m_sb->setValue(atoi(s.c_str()));
150
    else
151
        m_sb->setValue(m_defaultvalue);
149
}
152
}
150
153
151
ConfParamStrW::ConfParamStrW(QWidget *parent, ConfLink cflink, 
154
ConfParamStrW::ConfParamStrW(QWidget *parent, ConfLink cflink, 
152
                 const QString& lbltxt,
155
                 const QString& lbltxt,
153
                 const QString& tltptxt)
156
                 const QString& tltptxt)