summaryrefslogtreecommitdiffstats
path: root/examples/widgets/draganddrop/draggabletext/draggabletext.pro
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2015-10-07 12:03:05 +0200
committerFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2015-10-09 15:59:21 +0000
commitc8cd9f1b9a3d338a12bdccce957d74d515eb9c32 (patch)
treefca6b64875083ce22716c1ed3c6633459bfb93c2 /examples/widgets/draganddrop/draggabletext/draggabletext.pro
parentc55a36cb9015cf1eebd49eaa5b1b4f4ec9b28451 (diff)
Polish DnD Examples.
- Remove class DragLabel in draggabletext and add a static creation function instead since it only has a constructor setting some properties. - Use QRegularExpression instead of QRegExp - Use new connection syntax. - Ensure compilation with DEFINES += QT_NO_CAST_TO_ASCII QT_NO_CAST_FROM_ASCII demonstrating use of QLatin1String vs QStringLiteral. - Streamline code. Change-Id: I2e2ddeb40837dba379990836c77fb72ad7263e2d Reviewed-by: Oliver Wolff <oliver.wolff@theqtcompany.com>
Diffstat (limited to 'examples/widgets/draganddrop/draggabletext/draggabletext.pro')
-rw-r--r--examples/widgets/draganddrop/draggabletext/draggabletext.pro6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/widgets/draganddrop/draggabletext/draggabletext.pro b/examples/widgets/draganddrop/draggabletext/draggabletext.pro
index 2815be1613..1add2a270e 100644
--- a/examples/widgets/draganddrop/draggabletext/draggabletext.pro
+++ b/examples/widgets/draganddrop/draggabletext/draggabletext.pro
@@ -1,10 +1,8 @@
QT += widgets
-HEADERS = draglabel.h \
- dragwidget.h
+HEADERS = dragwidget.h
RESOURCES = draggabletext.qrc
-SOURCES = draglabel.cpp \
- dragwidget.cpp \
+SOURCES = dragwidget.cpp \
main.cpp
# install