2 #ifndef __libquark_gui_RecentFileTableModel_hxx 3 #define __libquark_gui_RecentFileTableModel_hxx 51 {
return(_showFullPath); }
61 void addFile(
const QString &path);
83 int findFile(
const QString &path)
const;
94 #endif // __libquark_gui_RecentFileTableModel_hxx void addFile(const QString &path)
Adds a new file to the model.
RecentFileTableModel(const QString &settingName, int maxItems=10, QObject *parent=NULL)
Constructs a new RecentFileTableModel with the given attributes.
virtual void writeItem(const RecentFile &item, QDataStream &stream)
An object representing a recently opened file.
Definition: RecentFile.h++:16
void setShowFullPath(bool showFullPath)
Specifies whether the items will be visually represented by the full paths of the files...
Definition: RecentFileTableModel.h++:46
virtual QString itemMimeType() const
Returns the model's native MIME-type.
virtual ~RecentFileTableModel()
virtual QVariant getFieldValue(const RecentFile &item, int field) const
Returns the value of the given field of an object.
void load()
Loads the model from the settings.
Definition: BarChartView.h++:6
A partial implementation of AbstractTableModel that stores its elements in a QVector.
Definition: BasicTableModel.h++:17
void save()
Saves the model to the settings.
virtual QModelIndex parent(const QModelIndex &index) const
Specified by QAbstractItemModel.
A data model for storing a list of RecentFile objects, representing files that were "recently opened"...
Definition: RecentFileTableModel.h++:22
virtual RecentFile * readItem(QDataStream &stream)
Deserializes an item that is being dropped into the model.
bool showFullPath() const
Tests whether the model shows full paths.
Definition: RecentFileTableModel.h++:50