/[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 3038 by capela, Thu Nov 10 16:23:30 2016 UTC revision 3067 by capela, Mon Jan 2 15:31:47 2017 UTC
# Line 1  Line 1 
1  // qsamplerOptions.cpp  // qsamplerOptions.cpp
2  //  //
3  /****************************************************************************  /****************************************************************************
4     Copyright (C) 2004-2016, rncbc aka Rui Nuno Capela. All rights reserved.     Copyright (C) 2004-2017, rncbc aka Rui Nuno Capela. All rights reserved.
5     Copyright (C) 2007,2015 Christian Schoenebeck     Copyright (C) 2007,2008,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
8     modify it under the terms of the GNU General Public License     modify it under the terms of the GNU General Public License
# 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")                          out << QString("Qt: %1\n")
341                                  .arg(qVersion());                                  .arg(qVersion());
342                          out << QObject::tr("%1: %2  (%3)\n")                          out << QString("%1: %2\n")
343                                  .arg(QSAMPLER_TITLE)                                  .arg(QSAMPLER_TITLE)
344                                  .arg(CONFIG_BUILD_VERSION)                                  .arg(CONFIG_BUILD_VERSION);
                                 .arg(CONFIG_BUILD_DATE);  
345                  #ifdef CONFIG_LIBGIG                  #ifdef CONFIG_LIBGIG
346                          out << QString("%1: %2\n")                          out << QString("%1: %2\n")
347                                  .arg(gig::libraryName().c_str())                                  .arg(gig::libraryName().c_str())
# Line 380  void Options::loadWidgetGeometry ( QWidg Line 379  void Options::loadWidgetGeometry ( QWidg
379                          = m_settings.value("/geometry").toByteArray();                          = m_settings.value("/geometry").toByteArray();
380                  if (!geometry.isEmpty())                  if (!geometry.isEmpty())
381                          pWidget->restoreGeometry(geometry);                          pWidget->restoreGeometry(geometry);
                 else  
382          #else//--LOAD_OLD_GEOMETRY          #else//--LOAD_OLD_GEOMETRY
383                  QPoint wpos;                  QPoint wpos;
384                  QSize  wsize;                  QSize  wsize;
# Line 392  void Options::loadWidgetGeometry ( QWidg Line 390  void Options::loadWidgetGeometry ( QWidg
390                          pWidget->move(wpos);                          pWidget->move(wpos);
391                  if (wsize.width() > 0 && wsize.height() > 0)                  if (wsize.width() > 0 && wsize.height() > 0)
392                          pWidget->resize(wsize);                          pWidget->resize(wsize);
                 else  
393          #endif          #endif
394                  pWidget->adjustSize();          //      else
395            //      pWidget->adjustSize();
396                  if (!bVisible)                  if (!bVisible)
397                          bVisible = m_settings.value("/visible", false).toBool();                          bVisible = m_settings.value("/visible", false).toBool();
398                  if (bVisible)                  if (bVisible)
# Line 592  void Options::sendFineTuningSettings() { Line 590  void Options::sendFineTuningSettings() {
590    
591    
592  // end of qsamplerOptions.cpp  // end of qsamplerOptions.cpp
593    

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

  ViewVC Help
Powered by ViewVC