1 |
// qsamplerDeviceForm.cpp |
// qsamplerDeviceForm.cpp |
2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
Copyright (C) 2004-2010, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2004-2012, 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 |
60 |
|
|
61 |
m_ui.DeviceParamTable->setModel(&m_deviceParamModel); |
m_ui.DeviceParamTable->setModel(&m_deviceParamModel); |
62 |
m_ui.DeviceParamTable->setItemDelegate(&m_deviceParamDelegate); |
m_ui.DeviceParamTable->setItemDelegate(&m_deviceParamDelegate); |
63 |
|
#if QT_VERSION < 0x050000 |
64 |
m_ui.DeviceParamTable->horizontalHeader()->setResizeMode(2, QHeaderView::Stretch); |
m_ui.DeviceParamTable->horizontalHeader()->setResizeMode(2, QHeaderView::Stretch); |
65 |
|
#endif |
66 |
m_ui.DeviceParamTable->verticalHeader()->hide(); |
m_ui.DeviceParamTable->verticalHeader()->hide(); |
67 |
|
|
68 |
m_ui.DevicePortParamTable->setModel(&m_devicePortParamModel); |
m_ui.DevicePortParamTable->setModel(&m_devicePortParamModel); |
69 |
m_ui.DevicePortParamTable->setItemDelegate(&m_devicePortParamDelegate); |
m_ui.DevicePortParamTable->setItemDelegate(&m_devicePortParamDelegate); |
70 |
|
#if QT_VERSION < 0x050000 |
71 |
m_ui.DevicePortParamTable->horizontalHeader()->setResizeMode(2, QHeaderView::Stretch); |
m_ui.DevicePortParamTable->horizontalHeader()->setResizeMode(2, QHeaderView::Stretch); |
72 |
|
#endif |
73 |
m_ui.DevicePortParamTable->verticalHeader()->hide(); |
m_ui.DevicePortParamTable->verticalHeader()->hide(); |
74 |
|
|
75 |
// Initial contents. |
// Initial contents. |