/***************************************************************************
- * Copyright (C) 2005-2018 by the Quassel Project *
+ * Copyright (C) 2005-2020 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
{
public:
// Don't change these enums without also changing dependent methods!
- enum Type {
+ enum Type
+ {
Invalid = -1,
Url = 0,
Channel = 1,
};
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; }
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;
quint16 _length;
};
-
class UISUPPORT_EXPORT ClickableList : public std::vector<Clickable>
{
public:
- static ClickableList fromString(const QString &);
+ static ClickableList fromString(const QString&);
Clickable atCursorPos(int idx);
};