X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fclickable.h;h=f9b5acb6a5597c04d18b18357ae04fbdd6044f3d;hp=a57513faf3706733ca132d9853772a3ae7157262;hb=c1cf157116de7fc3da96203aa6f03c38c7ebb650;hpb=30b159cb876a9495de42e9a3e70ca050516f0805 diff --git a/src/uisupport/clickable.h b/src/uisupport/clickable.h index a57513fa..f9b5acb6 100644 --- a/src/uisupport/clickable.h +++ b/src/uisupport/clickable.h @@ -34,7 +34,8 @@ class UISUPPORT_EXPORT Clickable { public: // Don't change these enums without also changing dependent methods! - enum Type { + enum Type + { Invalid = -1, Url = 0, Channel = 1, @@ -42,7 +43,9 @@ public: }; explicit inline Clickable(Type type = Invalid, quint16 start = 0, quint16 length = 0) - : _type(type), _start(start), _length(length) + : _type(type) + , _start(start) + , _length(length) {} inline Type type() const { return _type; } @@ -51,7 +54,7 @@ public: inline bool isValid() const { return _type != Invalid; } - void activate(NetworkId networkId, const QString &bufferName) const; + void activate(NetworkId networkId, const QString& bufferName) const; private: Type _type; @@ -59,11 +62,10 @@ private: quint16 _length; }; - class UISUPPORT_EXPORT ClickableList : public std::vector { public: - static ClickableList fromString(const QString &); + static ClickableList fromString(const QString&); Clickable atCursorPos(int idx); };