Drop TQT_TQ*_CONST defines

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 5f88991f1f)
r14.1.x
Michele Calgaro 1 year ago
parent 3cf3782613
commit 4015988ca8
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -6895,7 +6895,7 @@ RosegardenGUIApp::slotTempoViewClosed()
void void
RosegardenGUIApp::slotControlEditorClosed() RosegardenGUIApp::slotControlEditorClosed()
{ {
const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender())); const TQObject *s = sender();
RG_DEBUG << "RosegardenGUIApp::slotControlEditorClosed" << endl; RG_DEBUG << "RosegardenGUIApp::slotControlEditorClosed" << endl;
@ -7026,7 +7026,7 @@ void
RosegardenGUIApp::slotPluginSelected(InstrumentId instrumentId, RosegardenGUIApp::slotPluginSelected(InstrumentId instrumentId,
int index, int plugin) int index, int plugin)
{ {
const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender())); const TQObject *s = sender();
bool fromSynthMgr = (TQT_BASE_OBJECT_CONST(s) == TQT_BASE_OBJECT(m_synthManager)); bool fromSynthMgr = (TQT_BASE_OBJECT_CONST(s) == TQT_BASE_OBJECT(m_synthManager));

@ -602,7 +602,7 @@ AudioPluginDialog::getProgramsForInstance(AudioPluginInstance *inst, int &curren
void void
AudioPluginDialog::slotPluginPortChanged(float value) 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); const PluginControl* control = dynamic_cast<const PluginControl*>(object);

@ -354,7 +354,7 @@ EventEditDialog::slotSubOrderingChanged(int value)
void void
EventEditDialog::slotIntPropertyChanged(int value) 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); const TQSpinBox *spinBox = dynamic_cast<const TQSpinBox *>(s);
if (!spinBox) if (!spinBox)
return ; return ;
@ -367,7 +367,7 @@ EventEditDialog::slotIntPropertyChanged(int value)
void void
EventEditDialog::slotRealTimePropertyChanged(int value) 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); const TQSpinBox *spinBox = dynamic_cast<const TQSpinBox *>(s);
if (!spinBox) if (!spinBox)
return ; return ;
@ -391,7 +391,7 @@ EventEditDialog::slotRealTimePropertyChanged(int value)
void void
EventEditDialog::slotBoolPropertyChanged() 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); const TQCheckBox *checkBox = dynamic_cast<const TQCheckBox *>(s);
if (!checkBox) if (!checkBox)
return ; return ;
@ -406,7 +406,7 @@ EventEditDialog::slotBoolPropertyChanged()
void void
EventEditDialog::slotStringPropertyChanged(const TQString &value) 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); const TQLineEdit *lineEdit = dynamic_cast<const TQLineEdit *>(s);
if (!lineEdit) if (!lineEdit)
return ; return ;
@ -419,7 +419,7 @@ EventEditDialog::slotStringPropertyChanged(const TQString &value)
void void
EventEditDialog::slotPropertyDeleted() 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); const TQPushButton *pushButton = dynamic_cast<const TQPushButton *>(s);
if (!pushButton) if (!pushButton)
return ; return ;
@ -451,7 +451,7 @@ EventEditDialog::slotPropertyDeleted()
void void
EventEditDialog::slotPropertyMadePersistent() 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); const TQPushButton *pushButton = dynamic_cast<const TQPushButton *>(s);
if (!pushButton) if (!pushButton)
return ; return ;

