connect(m_scene, SIGNAL(newRect(QGraphicsRectItem *)), this , SLOT(slotNewRect(QGraphicsRectItem *)));
connect(m_scene, SIGNAL(newText(QGraphicsTextItem *)), this , SLOT(slotNewText(QGraphicsTextItem *)));
connect(zoom_slider, SIGNAL(valueChanged(int)), this , SLOT(slotUpdateZoom(int)));
-
+ connect(zoom_spin, SIGNAL(valueChanged(int)), this, SLOT(slotUpdateZoom(int)));
// mbd: load saved settings
readChoices();
void TitleWidget::slotUpdateZoom(int pos)
{
+ zoom_spin->setValue(pos);
+ zoom_slider->setValue(pos);
m_scene->setZoom((double) pos / 100);
- zoom_label->setText(QString::number(pos) + '%');
}
void TitleWidget::slotZoom(bool up)
</widget>
</item>
<item>
- <widget class="QLabel" name="zoom_label">
- <property name="text">
- <string>x1</string>
+ <widget class="QSpinBox" name="zoom_spin">
+ <property name="keyboardTracking">
+ <bool>false</bool>
+ </property>
+ <property name="suffix">
+ <string>%</string>
+ </property>
+ <property name="minimum">
+ <number>1</number>
+ </property>
+ <property name="maximum">
+ <number>200</number>
</property>
</widget>
</item>