summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativetextedit_p.h
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2011-01-17 04:07:33 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2011-01-17 04:07:33 (GMT)
commit8b6674e55118896dfecbcdc1960418dc2064f632 (patch)
tree243889d8c43b7a0bd294866e904b079e0a0b90c0 /src/declarative/graphicsitems/qdeclarativetextedit_p.h
parent62087b2ec0afad240d61a61c7a2972d021e01695 (diff)
downloadQt-8b6674e55118896dfecbcdc1960418dc2064f632.zip
Qt-8b6674e55118896dfecbcdc1960418dc2064f632.tar.gz
Qt-8b6674e55118896dfecbcdc1960418dc2064f632.tar.bz2
Add canPaste property to TextInput and TextEdit
Task-number: QTBUG-16190 Reviewed-by: Martin Jones
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativetextedit_p.h')
-rw-r--r--src/declarative/graphicsitems/qdeclarativetextedit_p.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativetextedit_p.h b/src/declarative/graphicsitems/qdeclarativetextedit_p.h
index 928d100..f28763e 100644
--- a/src/declarative/graphicsitems/qdeclarativetextedit_p.h
+++ b/src/declarative/graphicsitems/qdeclarativetextedit_p.h
@@ -92,6 +92,7 @@ class Q_AUTOTEST_EXPORT QDeclarativeTextEdit : public QDeclarativePaintedItem
Q_PROPERTY(qreal textMargin READ textMargin WRITE setTextMargin NOTIFY textMarginChanged)
Q_PROPERTY(Qt::InputMethodHints inputMethodHints READ inputMethodHints WRITE setInputMethodHints)
Q_PROPERTY(bool selectByMouse READ selectByMouse WRITE setSelectByMouse NOTIFY selectByMouseChanged)
+ Q_REVISION(1) Q_PROPERTY(bool canPaste READ canPaste NOTIFY canPasteChanged)
public:
QDeclarativeTextEdit(QDeclarativeItem *parent=0);
@@ -185,6 +186,8 @@ public:
bool selectByMouse() const;
void setSelectByMouse(bool);
+ bool canPaste() const;
+
virtual void componentComplete();
/* FROM EDIT */
@@ -233,6 +236,7 @@ Q_SIGNALS:
void textMarginChanged(qreal textMargin);
void selectByMouseChanged(bool selectByMouse);
Q_REVISION(1) void linkActivated(const QString &link);
+ Q_REVISION(1) void canPasteChanged();
public Q_SLOTS:
void selectAll();
@@ -251,6 +255,7 @@ private Q_SLOTS:
void updateSelectionMarkers();
void moveCursorDelegate();
void loadCursorDelegate();
+ void q_canPasteChanged();
private:
void updateSize();