/[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 3555 by capela, Tue Aug 13 10:19:32 2019 UTC revision 3560 by capela, Fri Aug 23 10:27:34 2019 UTC
# Line 80  qsamplerApplication::qsamplerApplication Line 80  qsamplerApplication::qsamplerApplication
80          : QApplication(argc, argv),          : QApplication(argc, argv),
81                  m_pQtTranslator(nullptr), m_pMyTranslator(nullptr), m_pWidget(nullptr)                  m_pQtTranslator(nullptr), m_pMyTranslator(nullptr), m_pWidget(nullptr)
82  {  {
83    #if QT_VERSION >= QT_VERSION_CHECK(5, 1, 0)
84            QApplication::setApplicationName(QSAMPLER_TITLE);
85            QApplication::setApplicationDisplayName(QSAMPLER_TITLE);
86            //      QSAMPLER_TITLE " - " + QObject::tr(QSAMPLER_SUBTITLE));
87    #endif
88          // Load translation support.          // Load translation support.
89          QLocale loc;          QLocale loc;
90          if (loc.language() != QLocale::C) {          if (loc.language() != QLocale::C) {
# Line 370  void qsamplerApplication::readyReadSlot Line 375  void qsamplerApplication::readyReadSlot
375          if (pSocket) {          if (pSocket) {
376                  const qint64 nread = pSocket->bytesAvailable();                  const qint64 nread = pSocket->bytesAvailable();
377                  if (nread > 0) {                  if (nread > 0) {
378                          QByteArray data = pSocket->read(nread);                          const QByteArray data = pSocket->read(nread);
379                          // Just make it always shows up fine...                          // Just make it always shows up fine...
380                          m_pWidget->hide();                          m_pWidget->hide();
381                          m_pWidget->show();                          m_pWidget->show();
# Line 458  int main ( int argc, char **argv ) Line 463  int main ( int argc, char **argv )
463          ::signal(SIGBUS,  stacktrace);          ::signal(SIGBUS,  stacktrace);
464  #endif  #endif
465  #endif  #endif
         qsamplerApplication app(argc, argv);  
466  #if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)  #if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
467          app.setAttribute(Qt::AA_EnableHighDpiScaling);          QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
468  #endif  #endif
469            qsamplerApplication app(argc, argv);
470    
471          #if defined(__APPLE__)  //  Toshi Nagata 20080105          #if defined(__APPLE__)  //  Toshi Nagata 20080105
472          {          {
473                  //  Set the plugin path to @exetutable_path/../plugins                  //  Set the plugin path to @exetutable_path/../plugins

Legend:
Removed from v.3555  
changed lines
  Added in v.3560

  ViewVC Help
Powered by ViewVC