53 QVariant
data(
const QModelIndex&
index,
int role)
const override;
60 Qt::ItemFlags
flags(
const QModelIndex&
index)
const override;
78 QMimeData*
mimeData(
const QModelIndexList& indexes)
const override;
88 void clear()
override;
std::shared_ptr< ApplicationDatabaseModel > ApplicationDatabaseModelPtr
This class represents an item in the ApplicationDatabaseView.
QStringList mimeTypes() const override
Returns supported MIME-types.
ApplicationDatabaseItem * getRootItem()
ApplicationDatabaseModel()
Constructor that sets up the first item contained by this model.
Qt::ItemFlags flags(const QModelIndex &index) const override
Returns the behavioural flags of the object at the specified index.
Qt::DropActions supportedDragActions() const override
Returns the supported drag action.
void update()
Updates the model.
void clear() override
Clears and resets this model as if it was newly constructed.
QMimeData * mimeData(const QModelIndexList &indexes) const override
Returns the mimedata of the objects at the specified indexes.
TreeModel(QObject *parent=0)
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const override