diff options
-rw-r--r-- | src/SUSE2client.cpp | 8 | ||||
-rw-r--r-- | src/config/config.cpp | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/SUSE2client.cpp b/src/SUSE2client.cpp index a3a7f87..da91319 100644 --- a/src/SUSE2client.cpp +++ b/src/SUSE2client.cpp @@ -653,11 +653,11 @@ void SUSE2Client::create_pixmaps() painter.end(); TQImage aTempImage = aTitleBarTile->convertToImage(); - aGradientBottom = TQColor::TQColor(aTempImage.pixel(0, aTempImage.height()-1)); - aAntialiasBase = TQColor::TQColor(aTempImage.pixel(0, 2)); + aGradientBottom = TQColor(aTempImage.pixel(0, aTempImage.height()-1)); + aAntialiasBase = TQColor(aTempImage.pixel(0, 2)); TQImage iTempImage = iTitleBarTile->convertToImage(); - iGradientBottom = TQColor::TQColor(iTempImage.pixel(0, iTempImage.height()-1)); - iAntialiasBase = TQColor::TQColor(iTempImage.pixel(0, 2)); + iGradientBottom = TQColor(iTempImage.pixel(0, iTempImage.height()-1)); + iAntialiasBase = TQColor(iTempImage.pixel(0, 2)); // the gradient for the fade out effect gradient = KImageEffect::gradient(TQSize(30, titleHeight + TOPMARGIN + DECOHEIGHT), diff --git a/src/config/config.cpp b/src/config/config.cpp index d0a72bf..6e47ff9 100644 --- a/src/config/config.cpp +++ b/src/config/config.cpp @@ -174,7 +174,7 @@ void SUSE2Config::load(TDEConfig *) TQString titleBarImage = locate("data", "twin/pics/titlebar_decor.png"); titlebarLogoURL = m_config->readEntry("TitleBarLogoURL", titleBarImage); - TQImage tmpLogo = TQImage::TQImage(titlebarLogoURL); + TQImage tmpLogo(titlebarLogoURL); m_dialog->logoImage->setPixmap(TQPixmap(tmpLogo.smoothScale(120, 20, TQImage::ScaleMin))); } @@ -238,7 +238,7 @@ void SUSE2Config::defaults() m_dialog->titleBarLogo->setChecked(false); m_dialog->titleBarLogoOffset->setValue(3); titlebarLogoURL = locate("data", "twin/pics/titlebar_decor.png"); - TQImage tmpLogo = TQImage::TQImage(titlebarLogoURL); + TQImage tmpLogo(titlebarLogoURL); m_dialog->logoImage->setPixmap(TQPixmap(tmpLogo.smoothScale(120, 20, TQImage::ScaleMin))); } @@ -262,7 +262,7 @@ void SUSE2Config::selectImage() KFileItem tmpFileItem = KFileItem(KFileItem::Unknown, KFileItem::Unknown, logoURL); if (!logoURL.isEmpty() && tmpFileItem.isFile() && tmpFileItem.isReadable()) { titlebarLogoURL = logoURL.path(); - TQImage tmpLogo = TQImage::TQImage(titlebarLogoURL); + TQImage tmpLogo(titlebarLogoURL); m_dialog->logoImage->setPixmap(TQPixmap(tmpLogo.smoothScale(120, 20, TQImage::ScaleMin))); emit changed(); } |