aboutsummaryrefslogtreecommitdiffstats
path: root/src/controls/qquicktextarea_p.h
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dedietrich@theqtcompany.com>2015-07-31 11:15:49 +0200
committerMitch Curtis <mitch.curtis@theqtcompany.com>2015-08-03 11:52:17 +0000
commit6a5abae266f20aed0bc5961cc0b4447d69599981 (patch)
tree5631ec08d2fa4e3fbc913e33e38a4ad794ed8bba /src/controls/qquicktextarea_p.h
parentbf7ea19f533fd7258bffb756080618168660ac8e (diff)
TextArea: Add pressAndHold signal
We factorize the feature code identical to TextField's into a helper class. Change-Id: I4496f2d192a023f6a6c03ed81d81bca4c08a59d0 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
Diffstat (limited to 'src/controls/qquicktextarea_p.h')
-rw-r--r--src/controls/qquicktextarea_p.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/controls/qquicktextarea_p.h b/src/controls/qquicktextarea_p.h
index edf81942..f952f304 100644
--- a/src/controls/qquicktextarea_p.h
+++ b/src/controls/qquicktextarea_p.h
@@ -55,6 +55,7 @@ QT_BEGIN_NAMESPACE
class QQuickText;
class QQuickTextAreaPrivate;
+class QQuickMouseEvent;
class Q_QUICKCONTROLS_EXPORT QQuickTextArea : public QQuickTextEdit
{
@@ -75,10 +76,15 @@ public:
Q_SIGNALS:
void backgroundChanged();
void placeholderChanged();
+ void pressAndHold(QQuickMouseEvent *event);
protected:
void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry) Q_DECL_OVERRIDE;
QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *data) Q_DECL_OVERRIDE;
+ void mousePressEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
+ void mouseMoveEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
+ void mouseReleaseEvent(QMouseEvent *event) Q_DECL_OVERRIDE;
+ void timerEvent(QTimerEvent *event) Q_DECL_OVERRIDE;
private:
Q_DISABLE_COPY(QQuickTextArea)