Page Menu
Home
Xreate
Search
Configure Global Search
Log In
Docs
Questions
Repository
Issues
Patches
Internal API
Files
F4820057
documentationmodel.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Aug 24, 5:58 AM
Size
1002 B
Mime Type
text/x-c++
Expires
Wed, Aug 26, 5:58 AM (22 h, 59 m)
Engine
blob
Format
Raw Data
Handle
282923
Attached To
rXR Xreate
documentationmodel.h
View Options
#ifndef FILESYSTEMMODEL_H
#define FILESYSTEMMODEL_H
#include <QFileSystemModel>
#include <QJsonObject>
#include "DocumentationProject.h"
class DocumentationModel: public QFileSystemModel {
Q_OBJECT
public:
DocumentationModel(DocumentationProject* docs, QObject *parent);
~DocumentationModel();
bool lessThan(const QModelIndex &left, const QModelIndex &right) const;
bool dropMimeData(const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) Q_DECL_OVERRIDE;
int columnCount(const QModelIndex &parent) const;
QVariant data(const QModelIndex &index, int role) const;
QVariant headerData(int section, Qt::Orientation orientation, int role) const;
Qt::ItemFlags flags(const QModelIndex &index) const;
bool setData(const QModelIndex &idx, const QVariant &value, int role);
DocumentationProject* docs;
signals:
void fileMoved(const QString& path, const QString& pathOld);
};
#endif // FILESYSTEMMODEL_H
Event Timeline
Log In to Comment