DNSSD
Go to the documentation of this file.
23 #include <qstringlist.h>
28 struct DomainModelPrivate
30 DomainBrowser* m_browser;
38 browser->setParent(
this);
39 connect(browser, SIGNAL(domainAdded(
QString)),
this,
40 SIGNAL(layoutChanged()));
41 connect(browser, SIGNAL(domainRemoved(
QString)),
this,
42 SIGNAL(layoutChanged()));
58 return (parent.isValid()) ? 0 : d->m_browser->domains().size();
69 return hasIndex(row, column, parent) ? createIndex(row, column) : QModelIndex();
74 if (parent.isValid())
return false;
75 if (column!=0)
return false;
76 if (row<0 || row>=
rowCount(parent))
return false;
82 if (!index.isValid())
return QVariant();
83 if (!
hasIndex(index.row(), index.column(), index.parent()))
return QVariant();
85 if (role==Qt::DisplayRole)
return domains[index.row()];
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Wed Mar 20 2013 07:20:23 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.