Doc: Make snippets Qt Gui compilable - textdocument-cursors
Task-number: QTBUG-81486 Change-Id: If02da7248b6c0299909fad83681fd5f08f3e29d9 Reviewed-by: Topi Reiniö <topi.reinio@qt.io>bb10
parent
0f1c8d437f
commit
d76d37fd1a
|
|
@ -11,5 +11,6 @@ contains(QT_BUILD_PARTS, tests) {
|
|||
textdocument-blocks \
|
||||
textdocument-charformats \
|
||||
textdocument-css \
|
||||
textdocument-cursors \
|
||||
textdocument-end
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,8 +47,8 @@
|
|||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include <QtGui>
|
||||
#include <QApplication>
|
||||
#include <QTextEdit>
|
||||
|
||||
QString tr(const char *text)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1 +1,6 @@
|
|||
SOURCES = main.cpp
|
||||
TEMPLATE = lib
|
||||
TARGET = textdocument-cursors
|
||||
QT += core gui widgets
|
||||
|
||||
SOURCES = \
|
||||
main.cpp
|
||||
|
|
|
|||
Loading…
Reference in New Issue