forked from blue/squawk
first attempt to make About window
This commit is contained in:
parent
4baa3bccbf
commit
27377e0ec5
10 changed files with 354 additions and 52 deletions
|
@ -45,19 +45,11 @@ int main(int argc, char *argv[])
|
|||
|
||||
QApplication app(argc, argv);
|
||||
SignalCatcher sc(&app);
|
||||
#ifdef Q_OS_WIN
|
||||
// Windows need an organization name for QSettings to work
|
||||
// https://doc.qt.io/qt-5/qsettings.html#basic-usage
|
||||
{
|
||||
const QString& orgName = QApplication::organizationName();
|
||||
if (orgName.isNull() || orgName.isEmpty()) {
|
||||
QApplication::setOrganizationName("squawk");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
QApplication::setApplicationName("squawk");
|
||||
QApplication::setOrganizationName("macaw.me");
|
||||
QApplication::setApplicationDisplayName("Squawk");
|
||||
QApplication::setApplicationVersion("0.2.1");
|
||||
QApplication::setApplicationVersion("0.2.2");
|
||||
|
||||
QTranslator qtTranslator;
|
||||
qtTranslator.load("qt_" + QLocale::system().name(), QLibraryInfo::location(QLibraryInfo::TranslationsPath));
|
||||
|
@ -199,8 +191,8 @@ int main(int argc, char *argv[])
|
|||
|
||||
if (coreThread->isRunning()) {
|
||||
//coreThread->wait();
|
||||
//todo if I uncomment that, the app will no quit if it has reconnected at least once
|
||||
//it feels like a symptom of something badly desinged in the core coreThread
|
||||
//todo if I uncomment that, the app will not quit if it has reconnected at least once
|
||||
//it feels like a symptom of something badly desinged in the core thread
|
||||
//need to investigate;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue