- InputLine is deactivated when a Buffer is not active (still gets focus though as FocusProxy seem to be quite radical...)
return _networkId.toInt();
}
return _networkId.toInt();
}
+void NetworkItem::setActive(bool connected) {
+ Q_UNUSED(connected);
+ emit dataChanged();
+}
+
bool NetworkItem::isActive() const {
bool NetworkItem::isActive() const {
+ if(_network)
+ return _network->isConnected();
+ else
+ return false;
}
QString NetworkItem::networkName() const {
}
QString NetworkItem::networkName() const {
this, SLOT(setCurrentServer(QString)));
connect(network, SIGNAL(ircChannelAdded(QString)),
this, SLOT(attachIrcChannel(QString)));
this, SLOT(setCurrentServer(QString)));
connect(network, SIGNAL(ircChannelAdded(QString)),
this, SLOT(attachIrcChannel(QString)));
+ connect(network, SIGNAL(connectedSet(bool)),
+ this, SLOT(setActive(bool)));
+
// FIXME: connect this and that...
emit dataChanged();
// FIXME: connect this and that...
emit dataChanged();
void attachNetwork(Network *network);
void attachIrcChannel(const QString &channelName);
void attachNetwork(Network *network);
void attachIrcChannel(const QString &channelName);
+
+ void setActive(bool connected);
private:
NetworkId _networkId;
private:
NetworkId _networkId;
currentBufferInfo = current.data(NetworkModel::BufferInfoRole).value<BufferInfo>();
updateNickSelector();
currentBufferInfo = current.data(NetworkModel::BufferInfoRole).value<BufferInfo>();
updateNickSelector();
+
+ ui.inputEdit->setEnabled(current.data(NetworkModel::ItemActiveRole).value<bool>());
}
const Network *InputWidget::currentNetwork() const {
}
const Network *InputWidget::currentNetwork() const {
quasselVersion = "0.2.0-pre";
quasselDate = "2008-01-29";
quasselVersion = "0.2.0-pre";
quasselDate = "2008-01-29";
//! Minimum client build number the core needs
clientBuildNeeded = 358;
//! Minimum client build number the core needs
clientBuildNeeded = 358;