35 connect(
this, SIGNAL(
clicked(
const QModelIndex&)),
this, SLOT(
itemClicked(
const QModelIndex&)));
37 connect(
this, SIGNAL(
entered(
const QModelIndex&)),
this, SLOT(
itemEntered(
const QModelIndex&)));
38 connect(
this, SIGNAL(
pressed(
const QModelIndex&)),
this, SLOT(
itemPressed(
const QModelIndex&)));
63 QVariant value = item->
data(0, Qt::CheckStateRole);
68 emit toggled(item, value.toBool());
75 emit doubleClicked(item);
A tree view for the data sources of an application.
A class that represents an item from a DataSourceTreeModel.