2
0
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:
John Preston
2014-07-16 10:58:36 +04:00
parent 54095eb515
commit c93e4e27fe
18 changed files with 182 additions and 83 deletions

View File

@@ -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,