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

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

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

revision 2846 by capela, Thu Oct 1 15:43:03 2015 UTC revision 3038 by capela, Thu Nov 10 16:23:30 2016 UTC
# Line 1  Line 1 
1  // qsamplerOptions.cpp  // qsamplerOptions.cpp
2  //  //
3  /****************************************************************************  /****************************************************************************
4     Copyright (C) 2004-2015, rncbc aka Rui Nuno Capela. All rights reserved.     Copyright (C) 2004-2016, rncbc aka Rui Nuno Capela. All rights reserved.
5     Copyright (C) 2007,2015 Christian Schoenebeck     Copyright (C) 2007,2015 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
# Line 162  void Options::saveOptions (void) Line 162  void Options::saveOptions (void)
162  {  {
163          // Make program version available in the future.          // Make program version available in the future.
164          m_settings.beginGroup("/Program");          m_settings.beginGroup("/Program");
165          m_settings.setValue("/Version", QSAMPLER_VERSION);          m_settings.setValue("/Version", CONFIG_BUILD_VERSION);
166          m_settings.endGroup();          m_settings.endGroup();
167    
168          // And go into general options group.          // And go into general options group.
# Line 337  bool Options::parse_args ( const QString Line 337  bool Options::parse_args ( const QString
337                          return false;                          return false;
338                  }                  }
339                  else if (sArg == "-v" || sArg == "--version") {                  else if (sArg == "-v" || sArg == "--version") {
340                          out << QObject::tr("Qt: %1\n").arg(qVersion());                          out << QObject::tr("Qt: %1\n")
341                                    .arg(qVersion());
342                            out << QObject::tr("%1: %2  (%3)\n")
343                                    .arg(QSAMPLER_TITLE)
344                                    .arg(CONFIG_BUILD_VERSION)
345                                    .arg(CONFIG_BUILD_DATE);
346                  #ifdef CONFIG_LIBGIG                  #ifdef CONFIG_LIBGIG
347                          out << QString("%1: %2\n")                          out << QString("%1: %2\n")
348                                  .arg(gig::libraryName().c_str())                                  .arg(gig::libraryName().c_str())
# Line 346  bool Options::parse_args ( const QString Line 351  bool Options::parse_args ( const QString
351                          out << QString("%1: %2\n")                          out << QString("%1: %2\n")
352                                  .arg(::lscp_client_package())                                  .arg(::lscp_client_package())
353                                  .arg(::lscp_client_version());                                  .arg(::lscp_client_version());
                         out << QObject::tr(QSAMPLER_TITLE ": %1\n").arg(QSAMPLER_VERSION);  
354                          return false;                          return false;
355                  }                  }
356                  else {                  else {
# Line 369  void Options::loadWidgetGeometry ( QWidg Line 373  void Options::loadWidgetGeometry ( QWidg
373  {  {
374          // Try to restore old form window positioning.          // Try to restore old form window positioning.
375          if (pWidget) {          if (pWidget) {
376                  if (bVisible) pWidget->show(); // Force initial exposure!          //      if (bVisible) pWidget->show(); -- force initial exposure?
377                  m_settings.beginGroup("/Geometry/" + pWidget->objectName());                  m_settings.beginGroup("/Geometry/" + pWidget->objectName());
378          #if QT_VERSION >= 0x050000          #if QT_VERSION >= 0x050000
379                  const QByteArray& geometry                  const QByteArray& geometry

Legend:
Removed from v.2846  
changed lines
  Added in v.3038

  ViewVC Help
Powered by ViewVC