Page Menu
Home
Xreate
Search
Configure Global Search
Log In
Docs
Questions
Repository
Issues
Patches
Internal API
Files
F3995486
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
Tue, Jul 7, 11:29 AM
Size
1002 B
Mime Type
text/x-c++
Expires
Thu, Jul 9, 11:29 AM (20 h, 23 m)
Engine
blob
Format
Raw Data
Handle
269490
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