Doc: Make snippets Qt Gui compilable - textdocument-charformats
Task-number: QTBUG-81486 Change-Id: I460917c979eb9bd90b9ab7694c0928ab252adae9 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
886cc0e442
commit
860c68522b
@ -9,5 +9,6 @@ contains(QT_BUILD_PARTS, tests) {
|
||||
draganddrop \
|
||||
qfontdatabase \
|
||||
textdocument-blocks \
|
||||
textdocument-charformats \
|
||||
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-charformats
|
||||
QT += core gui widgets
|
||||
|
||||
SOURCES = \
|
||||
main.cpp
|
||||
|
Loading…
Reference in New Issue
Block a user