1#ifndef ProjectItemTreeView_h
2#define ProjectItemTreeView_h
12#include "AbstractProjectItemView.h"
virtual ProjectItemModel * model()
Returns the model used by the view.
AbstractProjectItemView(QWidget *parent=0)
Constructs the AbstractProjectItemView.
Represents an item of a ProjectItemModel in Qt's model-view framework.
Provides access to data stored in a Project through Qt's model-view framework.
virtual void setInternalModel(ProjectItemModel *model)
Sets the model so that the internal proxy model exactly matches the source model.
~ProjectItemTreeView()
Default destructor.
QTreeView * m_treeView
The tree view (widget)
bool eventFilter(QObject *watched, QEvent *event)
Filters out drag and drop events so that they are handled by the ProjectItemTreeView.
void onItemAdded(ProjectItem *item)
Expands the parent project item in the tree view to show the added item.
QTreeView * treeView()
Returns the tree view.
ProjectItemTreeView(QWidget *parent=0)
Constructs a ProjectItemTreeView.
virtual QSize sizeHint() const
Returns the suggested size.
This is free and unencumbered software released into the public domain.