1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00

添加版权信息。

配置文件路径:工作目录
当前工作目录:应用程序所在目录。
按照LGPLv2.1的定义,用户如果修改了这些工作路径,需要开源经过修改的LibQQt。
This commit is contained in:
tianduanrui 2018-11-11 16:21:30 +08:00
parent eb15d1da7a
commit 2e45ed87ad

View File

@ -41,7 +41,7 @@ QQtApplication::QQtApplication ( int& argc, char** argv ) :
QSettings::setPath ( QSettings::IniFormat, QSettings::UserScope, CONFIG_PATH ); QSettings::setPath ( QSettings::IniFormat, QSettings::UserScope, CONFIG_PATH );
QSettings::setPath ( QSettings::IniFormat, QSettings::SystemScope, CONFIG_PATH ); QSettings::setPath ( QSettings::IniFormat, QSettings::SystemScope, CONFIG_PATH );
/*程序中需要更改语言可以通过qqtApp->setLanguage实现。languageChanged信号连接到每个页面的刷新语言的函数一般会在这个槽函数里调用ui->retranslateUI()*/ /*程序中需要更改语言可以通过qqtApp->setLanguage实现。languageChanged信号连接到每个页面的刷新语言的槽函数一般会在槽函数里调用ui->retranslateUi(this)*/
qqtApp = this; qqtApp = this;
/*这里是个方便,因为配置文件默认在运行目录.*/ /*这里是个方便,因为配置文件默认在运行目录.*/
@ -51,10 +51,13 @@ QQtApplication::QQtApplication ( int& argc, char** argv ) :
QDir::setCurrent ( qApp->applicationDirPath() ); QDir::setCurrent ( qApp->applicationDirPath() );
#endif #endif
pline() << "app root:" << qApp->applicationDirPath(); qDebug() << "GengZhan (TM) QQt应用程序框架中间件";
pline() << "app work root:" << QDir::currentPath(); qDebug() << "Copyright (C) 2017-2018 山东耕战智能设备有限公司。保留所有权利。";
pline() << "Qt version:" << QT_VERSION_STR; pline() << "Qt version:" << QT_VERSION_STR;
pline() << "LibQQt version:" << STR ( QQT_VERSION ); pline() << "LibQQt version:" << STR ( QQT_VERSION );
pline() << "App root:" << qApp->applicationDirPath();
pline() << "App work root:" << QDir::currentPath();
#ifdef __EMBEDDED_LINUX__ #ifdef __EMBEDDED_LINUX__
pline() << "QTDIR:" << QProcessEnvironment::systemEnvironment().value ( "QTDIR" ); pline() << "QTDIR:" << QProcessEnvironment::systemEnvironment().value ( "QTDIR" );