lokalize
dbfilesmodel.cpp
Go to the documentation of this file.
91 const QString& fileName=m_fileSystemModel->index(source_row, 0, source_parent).data().toString();
92 return (fileName.endsWith(tmFileExtension) && !fileName.endsWith("-journal.db")) || fileName.endsWith(remoteTmExtension);
119 if (QFileInfo(KStandardDirs::locateLocal("appdata", name % REMOTETM_DATABASE_EXTENSION)).exists())
179 connect(closeDBJob,SIGNAL(done(ThreadWeaver::Job*)),this,SLOT(closeJobDone(ThreadWeaver::Job*)));
206 if (role!=Qt::DisplayRole && role!=NameRole && index.column()<4) return QSortFilterProxyModel::data(index, role);
209 QString res=QSortFilterProxyModel::data(index.sibling(index.row(), 0), QFileSystemModel::FileNameRole).toString();
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const
Definition: dbfilesmodel.h:39
Definition: dbfilesmodel.h:57
bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const
Definition: dbfilesmodel.cpp:86
Definition: dbfilesmodel.h:46
virtual void setSourceModel(QAbstractItemModel *sourceModel)
bool remove()
QMap< QString, TMConfig > m_configurations
Definition: dbfilesmodel.h:102
QModelIndex setRootPath(const QString &newPath)
int size() const
QVariant data(const QModelIndex &index, int role=Qt::DisplayRole) const
Definition: dbfilesmodel.cpp:203
Definition: jobs.h:43
void chop(int n)
Definition: dbfilesmodel.h:47
virtual int rowCount(const QModelIndex &parent) const
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const
void updateStats(const QModelIndex &topLeft, const QModelIndex &bottomRight)
Definition: dbfilesmodel.cpp:137
void setFilter(QFlags< QDir::Filter > filters)
bool isValid() const
int elapsed() const
void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
void calcStats(const QModelIndex &parent, int start, int end)
Definition: dbfilesmodel.cpp:148
void closeJobDone(ThreadWeaver::Job *)
Definition: dbfilesmodel.cpp:183
int row() const
Definition: dbfilesmodel.h:48
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
QVariant headerData(int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
Definition: dbfilesmodel.cpp:100
void deleteLater()
Definition: jobs.h:74
QModelIndex parent() const
static QString remoteTmExtension(REMOTETM_DATABASE_EXTENSION)
QVariant data(int role) const
void setNameFilters(const QStringList &filters)
virtual QModelIndex mapFromSource(const QModelIndex &sourceIndex) const
QModelIndex sibling(int row, int column) const
QString rootPath() const
Definition: jobs.h:110
static QString tmFileExtension(TM_DATABASE_EXTENSION)
int column() const
Definition: dbfilesmodel.h:49
int columnCount(const QModelIndex &parent=QModelIndex()) const
Definition: dbfilesmodel.cpp:197
void start()
void rowsInserted(const QModelIndex &parent, int start, int end)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QString toString() const
virtual QVariant data(const QModelIndex &index, int role) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.