Doc: Make Qt Gui snippets compilable - textdocument-texttable

Task-number: QTBUG-81486
Change-Id: If77873649aa10552047e0f89a7fccf55597e73f5
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
This commit is contained in:
Nico Vertriest 2020-08-05 11:54:12 +02:00 committed by Paul Wicking
parent b16b7d8879
commit e596f15a45
3 changed files with 11 additions and 3 deletions

View File

@ -24,5 +24,6 @@ contains(QT_BUILD_PARTS, tests) {
textdocument-printing \
textdocument-resources \
textdocument-selections \
textdocument-tables
textdocument-tables \
textdocument-texttable
}

View File

@ -47,8 +47,9 @@
** $QT_END_LICENSE$
**
****************************************************************************/
#include <QtGui>
#include <QApplication>
#include <QTextEdit>
#include <QTextTable>
int main(int argc, char * argv[])
{

View File

@ -0,0 +1,6 @@
TEMPLATE = lib
TARGET = textdocument-texttable
QT += core gui widgets
SOURCES = \
main.cpp \