summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-05-02 16:09:08 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-05-10 17:49:06 +0900
commit7735a26b44fe1496cccb233b3cd0eb332e20bba0 (patch)
tree6aea4244fae4e52ac13f03108a2d7c81bf66cae9
parent08c6e651148410acea2d23567ce4bffd2b1c4b63 (diff)
downloadtdegraphics-7735a26b.tar.gz
tdegraphics-7735a26b.zip
kolourpaint: use smooth resize as default selection at start
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 263c6c90d215e5a207409c8ea70aed45238c74b2)
-rw-r--r--kolourpaint/tools/kptoolresizescale.cpp43
1 files changed, 13 insertions, 30 deletions
diff --git a/kolourpaint/tools/kptoolresizescale.cpp b/kolourpaint/tools/kptoolresizescale.cpp
index dc9d88ff..f9a4c461 100644
--- a/kolourpaint/tools/kptoolresizescale.cpp
+++ b/kolourpaint/tools/kptoolresizescale.cpp
@@ -497,7 +497,7 @@ void kpToolResizeScaleCommand::unexecute ()
// private static
kpToolResizeScaleCommand::Type kpToolResizeScaleDialog::s_lastType =
- kpToolResizeScaleCommand::Resize;
+ kpToolResizeScaleCommand::SmoothScale;
// private static
double kpToolResizeScaleDialog::s_lastPercentWidth = 100,
@@ -662,40 +662,28 @@ void kpToolResizeScaleDialog::createOperationGroupBox (TQWidget *baseWidget)
"</ul>"
"</qt>"));
- // TODO: ALT+R doesn't select the button.
- m_resizeButton = new TQToolButton (m_operationGroupBox);
- toolButtonSetLook (m_resizeButton,
- TQString::fromLatin1 ("resize"),
- i18n ("&Resize"));
-
- m_scaleButton = new TQToolButton (m_operationGroupBox);
- toolButtonSetLook (m_scaleButton,
- TQString::fromLatin1 ("scale"),
- i18n ("&Scale"));
-
m_smoothScaleButton = new TQToolButton (m_operationGroupBox);
toolButtonSetLook (m_smoothScaleButton,
TQString::fromLatin1 ("smooth_scale"),
i18n ("S&mooth Scale"));
+ m_scaleButton = new TQToolButton (m_operationGroupBox);
+ toolButtonSetLook (m_scaleButton,
+ TQString::fromLatin1 ("scale"),
+ i18n ("&Scale"));
- //m_resizeLabel = new TQLabel (i18n ("&Resize"), m_operationGroupBox);
- //m_scaleLabel = new TQLabel (i18n ("&Scale"), m_operationGroupBox);
- //m_smoothScaleLabel = new TQLabel (i18n ("S&mooth scale"), m_operationGroupBox);
-
-
- //m_resizeLabel->setAlignment (m_resizeLabel->alignment () | TQt::ShowPrefix);
- //m_scaleLabel->setAlignment (m_scaleLabel->alignment () | TQt::ShowPrefix);
- //m_smoothScaleLabel->setAlignment (m_smoothScaleLabel->alignment () | TQt::ShowPrefix);
-
+ m_resizeButton = new TQToolButton (m_operationGroupBox);
+ toolButtonSetLook (m_resizeButton,
+ TQString::fromLatin1 ("resize"),
+ i18n ("&Resize"));
TQButtonGroup *resizeScaleButtonGroup = new TQButtonGroup (baseWidget);
resizeScaleButtonGroup->setExclusive (true);
resizeScaleButtonGroup->hide ();
- resizeScaleButtonGroup->insert (m_resizeButton);
- resizeScaleButtonGroup->insert (m_scaleButton);
resizeScaleButtonGroup->insert (m_smoothScaleButton);
+ resizeScaleButtonGroup->insert (m_scaleButton);
+ resizeScaleButtonGroup->insert (m_resizeButton);
TQGridLayout *operationLayout = new TQGridLayout (m_operationGroupBox,
@@ -703,14 +691,9 @@ void kpToolResizeScaleDialog::createOperationGroupBox (TQWidget *baseWidget)
marginHint () * 2/*don't overlap groupbox title*/,
spacingHint ());
- operationLayout->addWidget (m_resizeButton, 0, 0, TQt::AlignCenter);
- //operationLayout->addWidget (m_resizeLabel, 1, 0, TQt::AlignCenter);
-
+ operationLayout->addWidget (m_smoothScaleButton, 0, 0, TQt::AlignCenter);
operationLayout->addWidget (m_scaleButton, 0, 1, TQt::AlignCenter);
- //operationLayout->addWidget (m_scaleLabel, 1, 1, TQt::AlignCenter);
-
- operationLayout->addWidget (m_smoothScaleButton, 0, 2, TQt::AlignCenter);
- //operationLayout->addWidget (m_smoothScaleLabel, 1, 2, TQt::AlignCenter);
+ operationLayout->addWidget (m_resizeButton, 0, 2, TQt::AlignCenter);
connect (m_resizeButton, TQ_SIGNAL (toggled (bool)),