diff options
author | Michele Calgaro <[email protected]> | 2023-08-09 15:33:59 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2023-08-09 17:33:19 +0900 |
commit | 4015988ca8f98d6b4fc43cee6cdd3a5895b3c3ca (patch) | |
tree | 0aa70c48242a531460dd0bdf48e9d4d9c186a5e5 /src/gui/dialogs | |
parent | 3cf378261390af7e6c9379e6ed941704a5db0c69 (diff) | |
download | rosegarden-4015988ca8f98d6b4fc43cee6cdd3a5895b3c3ca.tar.gz rosegarden-4015988ca8f98d6b4fc43cee6cdd3a5895b3c3ca.zip |
Drop TQT_TQ*_CONST defines
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit 5f88991f1f2ff15f859d2cbd701f26c378841fe0)
Diffstat (limited to 'src/gui/dialogs')
-rw-r--r-- | src/gui/dialogs/AudioPluginDialog.cpp | 2 | ||||
-rw-r--r-- | src/gui/dialogs/EventEditDialog.cpp | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/gui/dialogs/AudioPluginDialog.cpp b/src/gui/dialogs/AudioPluginDialog.cpp index b4a4220..51be09c 100644 --- a/src/gui/dialogs/AudioPluginDialog.cpp +++ b/src/gui/dialogs/AudioPluginDialog.cpp @@ -602,7 +602,7 @@ AudioPluginDialog::getProgramsForInstance(AudioPluginInstance *inst, int ¤ void AudioPluginDialog::slotPluginPortChanged(float value) { - const TQObject* object = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender())); + const TQObject* object = sender(); const PluginControl* control = dynamic_cast<const PluginControl*>(object); diff --git a/src/gui/dialogs/EventEditDialog.cpp b/src/gui/dialogs/EventEditDialog.cpp index c359dc6..8f214c2 100644 --- a/src/gui/dialogs/EventEditDialog.cpp +++ b/src/gui/dialogs/EventEditDialog.cpp @@ -354,7 +354,7 @@ EventEditDialog::slotSubOrderingChanged(int value) void EventEditDialog::slotIntPropertyChanged(int value) { - const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender())); + const TQObject *s = sender(); const TQSpinBox *spinBox = dynamic_cast<const TQSpinBox *>(s); if (!spinBox) return ; @@ -367,7 +367,7 @@ EventEditDialog::slotIntPropertyChanged(int value) void EventEditDialog::slotRealTimePropertyChanged(int value) { - const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender())); + const TQObject *s = sender(); const TQSpinBox *spinBox = dynamic_cast<const TQSpinBox *>(s); if (!spinBox) return ; @@ -391,7 +391,7 @@ EventEditDialog::slotRealTimePropertyChanged(int value) void EventEditDialog::slotBoolPropertyChanged() { - const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender())); + const TQObject *s = sender(); const TQCheckBox *checkBox = dynamic_cast<const TQCheckBox *>(s); if (!checkBox) return ; @@ -406,7 +406,7 @@ EventEditDialog::slotBoolPropertyChanged() void EventEditDialog::slotStringPropertyChanged(const TQString &value) { - const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender())); + const TQObject *s = sender(); const TQLineEdit *lineEdit = dynamic_cast<const TQLineEdit *>(s); if (!lineEdit) return ; @@ -419,7 +419,7 @@ EventEditDialog::slotStringPropertyChanged(const TQString &value) void EventEditDialog::slotPropertyDeleted() { - const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender())); + const TQObject *s = sender(); const TQPushButton *pushButton = dynamic_cast<const TQPushButton *>(s); if (!pushButton) return ; @@ -451,7 +451,7 @@ EventEditDialog::slotPropertyDeleted() void EventEditDialog::slotPropertyMadePersistent() { - const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender())); + const TQObject *s = sender(); const TQPushButton *pushButton = dynamic_cast<const TQPushButton *>(s); if (!pushButton) return ; |