X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Finputwidget.h;h=70449d2c6d4c255a96712adfb0bba41e6ecaf583;hp=01daa29361835463d685af0c12a6ccc535cfa257;hb=87828aeae2510b29619aa79a3bd76885e2c1ebd4;hpb=453731c6d3c5eac2df5e98c4f179afabed4451a1 diff --git a/src/qtui/inputwidget.h b/src/qtui/inputwidget.h index 01daa293..70449d2c 100644 --- a/src/qtui/inputwidget.h +++ b/src/qtui/inputwidget.h @@ -27,8 +27,8 @@ #include "buffermodel.h" #include "bufferinfo.h" - -class Network; +#include "identity.h" +#include "network.h" class InputWidget : public QWidget { Q_OBJECT @@ -49,16 +49,18 @@ protected slots: // virtual void closeEditor(QWidget *editor, QAbstractItemDelegate::EndEditHint hint); // virtual void commitData(QWidget *editor); virtual void currentChanged(const QModelIndex ¤t, const QModelIndex &previous); -// virtual void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight); + virtual void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight); // virtual void editorDestroyed(QObject *editor); // virtual void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end); // virtual void rowsInserted(const QModelIndex &parent, int start, int end); // virtual void selectionChanged(const QItemSelection &selected, const QItemSelection &deselected); private slots: - void enterPressed(); + void sendText(QString text); void changeNick(const QString &newNick) const; + void setNetwork(const Network *network); + void setIdentity(const IdentityId &identityId); void updateNickSelector() const; signals: @@ -72,6 +74,8 @@ private: QPointer _bufferModel; QPointer _selectionModel; + NetworkId _networkId; + IdentityId _identityId; };