first re-commit.

This commit is contained in:
2025-08-05 22:37:51 +02:00
commit 5295a82aa3
109 changed files with 9928 additions and 0 deletions

59
miniCashConnect/main.cpp Normal file
View File

@@ -0,0 +1,59 @@
/***************************************************************************
miniCashConnect
Copyright © 2022 christoph holzheuer
c.holzheuer@sourceworx.org
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
***************************************************************************/
#include <QApplication>
#include <QPushButton>
#include <QStringList>
#include <QDebug>
#include <QTranslator>
#include <QMutex>
#include <miniCashConnect.h>
#include <mcconnectmainwindow.h>
int main(int argc, char *argv[])
{
QCoreApplication::setOrganizationName ( miniCash::orgName );
QCoreApplication::setOrganizationDomain( miniCash::domainName );
QCoreApplication::setApplicationName ( miniCash::appName );
QApplication application(argc, argv);
/*
qDebug() << " -- first";
myMutex.lock();
qDebug() << " -- second";
myfunc();
myMutex.lock();
qDebug() << " -- third";
*/
QTranslator translator;
QLocale locale;
QStringList list = locale.uiLanguages();
for( const QString& lang : list )
qDebug() << "lang: " << lang;
qDebug() << "name:" << locale.name();
//translator.load( QLocale(), QLatin1String("miniCash"), QLatin1String("_"), QLatin1String(":/i18n"));
//translator.load( "miniCash_en" );
//application.installTranslator( &translator );
MCConnectMainWindow window;
window.show();
return application.exec();
}