|
|
@ -268,16 +268,22 @@ void TDMThemeWidget::insertTheme( const TQString &_theme )
|
|
|
|
|
|
|
|
|
|
|
|
void TDMThemeWidget::updateInfoView( ThemeData *theme )
|
|
|
|
void TDMThemeWidget::updateInfoView( ThemeData *theme )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
info->setText(
|
|
|
|
if(theme) {
|
|
|
|
((theme->copyright.length() > 0) ?
|
|
|
|
info->setText(
|
|
|
|
i18n("<qt><strong>Copyright:</strong> %1<br/></qt>",
|
|
|
|
((theme->copyright.length() > 0) ?
|
|
|
|
theme->copyright) : "") +
|
|
|
|
i18n("<qt><strong>Copyright:</strong> %1<br/></qt>",
|
|
|
|
((theme->description.length() > 0) ?
|
|
|
|
theme->copyright) : "") +
|
|
|
|
i18n("<qt><strong>Description:</strong> %1</qt>",
|
|
|
|
((theme->description.length() > 0) ?
|
|
|
|
theme->description) : "") );
|
|
|
|
i18n("<qt><strong>Description:</strong> %1</qt>",
|
|
|
|
preview->setPixmap( theme->path + '/' + theme->screenShot );
|
|
|
|
theme->description) : "") );
|
|
|
|
preview->setText( theme->screenShot.isEmpty() ?
|
|
|
|
preview->setPixmap( theme->path + '/' + theme->screenShot );
|
|
|
|
"Screenshot not available" : TQString() );
|
|
|
|
preview->setText( theme->screenShot.isEmpty() ?
|
|
|
|
|
|
|
|
i18n("Screenshot not available") : TQString() );
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
info->setText(i18n("No theme selected."));
|
|
|
|
|
|
|
|
preview->setPixmap(NULL);
|
|
|
|
|
|
|
|
preview->setText(i18n("Screenshot not available"));
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void TDMThemeWidget::installNewTheme()
|
|
|
|
void TDMThemeWidget::installNewTheme()
|
|
|
|