27 lockWidthButton->setIcon(lockWidthButton->isChecked() ? lockedIcon : unlockedIcon);
28 lockHeightButton->setIcon(lockHeightButton->isChecked() ? lockedIcon : unlockedIcon);
29 lockRatioButton->setIcon(lockRatioButton->isChecked() ? lockedIcon : unlockedIcon);
35 connect(
this, SIGNAL(
constraintsChanged(
bool,
bool,
bool,
float,
float,
float)),
m_tool, SLOT(
constraintsChanged(
bool,
bool,
bool,
float,
float,
float)));
47 if (!showRoundCornersGUI) {
48 intRoundCornersX->setVisible(
false);
49 intRoundCornersY->setVisible(
false);
50 cornersAspectButton->setVisible(
false);
75 lockRatioButton->isChecked(),
76 lockWidthButton->isChecked(),
77 lockHeightButton->isChecked(),
84 lockWidthButton->setIcon(lockWidthButton->isChecked() ? lockedIcon : unlockedIcon);
85 lockHeightButton->setIcon(lockHeightButton->isChecked() ? lockedIcon : unlockedIcon);
86 lockRatioButton->setIcon(lockRatioButton->isChecked() ? lockedIcon : unlockedIcon);
121 intWidth->blockSignals(
true);
122 intHeight->blockSignals(
true);
123 doubleRatio->blockSignals(
true);
125 if (!lockWidthButton->isChecked()) intWidth->setValue(
rect.width());
126 if (!lockHeightButton->isChecked()) intHeight->setValue(
rect.height());
128 if (!lockRatioButton->isChecked() && !(
rect.width() == 0 &&
rect.height() == 0)) {
129 doubleRatio->setValue(fabs(
rect.width()) / fabs(
rect.height()));
132 intWidth->blockSignals(
false);
133 intHeight->blockSignals(
false);
134 doubleRatio->blockSignals(
false);