X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Finputwidget.h;h=fc358f246b1cd4e8cb7d9497f687634be29bfc47;hp=dbf783e468aadd220b14a0e5f18740f534d1f225;hb=dcdc88676f6bf6c961c554e1ff0d160082ba0973;hpb=f3e117c216aaaf7c684326270e96876a608862ef diff --git a/src/qtui/inputwidget.h b/src/qtui/inputwidget.h index dbf783e4..fc358f24 100644 --- a/src/qtui/inputwidget.h +++ b/src/qtui/inputwidget.h @@ -29,6 +29,8 @@ #include "identity.h" #include "network.h" +class InputLine; + class InputWidget : public AbstractItemView { Q_OBJECT @@ -38,6 +40,8 @@ public: const Network *currentNetwork() const; + inline InputLine* inputLine() const { return ui.inputEdit; } + protected slots: virtual void currentChanged(const QModelIndex ¤t, const QModelIndex &previous); virtual void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight); @@ -49,6 +53,7 @@ private slots: void setNetwork(const Network *network); void setIdentity(const IdentityId &identityId); void updateNickSelector() const; + void updateEnabledState(); BufferInfo currentBufferInfo() const; @@ -57,12 +62,9 @@ signals: private: Ui::InputWidget ui; - - bool validBuffer; NetworkId _networkId; IdentityId _identityId; - };