summaryrefslogtreecommitdiffstats
path: root/tests/auto/linguist/lupdate/testdata/good/codecforsrc/main.cpp
blob: 2573fbb9789d676e1bd986d9a7a5561afdbc382d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <QApplication>
#include <QtGui>
#include <QtCore>
#include <QTextCodec>

int main(int argc, char **argv)
{
        QApplication a(argc, argv);
        QWidget w;
        QLabel label1(QObject::tr("abc", "ascii"), &w);
        QLabel label2(QObject::tr("æøå", "utf-8"), &w);

//      I would expect the following to work !?
//        QLabel label3(QObject::trUtf8("F\374r \310lise", "trUtf8"), &w);

        w.show();
        return a.exec();
}