tests/auto/qtextscriptengine/generate/main.cpp
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
    38 ** $QT_END_LICENSE$
    38 ** $QT_END_LICENSE$
    39 **
    39 **
    40 ****************************************************************************/
    40 ****************************************************************************/
    41 
    41 
    42 
    42 
    43 #include <QtTest/QtTest>
    43 #include <QApplication>
    44 #include <QTextEdit>
    44 #include <QTextEdit>
    45 #include <QLineEdit>
    45 #include <QLineEdit>
    46 #include <QVBoxLayout>
    46 #include <QVBoxLayout>
    47 #include <QFontDialog>
    47 #include <QFontDialog>
    48 #include <QPushButton>
    48 #include <QPushButton>
    83     result += "{ { ";
    83     result += "{ { ";
    84     for (int i = 0; i < str.length(); ++i) 
    84     for (int i = 0; i < str.length(); ++i) 
    85         result += "0x" + QString::number(str.at(i).unicode(), 16) + ", ";
    85         result += "0x" + QString::number(str.at(i).unicode(), 16) + ", ";
    86     result += "0x0 },\n  { ";
    86     result += "0x0 },\n  { ";
    87     for (int i = 0; i < e->layoutData->items[0].num_glyphs; ++i)
    87     for (int i = 0; i < e->layoutData->items[0].num_glyphs; ++i)
    88 	result += "0x" + QString::number(e->layoutData->glyphPtr[i].glyph, 16) + ", ";
    88         result += "0x" + QString::number(e->layoutData->glyphLayout.glyphs[i], 16) + ", ";
    89     result += "0x0 } }";
    89     result += "0x0 } }";
    90 
    90 
    91     setPlainText(result);
    91     setPlainText(result);
    92 }
    92 }
    93 
    93