Doc: Make snippets Qt Gui compilable - textdocument-imagedrop

Task-number: QTBUG-81486
Change-Id: I80b66fce31ba5ee511690283cf56ce4306702b14
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
bb10
Nico Vertriest 2020-08-04 09:29:40 +02:00 committed by Paul Wicking
parent 6283f447cd
commit 2be708b801
3 changed files with 15 additions and 8 deletions

View File

@ -13,5 +13,7 @@ contains(QT_BUILD_PARTS, tests) {
textdocument-css \
textdocument-cursors \
textdocument-end \
textdocument-find
textdocument-find \
textdocument-frames \
textdocument-imagedrop
}

View File

@ -47,16 +47,15 @@
** $QT_END_LICENSE$
**
****************************************************************************/
#include <QtGui>
#include "textedit.h"
#include <QApplication>
int main(int argc, char * argv[])
{
QApplication app(argc, argv);
TextEdit *textEdit = new TextEdit;
textEdit->show();
TextEdit textEdit;
textEdit.show();
return app.exec();
}
}

View File

@ -1,2 +1,8 @@
SOURCES = textedit.cpp main.cpp
HEADERS = textedit.h
TEMPLATE = lib
TARGET = textdocument-imagedrop
QT += core gui widgets
HEADERS = \
textedit.h
SOURCES = \
main.cpp