summaryrefslogtreecommitdiff
path: root/noncore/settings/packagemanager/oipkgconfigdlg.cpp
Side-by-side diff
Diffstat (limited to 'noncore/settings/packagemanager/oipkgconfigdlg.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/packagemanager/oipkgconfigdlg.cpp23
1 files changed, 18 insertions, 5 deletions
diff --git a/noncore/settings/packagemanager/oipkgconfigdlg.cpp b/noncore/settings/packagemanager/oipkgconfigdlg.cpp
index 1561470..ea0aef0 100644
--- a/noncore/settings/packagemanager/oipkgconfigdlg.cpp
+++ b/noncore/settings/packagemanager/oipkgconfigdlg.cpp
@@ -33,2 +33,4 @@ _;:, .> :=|. This program is free software; you can
+#include <opie2/ofiledialog.h>
+
#include <qpe/resource.h>
@@ -85,4 +87,2 @@ OIpkgConfigDlg::OIpkgConfigDlg( OIpkg *ipkg, bool installOptions, QWidget *paren
}
-
- //showMaximized();
}
@@ -257,3 +257,3 @@ void OIpkgConfigDlg::initDestinationWidget()
QWhatsThis::add( m_destName, tr( "Enter the name of this entry here." ) );
- grplayout->addWidget( m_destName, 0, 1 );
+ grplayout->addMultiCellWidget( m_destName, 0, 0, 1, 2 );
@@ -265,2 +265,7 @@ void OIpkgConfigDlg::initDestinationWidget()
grplayout->addWidget( m_destLocation, 1, 1 );
+ btn = new QPushButton( Resource::loadPixmap( "folder" ), QString::null, grpbox );
+ btn->setMaximumWidth( btn->height() );
+ QWhatsThis::add( btn, tr( "Tap here to select the desired location." ) );
+ connect( btn, SIGNAL(clicked()), this, SLOT(slotDestSelectPath()) );
+ grplayout->addWidget( btn, 1, 2 );
@@ -268,3 +273,3 @@ void OIpkgConfigDlg::initDestinationWidget()
QWhatsThis::add( m_destActive, tr( "Tap here to indicate whether this entry is active or not." ) );
- grplayout->addMultiCellWidget( m_destActive, 2, 2, 0, 1 );
+ grplayout->addMultiCellWidget( m_destActive, 2, 2, 0, 2 );
@@ -273,3 +278,3 @@ void OIpkgConfigDlg::initDestinationWidget()
connect( btn, SIGNAL(clicked()), this, SLOT(slotDestUpdate()) );
- grplayout->addMultiCellWidget( btn, 3, 3, 0, 1 );
+ grplayout->addMultiCellWidget( btn, 3, 3, 0, 2 );
}
@@ -586,2 +591,10 @@ void OIpkgConfigDlg::slotDestDelete()
+void OIpkgConfigDlg::slotDestSelectPath()
+{
+ QString path = Opie::Ui::OFileDialog::getDirectory( 0, m_destLocation->text() );
+ if ( path.at( path.length() - 1 ) == '/' )
+ path.truncate( path.length() - 1 );
+ m_destLocation->setText( path );
+}
+
void OIpkgConfigDlg::slotDestUpdate()