Doc: Make snippets Qt Gui compilable - textdocument-blocks
Task-number: QTBUG-81486 Change-Id: I663c53d11e4bd3086c4afee0c994d00ecc0c7cad Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
bbbbd642d5
commit
886cc0e442
@ -8,5 +8,6 @@ contains(QT_BUILD_PARTS, tests) {
|
||||
code \
|
||||
draganddrop \
|
||||
qfontdatabase \
|
||||
textdocument-blocks \
|
||||
textdocument-end
|
||||
}
|
||||
|
@ -51,12 +51,13 @@
|
||||
#include <QtGui>
|
||||
|
||||
#include "mainwindow.h"
|
||||
#include <QApplication>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QApplication app(argc, argv);
|
||||
MainWindow *window = new MainWindow;
|
||||
window->resize(640, 480);
|
||||
window->show();
|
||||
MainWindow window;
|
||||
window.resize(640, 480);
|
||||
window.show();
|
||||
return app.exec();
|
||||
}
|
||||
|
@ -1,6 +1,10 @@
|
||||
QT += xml
|
||||
HEADERS = mainwindow.h \
|
||||
xmlwriter.h
|
||||
SOURCES = main.cpp \
|
||||
mainwindow.cpp \
|
||||
xmlwriter.cpp
|
||||
TEMPLATE = lib
|
||||
TARGET = textdocument-blocks_snippets
|
||||
QT += core gui widgets
|
||||
|
||||
HEADERS = \
|
||||
mainwindow.h
|
||||
|
||||
SOURCES = \
|
||||
main.cpp \
|
||||
mainwindow.cpp
|
||||
|
Loading…
x
Reference in New Issue
Block a user