Doc: Make snippets Qt Gui compilable - textblock-formats
Task-number: QTGUI-81486 Change-Id: I06dd6ce04b4d37c49df07d4b1b47c3ef029ee419 Reviewed-by: Topi Reiniö <topi.reinio@qt.io>bb10
parent
03887ab8a3
commit
b6043dc34e
|
|
@ -9,6 +9,7 @@ contains(QT_BUILD_PARTS, tests) {
|
|||
draganddrop \
|
||||
droparea \
|
||||
qfontdatabase \
|
||||
textblock-formats \
|
||||
textdocument-blocks \
|
||||
textdocument-charformats \
|
||||
textdocument-css \
|
||||
|
|
|
|||
|
|
@ -47,15 +47,15 @@
|
|||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include <QtGui>
|
||||
#include <QApplication>
|
||||
#include <QTextEdit>
|
||||
|
||||
QString tr(const char *text)
|
||||
{
|
||||
return QApplication::translate(text, text);
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
int main_textblock_formats(int argc, char *argv[])
|
||||
{
|
||||
QApplication app(argc, argv);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,2 +1,6 @@
|
|||
QT += xml
|
||||
SOURCES = main.cpp
|
||||
TEMPLATE = lib
|
||||
TARGET = gui_snippets_textblock_formats
|
||||
QT += core gui widgets
|
||||
|
||||
SOURCES = \
|
||||
main.cpp
|
||||
|
|
|
|||
Loading…
Reference in New Issue