projects
/
quassel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
modernize: Reformat ALL the source... again!
[quassel.git]
/
src
/
uisupport
/
clickable.h
diff --git
a/src/uisupport/clickable.h
b/src/uisupport/clickable.h
index
8d1c2f7
..
f9b5acb
100644
(file)
--- a/
src/uisupport/clickable.h
+++ b/
src/uisupport/clickable.h
@@
-20,6
+20,8
@@
#pragma once
#pragma once
+#include "uisupport-export.h"
+
#include <vector>
#include <QStackedWidget>
#include <vector>
#include <QStackedWidget>
@@
-28,11
+30,12
@@
class QModelIndex;
class QModelIndex;
-class Clickable
+class
UISUPPORT_EXPORT
Clickable
{
public:
// Don't change these enums without also changing dependent methods!
{
public:
// Don't change these enums without also changing dependent methods!
- enum Type {
+ enum Type
+ {
Invalid = -1,
Url = 0,
Channel = 1,
Invalid = -1,
Url = 0,
Channel = 1,
@@
-40,7
+43,9
@@
public:
};
explicit inline Clickable(Type type = Invalid, quint16 start = 0, quint16 length = 0)
};
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 Type type() const { return _type; }
@@
-49,7
+54,7
@@
public:
inline bool isValid() const { return _type != Invalid; }
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;
private:
Type _type;
@@
-57,11
+62,10
@@
private:
quint16 _length;
};
quint16 _length;
};
-
-class ClickableList : public std::vector<Clickable>
+class UISUPPORT_EXPORT ClickableList : public std::vector<Clickable>
{
public:
{
public:
- static ClickableList fromString(const QString
&);
+ static ClickableList fromString(const QString&);
Clickable atCursorPos(int idx);
};
Clickable atCursorPos(int idx);
};