Editor: Introduce circular clipboard

This is a clipboard within Creator only. It allows the user to paste/navigate
through the recently copied content by repeatedly triggering a shortcut (which
is by default set to Ctrl+Shift+V).

Task-number: QTCREATORBUG-146
Change-Id: Ie449ab4b304548d5037a0c877bbbc0344d654325
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
Leandro Melo
2011-12-13 12:15:30 +01:00
parent a1aad6eeef
commit b8d9b28f1e
9 changed files with 250 additions and 9 deletions

View File

@@ -254,9 +254,12 @@ public:
public slots:
void setDisplayName(const QString &title);
virtual void copy();
virtual void paste();
virtual void cut();
void circularPaste();
void zoomIn(int range = 1);
void zoomOut(int range = 1);
void zoomReset();
@@ -334,10 +337,10 @@ protected:
void showEvent(QShowEvent *);
// reimplemented to support block selection
QMimeData *createMimeDataFromSelection() const;
bool canInsertFromMimeData(const QMimeData *source) const;
void insertFromMimeData(const QMimeData *source);
QMimeData *duplicateMimeData(const QMimeData *source) const;
static QString msgTextTooLarge(quint64 size);