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

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

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

revision 3519 by capela, Wed Jul 22 21:28:27 2015 UTC revision 3520 by capela, Mon Jul 1 10:53:41 2019 UTC
# Line 296  void InstrumentListModel::refresh (void) Line 296  void InstrumentListModel::refresh (void)
296    
297  void InstrumentListModel::beginReset (void)  void InstrumentListModel::beginReset (void)
298  {  {
299  #if QT_VERSION >= 0x040600  #if QT_VERSION >= QT_VERSION_CHECK(4, 6, 0)
300          QAbstractItemModel::beginResetModel();          QAbstractItemModel::beginResetModel();
301  #endif  #endif
302  }  }
303    
304  void InstrumentListModel::endReset (void)  void InstrumentListModel::endReset (void)
305  {  {
306  #if QT_VERSION >= 0x040600  #if QT_VERSION >= QT_VERSION_CHECK(4, 6, 0)
307          QAbstractItemModel::endResetModel();          QAbstractItemModel::endResetModel();
308  #else  #else
309          QAbstractItemModel::reset();          QAbstractItemModel::reset();
# Line 346  InstrumentListView::InstrumentListView ( Line 346  InstrumentListView::InstrumentListView (
346    
347          QHeaderView *pHeader = QTreeView::header();          QHeaderView *pHeader = QTreeView::header();
348          pHeader->setDefaultAlignment(Qt::AlignLeft);          pHeader->setDefaultAlignment(Qt::AlignLeft);
349  #if QT_VERSION < 0x050000  #if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
350          pHeader->setMovable(false);          pHeader->setMovable(false);
351  #endif  #endif
352          pHeader->setStretchLastSection(true);          pHeader->setStretchLastSection(true);

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

  ViewVC Help
Powered by ViewVC