diff options
Diffstat (limited to 'digikam/imageplugins/adjustlevels/adjustlevels.cpp')
-rw-r--r-- | digikam/imageplugins/adjustlevels/adjustlevels.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/digikam/imageplugins/adjustlevels/adjustlevels.cpp b/digikam/imageplugins/adjustlevels/adjustlevels.cpp index 0ae9dc9d..c827e35d 100644 --- a/digikam/imageplugins/adjustlevels/adjustlevels.cpp +++ b/digikam/imageplugins/adjustlevels/adjustlevels.cpp @@ -27,7 +27,7 @@ // TQt includes. -#include <layout.h> +#include <tqlayout.h> #include <tqcolor.h> #include <tqgroupbox.h> #include <tqhgroupbox.h> @@ -39,7 +39,7 @@ #include <tqwhatsthis.h> #include <tqtooltip.h> #include <tqpushbutton.h> -#include <layout.h> +#include <tqlayout.h> #include <tqframe.h> #include <tqtimer.h> #include <tqhbuttongroup.h> @@ -126,7 +126,7 @@ AdjustLevelDialog::AdjustLevelDialog(TQWidget* parent) TQGridLayout* grid = new TQGridLayout(gboxSettings, 16, 8, spacingHint(), 0); TQLabel *label1 = new TQLabel(i18n("Channel:"), gboxSettings); - label1->setAlignment ( TQt::AlignRight | TQt::AlignVCenter ); + label1->tqsetAlignment ( TQt::AlignRight | TQt::AlignVCenter ); m_channelCB = new TQComboBox( false, gboxSettings ); m_channelCB->insertItem( i18n("Luminosity") ); m_channelCB->insertItem( i18n("Red") ); @@ -676,16 +676,16 @@ void AdjustLevelDialog::slotChannelChanged(int channel) m_levels->getLevelLowOutputValue(channel), m_levels->getLevelHighOutputValue(channel)); - m_levelsHistogramWidget->repaint(false); - m_histogramWidget->repaint(false); + m_levelsHistogramWidget->tqrepaint(false); + m_histogramWidget->tqrepaint(false); } void AdjustLevelDialog::slotScaleChanged(int scale) { m_levelsHistogramWidget->m_scaleType = scale; m_histogramWidget->m_scaleType = scale; - m_histogramWidget->repaint(false); - m_levelsHistogramWidget->repaint(false); + m_histogramWidget->tqrepaint(false); + m_levelsHistogramWidget->tqrepaint(false); } void AdjustLevelDialog::readUserSettings() @@ -700,11 +700,11 @@ void AdjustLevelDialog::readUserSettings() { bool sb = m_originalImage.sixteenBit(); int max = sb ? 65535 : 255; - double gamma = config->readDoubleNumEntry(TQString("GammaChannel%1").arg(i), 1.0); - int lowInput = config->readNumEntry(TQString("LowInputChannel%1").arg(i), 0); - int lowOutput = config->readNumEntry(TQString("LowOutputChannel%1").arg(i), 0); - int highInput = config->readNumEntry(TQString("HighInputChannel%1").arg(i), max); - int highOutput = config->readNumEntry(TQString("HighOutputChannel%1").arg(i), max); + double gamma = config->readDoubleNumEntry(TQString("GammaChannel%1").tqarg(i), 1.0); + int lowInput = config->readNumEntry(TQString("LowInputChannel%1").tqarg(i), 0); + int lowOutput = config->readNumEntry(TQString("LowOutputChannel%1").tqarg(i), 0); + int highInput = config->readNumEntry(TQString("HighInputChannel%1").tqarg(i), max); + int highOutput = config->readNumEntry(TQString("HighOutputChannel%1").tqarg(i), max); m_levels->setLevelGammaValue(i, gamma); m_levels->setLevelLowInputValue(i, sb ? lowInput*255 : lowInput); @@ -742,11 +742,11 @@ void AdjustLevelDialog::writeUserSettings() int highInput = m_levels->getLevelHighInputValue(i); int highOutput = m_levels->getLevelHighOutputValue(i); - config->writeEntry(TQString("GammaChannel%1").arg(i), gamma); - config->writeEntry(TQString("LowInputChannel%1").arg(i), sb ? lowInput/255 : lowInput); - config->writeEntry(TQString("LowOutputChannel%1").arg(i), sb ? lowOutput/255 : lowOutput); - config->writeEntry(TQString("HighInputChannel%1").arg(i), sb ? highInput/255 : highInput); - config->writeEntry(TQString("HighOutputChannel%1").arg(i), sb ? highOutput/255 : highOutput); + config->writeEntry(TQString("GammaChannel%1").tqarg(i), gamma); + config->writeEntry(TQString("LowInputChannel%1").tqarg(i), sb ? lowInput/255 : lowInput); + config->writeEntry(TQString("LowOutputChannel%1").tqarg(i), sb ? lowOutput/255 : lowOutput); + config->writeEntry(TQString("HighInputChannel%1").tqarg(i), sb ? highInput/255 : highInput); + config->writeEntry(TQString("HighOutputChannel%1").tqarg(i), sb ? highOutput/255 : highOutput); } config->sync(); |