tools/hwmap2txt/hwmapconverter/main.cpp
author Wuzzy <Wuzzy2@mail.ru>
Thu, 01 Nov 2018 20:29:42 +0100
changeset 14063 b8df809c62bf
parent 11015 7a905f0070ce
permissions -rw-r--r--
Fix game window width/height setting being broken when using Arabic locale Qt displays numbers differently in Arabic. The spinbox window height/width used getText instead of value to get the value, which was wrong because this gets the user-facing string (in arabic) instead of the number to use internally.

#include "mainwindow.h"
#include <QApplication>

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    MainWindow w;
    w.show();

    return a.exec();
}