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

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

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

revision 3405 by capela, Wed Jan 10 19:04:03 2018 UTC revision 3520 by capela, Mon Jul 1 10:53:41 2019 UTC
# Line 1  Line 1 
1  // qsamplerChannel.cpp  // qsamplerChannel.cpp
2  //  //
3  /****************************************************************************  /****************************************************************************
4     Copyright (C) 2004-2014, rncbc aka Rui Nuno Capela. All rights reserved.     Copyright (C) 2004-2019, rncbc aka Rui Nuno Capela. All rights reserved.
5     Copyright (C) 2007, 2008 Christian Schoenebeck     Copyright (C) 2007, 2008 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 237  bool Channel::setInstrument ( const QStr Line 237  bool Channel::setInstrument ( const QStr
237          m_sInstrumentFile = sInstrumentFile;          m_sInstrumentFile = sInstrumentFile;
238          m_iInstrumentNr = iInstrumentNr;          m_iInstrumentNr = iInstrumentNr;
239  #ifdef CONFIG_INSTRUMENT_NAME  #ifdef CONFIG_INSTRUMENT_NAME
240          m_sInstrumentName = QString::null;  // We'll get it, maybe later, on channel_info...          m_sInstrumentName.clear();  // We'll get it, maybe later, on channel_info...
241  #else  #else
242          m_sInstrumentName = getInstrumentName(sInstrumentFile, iInstrumentNr, true);          m_sInstrumentName = getInstrumentName(sInstrumentFile, iInstrumentNr, true);
243  #endif  #endif
# Line 632  bool Channel::updateChannelInfo (void) Line 632  bool Channel::updateChannelInfo (void)
632  #endif  #endif
633          // Some sanity checks.          // Some sanity checks.
634          if (m_sEngineName == "NONE" || m_sEngineName.isEmpty())          if (m_sEngineName == "NONE" || m_sEngineName.isEmpty())
635                  m_sEngineName = QString::null;                  m_sEngineName.clear();
636          if (m_sInstrumentFile == "NONE" || m_sInstrumentFile.isEmpty()) {          if (m_sInstrumentFile == "NONE" || m_sInstrumentFile.isEmpty()) {
637                  m_sInstrumentFile = QString::null;                  m_sInstrumentFile.clear();
638                  m_sInstrumentName = QString::null;                  m_sInstrumentName.clear();
639          }          }
640    
641          // Time for device info grabbing...          // Time for device info grabbing...
# Line 1076  void ChannelRoutingModel::refresh ( Devi Line 1076  void ChannelRoutingModel::refresh ( Devi
1076          m_pDevice = pDevice;          m_pDevice = pDevice;
1077          m_routing = routing;          m_routing = routing;
1078          // inform the outer world (QTableView) that our data changed          // inform the outer world (QTableView) that our data changed
1079  #if QT_VERSION < 0x050000  #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
1080          QAbstractTableModel::reset();          QAbstractTableModel::reset();
1081  #else  #else
1082          QAbstractTableModel::beginResetModel();          QAbstractTableModel::beginResetModel();

Legend:
Removed from v.3405  
changed lines
  Added in v.3520

  ViewVC Help
Powered by ViewVC