@ -1808,7 +1808,7 @@ void MatrixView::slotVerticalScrollPianoKeyboard(int y)
void MatrixView::slotInsertNoteFromAction() void MatrixView::slotInsertNoteFromAction()
{ {
const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender())); const TQObject *s = sender();
TQString name = s->name(); TQString name = s->name();
Segment &segment = *getCurrentSegment(); Segment &segment = *getCurrentSegment();
@ -2015,7 +2015,7 @@ MatrixView::slotSetSnapFromIndex(int s)
void void
MatrixView::slotSetSnapFromAction() MatrixView::slotSetSnapFromAction()
{ {
const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender())); const TQObject *s = sender();
TQString name = s->name(); TQString name = s->name();
if (name.left(5) == "snap_") { if (name.left(5) == "snap_") {

@ -231,7 +231,7 @@ FontViewFrame::hasRow(int r) const
for (int c = 0; c < 256; ++c) { for (int c = 0; c < 256; ++c) {
FcChar32 ch = r * 256 + c; FcChar32 ch = r * 256 + c;
if (XftCharExists(TQT_TQPAINTDEVICE_CONST(this)->x11AppDisplay(), (XftFont *)m_tableFont, ch)) { if (XftCharExists(x11AppDisplay(), (XftFont *)m_tableFont, ch)) {
return true; return true;
} }
} }

@ -3950,7 +3950,7 @@ void NotationView::readjustCanvasSize()
void NotationView::slotNoteAction() void NotationView::slotNoteAction()
{ {
const TQObject* sigSender = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender())); const TQObject* sigSender = sender();
NoteActionDataMap::Iterator noteAct = NoteActionDataMap::Iterator noteAct =
m_noteActionDataMap->find(sigSender->name()); m_noteActionDataMap->find(sigSender->name());
@ -3981,7 +3981,7 @@ void NotationView::slotLastNoteAction()
void NotationView::slotAddMark() void NotationView::slotAddMark()
{ {
const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender())); const TQObject *s = sender();
if (!m_currentEventSelection) if (!m_currentEventSelection)
return ; return ;
@ -3995,7 +3995,7 @@ void NotationView::slotAddMark()
void NotationView::slotNoteChangeAction() void NotationView::slotNoteChangeAction()
{ {
const TQObject* sigSender = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender())); const TQObject* sigSender = sender();
NoteChangeActionDataMap::Iterator noteAct = NoteChangeActionDataMap::Iterator noteAct =
m_noteChangeActionDataMap->find(sigSender->name()); m_noteChangeActionDataMap->find(sigSender->name());
@ -4304,7 +4304,7 @@ NotationView::slotChangeSpacingFromStringValue(const TQString& spacingT)
void void
NotationView::slotChangeSpacingFromAction() NotationView::slotChangeSpacingFromAction()
{ {
const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender())); const TQObject *s = sender();
TQString name = s->name(); TQString name = s->name();
if (name.left(8) == "spacing_") { if (name.left(8) == "spacing_") {
@ -4364,7 +4364,7 @@ NotationView::slotChangeProportionFromIndex(int n)
void void
NotationView::slotChangeProportionFromAction() NotationView::slotChangeProportionFromAction()
{ {
const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender())); const TQObject *s = sender();
TQString name = s->name(); TQString name = s->name();
if (name.left(11) == "proportion_") { if (name.left(11) == "proportion_") {
@ -4413,7 +4413,7 @@ NotationView::slotChangeProportion(int proportion)
void void
NotationView::slotChangeFontFromAction() NotationView::slotChangeFontFromAction()
{ {
const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender())); const TQObject *s = sender();
TQString name = s->name(); TQString name = s->name();
if (name.left(10) == "note_font_") { if (name.left(10) == "note_font_") {
name = name.right(name.length() - 10); name = name.right(name.length() - 10);
@ -4427,7 +4427,7 @@ NotationView::slotChangeFontFromAction()
void void
NotationView::slotChangeFontSizeFromAction() NotationView::slotChangeFontSizeFromAction()
{ {
const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender())); const TQObject *s = sender();
TQString name = s->name(); TQString name = s->name();
if (name.left(15) == "note_font_size_") { if (name.left(15) == "note_font_size_") {
@ -5557,7 +5557,7 @@ void NotationView::slotTransformsRemoveQuantization()
void NotationView::slotSetStyleFromAction() void NotationView::slotSetStyleFromAction()
{ {
const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender())); const TQObject *s = sender();
TQString name = s->name(); TQString name = s->name();
if (!m_currentEventSelection) if (!m_currentEventSelection)
@ -5580,7 +5580,7 @@ void NotationView::slotSetStyleFromAction()
void NotationView::slotInsertNoteFromAction() void NotationView::slotInsertNoteFromAction()
{ {
const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender())); const TQObject *s = sender();
TQString name = s->name(); TQString name = s->name();
Segment &segment = m_staffs[m_currentStaff]->getSegment(); Segment &segment = m_staffs[m_currentStaff]->getSegment();
@ -5907,7 +5907,7 @@ void NotationView::slotAddDotNotationOnly()
void NotationView::slotAddSlashes() void NotationView::slotAddSlashes()
{ {
const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender())); const TQObject *s = sender();
if (!m_currentEventSelection) if (!m_currentEventSelection)
return ; return ;
@ -5948,7 +5948,7 @@ void NotationView::slotMarksAddFingeringMark()
void NotationView::slotMarksAddFingeringMarkFromAction() void NotationView::slotMarksAddFingeringMarkFromAction()
{ {
const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender())); const TQObject *s = sender();
TQString name = s->name(); TQString name = s->name();
if (name.left(14) == "add_fingering_") { if (name.left(14) == "add_fingering_") {

@ -940,7 +940,7 @@ AudioMixerWindow::updatePluginButtons(int id)
void void
AudioMixerWindow::slotSelectPlugin() AudioMixerWindow::slotSelectPlugin()
{ {
const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender())); const TQObject *s = sender();
for (FaderMap::iterator i = m_faders.begin(); for (FaderMap::iterator i = m_faders.begin();
i != m_faders.end(); ++i) { i != m_faders.end(); ++i) {
@ -991,7 +991,7 @@ AudioMixerWindow::slotSelectPlugin()
void void
AudioMixerWindow::slotInputChanged() AudioMixerWindow::slotInputChanged()
{ {
const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender())); const TQObject *s = sender();
for (FaderMap::iterator i = m_faders.begin(); for (FaderMap::iterator i = m_faders.begin();
i != m_faders.end(); ++i) { i != m_faders.end(); ++i) {
@ -1004,7 +1004,7 @@ AudioMixerWindow::slotInputChanged()
void void
AudioMixerWindow::slotOutputChanged() AudioMixerWindow::slotOutputChanged()
{ {
const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender())); const TQObject *s = sender();
for (FaderMap::iterator i = m_faders.begin(); for (FaderMap::iterator i = m_faders.begin();
i != m_faders.end(); ++i) { i != m_faders.end(); ++i) {
@ -1058,7 +1058,7 @@ AudioMixerWindow::sendControllerRefresh()
void void
AudioMixerWindow::slotFaderLevelChanged(float dB) AudioMixerWindow::slotFaderLevelChanged(float dB)
{ {
const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender())); const TQObject *s = sender();
BussList busses = m_studio->getBusses(); BussList busses = m_studio->getBusses();
@ -1138,7 +1138,7 @@ AudioMixerWindow::slotFaderLevelChanged(float dB)
void void
AudioMixerWindow::slotPanChanged(float pan) AudioMixerWindow::slotPanChanged(float pan)
{ {
const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender())); const TQObject *s = sender();
BussList busses = m_studio->getBusses(); BussList busses = m_studio->getBusses();
@ -1206,7 +1206,7 @@ AudioMixerWindow::slotPanChanged(float pan)
void void
AudioMixerWindow::slotChannelsChanged() AudioMixerWindow::slotChannelsChanged()
{ {
const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender())); const TQObject *s = sender();
// channels are only switchable on instruments // channels are only switchable on instruments
@ -1442,7 +1442,7 @@ AudioMixerWindow::slotControllerDeviceEventReceived(MappedEvent *e,
void void
AudioMixerWindow::slotSetInputCountFromAction() AudioMixerWindow::slotSetInputCountFromAction()
{ {
const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender())); const TQObject *s = sender();
TQString name = s->name(); TQString name = s->name();
if (name.left(7) == "inputs_") { if (name.left(7) == "inputs_") {
@ -1473,7 +1473,7 @@ AudioMixerWindow::slotSetInputCountFromAction()
void void
AudioMixerWindow::slotSetSubmasterCountFromAction() AudioMixerWindow::slotSetSubmasterCountFromAction()
{ {
const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender())); const TQObject *s = sender();
TQString name = s->name(); TQString name = s->name();
if (name.left(11) == "submasters_") { if (name.left(11) == "submasters_") {

@ -160,7 +160,7 @@ MidiKeyMappingEditor::slotNameChanged(const TQString& name)
return ; return ;
} }
TQString senderName = TQT_TQOBJECT_CONST(sender())->name(); TQString senderName = sender()->name();
// Adjust value back to zero rated // Adjust value back to zero rated
// //

@ -321,7 +321,7 @@ MidiMixerWindow::addTab(TQWidget *tab, const TQString &title)
void void
MidiMixerWindow::slotFaderLevelChanged(float value) MidiMixerWindow::slotFaderLevelChanged(float value)
{ {
const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender())); const TQObject *s = sender();
for (FaderVector::const_iterator it = m_faders.begin(); for (FaderVector::const_iterator it = m_faders.begin();
it != m_faders.end(); ++it) { it != m_faders.end(); ++it) {
@ -374,7 +374,7 @@ MidiMixerWindow::slotFaderLevelChanged(float value)
void void
MidiMixerWindow::slotControllerChanged(float value) MidiMixerWindow::slotControllerChanged(float value)
{ {
const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender())); const TQObject *s = sender();
unsigned int i = 0, j = 0; unsigned int i = 0, j = 0;
for (i = 0; i < m_faders.size(); ++i) { for (i = 0; i < m_faders.size(); ++i) {

@ -389,7 +389,7 @@ MidiProgramsEditor::slotNameChanged(const TQString& programName)
return ; return ;
} }
TQString senderName = TQT_TQOBJECT_CONST(sender())->name(); TQString senderName = sender()->name();
// Adjust value back to zero rated // Adjust value back to zero rated
// //

@ -231,7 +231,7 @@ SynthPluginManagerDialog::SynthPluginManagerDialog(TQWidget *parent,
void void
SynthPluginManagerDialog::slotGUIButtonClicked() SynthPluginManagerDialog::slotGUIButtonClicked()
{ {
const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender())); const TQObject *s = sender();
int instrumentNo = -1; int instrumentNo = -1;
@ -253,7 +253,7 @@ SynthPluginManagerDialog::SynthPluginManagerDialog(TQWidget *parent,
void void
SynthPluginManagerDialog::slotControlsButtonClicked() SynthPluginManagerDialog::slotControlsButtonClicked()
{ {
const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender())); const TQObject *s = sender();
int instrumentNo = -1; int instrumentNo = -1;
@ -275,7 +275,7 @@ SynthPluginManagerDialog::SynthPluginManagerDialog(TQWidget *parent,
void void
SynthPluginManagerDialog::slotPluginChanged(int index) SynthPluginManagerDialog::slotPluginChanged(int index)
{ {
const TQObject *s = TQT_TQOBJECT_CONST(const_cast<const TQT_BASE_OBJECT_NAME*>(sender())); const TQObject *s = sender();
RG_DEBUG << "SynthPluginManagerDialog::slotPluginChanged(" << index RG_DEBUG << "SynthPluginManagerDialog::slotPluginChanged(" << index
<< ")" << endl; << ")" << endl;

Loading…
Cancel
Save