Index: src/manager/kwmapeditor.h =================================================================== --- src/manager/kwmapeditor.h +++ src/manager/kwmapeditor.h @@ -44,6 +44,7 @@ private Q_SLOTS: void copy(); + void cleanup(); Q_SIGNALS: void dirty(); Index: src/manager/kwmapeditor.cpp =================================================================== --- src/manager/kwmapeditor.cpp +++ src/manager/kwmapeditor.cpp @@ -34,6 +34,7 @@ #include #include #include +#include #include class InlineEditor : public QTextEdit @@ -239,7 +240,13 @@ QTableWidgetItem *twi = item(_contextRow, 2); if (twi) { QApplication::clipboard()->setText(twi->text()); + QTimer::singleShot(30000, this, SLOT(cleanup())); } } +void KWMapEditor::cleanup() +{ + QApplication::clipboard()->setText(QStringLiteral("***redacted***")); +} +