GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "find-files-model.h"
Public Member Functions | |
find_files_model (QObject *p=0) | |
~find_files_model () | |
void | addFile (const QFileInfo &info) |
void | clear () |
int | columnCount (const QModelIndex &p=QModelIndex()) const |
QVariant | data (const QModelIndex &idx, int role) const |
QIcon | fileIcon (const QModelIndex &p) const |
QFileInfo | fileInfo (const QModelIndex &p) const |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
int | rowCount (const QModelIndex &p=QModelIndex()) const |
void | sort (int column, Qt::SortOrder order=Qt::AscendingOrder) |
Private Attributes | |
QStringList | _columnNames |
QList< QFileInfo > | _files |
int | _sortorder |
Definition at line 32 of file find-files-model.h.
find_files_model::find_files_model | ( | QObject * | p = 0 | ) |
Definition at line 79 of file find-files-model.cc.
References _columnNames, and _sortorder.
find_files_model::~find_files_model | ( | ) |
Definition at line 87 of file find-files-model.cc.
void find_files_model::addFile | ( | const QFileInfo & | info | ) |
Definition at line 102 of file find-files-model.cc.
References _files, and _sortorder.
Referenced by find_files_dialog::look_for_files().
void find_files_model::clear | ( | void | ) |
Definition at line 92 of file find-files-model.cc.
References _files.
Referenced by find_files_dialog::start_find().
int find_files_model::columnCount | ( | const QModelIndex & | p = QModelIndex () | ) | const |
Definition at line 126 of file find-files-model.cc.
References _columnNames.
QVariant find_files_model::data | ( | const QModelIndex & | idx, |
int | role | ||
) | const |
Definition at line 132 of file find-files-model.cc.
References _files, and fileIcon().
QIcon find_files_model::fileIcon | ( | const QModelIndex & | p | ) | const |
QFileInfo find_files_model::fileInfo | ( | const QModelIndex & | p | ) | const |
Definition at line 201 of file find-files-model.cc.
References _files.
Referenced by find_files_dialog::item_double_clicked().
QVariant find_files_model::headerData | ( | int | section, |
Qt::Orientation | orientation, | ||
int | role = Qt::DisplayRole |
||
) | const |
Definition at line 170 of file find-files-model.cc.
References _columnNames.
int find_files_model::rowCount | ( | const QModelIndex & | p = QModelIndex () | ) | const |
Definition at line 120 of file find-files-model.cc.
References _files.
Referenced by find_files_dialog::stop_find().
void find_files_model::sort | ( | int | column, |
Qt::SortOrder | order = Qt::AscendingOrder |
||
) |
Definition at line 180 of file find-files-model.cc.
References _files, and _sortorder.
|
private |
Definition at line 59 of file find-files-model.h.
Referenced by columnCount(), find_files_model(), and headerData().
|
private |
Definition at line 58 of file find-files-model.h.
Referenced by addFile(), clear(), data(), fileIcon(), fileInfo(), rowCount(), and sort().
|
private |
Definition at line 60 of file find-files-model.h.
Referenced by addFile(), find_files_model(), and sort().