Go to the documentation of this file.
31 #include <QStringList>
51 QVariant
data(
const QModelIndex&
index,
int role)
const override;
58 Qt::ItemFlags
flags(
const QModelIndex&
index)
const override;
76 QMimeData*
mimeData(
const QModelIndexList& indexes)
const override;
86 void clear()
override;
ApplicationDatabaseModel()
Constructor that sets up the first item contained by this model.
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const override
QStringList mimeTypes() const override
Returns supported MIME-types.
This class represents an item in the ApplicationDatabaseView.
ApplicationDatabaseItem * getRootItem()
void update()
Updates the model.
void clear() override
Clears and resets this model as if it was newly constructed.
Qt::ItemFlags flags(const QModelIndex &index) const override
Returns the behavioural flags of the object at the specified index.
Model underlying the ApplicationDatabaseView.
QMimeData * mimeData(const QModelIndexList &indexes) const override
Returns the mimedata of the objects at the specified indexes.
QVariant data(const QModelIndex &index, int role) const override
Returns the data at the specified index, depending on the specified role.
Qt::DropActions supportedDragActions() const override
Returns the supported drag action.
std::shared_ptr< ApplicationDatabaseModel > ApplicationDatabaseModelPtr