summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--libopie/ofileselector.cc4
-rw-r--r--libopie/ofileview.h6
2 files changed, 5 insertions, 5 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 )
if( !info->isWritable() ){
locked = true;
pix = Resource::loadPixmap("locked" );
}
}
}
new OFileSelectorItem( m_View, pix, name,
info->lastModified().toString(),
QString::number( info->size() ),
dir, locked );
}
-void OFileSelector::addDir(const QString &mime, QFileInfo *info, bool symlink )
+void OFileSelector::addDir(const QString &/*mime*/, QFileInfo *info, bool symlink )
{
if(!m_dir )
return;
//if( showDirs )
{
bool locked=false;
QString name;
QPixmap pix;
if( ( m_mode == OPEN && !info->isReadable() ) || ( m_mode == SAVE && !info->isWritable() ) ){
locked = true;
if( symlink ){
pix = (*m_pixmaps)["symlinkedlocked"];
@@ -968,25 +968,25 @@ void OFileSelector::slotCurrentChanged(QListViewItem *item )
// qWarning("is not dir" );
if(m_shLne ){
m_edit->setText(sel->text(1) );
// qWarning("setTexy" );
}
}
}else {
qWarning("mode not extended" );
}
}
// either select or change dir
-void OFileSelector::slotClicked( int button, QListViewItem *item, const QPoint &point, int )
+void OFileSelector::slotClicked( int button, QListViewItem *item, const QPoint &/*point*/, int )
{
if( item == 0 )
return;
if( button != Qt::LeftButton )
return;
// qWarning("clicked" );
if(m_selector == EXTENDED || m_selector == EXTENDED_ALL ){
// qWarning("inside" );
OFileSelectorItem *sel = (OFileSelectorItem*)item;
if(!sel->isLocked() ){ // not locked either changedir or open
diff --git a/libopie/ofileview.h b/libopie/ofileview.h
index 48a71ca..ed256f1 100644
--- a/libopie/ofileview.h
+++ b/libopie/ofileview.h
@@ -33,47 +33,47 @@
#include <qwidget.h>
class QFileInfo;
class QDir;
class DocLnk;
class OFileSelectorView : public QWidget {
Q_OBJECT
public:
OFileSelectorView(QWidget *widget,
const char *name )
: QWidget(widget, name )
{ };
- virtual ~OFileSelectorView();
+ virtual ~OFileSelectorView() = 0;
virtual void addFile(const QString &mine,
QFileInfo *info,
bool isSymlink = FALSE ) = 0;
virtual void addDir (const QString &mine,
QFileInfo *info,
bool isSymlink = FALSE ) = 0;
virtual void addSymlink(const QString &mime,
QFileInfo *info,
bool isSymlink = FALSE ) = 0;
- virtual void cd(const QString &path );
+ virtual void cd(const QString &path ) = 0;
signals:
void fileSelected(const QString &);
void fileSelected(const DocLnk & );
void contextMenu();
void changedDir(const QString &);
void changedDir(const QDir & );
};
class OFileViewFactory {
// Q_OBJECT
public:
OFileViewFactory() {} ;
- virtual ~OFileViewFactory();
+ virtual ~OFileViewFactory() = 0;
OFileSelectorView* newView(QWidget *parent, const char *name );
QString name()const;
};
#endif