Diffstat (limited to 'libopie/ofileselector/olister.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | libopie/ofileselector/olister.cpp | 13 |
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 @@ -120,2 +120,8 @@ bool OLister::compliesMime( const QString& mime ) { } +void OLister::internFileSelected( const QString& dir ) { + view()->internFileSelected( dir ); +} +void OLister::internChangedDir( const QString& dir ) { + view()->internChangedDir( dir ); +} OListerCmbAccess* OLister::comboBox() { @@ -128,3 +134,3 @@ OListerCmbAccess* OLister::comboBox() { -OListerCmbAccess::OListerCmbAccess(QComboBox* box ) +OListerCmbAccess::OListerCmbAccess(QComboBox* cmb ) : m_cmb( cmb ) @@ -144,3 +150,3 @@ void OListerCmbAccess::setCurrentItem( const QString& add, bool FORCE_ADD) { if ( m_cmb->text(i) == add ) { - bo->setCurrentItem( i ); + m_cmb->setCurrentItem( i ); return; @@ -148,2 +154,5 @@ void OListerCmbAccess::setCurrentItem( const QString& add, bool FORCE_ADD) { } + if (!FORCE_ADD ) return; + + m_cmb->insertItem(add ); |