|
|
@ -174,7 +174,7 @@ void SUSE2Config::load(TDEConfig *)
|
|
|
|
|
|
|
|
|
|
|
|
TQString titleBarImage = locate("data", "twin/pics/titlebar_decor.png");
|
|
|
|
TQString titleBarImage = locate("data", "twin/pics/titlebar_decor.png");
|
|
|
|
titlebarLogoURL = m_config->readEntry("TitleBarLogoURL", titleBarImage);
|
|
|
|
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)));
|
|
|
|
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->titleBarLogo->setChecked(false);
|
|
|
|
m_dialog->titleBarLogoOffset->setValue(3);
|
|
|
|
m_dialog->titleBarLogoOffset->setValue(3);
|
|
|
|
titlebarLogoURL = locate("data", "twin/pics/titlebar_decor.png");
|
|
|
|
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)));
|
|
|
|
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);
|
|
|
|
KFileItem tmpFileItem = KFileItem(KFileItem::Unknown, KFileItem::Unknown, logoURL);
|
|
|
|
if (!logoURL.isEmpty() && tmpFileItem.isFile() && tmpFileItem.isReadable()) {
|
|
|
|
if (!logoURL.isEmpty() && tmpFileItem.isFile() && tmpFileItem.isReadable()) {
|
|
|
|
titlebarLogoURL = logoURL.path();
|
|
|
|
titlebarLogoURL = logoURL.path();
|
|
|
|
TQImage tmpLogo = TQImage::TQImage(titlebarLogoURL);
|
|
|
|
TQImage tmpLogo(titlebarLogoURL);
|
|
|
|
m_dialog->logoImage->setPixmap(TQPixmap(tmpLogo.smoothScale(120, 20, TQImage::ScaleMin)));
|
|
|
|
m_dialog->logoImage->setPixmap(TQPixmap(tmpLogo.smoothScale(120, 20, TQImage::ScaleMin)));
|
|
|
|
emit changed();
|
|
|
|
emit changed();
|
|
|
|
}
|
|
|
|
}
|
|
|
|