Double Click

This commit is contained in:
2019-09-18 10:34:46 +02:00
parent 27c543da35
commit 926f326e64
2 changed files with 7 additions and 2 deletions
+4 -1
View File
@@ -1063,9 +1063,12 @@ void cMainWindow::onLanguageChanged()
QLocale locale = QLocale(szLanguage);
QLocale::setDefault(locale);
if(!m_lpTranslator)
return;
if(!switchTranslator(m_lpTranslator, QString("%1%2storyWriter_%3.qm").arg(localePath()).arg(QDir::separator()).arg(szLanguage)))
switchTranslator(m_lpTranslator, QString(":/locale/storyWriter_%1.qm").arg(szLanguage));
// switchTranslator(m_translatorQt, QString("qt_%1.qm").arg(szLanguage));
}
void cMainWindow::changeEvent(QEvent* event)
+3 -1
View File
@@ -22,10 +22,11 @@
#define SHOW_SPLASH
#define DO_DEB
void debugOut(const QString& message)
{
#ifdef DO_DEB
QFile file("c:\\temp\\log.log");
file.open(QFile::WriteOnly | QFile::Text | QFile::Append);
QTextStream out(&file);
@@ -33,6 +34,7 @@ void debugOut(const QString& message)
out << "\n";
file.flush();
file.close();
#endif
}
int main(int argc, char *argv[])