diff options
Diffstat (limited to 'digikam/imageplugins/adjustlevels/adjustlevels.cpp')
-rw-r--r-- | digikam/imageplugins/adjustlevels/adjustlevels.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/digikam/imageplugins/adjustlevels/adjustlevels.cpp b/digikam/imageplugins/adjustlevels/adjustlevels.cpp index 8ffd3780..cca520c8 100644 --- a/digikam/imageplugins/adjustlevels/adjustlevels.cpp +++ b/digikam/imageplugins/adjustlevels/adjustlevels.cpp @@ -155,16 +155,16 @@ AdjustLevelDialog::AdjustLevelDialog(TQWidget* parent) TQPushButton *linHistoButton = new TQPushButton( m_scaleBG ); TQToolTip::add( linHistoButton, i18n( "<p>Linear" ) ); m_scaleBG->insert(linHistoButton, Digikam::HistogramWidget::LinScaleHistogram); - KGlobal::dirs()->addResourceType("histogram-lin", KGlobal::dirs()->kde_default("data") + "digikam/data"); - TQString directory = KGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png"); + TDEGlobal::dirs()->addResourceType("histogram-lin", TDEGlobal::dirs()->kde_default("data") + "digikam/data"); + TQString directory = TDEGlobal::dirs()->findResourceDir("histogram-lin", "histogram-lin.png"); linHistoButton->setPixmap( TQPixmap( directory + "histogram-lin.png" ) ); linHistoButton->setToggleButton(true); TQPushButton *logHistoButton = new TQPushButton( m_scaleBG ); TQToolTip::add( logHistoButton, i18n( "<p>Logarithmic" ) ); m_scaleBG->insert(logHistoButton, Digikam::HistogramWidget::LogScaleHistogram); - KGlobal::dirs()->addResourceType("histogram-log", KGlobal::dirs()->kde_default("data") + "digikam/data"); - directory = KGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png"); + TDEGlobal::dirs()->addResourceType("histogram-log", TDEGlobal::dirs()->kde_default("data") + "digikam/data"); + directory = TDEGlobal::dirs()->findResourceDir("histogram-log", "histogram-log.png"); logHistoButton->setPixmap( TQPixmap( directory + "histogram-log.png" ) ); logHistoButton->setToggleButton(true); @@ -256,9 +256,9 @@ AdjustLevelDialog::AdjustLevelDialog(TQWidget* parent) m_pickerColorButtonGroup = new TQHButtonGroup(gboxSettings); m_pickBlack = new TQPushButton(m_pickerColorButtonGroup); m_pickerColorButtonGroup->insert(m_pickBlack, BlackTonal); - KGlobal::dirs()->addResourceType("color-picker-black", KGlobal::dirs()->kde_default("data") + + TDEGlobal::dirs()->addResourceType("color-picker-black", TDEGlobal::dirs()->kde_default("data") + "digikam/data"); - directory = KGlobal::dirs()->findResourceDir("color-picker-black", "color-picker-black.png"); + directory = TDEGlobal::dirs()->findResourceDir("color-picker-black", "color-picker-black.png"); m_pickBlack->setPixmap( TQPixmap( directory + "color-picker-black.png" ) ); m_pickBlack->setToggleButton(true); TQToolTip::add( m_pickBlack, i18n( "All channels shadow tone color picker" ) ); @@ -266,9 +266,9 @@ AdjustLevelDialog::AdjustLevelDialog(TQWidget* parent) "levels input on Red, Green, Blue, and Luminosity channels.")); m_pickGray = new TQPushButton(m_pickerColorButtonGroup); m_pickerColorButtonGroup->insert(m_pickGray, GrayTonal); - KGlobal::dirs()->addResourceType("color-picker-gray", KGlobal::dirs()->kde_default("data") + + TDEGlobal::dirs()->addResourceType("color-picker-gray", TDEGlobal::dirs()->kde_default("data") + "digikam/data"); - directory = KGlobal::dirs()->findResourceDir("color-picker-gray", "color-picker-gray.png"); + directory = TDEGlobal::dirs()->findResourceDir("color-picker-gray", "color-picker-gray.png"); m_pickGray->setPixmap( TQPixmap( directory + "color-picker-gray.png" ) ); m_pickGray->setToggleButton(true); TQToolTip::add( m_pickGray, i18n( "All channels middle tone color picker" ) ); @@ -276,9 +276,9 @@ AdjustLevelDialog::AdjustLevelDialog(TQWidget* parent) "levels input on Red, Green, Blue, and Luminosity channels.")); m_pickWhite = new TQPushButton(m_pickerColorButtonGroup); m_pickerColorButtonGroup->insert(m_pickWhite, WhiteTonal); - KGlobal::dirs()->addResourceType("color-picker-white", KGlobal::dirs()->kde_default("data") + + TDEGlobal::dirs()->addResourceType("color-picker-white", TDEGlobal::dirs()->kde_default("data") + "digikam/data"); - directory = KGlobal::dirs()->findResourceDir("color-picker-white", "color-picker-white.png"); + directory = TDEGlobal::dirs()->findResourceDir("color-picker-white", "color-picker-white.png"); m_pickWhite->setPixmap( TQPixmap( directory + "color-picker-white.png" ) ); m_pickWhite->setToggleButton(true); TQToolTip::add( m_pickWhite, i18n( "All channels highlight tone color picker" ) ); @@ -768,7 +768,7 @@ void AdjustLevelDialog::slotUser3() { KURL loadLevelsFile; - loadLevelsFile = KFileDialog::getOpenURL(KGlobalSettings::documentPath(), + loadLevelsFile = KFileDialog::getOpenURL(TDEGlobalSettings::documentPath(), TQString( "*" ), this, TQString( i18n("Select Gimp Levels File to Load")) ); if( loadLevelsFile.isEmpty() ) @@ -789,7 +789,7 @@ void AdjustLevelDialog::slotUser2() { KURL saveLevelsFile; - saveLevelsFile = KFileDialog::getSaveURL(KGlobalSettings::documentPath(), + saveLevelsFile = KFileDialog::getSaveURL(TDEGlobalSettings::documentPath(), TQString( "*" ), this, TQString( i18n("Gimp Levels File to Save")) ); if( saveLevelsFile.isEmpty() ) |