Skip to content

Commit

Permalink
translateme/qt: do not depend on a X server
Browse files Browse the repository at this point in the history
Change-Id: I59098bbe3cc18c735de2e264594ef5424414e005
Reviewed-on: http://gerrit.aldebaran.lan/63913
Tested-by: gerrit
Reviewed-by: vbarbaresi <[email protected]>
  • Loading branch information
dmerejkowsky committed Oct 22, 2015
1 parent dbbfcfd commit 4288ca6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/qibuild/test/projects/translateme/qt/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Use of this source code is governed by a BSD-style license that can be
* found in the COPYING file.
*/
#include <QApplication>
#include <QCoreApplication>
#include <QPushButton>
#include <QTranslator>
#include <QDebug>
Expand All @@ -12,7 +12,7 @@

int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QCoreApplication app(argc, argv);
if (argc < 3) {
std::cerr << "Usage: translateme QM_DIR LOCALE" << std::endl;
return 1;
Expand All @@ -26,7 +26,7 @@ int main(int argc, char *argv[])
translator.load(fileName, qmDir);
app.installTranslator(&translator);

QString hello = QApplication::tr("Hello world!");
QString hello = QCoreApplication::tr("Hello world!");
std::cout << hello.toUtf8().data();

return 0;
Expand Down

0 comments on commit 4288ca6

Please sign in to comment.