- m_name = new QLabel(name, this);
- layout->addWidget(m_name);
-
- m_slider = new QSlider(Qt::Horizontal, this);
- m_slider->setRange(min, max);
- //m_slider->setPageStep((max - min) / 10);
- layout->addWidget(m_slider);
-
- m_spinBox = new QSpinBox(this);
- m_spinBox->setRange(min, max);
- m_spinBox->setKeyboardTracking(false);
- if (!suffix.isEmpty())
- m_spinBox->setSuffix(suffix);
- layout->addWidget(m_spinBox);
-
- QToolButton *reset = new QToolButton(this);
- reset->setAutoRaise(true);
- reset->setIcon(KIcon("edit-undo"));
- reset->setToolTip(i18n("Reset to default value"));
- layout->addWidget(reset);
-
- if (m_comment != QString()) {
- QToolButton *showComment = new QToolButton(this);
- showComment->setAutoRaise(true);
- showComment->setIcon(KIcon("help-about"));
- layout->addWidget(showComment);
-
- connect(showComment, SIGNAL(clicked(bool)), this, SLOT(slotShowComment()));