X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fclickable.h;h=eb89a36c77ef52f992a736cede9bf8cbb6d7246a;hp=ce8d9a6d9cf4f33fbccd3f99c567d1039eb27206;hb=86bd6b1ffb870e65af6d830a2ea16471c348ed5a;hpb=55579f53f3bd37f2a20d9be7458bdc54b345a052 diff --git a/src/uisupport/clickable.h b/src/uisupport/clickable.h index ce8d9a6d..eb89a36c 100644 --- a/src/uisupport/clickable.h +++ b/src/uisupport/clickable.h @@ -23,6 +23,10 @@ #include +#include "types.h" + +class QModelIndex; + class Clickable { public: @@ -44,6 +48,8 @@ public: inline bool isValid() const { return _type != Invalid; } + void activate(NetworkId networkId, const QString &bufferName) const; + private: Type _type; quint16 _start; @@ -55,6 +61,8 @@ class ClickableList : public QList { public: static ClickableList fromString(const QString &); + Clickable atCursorPos(int idx); + }; #endif // CLICKABLE_H_