summaryrefslogtreecommitdiff
path: root/libopie/ofileselector.cc
Unidiff
Diffstat (limited to 'libopie/ofileselector.cc') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/ofileselector.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/libopie/ofileselector.cc b/libopie/ofileselector.cc
index 0e508af..9cf3f36 100644
--- a/libopie/ofileselector.cc
+++ b/libopie/ofileselector.cc
@@ -882,25 +882,25 @@ void OFileSelector::addFile(const QString &mime, QFileInfo *info, bool symlink )
882 if( !info->isWritable() ){ 882 if( !info->isWritable() ){
883 locked = true; 883 locked = true;
884 pix = Resource::loadPixmap("locked" ); 884 pix = Resource::loadPixmap("locked" );
885 } 885 }
886 } 886 }
887 } 887 }
888 new OFileSelectorItem( m_View, pix, name, 888 new OFileSelectorItem( m_View, pix, name,
889 info->lastModified().toString(), 889 info->lastModified().toString(),
890 QString::number( info->size() ), 890 QString::number( info->size() ),
891 dir, locked ); 891 dir, locked );
892} 892}
893 893
894void OFileSelector::addDir(const QString &mime, QFileInfo *info, bool symlink ) 894void OFileSelector::addDir(const QString &/*mime*/, QFileInfo *info, bool symlink )
895{ 895{
896 if(!m_dir ) 896 if(!m_dir )
897 return; 897 return;
898 //if( showDirs ) 898 //if( showDirs )
899 { 899 {
900 bool locked=false; 900 bool locked=false;
901 QString name; 901 QString name;
902 QPixmap pix; 902 QPixmap pix;
903 if( ( m_mode == OPEN && !info->isReadable() ) || ( m_mode == SAVE && !info->isWritable() ) ){ 903 if( ( m_mode == OPEN && !info->isReadable() ) || ( m_mode == SAVE && !info->isWritable() ) ){
904 locked = true; 904 locked = true;
905 if( symlink ){ 905 if( symlink ){
906 pix = (*m_pixmaps)["symlinkedlocked"]; 906 pix = (*m_pixmaps)["symlinkedlocked"];
@@ -968,25 +968,25 @@ void OFileSelector::slotCurrentChanged(QListViewItem *item )
968// qWarning("is not dir" ); 968// qWarning("is not dir" );
969 if(m_shLne ){ 969 if(m_shLne ){
970 m_edit->setText(sel->text(1) ); 970 m_edit->setText(sel->text(1) );
971// qWarning("setTexy" ); 971// qWarning("setTexy" );
972 } 972 }
973 } 973 }
974 }else { 974 }else {
975 qWarning("mode not extended" ); 975 qWarning("mode not extended" );
976 } 976 }
977} 977}
978 978
979// either select or change dir 979// either select or change dir
980void OFileSelector::slotClicked( int button, QListViewItem *item, const QPoint &point, int ) 980void OFileSelector::slotClicked( int button, QListViewItem *item, const QPoint &/*point*/, int )
981{ 981{
982 if( item == 0 ) 982 if( item == 0 )
983 return; 983 return;
984 984
985 if( button != Qt::LeftButton ) 985 if( button != Qt::LeftButton )
986 return; 986 return;
987 987
988// qWarning("clicked" ); 988// qWarning("clicked" );
989 if(m_selector == EXTENDED || m_selector == EXTENDED_ALL ){ 989 if(m_selector == EXTENDED || m_selector == EXTENDED_ALL ){
990// qWarning("inside" ); 990// qWarning("inside" );
991 OFileSelectorItem *sel = (OFileSelectorItem*)item; 991 OFileSelectorItem *sel = (OFileSelectorItem*)item;
992 if(!sel->isLocked() ){ // not locked either changedir or open 992 if(!sel->isLocked() ){ // not locked either changedir or open