iChangelog = "";
ui->pushButton_website->setIcon(QPixmap("/usr/share/icons/hicolor/48x48/hildon/general_web.png"));
- if( getMaemoOrgUrl(pkg)=="" && getMaemoOrgUrl(pkg->availablePackage())=="" ) {
+ if( getMaemoOrgUrl(pkg).isEmpty() && getMaemoOrgUrl(pkg->availablePackage()).isEmpty() ) {
ui->pushButton_website->setEnabled(false);
}
if( pkg->isMarkedForOperation() )
ui->pushButton_blacklist->setEnabled(false);
if( pkg->icon() && !pkg->icon()->isNull() ) {
- ui->label_appicon->setPixmap( *pkg->icon() );
+ QPixmap aicon( *pkg->icon() );
+ ui->label_appicon->setPixmap( aicon.scaled(48,48) );
} else {
ui->label_appicon->setPixmap( QPixmap(":/icons/icons/appdefault.png") );
}
Package* upg_pkg = iPkg->availablePackage();
if( !upg_pkg )
upg_pkg = iPkg;
- if( (!pkg->isUpgradeable() || (upg_pkg && upg_pkg->upgradeDescription()=="")) && (getMaemoOrgUrl(upg_pkg)=="") )
+ if( (!pkg->isUpgradeable() || (upg_pkg && upg_pkg->upgradeDescription().isEmpty())) && (getMaemoOrgUrl(upg_pkg).isEmpty()) )
ui->radioTabChanges->hide();
if( pkg->isUpgradeable() )
ui->radioRemove->setChecked(true);
}
- if( getMaemoOrgUrl(upg_pkg)!="" && !iChangelogFetched && !iFetchInProgress &&
+ if( !getMaemoOrgUrl(upg_pkg).isEmpty() && !iChangelogFetched && !iFetchInProgress &&
iSettings->qsettings()->value("always_fetch_changes",false).toBool() )
{
queryChangelog();
}
}
+ if( !iPkg->maintainerRichText().isEmpty() ) {
+ longtext +="Maintainer: " + iPkg->maintainerRichText() + "<br>";
+ }
+
longtext += "<br>" + iPkg->descShort();
QString descLong = iPkg->descLong();
if( descLong.length()>0 ) {
if( !upg_pkg )
upg_pkg = iPkg;
- if( iPkg->isUpgradeable() && upg_pkg && upg_pkg->upgradeDescription()!="" )
+ if( iPkg->isUpgradeable() && upg_pkg && !upg_pkg->upgradeDescription().isEmpty() )
{
text += "<u><b>Upgrade description:</b></u>";
text += "<font size=\"-1\"><br>";
}
QString changelog;
- if( getMaemoOrgUrl(upg_pkg)!="" && !iChangelogFetched && !iFetchInProgress ) {
+ if( !getMaemoOrgUrl(upg_pkg).isEmpty() && !iChangelogFetched && !iFetchInProgress ) {
queryChangelog();
changelog = "Fetching changelog...";
} else {
iNetworkAccessManager = new QNetworkAccessManager(this);
connect(iNetworkAccessManager,SIGNAL(finished(QNetworkReply*)),this,SLOT(changelogFetchNetworkReply(QNetworkReply*)));
- if( iSettings->qsettings()->value("use_proxies").toBool() && iSettings->qsettings()->value("http_proxy").toString()!="" )
+ if( iSettings->qsettings()->value("use_proxies").toBool() && !iSettings->qsettings()->value("http_proxy").toString().isEmpty() )
{
QNetworkProxy proxy = Settings::createProxyFromString( iSettings->qsettings()->value("http_proxy").toString() );
iNetworkAccessManager->setProxy(proxy);