x-tools/Source/main.cc
2024-03-19 13:59:02 +08:00

26 lines
885 B
C++

/***************************************************************************************************
* Copyright 2018-2024 Qsaker(qsaker@foxmail.com). All rights reserved.
*
* The file is encoded using "utf8 with bom", it is a part of QtSwissArmyKnife project.
*
* QtSwissArmyKnife is licensed according to the terms in the file LICENCE in the root of the source
* code directory.
**************************************************************************************************/
#include "sak.h"
#include "application.h"
int main(const int argc, char *argv[])
{
QString appName = QString("QtSwissArmyKnife");
#ifndef SAK_IMPORT_MODULE_PRIVATE
appName += QObject::tr("(Community)");
#endif
sakDoSomethingBeforeAppCreated(argv, appName);
Application app(argc, argv);
int ret = Application::exec();
sakDoSomethingAfterAppExited();
return ret;
}