author | zecke <zecke> | 2002-10-28 19:55:18 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-10-28 19:55:18 (UTC) |
commit | 3ba494eb02e72e1f9a732c46ec8085e843f01eca (patch) (unidiff) | |
tree | cdc0e7af342cd0e205ed4ae1c1da92ced3fd5774 /libopie/ofileselector/ofileselector.cpp | |
parent | e9d8023028b7c996d8ff2a68b87dfde19fcfa892 (diff) | |
download | opie-3ba494eb02e72e1f9a732c46ec8085e843f01eca.zip opie-3ba494eb02e72e1f9a732c46ec8085e843f01eca.tar.gz opie-3ba494eb02e72e1f9a732c46ec8085e843f01eca.tar.bz2 |
This will probably not compile.. i did not even try to compile it
on my machine
I changed the data flow to be more extandable the Olister class
is now playing a bigger role it's dependant on
doing some assembly of the filepath and changedirs.
It now has also to take care of the location bar
Diffstat (limited to 'libopie/ofileselector/ofileselector.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie/ofileselector/ofileselector.cpp | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/libopie/ofileselector/ofileselector.cpp b/libopie/ofileselector/ofileselector.cpp index 4ab744c..0ccb3cb 100644 --- a/libopie/ofileselector/ofileselector.cpp +++ b/libopie/ofileselector/ofileselector.cpp | |||
@@ -384,39 +384,38 @@ QString OFileSelector::currentMimeType() const{ | |||
384 | QMap<QString, QStringList>::ConstIterator it; | 384 | QMap<QString, QStringList>::ConstIterator it; |
385 | it = m_mimetypes.find( currentText ); | 385 | it = m_mimetypes.find( currentText ); |
386 | if ( it != m_mimetypes.end() ) { | 386 | if ( it != m_mimetypes.end() ) { |
387 | mime = it.data().join(";"); | 387 | mime = it.data().join(";"); |
388 | }else{ | 388 | }else{ |
389 | mime = currentText; | 389 | mime = currentText; |
390 | } | 390 | } |
391 | } | 391 | } |
392 | return mime; | 392 | return mime; |
393 | } | 393 | } |
394 | void OFileSelector::slotMimeCheck(const QString &mime) | 394 | void OFileSelector::slotMimeCheck(const QString &mime) |
395 | { | 395 | { |
396 | if( m_selector == Normal ){ | 396 | if( m_selector == Normal ){ |
397 | initializeOldSelector(); | 397 | initializeOldSelector(); |
398 | 398 | ||
399 | updateMimes(); | 399 | updateMimes(); |
400 | updateMimeCheck(); | 400 | updateMimeCheck(); |
401 | m_mimeCheck->setCurrentItem(indexByString( m_mimeCheck, mime) ); | 401 | m_mimeCheck->setCurrentItem(indexByString( m_mimeCheck, mime) ); |
402 | }else{ // others | 402 | }else{ // others |
403 | qWarning("Mime %s", mime.latin1() ); | 403 | qWarning("Mime %s", mime.latin1() ); |
404 | if(m_shChooser ){ | 404 | if(m_shChooser ){ |
405 | qWarning("Current Text %s", m_mimeCheck->currentText().latin1() ); | 405 | qWarning("Current Text %s", m_mimeCheck->currentText().latin1() ); |
406 | //m_mimeCheck->setCurrentItem(indexByString( m_mimeCheck, mime) ); | 406 | //m_mimeCheck->setCurrentItem(indexByString( m_mimeCheck, mime) ); |
407 | } | ||
408 | reparse(); | ||
407 | } | 409 | } |
408 | reparse(); | ||
409 | } | ||
410 | |||
411 | } | 410 | } |
412 | /* | 411 | /* |
413 | * Ok if a non dir gets inserted into this combobox | 412 | * Ok if a non dir gets inserted into this combobox |
414 | * we need to change it | 413 | * we need to change it |
415 | * QFileInfo and dirPath will give us the right Dir | 414 | * QFileInfo and dirPath will give us the right Dir |
416 | */ | 415 | */ |
417 | void OFileSelector::slotLocationActivated(const QString &file) | 416 | void OFileSelector::slotLocationActivated(const QString &file) |
418 | { | 417 | { |
419 | qWarning("slotLocationActivated"); | 418 | qWarning("slotLocationActivated"); |
420 | QString name = file.left( file.find("<-", 0, TRUE ) ); | 419 | QString name = file.left( file.find("<-", 0, TRUE ) ); |
421 | QFileInfo info( name ); | 420 | QFileInfo info( name ); |
422 | if ( info.isFile() ) | 421 | if ( info.isFile() ) |