summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/ofileselector/ofileselector.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/libopie/ofileselector/ofileselector.cpp b/libopie/ofileselector/ofileselector.cpp
index c52aa62..458d432 100644
--- a/libopie/ofileselector/ofileselector.cpp
+++ b/libopie/ofileselector/ofileselector.cpp
@@ -967,56 +967,58 @@ int OFileSelector::filter() {
967 967
968 return filter; 968 return filter;
969} 969}
970int OFileSelector::sorting() { 970int OFileSelector::sorting() {
971 int sort; 971 int sort;
972 972
973 if (m_case ) 973 if (m_case )
974 sort = ( QDir::IgnoreCase | QDir::Name | QDir::DirsFirst | QDir::Reversed ); 974 sort = ( QDir::IgnoreCase | QDir::Name | QDir::DirsFirst | QDir::Reversed );
975 else 975 else
976 sort = ( QDir::Name | QDir::DirsFirst | QDir::Reversed ); 976 sort = ( QDir::Name | QDir::DirsFirst | QDir::Reversed );
977 977
978 return sort; 978 return sort;
979} 979}
980void OFileSelector::internFileSelected( const QString& s) { 980void OFileSelector::internFileSelected( const QString& s) {
981 emit fileSelected( s ); 981 emit fileSelected( s );
982} 982}
983void OFileSelector::internFileSelected( const DocLnk& d ) { 983void OFileSelector::internFileSelected( const DocLnk& d ) {
984 emit fileSelected( d ); 984 emit fileSelected( d );
985} 985}
986void OFileSelector::internContextMenu() { 986void OFileSelector::internContextMenu() {
987 emit contextMenu(); 987 emit contextMenu();
988} 988}
989void OFileSelector::internChangedDir( const QString& s) { 989void OFileSelector::internChangedDir( const QString& s) {
990 emit dirSelected( s ); 990 emit dirSelected( s );
991 cd(s ); 991 cd(s );
992} 992}
993void OFileSelector::internChangedDir( const QDir& s) { 993void OFileSelector::internChangedDir( const QDir& s) {
994 emit dirSelected( s ); 994 emit dirSelected( s );
995} 995}
996QPixmap OFileSelector::pixmap( const QString& s ) { 996QPixmap OFileSelector::pixmap( const QString& s ) {
997 997
998 return (*m_pixmaps)[s]; 998 return (*m_pixmaps)[s];
999} 999}
1000OLister* OFileSelector::currentLister()const { 1000OLister* OFileSelector::currentLister()const {
1001 return m_lister; 1001 return m_lister;
1002} 1002}
1003void OFileSelector::initializeOldSelector() { 1003void OFileSelector::initializeOldSelector() {
1004 qWarning("initializeOldSelector"); 1004 qWarning("initializeOldSelector");
1005 1005
1006 delete m_select; 1006 delete m_select;
1007 1007
1008 // we need to initialize but keep the selected mimetype 1008 // we need to initialize but keep the selected mimetype
1009 /* we default not to show close and new buttons */ 1009 /* we default not to show close and new buttons */
1010 QString mime = currentMimeType(); 1010 QString mime = currentMimeType();
1011 qWarning("MimeType " + mime ); 1011 qWarning("MimeType " + mime );
1012 m_select = new FileSelector( mime , 1012 m_select = new FileSelector( mime ,
1013 m_mainView, "fileselector", 1013 m_mainView, "fileselector",
1014 FALSE, FALSE); 1014 FALSE, FALSE);
1015 m_select->setCategorySelectVisible( FALSE );
1016 m_select->setTypeComboVisible( FALSE );
1015 1017
1016 connect(m_select, SIGNAL(fileSelected( const DocLnk & ) ), 1018 connect(m_select, SIGNAL(fileSelected( const DocLnk & ) ),
1017 this, SLOT( slotFileBridgeSelected(const DocLnk & ) ) ); 1019 this, SLOT( slotFileBridgeSelected(const DocLnk & ) ) );
1018 connect(m_select, SIGNAL(closeMe() ), 1020 connect(m_select, SIGNAL(closeMe() ),
1019 this, SIGNAL(closeMe() ) ); 1021 this, SIGNAL(closeMe() ) );
1020 //connect to close me and other signals as well 1022 //connect to close me and other signals as well
1021 m_mainView->setWidget( m_select ); 1023 m_mainView->setWidget( m_select );
1022} 1024}