px pos usw
git-svn-id: http://svn.lsim.tuxzone.org/trunk@45 4bec179b-ab65-46ed-a5f8-55b8b5c735d0
This commit is contained in:
@@ -44,6 +44,7 @@ void StopperWidget::createWidget()
|
||||
QDoubleSpinBox *widthBox = new QDoubleSpinBox;
|
||||
widthBox->setRange(StopperItem::MinimumWidth, 5000);
|
||||
widthBox->setKeyboardTracking(false);
|
||||
widthBox->setSuffix(" px");
|
||||
connect(stopperItem ,SIGNAL(widthChanged(double)),widthBox, SLOT(setValue(double)) );
|
||||
connect(widthBox, SIGNAL(valueChanged(double)),stopperItem ,SLOT(setRectFWidth(double)) );
|
||||
|
||||
@@ -55,12 +56,14 @@ void StopperWidget::createWidget()
|
||||
QDoubleSpinBox *posXBox = new QDoubleSpinBox;
|
||||
posXBox->setRange(-5000, 5000);
|
||||
posXBox->setKeyboardTracking(false);
|
||||
posXBox->setSuffix(" px");
|
||||
connect(stopperItem ,SIGNAL(ScenePosXChanged(double)),posXBox, SLOT(setValue(double)) );
|
||||
connect(posXBox, SIGNAL(valueChanged(double)),stopperItem ,SLOT(setScenePosX(double)) );
|
||||
|
||||
QDoubleSpinBox *posYBox = new QDoubleSpinBox;
|
||||
posYBox->setRange(-5000, 5000);
|
||||
posYBox->setKeyboardTracking(false);
|
||||
posYBox->setSuffix(" px");
|
||||
connect(stopperItem ,SIGNAL(ScenePosYChanged(double)),posYBox, SLOT(setValue(double)) );
|
||||
connect(posYBox, SIGNAL(valueChanged(double)),stopperItem ,SLOT(setScenePosY(double)) );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user