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 |
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 |
|
|
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(); |