summaryrefslogtreecommitdiff
authorandyq <andyq>2002-10-16 18:58:39 (UTC)
committer andyq <andyq>2002-10-16 18:58:39 (UTC)
commit0feff4043ce813c63e501d6bbd3114e7fcfd8ce6 (patch) (side-by-side diff)
treee6b8c256adf0f615280417a042a7b0edcb989dc7
parent7569cbeec99b6bfcf960cfa1941e7d43bfb93a4d (diff)
downloadopie-0feff4043ce813c63e501d6bbd3114e7fcfd8ce6.zip
opie-0feff4043ce813c63e501d6bbd3114e7fcfd8ce6.tar.gz
opie-0feff4043ce813c63e501d6bbd3114e7fcfd8ce6.tar.bz2
Changed dialog to work with upgrading all packages
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/aqpkg/installdlgimpl.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/noncore/settings/aqpkg/installdlgimpl.cpp b/noncore/settings/aqpkg/installdlgimpl.cpp
index d4f751c..b92a245 100644
--- a/noncore/settings/aqpkg/installdlgimpl.cpp
+++ b/noncore/settings/aqpkg/installdlgimpl.cpp
@@ -37,2 +37,3 @@ InstallDlgImpl::InstallDlgImpl( vector<QString> &packageList, DataManager *dataM
{
+ upgradePackages = false;
dataMgr = dataManager;
@@ -101,2 +102,11 @@ InstallDlgImpl::InstallDlgImpl( vector<QString> &packageList, DataManager *dataM
+InstallDlgImpl::InstallDlgImpl( QWidget *parent, const char *name, bool modal, WFlags fl )
+ : InstallDlg( parent, name, modal, fl )
+{
+ upgradePackages = true;
+ output->setText( "Upgrading installed packages" );
+ connect( &ipkg, SIGNAL(outputText(const QString &)), this, SLOT(displayText(const QString &)));
+}
+
+
InstallDlgImpl::~InstallDlgImpl()
@@ -148,2 +158,13 @@ void InstallDlgImpl :: installSelected()
+ if ( upgradePackages )
+ {
+ output->setText( "" );
+
+ Ipkg ipkg;
+ connect( &ipkg, SIGNAL(outputText(const QString &)), this, SLOT(displayText(const QString &)));
+ ipkg.setOption( "upgrade" );
+ ipkg.runIpkg();
+ }
+ else
+ {
output->setText( "" );
@@ -186,2 +207,3 @@ void InstallDlgImpl :: installSelected()
}
+ }