1 |
// qsampler.cpp |
// qsampler.cpp |
2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
Copyright (C) 2004-2019, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2004-2020, rncbc aka Rui Nuno Capela. All rights reserved. |
5 |
Copyright (C) 2007,2008,2015 Christian Schoenebeck |
Copyright (C) 2007,2008,2015,2019 Christian Schoenebeck |
6 |
|
|
7 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
8 |
modify it under the terms of the GNU General Public License |
modify it under the terms of the GNU General Public License |
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 { |
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 |