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&)));
61 QVariant value = item->
data(0, Qt::CheckStateRole);
66 emit
toggled(item, value.toBool());
A tree view for the data sources of an application.
A class that represents an item from a DataSourceTreeModel.