Double Click
This commit is contained in:
+4
-1
@@ -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)
|
||||
|
||||
@@ -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[])
|
||||
|
||||
Reference in New Issue
Block a user