/[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 1558 by capela, Thu Dec 6 09:35:33 2007 UTC revision 1668 by schoenebeck, Tue Feb 5 15:42:33 2008 UTC
# Line 2  Line 2 
2  //  //
3  /****************************************************************************  /****************************************************************************
4     Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved.     Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved.
5     Copyright (C) 2007, 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
8     modify it under the terms of the GNU General Public License     modify it under the terms of the GNU General Public License
# Line 926  ChannelRoutingModel::ChannelRoutingModel Line 926  ChannelRoutingModel::ChannelRoutingModel
926    
927  int ChannelRoutingModel::rowCount ( const QModelIndex& /*parent*/) const  int ChannelRoutingModel::rowCount ( const QModelIndex& /*parent*/) const
928  {  {
929          return m_routing.size();          return (m_pDevice) ? m_routing.size() : 0;
930  }  }
931    
932    
# Line 994  QVariant ChannelRoutingModel::headerData Line 994  QVariant ChannelRoutingModel::headerData
994                  case Qt::Horizontal:                  case Qt::Horizontal:
995                          return UNICODE_RIGHT_ARROW + QObject::tr(" Device Channel");                          return UNICODE_RIGHT_ARROW + QObject::tr(" Device Channel");
996                  case Qt::Vertical:                  case Qt::Vertical:
997                          return QObject::tr("Sampler Channel ") +                          return QObject::tr("Audio Channel ") +
998                                  QString::number(section) + " " + UNICODE_RIGHT_ARROW;                                  QString::number(section) + " " + UNICODE_RIGHT_ARROW;
999                  default:                  default:
1000                          return QVariant();                          return QVariant();

Legend:
Removed from v.1558  
changed lines
  Added in v.1668

  ViewVC Help
Powered by ViewVC