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

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

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

revision 2074 by capela, Mon Mar 29 17:00:30 2010 UTC revision 2459 by capela, Mon Jul 8 10:06:57 2013 UTC
# Line 1  Line 1 
1  // qsamplerChannelFxForm.cpp  // qsamplerChannelFxForm.cpp
2  //  //
3  /****************************************************************************  /****************************************************************************
4       Copyright (C) 2010-2013, rncbc aka Rui Nuno Capela. All rights reserved.
5     Copyright (C) 2008, Christian Schoenebeck     Copyright (C) 2008, Christian Schoenebeck
    Copyright (C) 2010, rncbc aka Rui Nuno Capela. All rights reserved.  
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 14  Line 14 
14     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15     GNU General Public License for more details.     GNU General Public License for more details.
16    
17     You should have received a copy of the GNU General Public License     You should have received a copy of the GNU General Public License along
18     along with this program; if not, write to the Free Software     with this program; if not, write to the Free Software Foundation, Inc.,
19     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.     51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20    
21  *****************************************************************************/  *****************************************************************************/
22    
# Line 118  ChannelFxForm::ChannelFxForm ( Line 118  ChannelFxForm::ChannelFxForm (
118          FxSendsModel* pModel =          FxSendsModel* pModel =
119                  new FxSendsModel(m_pSamplerChannel->channelID(), m_ui.SendsListView);                  new FxSendsModel(m_pSamplerChannel->channelID(), m_ui.SendsListView);
120          m_ui.SendsListView->setModel(pModel);          m_ui.SendsListView->setModel(pModel);
 #if QT_VERSION >= 0x040300  
121          m_ui.SendsListView->setSelectionRectVisible(true);          m_ui.SendsListView->setSelectionRectVisible(true);
 #endif  
122    
123          const int iRowHeight = m_ui.audioRoutingTable->fontMetrics().height() + 4;          const int iRowHeight = m_ui.audioRoutingTable->fontMetrics().height() + 4;
124          m_ui.audioRoutingTable->verticalHeader()->setDefaultSectionSize(iRowHeight);          m_ui.audioRoutingTable->verticalHeader()->setDefaultSectionSize(iRowHeight);
# Line 131  ChannelFxForm::ChannelFxForm ( Line 129  ChannelFxForm::ChannelFxForm (
129          ChannelRoutingDelegate* pRoutingDelegate =          ChannelRoutingDelegate* pRoutingDelegate =
130                  new ChannelRoutingDelegate(m_ui.audioRoutingTable);                  new ChannelRoutingDelegate(m_ui.audioRoutingTable);
131          m_ui.audioRoutingTable->setItemDelegate(pRoutingDelegate);          m_ui.audioRoutingTable->setItemDelegate(pRoutingDelegate);
132    #if QT_VERSION >= 0x050000
133            m_ui.audioRoutingTable->horizontalHeader()->setSectionResizeMode(0, QHeaderView::Stretch);
134    #else
135          m_ui.audioRoutingTable->horizontalHeader()->setResizeMode(0, QHeaderView::Stretch);          m_ui.audioRoutingTable->horizontalHeader()->setResizeMode(0, QHeaderView::Stretch);
136    #endif
137  //      m_ui.audioRoutingTable->verticalHeader()->hide();  //      m_ui.audioRoutingTable->verticalHeader()->hide();
138    
139          QAbstractButton* pApplyButton =          QAbstractButton* pApplyButton =

Legend:
Removed from v.2074  
changed lines
  Added in v.2459

  ViewVC Help
Powered by ViewVC