/[svn]/qsampler/trunk/src/qsampler.cpp
ViewVC logotype

Diff of /qsampler/trunk/src/qsampler.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3681 by capela, Thu Jan 2 14:39:02 2020 UTC revision 3823 by capela, Thu Sep 17 16:34:38 2020 UTC
# Line 111  qsamplerApplication::qsamplerApplication Line 111  qsamplerApplication::qsamplerApplication
111                  // Try own Qt translation...                  // Try own Qt translation...
112                  m_pQtTranslator = new QTranslator(this);                  m_pQtTranslator = new QTranslator(this);
113                  QString sLocName = "qt_" + loc.name();                  QString sLocName = "qt_" + loc.name();
114            #if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
115                    QString sLocPath = QLibraryInfo::path(QLibraryInfo::TranslationsPath);
116            #else
117                  QString sLocPath = QLibraryInfo::location(QLibraryInfo::TranslationsPath);                  QString sLocPath = QLibraryInfo::location(QLibraryInfo::TranslationsPath);
118            #endif
119                  if (m_pQtTranslator->load(sLocName, sLocPath)) {                  if (m_pQtTranslator->load(sLocName, sLocPath)) {
120                          QApplication::installTranslator(m_pQtTranslator);                          QApplication::installTranslator(m_pQtTranslator);
121                  } else {                  } else {
# Line 484  int main ( int argc, char **argv ) Line 488  int main ( int argc, char **argv )
488  #endif  #endif
489  #endif  #endif
490  #if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)  #if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
491    #if QT_VERSION <  QT_VERSION_CHECK(6, 0, 0)
492          QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);          QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
493  #endif  #endif
494    #endif
495          qsamplerApplication app(argc, argv);          qsamplerApplication app(argc, argv);
496    
497          #if defined(__APPLE__)  //  Toshi Nagata 20080105          #if defined(__APPLE__)  //  Toshi Nagata 20080105

Legend:
Removed from v.3681  
changed lines
  Added in v.3823

  ViewVC Help
Powered by ViewVC