summaryrefslogtreecommitdiff
path: root/libopie/ofileselector/ofilelistview.cpp
Unidiff
Diffstat (limited to 'libopie/ofileselector/ofilelistview.cpp') (more/less context) (show whitespace changes)
-rw-r--r--libopie/ofileselector/ofilelistview.cpp20
1 files changed, 15 insertions, 5 deletions
diff --git a/libopie/ofileselector/ofilelistview.cpp b/libopie/ofileselector/ofilelistview.cpp
index 691bf42..9cfdc48 100644
--- a/libopie/ofileselector/ofilelistview.cpp
+++ b/libopie/ofileselector/ofilelistview.cpp
@@ -43,12 +43,13 @@ OFileListView::~OFileListView() {
43void OFileListView::clear() { 43void OFileListView::clear() {
44 QListView::clear(); 44 QListView::clear();
45} 45}
46void OFileListView::addFile( const QPixmap& pix, 46void OFileListView::addFile( const QPixmap& pix,
47 const QString&, 47 const QString&,
48 QFileInfo* info, 48 QFileInfo* info,
49 const QString& /*extra*/,
49 bool isSymlink ) { 50 bool isSymlink ) {
50 QString dir; 51 QString dir;
51 QString name; 52 QString name;
52 bool locked = false; 53 bool locked = false;
53 54
54 dir = info->dirPath( true ); 55 dir = info->dirPath( true );
@@ -67,17 +68,21 @@ void OFileListView::addFile( const QPixmap& pix,
67 info->lastModified().toString(), 68 info->lastModified().toString(),
68 QString::number( info->size() ), 69 QString::number( info->size() ),
69 dir, locked ); 70 dir, locked );
70} 71}
71void OFileListView::addFile( const QPixmap&, 72void OFileListView::addFile( const QPixmap&,
72 const QString& /*mime*/, const QString& /*dir*/, 73 const QString& /*mime*/, const QString& /*dir*/,
73 const QString& /*file*/, bool /*isSyml*/ ) { 74 const QString& /*file*/,
75 const QString& /*extra*/,
76 bool /*isSyml*/ ) {
74 77
75} 78}
76void OFileListView::addDir( const QPixmap& pix, const QString&, 79void OFileListView::addDir( const QPixmap& pix, const QString&,
77 QFileInfo* info, bool symlink ) { 80 QFileInfo* info,
81 const QString& /*extra */,
82 bool symlink ) {
78 83
79 bool locked = false; 84 bool locked = false;
80 QString name; 85 QString name;
81 86
82 name = symlink ? info->fileName() + "->" + info->dirPath(true) + "/" +info->readLink() : info->fileName() ; 87 name = symlink ? info->fileName() + "->" + info->dirPath(true) + "/" +info->readLink() : info->fileName() ;
83 88
@@ -87,24 +92,29 @@ void OFileListView::addDir( const QPixmap& pix, const QString&,
87 info->dirPath( true ), locked, 92 info->dirPath( true ), locked,
88 true ); 93 true );
89 94
90} 95}
91void OFileListView::addDir( const QPixmap&, 96void OFileListView::addDir( const QPixmap&,
92 const QString& /*mime*/, const QString& /*dir*/, 97 const QString& /*mime*/, const QString& /*dir*/,
93 const QString& /*file*/, bool ) { 98 const QString& /*file*/,
99 const QString& /*extra*/,
100 bool ) {
94 101
95} 102}
96void OFileListView::addSymlink( const QPixmap&, 103void OFileListView::addSymlink( const QPixmap&,
97 const QString& /*mime*/, 104 const QString& /*mime*/,
98 QFileInfo* /*info*/, 105 QFileInfo* /*info*/,
106 const QString& /*extra*/,
99 bool /*isSym*/ ) { 107 bool /*isSym*/ ) {
100 108
101} 109}
102void OFileListView::addSymlink(const QPixmap&, 110void OFileListView::addSymlink(const QPixmap&,
103 const QString& /*m*/, const QString& /*path*/, 111 const QString& /*m*/, const QString& /*path*/,
104 const QString& /*file*/, bool /*isSym*/ ) { 112 const QString& /*file*/,
113 const QString& /*extra*/,
114 bool /*isSym*/ ) {
105 115
106} 116}
107void OFileListView::cd( const QString& ) { 117void OFileListView::cd( const QString& ) {
108 118
109} 119}
110QWidget* OFileListView::widget() { 120QWidget* OFileListView::widget() {
@@ -124,13 +134,13 @@ QStringList OFileListView::selectedNames()const {
124} 134}
125QString OFileListView::selectedPath()const { 135QString OFileListView::selectedPath()const {
126 return QString::null; 136 return QString::null;
127} 137}
128QStringList OFileListView::selectedPaths()const { 138QStringList OFileListView::selectedPaths()const {
129 QStringList list; 139 QStringList list;
130 list << selectedPath(); 140b list << selectedPath();
131 return list; 141 return list;
132} 142}
133int OFileListView::fileCount() { 143int OFileListView::fileCount() {
134 return childCount(); 144 return childCount();
135} 145}
136void OFileListView::sort() { 146void OFileListView::sort() {