|
a/src/qtgui/confgui/confgui.cpp |
|
b/src/qtgui/confgui/confgui.cpp |
|
... |
|
... |
249 |
m_le->setMinimumSize(QSize(150, 0 ));
|
249 |
m_le->setMinimumSize(QSize(150, 0 ));
|
250 |
setSzPol(m_le, QSizePolicy::Preferred, QSizePolicy::Fixed, 1, 0);
|
250 |
setSzPol(m_le, QSizePolicy::Preferred, QSizePolicy::Fixed, 1, 0);
|
251 |
m_hl->addWidget(m_le);
|
251 |
m_hl->addWidget(m_le);
|
252 |
|
252 |
|
253 |
m_pb = new QPushButton(this);
|
253 |
m_pb = new QPushButton(this);
|
|
|
254 |
|
|
|
255 |
QString text = tr("Choose");
|
254 |
m_pb->setText(tr("Choose"));
|
256 |
m_pb->setText(text);
|
255 |
setSzPol(m_pb, QSizePolicy::Fixed, QSizePolicy::Fixed, 1, 0);
|
257 |
int width = m_pb->fontMetrics().boundingRect(text).width() + 15;
|
|
|
258 |
m_pb->setMaximumWidth(width);
|
|
|
259 |
setSzPol(m_pb, QSizePolicy::Minimum, QSizePolicy::Fixed, 0, 0);
|
256 |
m_hl->addWidget(m_pb);
|
260 |
m_hl->addWidget(m_pb);
|
257 |
|
261 |
|
258 |
loadValue();
|
262 |
loadValue();
|
259 |
QObject::connect(m_pb, SIGNAL(clicked()), this, SLOT(showBrowserDialog()));
|
263 |
QObject::connect(m_pb, SIGNAL(clicked()), this, SLOT(showBrowserDialog()));
|
260 |
QObject::connect(m_le, SIGNAL(textChanged(const QString&)),
|
264 |
QObject::connect(m_le, SIGNAL(textChanged(const QString&)),
|
|
... |
|
... |
300 |
tl->setText(lbltxt);
|
304 |
tl->setText(lbltxt);
|
301 |
tl->setToolTip(tltptxt);
|
305 |
tl->setToolTip(tltptxt);
|
302 |
vl1->addWidget(tl);
|
306 |
vl1->addWidget(tl);
|
303 |
|
307 |
|
304 |
QPushButton *pbA = new QPushButton(this);
|
308 |
QPushButton *pbA = new QPushButton(this);
|
|
|
309 |
QString text = tr("+");
|
305 |
pbA->setText(tr("+"));
|
310 |
pbA->setText(text);
|
306 |
setSzPol(pbA, QSizePolicy::Fixed, QSizePolicy::Fixed, 0, 0);
|
311 |
int width = pbA->fontMetrics().boundingRect(text).width() + 15;
|
|
|
312 |
pbA->setMaximumWidth(width);
|
|
|
313 |
setSzPol(pbA, QSizePolicy::Minimum, QSizePolicy::Fixed, 0, 0);
|
307 |
hl1->addWidget(pbA);
|
314 |
hl1->addWidget(pbA);
|
308 |
|
315 |
|
309 |
QPushButton *pbD = new QPushButton(this);
|
316 |
QPushButton *pbD = new QPushButton(this);
|
310 |
setSzPol(pbD, QSizePolicy::Fixed, QSizePolicy::Fixed, 0, 0);
|
317 |
text = tr("-");
|
311 |
pbD->setText(tr("-"));
|
318 |
pbD->setText(text);
|
|
|
319 |
width = pbD->fontMetrics().boundingRect(text).width() + 15;
|
|
|
320 |
pbD->setMaximumWidth(width);
|
|
|
321 |
setSzPol(pbD, QSizePolicy::Minimum, QSizePolicy::Fixed, 0, 0);
|
312 |
hl1->addWidget(pbD);
|
322 |
hl1->addWidget(pbD);
|
313 |
|
323 |
|
314 |
vl1->addLayout(hl1);
|
324 |
vl1->addLayout(hl1);
|
315 |
m_hl->addLayout(vl1);
|
325 |
m_hl->addLayout(vl1);
|
316 |
|
326 |
|