author | andyq <andyq> | 2002-11-21 18:57:01 (UTC) |
---|---|---|
committer | andyq <andyq> | 2002-11-21 18:57:01 (UTC) |
commit | e6cb9bb71d4849263ada2f5549c85740c96b065a (patch) (side-by-side diff) | |
tree | d44c457f77722342ccb5a0c7b99dcfcae6f17a94 | |
parent | 1efe11a03d5cd3c0b81c5fee7d0e88dca2e06da8 (diff) | |
download | opie-e6cb9bb71d4849263ada2f5549c85740c96b065a.zip opie-e6cb9bb71d4849263ada2f5549c85740c96b065a.tar.gz opie-e6cb9bb71d4849263ada2f5549c85740c96b065a.tar.bz2 |
Package sections default to N/A unless they are set (description, etc), changed LinkToRoot to Link To Root, and couple of other small fixes
-rw-r--r-- | noncore/settings/aqpkg/networkpkgmgr.cpp | 6 | ||||
-rw-r--r-- | noncore/settings/aqpkg/package.cpp | 12 | ||||
-rw-r--r-- | noncore/settings/aqpkg/settings.ui | 2 |
3 files changed, 17 insertions, 3 deletions
diff --git a/noncore/settings/aqpkg/networkpkgmgr.cpp b/noncore/settings/aqpkg/networkpkgmgr.cpp index e8e2982..d9e62b6 100644 --- a/noncore/settings/aqpkg/networkpkgmgr.cpp +++ b/noncore/settings/aqpkg/networkpkgmgr.cpp @@ -287,9 +287,13 @@ void NetworkPackageManager :: serverSelected( int ) new QCheckListItem( item, QString( "Installed To - " ) + destName ); } if ( !it->isPackageStoredLocally() ) + { new QCheckListItem( item, QString( "Description - " ) + it->getDescription() ); + new QCheckListItem( item, QString( "Size - " ) + it->getPackageSize() ); + new QCheckListItem( item, QString( "Section - " ) + it->getSection() ); + } else new QCheckListItem( item, QString( "Filename - " ) + it->getFilename() ); if ( serverName == LOCAL_SERVER ) @@ -305,10 +309,8 @@ void NetworkPackageManager :: serverSelected( int ) new QCheckListItem( item, QString( "V. Installed - " ) + it->getInstalledVersion() ); } } - new QCheckListItem( item, QString( "Size - " ) + it->getPackageSize() ); - new QCheckListItem( item, QString( "Section - " ) + it->getSection() ); packagesList->insertItem( item ); } // If the local server or the local ipkgs server disable the download button diff --git a/noncore/settings/aqpkg/package.cpp b/noncore/settings/aqpkg/package.cpp index 526de5e..db3e927 100644 --- a/noncore/settings/aqpkg/package.cpp +++ b/noncore/settings/aqpkg/package.cpp @@ -20,8 +20,14 @@ Package::Package( QString &name ) { packageName = name; + + version = "N/A"; + description = "N/A"; + packageSize = "N/A"; + section = "N/A"; + localPackage = 0; installed = false; packageStoredLocally = false; installedToRoot = false; @@ -31,8 +37,14 @@ Package::Package( QString &name ) Package::Package( char *name ) { packageName = name; + + version = "N/A"; + description = "N/A"; + packageSize = "N/A"; + section = "N/A"; + localPackage = 0; installed = false; packageStoredLocally = false; installedToRoot = false; diff --git a/noncore/settings/aqpkg/settings.ui b/noncore/settings/aqpkg/settings.ui index c2db861..44e8fd9 100644 --- a/noncore/settings/aqpkg/settings.ui +++ b/noncore/settings/aqpkg/settings.ui @@ -478,9 +478,9 @@ <cstring>linkToRoot</cstring> </property> <property stdset="1"> <name>text</name> - <string>LinkToRoot</string> + <string>Link To Root</string> </property> <property stdset="1"> <name>checked</name> <bool>true</bool> |