Doc: Make snippets Qt Gui compilable - textdocument-imageformat
Task-number: QTBUG-81486 Change-Id: I9bf94bb8c82d7751a8615c6e1e3278400e77ce3a Reviewed-by: Topi Reiniö <topi.reinio@qt.io>bb10
parent
2be708b801
commit
935ce5e41d
|
|
@ -15,5 +15,6 @@ contains(QT_BUILD_PARTS, tests) {
|
|||
textdocument-end \
|
||||
textdocument-find \
|
||||
textdocument-frames \
|
||||
textdocument-imagedrop
|
||||
textdocument-imagedrop \
|
||||
textdocument-imageformat
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,8 +47,9 @@
|
|||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include <QtGui>
|
||||
#include <QApplication>
|
||||
#include <QTextBlock>
|
||||
#include <QTextEdit>
|
||||
|
||||
QString tr(const char *text)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1,2 +1,9 @@
|
|||
SOURCES = main.cpp
|
||||
RESOURCES += images.qrc
|
||||
TEMPLATE = lib
|
||||
TARGET = textdocument-imageformat
|
||||
QT += widgets core gui
|
||||
|
||||
SOURCES = \
|
||||
main.cpp
|
||||
|
||||
RESOURCES = \
|
||||
images.qrc
|
||||
|
|
|
|||
Loading…
Reference in New Issue