summaryrefslogtreecommitdiffstats
path: root/src/controllers/delegates/midiopcodedelegate.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/controllers/delegates/midiopcodedelegate.cpp')
-rw-r--r--src/controllers/delegates/midiopcodedelegate.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/controllers/delegates/midiopcodedelegate.cpp b/src/controllers/delegates/midiopcodedelegate.cpp
index b4cb9e4aad..21cd363966 100644
--- a/src/controllers/delegates/midiopcodedelegate.cpp
+++ b/src/controllers/delegates/midiopcodedelegate.cpp
@@ -40,7 +40,7 @@ QString MidiOpCodeDelegate::displayText(const QVariant& value,
void MidiOpCodeDelegate::setEditorData(QWidget* editor,
const QModelIndex& index) const {
int opCode = index.data(Qt::EditRole).toInt();
- QComboBox* pComboBox = dynamic_cast<QComboBox*>(editor);
+ QComboBox* pComboBox = qobject_cast<QComboBox*>(editor);
if (pComboBox == NULL) {
return;
}
@@ -55,7 +55,7 @@ void MidiOpCodeDelegate::setEditorData(QWidget* editor,
void MidiOpCodeDelegate::setModelData(QWidget* editor,
QAbstractItemModel* model,
const QModelIndex& index) const {
- QComboBox* pComboBox = dynamic_cast<QComboBox*>(editor);
+ QComboBox* pComboBox = qobject_cast<QComboBox*>(editor);
if (pComboBox == NULL) {
return;
}