forked from qt-creator/qt-creator
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user