summaryrefslogtreecommitdiff
path: root/libopie/ofileselector/olister.cpp
authorzecke <zecke>2002-10-28 21:47:58 (UTC)
committer zecke <zecke>2002-10-28 21:47:58 (UTC)
commit98d46aa752026d53b4cf4ea8572fdf7c89f4c6c0 (patch) (side-by-side diff)
tree3e4a873011de405e5402d7eb53ae1c5c2867246a /libopie/ofileselector/olister.cpp
parentb963230163fc8069731374a19390fd0e5cb42532 (diff)
downloadopie-98d46aa752026d53b4cf4ea8572fdf7c89f4c6c0.zip
opie-98d46aa752026d53b4cf4ea8572fdf7c89f4c6c0.tar.gz
opie-98d46aa752026d53b4cf4ea8572fdf7c89f4c6c0.tar.bz2
Almost done with the new data flow
only OFileSelector needs to adapt it now... Besides that make it compile with the new api Add a configure and a libopie.pro to actually build ofileselector and a MANIFEST to explain some basics of the now a days a bit bigger interface
Diffstat (limited to 'libopie/ofileselector/olister.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/ofileselector/olister.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/libopie/ofileselector/olister.cpp b/libopie/ofileselector/olister.cpp
index 378c69d..ea09940 100644
--- a/libopie/ofileselector/olister.cpp
+++ b/libopie/ofileselector/olister.cpp
@@ -119,4 +119,10 @@ bool OLister::compliesMime( const QString& mime ) {
return view()->compliesMime( mime );
}
+void OLister::internFileSelected( const QString& dir ) {
+ view()->internFileSelected( dir );
+}
+void OLister::internChangedDir( const QString& dir ) {
+ view()->internChangedDir( dir );
+}
OListerCmbAccess* OLister::comboBox() {
if (!m_acc )
@@ -127,5 +133,5 @@ OListerCmbAccess* OLister::comboBox() {
-OListerCmbAccess::OListerCmbAccess(QComboBox* box )
+OListerCmbAccess::OListerCmbAccess(QComboBox* cmb )
: m_cmb( cmb )
{}
@@ -143,8 +149,11 @@ void OListerCmbAccess::setCurrentItem( const QString& add, bool FORCE_ADD) {
for ( int i = 0; i < m_cmb->count(); i++ ) {
if ( m_cmb->text(i) == add ) {
- bo->setCurrentItem( i );
+ m_cmb->setCurrentItem( i );
return;
}
}
+ if (!FORCE_ADD ) return;
+
+
m_cmb->insertItem(add );
m_cmb->setCurrentItem( c );