[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdegraphics/kolourpaint
From: Hoàng Đức Hiếu <hieu.d.hoang () gmail ! com
Date: 2007-11-07 15:40:11
Message-ID: 1194450011.199653.32488.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 733921 by hdhoang:
changed a bunch of deprecated KNumInput::setRange()
M +4 -4 dialogs/imagelib/kpDocumentMetaInfoDialog.cpp
M +3 -3 widgets/imagelib/effects/kpEffectBalanceWidget.cpp
M +1 -2 widgets/imagelib/effects/kpEffectBlurSharpenWidget.cpp
M +1 -1 widgets/kpDocumentSaveOptionsWidget.cpp
--- trunk/KDE/kdegraphics/kolourpaint/dialogs/imagelib/kpDocumentMetaInfoDialog.cpp \
#733920:733921 @@ -217,16 +217,16 @@
Qt::AlignTop | Qt::AlignHCenter);
d->horizOffsetInput->setRange (
kpDocumentMetaInfo::MinOffset,
- kpDocumentMetaInfo::MaxOffset,
- 1/*step*/, false/*no slider*/);
+ kpDocumentMetaInfo::MaxOffset);
+ d->horizOffsetInput->setSliderEnabled(false);
d->vertOffsetInput = new KIntNumInput (offsetGroupBox);
d->vertOffsetInput->setLabel (i18n ("Vertical:"),
Qt::AlignTop | Qt::AlignHCenter);
d->vertOffsetInput->setRange (
kpDocumentMetaInfo::MinOffset,
- kpDocumentMetaInfo::MaxOffset,
- 1/*step*/, false/*no slider*/);
+ kpDocumentMetaInfo::MaxOffset);
+ d->vertOffsetInput->setSliderEnabled(false);
QGridLayout *offsetLay = new QGridLayout (offsetGroupBox);
--- trunk/KDE/kdegraphics/kolourpaint/widgets/imagelib/effects/kpEffectBalanceWidget.cpp \
#733920:733921 @@ -64,17 +64,17 @@
QLabel *brightnessLabel = new QLabel (i18n ("&Brightness:"), this);
m_brightnessInput = new KIntNumInput (0/*value*/, this);
- m_brightnessInput->setRange (-50, 50, 1/*step*/, true/*slider*/);
+ m_brightnessInput->setRange (-50, 50);
QPushButton *brightnessResetPushButton = new QPushButton (i18n ("Re&set"), \
this);
QLabel *contrastLabel = new QLabel (i18n ("Co&ntrast:"), this);
m_contrastInput = new KIntNumInput (0/*value*/, this);
- m_contrastInput->setRange (-50, 50, 1/*step*/, true/*slider*/);
+ m_contrastInput->setRange (-50, 50);
QPushButton *contrastResetPushButton = new QPushButton (i18n ("&Reset"), this);
QLabel *gammaLabel = new QLabel (i18n ("&Gamma:"), this);
m_gammaInput = new KIntNumInput (0/*value*/, this);
- m_gammaInput->setRange (-50, 50, 1/*step*/, true/*slider*/);
+ m_gammaInput->setRange (-50, 50);
// TODO: This is what should be shown in the m_gammaInput spinbox
m_gammaLabel = new QLabel (this);
// TODO: This doesn't seem to be wide enough with some fonts so the
--- trunk/KDE/kdegraphics/kolourpaint/widgets/imagelib/effects/kpEffectBlurSharpenWidget.cpp \
#733920:733921 @@ -53,8 +53,7 @@
QLabel *amountLabel = new QLabel (i18n ("&Amount:"), this);
m_amountInput = new KIntNumInput (this);
m_amountInput->setRange (-kpEffectBlurSharpen::MaxStrength/*- for blur*/,
- +kpEffectBlurSharpen::MaxStrength/*+ for sharpen*/,
- 1/*step*/, true/*slider*/);
+ +kpEffectBlurSharpen::MaxStrength/*+ for sharpen*/);
m_typeLabel = new QLabel (this);
--- trunk/KDE/kdegraphics/kolourpaint/widgets/kpDocumentSaveOptionsWidget.cpp \
#733920:733921 @@ -102,7 +102,7 @@
// and 101 quality settings would be weird. So we lose 1 quality setting
// according to QImage::save().
// TODO: 100 quality is also misleading since that implies perfect quality.
- m_qualityInput->setRange (1, 100, 1/*step*/, true/*slider*/);
+ m_qualityInput->setRange (1, 100);
m_previewButton = new KPushButton (i18n ("&Preview"), this);
m_previewButton->setCheckable (true);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic