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:
@@ -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();
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user