Doc: Make snippets Qt Gui compilable - textdocument-imagedrop
Task-number: QTBUG-81486 Change-Id: I80b66fce31ba5ee511690283cf56ce4306702b14 Reviewed-by: Topi Reiniö <topi.reinio@qt.io>bb10
parent
6283f447cd
commit
2be708b801
|
|
@ -13,5 +13,7 @@ contains(QT_BUILD_PARTS, tests) {
|
|||
textdocument-css \
|
||||
textdocument-cursors \
|
||||
textdocument-end \
|
||||
textdocument-find
|
||||
textdocument-find \
|
||||
textdocument-frames \
|
||||
textdocument-imagedrop
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue