HgStatusList::HgStatusList(QWidget *parent): QGroupBox(parent) { QVBoxLayout *mainLayout = new QVBoxLayout(this); //m_filter = new KLineEdit(this); m_statusTable = new QTableWidget(this); m_statusTable->setColumnCount(3); QStringList headers; headers << "*" << "S" << i18n("Filename"); m_statusTable->setHorizontalHeaderLabels(headers); m_statusTable->verticalHeader()->hide(); m_statusTable->setEditTriggers(QAbstractItemView::NoEditTriggers); m_statusTable->setSelectionBehavior(QAbstractItemView::SelectRows); //mainLayout->addWidget(m_filter); mainLayout->addWidget(m_statusTable); setTitle(i18nc("@title:group", "File Status")); setLayout(mainLayout); reloadStatusTable(); connect(m_statusTable, SIGNAL(itemSelectionChanged()), this, SLOT(itemSelectionChangedSlot())); }
WdgGatewayTree::WdgGatewayTree(QWidget *_p, SoaWg *_w, GtDomain *_c) : QTreeWidget(_p), wg(_w), conflation(_c), guard(false), travel(100) { setMouseTracking(true); setExpandsOnDoubleClick(false); setSortingEnabled(true); setSelectionMode(QAbstractItemView::ExtendedSelection); connect(this, SIGNAL(itemSelectionChanged()), this, SLOT(itemSelectionChangedSlot())); }