forked from qt-creator/qt-creator
Class view: Add drag & drop onto editor splits
Change-Id: I35bc03d4e963500a7edf37d6f9d0ddd0a6c68529 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -43,21 +43,19 @@ class TreeItemModel : public QStandardItemModel
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit TreeItemModel(QObject *parent=0);
|
||||
explicit TreeItemModel(QObject *parent = 0);
|
||||
virtual ~TreeItemModel();
|
||||
|
||||
void moveRootToTarget(const QStandardItem *target);
|
||||
|
||||
//! \implements QStandardItemModel::data
|
||||
QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
|
||||
bool canFetchMore(const QModelIndex &parent) const;
|
||||
void fetchMore(const QModelIndex &parent);
|
||||
bool hasChildren(const QModelIndex &parent = QModelIndex()) const;
|
||||
|
||||
//! \implements QStandardItemModel::canFetchMore
|
||||
virtual bool canFetchMore(const QModelIndex &parent) const;
|
||||
|
||||
//! \implements QStandardItemModel::fetchMore
|
||||
virtual void fetchMore(const QModelIndex &parent);
|
||||
|
||||
virtual bool hasChildren(const QModelIndex &parent = QModelIndex()) const;
|
||||
Qt::DropActions supportedDragActions() const;
|
||||
QStringList mimeTypes() const;
|
||||
QMimeData *mimeData(const QModelIndexList &indexes) const;
|
||||
|
||||
private:
|
||||
//! private class data pointer
|
||||
|
||||
Reference in New Issue
Block a user