19 #include "ui_imagepropertieswidget.h" 36 this->setDisabled(
true);
56 this->setEnabled(
true);
136 qreal value =
ui->m_scale_slider->value();
138 if (
m_scale == value)
return nullptr;
141 undo->setText(
tr(
"Modifier la taille d'une image"));
152 ui->m_scale_slider->setValue(
m_image->scale() * 100);
164 m_image->setScale(scale / 100);
The QPropertyUndoCommand class This undo command manage QProperty of a QObject. This undo command can...
Diagram * diagram() const
QetGraphicsItem::diagram return the diagram of this item.
void enableAnimation(bool animate=true)
QPropertyUndoCommand::enableAnimation True to enable animation.
virtual bool isMovable() const
virtual void setMovable(bool movable)