bool ChannelsTree::getSelectedChannel(Channel& chan) const { int chanid = selectedChannel(); if(chanid) return getChannel(chanid, chan); return false; }
void IrcQmlChannelGroup::Start () { QObject *root = dView->rootObject(); if (root == 0) { return; } qmlObject = root->findChild<QDeclarativeItem*>("ChannelGroup"); qDebug () << __PRETTY_FUNCTION__ << " qml object " << qmlObject; if (qmlObject == 0) { return; } connect (qmlObject, SIGNAL (selectedChannel (QString)), this, SLOT (ClickedChannel (QString))); connect (qmlObject, SIGNAL (changedChannelBox (qreal, qreal)), this, SLOT (ChangedChannelBox (qreal, qreal))); }