mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 14:45:14 +00:00
version 0.5.8 prepared, hashtag search support, clearhistory crash fix
This commit is contained in:
@@ -288,6 +288,32 @@ private:
|
||||
|
||||
};
|
||||
|
||||
class HashtagLink : public ITextLink {
|
||||
public:
|
||||
|
||||
HashtagLink(const QString &tag) : _tag(tag) {
|
||||
}
|
||||
|
||||
const QString &text() const {
|
||||
return _tag;
|
||||
}
|
||||
|
||||
void onClick(Qt::MouseButton button) const;
|
||||
|
||||
const QString &readable() const {
|
||||
return _tag;
|
||||
}
|
||||
|
||||
QString encoded() const {
|
||||
return _tag;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
QString _tag;
|
||||
|
||||
};
|
||||
|
||||
static const QChar TextCommand(0x0010);
|
||||
enum TextCommands {
|
||||
TextCommandBold = 0x01,
|
||||
|
Reference in New Issue
Block a user