diff options
author | Thiago Macieira <thiago.macieira@nokia.com> | 2010-03-09 18:19:38 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2010-03-10 19:00:52 (GMT) |
commit | 4d27295ce01b00f27ceb6d9c6c3227425cbf0d70 (patch) | |
tree | 69af904da0222f4dbce31e8a4b1e30923f9b0d6e /src/gui/text/qtextcontrol_p.h | |
parent | a747e171d316b25ba10dc36f6d54d1cbecad5c32 (diff) | |
download | Qt-4d27295ce01b00f27ceb6d9c6c3227425cbf0d70.zip Qt-4d27295ce01b00f27ceb6d9c6c3227425cbf0d70.tar.gz Qt-4d27295ce01b00f27ceb6d9c6c3227425cbf0d70.tar.bz2 |
Make QTextControl-based classes and QLineEdit understand Ctrl+Shift+Insert
On X11, this key is reserved for pasting the text selection
(a.k.a. the PRIMARY selection). KDE apps already honour this, not all
GNOME ones do, but it was agreed with them on xdg@freedesktop.org.
Reviewed-By: mae <qt-info@nokia.com>
Diffstat (limited to 'src/gui/text/qtextcontrol_p.h')
-rw-r--r-- | src/gui/text/qtextcontrol_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/text/qtextcontrol_p.h b/src/gui/text/qtextcontrol_p.h index 40507f4..8399d50 100644 --- a/src/gui/text/qtextcontrol_p.h +++ b/src/gui/text/qtextcontrol_p.h @@ -62,6 +62,7 @@ #include <QtCore/qrect.h> #include <QtGui/qabstracttextdocumentlayout.h> #include <QtGui/qtextdocumentfragment.h> +#include <QtGui/qclipboard.h> #ifdef QT3_SUPPORT #include <QtGui/qtextobject.h> @@ -191,7 +192,7 @@ public Q_SLOTS: #ifndef QT_NO_CLIPBOARD void cut(); void copy(); - void paste(); + void paste(QClipboard::Mode mode = QClipboard::Clipboard); #endif void undo(); |