2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Move message context menu to a separate module.

This commit is contained in:
John Preston
2018-01-25 13:10:52 +03:00
parent 65df137610
commit fe1a90bd39
24 changed files with 472 additions and 406 deletions

View File

@@ -48,7 +48,8 @@ public:
}
// Copy to clipboard support.
virtual void copyToClipboard() const {
virtual QString copyToClipboardText() const {
return QString();
}
virtual QString copyToClipboardContextItemText() const {
return QString();

View File

@@ -15,11 +15,8 @@ public:
TextClickHandler(bool fullDisplayed = true) : _fullDisplayed(fullDisplayed) {
}
void copyToClipboard() const override {
auto u = url();
if (!u.isEmpty()) {
QApplication::clipboard()->setText(u);
}
QString copyToClipboardText() const override {
return url();
}
QString tooltip() const override {