Verified Commit 970f9538 authored by Eugene Popov's avatar Eugene Popov 🇺🇦 Committed by Fushan Wen
Browse files

Revert "Trim very long text strings in Klipper history view"

This reverts commit f9669af2.
parent e9e0a759
......@@ -25,9 +25,3 @@ QMimeData *HistoryStringItem::mimeData() const
data->setText(m_data);
return data;
}
QString HistoryStringItem::text() const
{
const int TEXT_LENGTH_LIMIT = 200;
return m_data.left(TEXT_LENGTH_LIMIT - 1) + (m_data.length() <= TEXT_LENGTH_LIMIT ? QStringLiteral("") : QStringLiteral("…"));
}
......@@ -37,3 +37,8 @@ public:
private:
QString m_data;
};
inline QString HistoryStringItem::text() const
{
return m_data;
}
......@@ -887,7 +887,7 @@ void Klipper::editData(const QSharedPointer<const HistoryItem> &item)
ClipboardContentTextEdit *edit = new ClipboardContentTextEdit(dlg);
edit->setAcceptRichText(false);
if (item) {
edit->setPlainText(item->mimeData()->text());
edit->setPlainText(item->text());
}
edit->setFocus();
edit->setMinimumSize(300, 40);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment