Replace Qt with TQt

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/13/head
Michele Calgaro 7 months ago
parent 3d3dc041a5
commit 1ec7b1dadc
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -1295,7 +1295,7 @@ void RosegardenGUIApp::initZoomToolbar()
TQString maxZoom = TQString("%1%").arg(factors[(sizeof(factors) / sizeof(factors[0])) - 1] * 100.0); TQString maxZoom = TQString("%1%").arg(factors[(sizeof(factors) / sizeof(factors[0])) - 1] * 100.0);
m_zoomSlider = new ZoomSlider<double> m_zoomSlider = new ZoomSlider<double>
(zoomSizes, -1, Qt::Horizontal, zoomToolbar, "tde toolbar widget"); (zoomSizes, -1, TQt::Horizontal, zoomToolbar, "tde toolbar widget");
m_zoomSlider->setTracking(true); m_zoomSlider->setTracking(true);
m_zoomSlider->setFocusPolicy(TQWidget::NoFocus); m_zoomSlider->setFocusPolicy(TQWidget::NoFocus);
m_zoomLabel = new TQLabel(minZoom, zoomToolbar, "tde toolbar widget"); m_zoomLabel = new TQLabel(minZoom, zoomToolbar, "tde toolbar widget");

@ -57,7 +57,7 @@ HeadersConfigurationPage::HeadersConfigurationPage(TQWidget *parent,
// //
TQGroupBox *headersBox = new TQGroupBox TQGroupBox *headersBox = new TQGroupBox
(1, Qt::Horizontal, (1, TQt::Horizontal,
i18n("Printable headers"), this); i18n("Printable headers"), this);
TQFrame *frameHeaders = new TQFrame(headersBox); TQFrame *frameHeaders = new TQFrame(headersBox);
TQGridLayout *layoutHeaders = new TQGridLayout(frameHeaders, 10, 6, 10, 5); TQGridLayout *layoutHeaders = new TQGridLayout(frameHeaders, 10, 6, 10, 5);

@ -95,7 +95,7 @@ AudioPluginDialog::AudioPluginDialog(TQWidget *parent,
TQVBox *vbox = makeVBoxMainWidget(); TQVBox *vbox = makeVBoxMainWidget();
TQGroupBox *pluginSelectionBox = new TQGroupBox TQGroupBox *pluginSelectionBox = new TQGroupBox
(1, Qt::Horizontal, i18n("Plugin"), vbox); (1, TQt::Horizontal, i18n("Plugin"), vbox);
makePluginParamsBox(vbox, 0, 10); makePluginParamsBox(vbox, 0, 10);

@ -44,7 +44,7 @@ BeatsBarsDialog::BeatsBarsDialog(TQWidget* parent) :
{ {
TQHBox *hbox = makeHBoxMainWidget(); TQHBox *hbox = makeHBoxMainWidget();
TQGroupBox *gbox = new TQGroupBox(1, Qt::Horizontal, TQGroupBox *gbox = new TQGroupBox(1, TQt::Horizontal,
i18n("The selected audio segment contains:"), hbox); i18n("The selected audio segment contains:"), hbox);
TQFrame *frame = new TQFrame(gbox); TQFrame *frame = new TQFrame(gbox);

@ -57,31 +57,31 @@ ClefDialog::ClefDialog(TQWidget *parent,
TQVBox *vbox = makeVBoxMainWidget(); TQVBox *vbox = makeVBoxMainWidget();
TQGroupBox *clefFrame = new TQGroupBox TQGroupBox *clefFrame = new TQGroupBox
(1, Qt::Horizontal, i18n("Clef"), vbox); (1, TQt::Horizontal, i18n("Clef"), vbox);
TQButtonGroup *conversionFrame = new TQButtonGroup TQButtonGroup *conversionFrame = new TQButtonGroup
(1, Qt::Horizontal, i18n("Existing notes following clef change"), vbox); (1, TQt::Horizontal, i18n("Existing notes following clef change"), vbox);
TQHBox *clefBox = new TQHBox(clefFrame); TQHBox *clefBox = new TQHBox(clefFrame);
BigArrowButton *clefDown = new BigArrowButton(clefBox, Qt::LeftArrow); BigArrowButton *clefDown = new BigArrowButton(clefBox, TQt::LeftArrow);
TQToolTip::add TQToolTip::add
(clefDown, i18n("Lower clef")); (clefDown, i18n("Lower clef"));
TQHBox *clefLabelBox = new TQVBox(clefBox); TQHBox *clefLabelBox = new TQVBox(clefBox);
m_octaveUp = new BigArrowButton(clefLabelBox, Qt::UpArrow); m_octaveUp = new BigArrowButton(clefLabelBox, TQt::UpArrow);
TQToolTip::add TQToolTip::add
(m_octaveUp, i18n("Up an Octave")); (m_octaveUp, i18n("Up an Octave"));
m_clefLabel = new TQLabel(i18n("Clef"), clefLabelBox); m_clefLabel = new TQLabel(i18n("Clef"), clefLabelBox);
m_clefLabel->setAlignment(AlignVCenter | AlignHCenter); m_clefLabel->setAlignment(AlignVCenter | AlignHCenter);
m_octaveDown = new BigArrowButton(clefLabelBox, Qt::DownArrow); m_octaveDown = new BigArrowButton(clefLabelBox, TQt::DownArrow);
TQToolTip::add TQToolTip::add
(m_octaveDown, i18n("Down an Octave")); (m_octaveDown, i18n("Down an Octave"));
BigArrowButton *clefUp = new BigArrowButton(clefBox, Qt::RightArrow); BigArrowButton *clefUp = new BigArrowButton(clefBox, TQt::RightArrow);
TQToolTip::add TQToolTip::add
(clefUp, i18n("Higher clef")); (clefUp, i18n("Higher clef"));

@ -76,9 +76,9 @@ EventEditDialog::EventEditDialog(TQWidget *parent,
TQVBox *vbox = makeVBoxMainWidget(); TQVBox *vbox = makeVBoxMainWidget();
TQGroupBox *intrinsicBox = new TQGroupBox TQGroupBox *intrinsicBox = new TQGroupBox
(1, Qt::Horizontal, i18n("Intrinsics"), vbox); (1, TQt::Horizontal, i18n("Intrinsics"), vbox);
TQGrid *intrinsicGrid = new TQGrid(4, Qt::Horizontal, intrinsicBox); TQGrid *intrinsicGrid = new TQGrid(4, TQt::Horizontal, intrinsicBox);
new TQLabel(i18n("Event type: "), intrinsicGrid); new TQLabel(i18n("Event type: "), intrinsicGrid);
new TQLabel("", intrinsicGrid); new TQLabel("", intrinsicGrid);
@ -120,8 +120,8 @@ EventEditDialog::EventEditDialog(TQWidget *parent,
slotSubOrderingChanged(event.getSubOrdering()); slotSubOrderingChanged(event.getSubOrdering());
TQGroupBox *persistentBox = new TQGroupBox TQGroupBox *persistentBox = new TQGroupBox
(1, Qt::Horizontal, i18n("Persistent properties"), vbox); (1, TQt::Horizontal, i18n("Persistent properties"), vbox);
m_persistentGrid = new TQGrid(4, Qt::Horizontal, persistentBox); m_persistentGrid = new TQGrid(4, TQt::Horizontal, persistentBox);
TQLabel *label = new TQLabel(i18n("Name"), m_persistentGrid); TQLabel *label = new TQLabel(i18n("Name"), m_persistentGrid);
TQFont font(label->font()); TQFont font(label->font());
@ -150,7 +150,7 @@ EventEditDialog::EventEditDialog(TQWidget *parent,
} else { } else {
TQGroupBox *nonPersistentBox = new TQGroupBox TQGroupBox *nonPersistentBox = new TQGroupBox
(1, Qt::Horizontal, i18n("Non-persistent properties"), vbox); (1, TQt::Horizontal, i18n("Non-persistent properties"), vbox);
new TQLabel(i18n("These are cached values, lost if the event is modified."), new TQLabel(i18n("These are cached values, lost if the event is modified."),
nonPersistentBox); nonPersistentBox);
@ -159,7 +159,7 @@ EventEditDialog::EventEditDialog(TQWidget *parent,
m_nonPersistentView->setResizePolicy(TQScrollView::AutoOneFit); m_nonPersistentView->setResizePolicy(TQScrollView::AutoOneFit);
m_nonPersistentGrid = new TQGrid m_nonPersistentGrid = new TQGrid
(4, Qt::Horizontal, m_nonPersistentView->viewport()); (4, TQt::Horizontal, m_nonPersistentView->viewport());
m_nonPersistentView->addChild(m_nonPersistentGrid); m_nonPersistentView->addChild(m_nonPersistentGrid);
m_nonPersistentGrid->setSpacing(4); m_nonPersistentGrid->setSpacing(4);

@ -41,7 +41,7 @@ ExportDeviceDialog::ExportDeviceDialog(TQWidget *parent, TQString deviceName) :
Ok | Cancel, Ok) Ok | Cancel, Ok)
{ {
TQVBox *vbox = makeVBoxMainWidget(); TQVBox *vbox = makeVBoxMainWidget();
TQButtonGroup *bg = new TQButtonGroup(1, Qt::Horizontal, TQButtonGroup *bg = new TQButtonGroup(1, TQt::Horizontal,
i18n("Export devices"), i18n("Export devices"),
vbox); vbox);
m_exportAll = new TQRadioButton(i18n("Export all devices"), bg); m_exportAll = new TQRadioButton(i18n("Export all devices"), bg);

@ -45,7 +45,7 @@ FloatEdit::FloatEdit(TQWidget *parent,
KDialogBase(parent, "rosegardenFloatEdit", true, title, Ok | Cancel, Ok) KDialogBase(parent, "rosegardenFloatEdit", true, title, Ok | Cancel, Ok)
{ {
TQVBox *vbox = makeVBoxMainWidget(); TQVBox *vbox = makeVBoxMainWidget();
TQGroupBox *groupBox = new TQGroupBox(1, Qt::Horizontal, text, vbox); TQGroupBox *groupBox = new TQGroupBox(1, TQt::Horizontal, text, vbox);
TQVBox *inVbox = new TQVBox(groupBox); TQVBox *inVbox = new TQVBox(groupBox);
// Calculate decimal points according to the step size // Calculate decimal points according to the step size

@ -107,7 +107,7 @@ ImportDeviceDialog::doImport()
return false; return false;
} }
TQGroupBox *groupBox = new TQGroupBox(2, Qt::Horizontal, TQGroupBox *groupBox = new TQGroupBox(2, TQt::Horizontal,
i18n("Source device"), i18n("Source device"),
mainFrame); mainFrame);
@ -147,7 +147,7 @@ ImportDeviceDialog::doImport()
TQHBox *optionsBox = new TQHBox(mainFrame); TQHBox *optionsBox = new TQHBox(mainFrame);
TQGroupBox *gb = new TQGroupBox(1, Qt::Horizontal, i18n("Options"), TQGroupBox *gb = new TQGroupBox(1, TQt::Horizontal, i18n("Options"),
optionsBox); optionsBox);
m_importBanks = new TQCheckBox(i18n("Import banks"), gb); m_importBanks = new TQCheckBox(i18n("Import banks"), gb);
@ -160,7 +160,7 @@ ImportDeviceDialog::doImport()
m_rename = 0; m_rename = 0;
} }
m_buttonGroup = new TQButtonGroup(1, Qt::Horizontal, m_buttonGroup = new TQButtonGroup(1, TQt::Horizontal,
i18n("Bank import behavior"), i18n("Bank import behavior"),
optionsBox); optionsBox);
m_mergeBanks = new TQRadioButton(i18n("Merge banks"), m_buttonGroup); m_mergeBanks = new TQRadioButton(i18n("Merge banks"), m_buttonGroup);

@ -45,7 +45,7 @@ InterpretDialog::InterpretDialog(TQWidget *parent) :
TQVBox *vbox = makeVBoxMainWidget(); TQVBox *vbox = makeVBoxMainWidget();
TQGroupBox *groupBox = new TQGroupBox TQGroupBox *groupBox = new TQGroupBox
(1, Qt::Horizontal, i18n("Interpretations to apply"), vbox); (1, TQt::Horizontal, i18n("Interpretations to apply"), vbox);
m_applyTextDynamics = new TQCheckBox m_applyTextDynamics = new TQCheckBox
(i18n("Apply text dynamics (p, mf, ff etc)"), groupBox); (i18n("Apply text dynamics (p, mf, ff etc)"), groupBox);

@ -71,7 +71,7 @@ IntervalDialog::IntervalDialog(TQWidget *parent, bool askChangeKey, bool askTran
if (askChangeKey) if (askChangeKey)
{ {
TQButtonGroup *affectKeyGroup = new TQButtonGroup(1, Qt::Horizontal, i18n("Effect on Key"), vBox); TQButtonGroup *affectKeyGroup = new TQButtonGroup(1, TQt::Horizontal, i18n("Effect on Key"), vBox);
m_transposeWithinKey = new TQRadioButton(i18n("Transpose within key"), affectKeyGroup); m_transposeWithinKey = new TQRadioButton(i18n("Transpose within key"), affectKeyGroup);
m_transposeWithinKey->setChecked(true); m_transposeWithinKey->setChecked(true);
m_transposeChangingKey = new TQRadioButton(i18n("Change key for selection"), affectKeyGroup); m_transposeChangingKey = new TQRadioButton(i18n("Change key for selection"), affectKeyGroup);

@ -72,16 +72,16 @@ KeySignatureDialog::KeySignatureDialog(TQWidget *parent,
TQHBox *nameBox = 0; TQHBox *nameBox = 0;
TQGroupBox *keyFrame = new TQGroupBox TQGroupBox *keyFrame = new TQGroupBox
(1, Qt::Horizontal, i18n("Key signature"), vbox); (1, TQt::Horizontal, i18n("Key signature"), vbox);
TQGroupBox *transposeFrame = new TQButtonGroup TQGroupBox *transposeFrame = new TQButtonGroup
(1, Qt::Horizontal, i18n("Key transposition"), vbox); (1, TQt::Horizontal, i18n("Key transposition"), vbox);
TQGroupBox *buttonFrame = new TQButtonGroup TQGroupBox *buttonFrame = new TQButtonGroup
(1, Qt::Horizontal, i18n("Scope"), vbox); (1, TQt::Horizontal, i18n("Scope"), vbox);
TQButtonGroup *conversionFrame = new TQButtonGroup TQButtonGroup *conversionFrame = new TQButtonGroup
(1, Qt::Horizontal, i18n("Existing notes following key change"), vbox); (1, TQt::Horizontal, i18n("Existing notes following key change"), vbox);
keyBox = new TQHBox(keyFrame); keyBox = new TQHBox(keyFrame);
nameBox = new TQHBox(keyFrame); nameBox = new TQHBox(keyFrame);
@ -91,14 +91,14 @@ KeySignatureDialog::KeySignatureDialog(TQWidget *parent,
explanatoryLabel = new TQLabel(explanatoryText, keyFrame); explanatoryLabel = new TQLabel(explanatoryText, keyFrame);
} }
BigArrowButton *keyDown = new BigArrowButton(keyBox, Qt::LeftArrow); BigArrowButton *keyDown = new BigArrowButton(keyBox, TQt::LeftArrow);
TQToolTip::add TQToolTip::add
(keyDown, i18n("Flatten")); (keyDown, i18n("Flatten"));
m_keyLabel = new TQLabel(i18n("Key"), keyBox); m_keyLabel = new TQLabel(i18n("Key"), keyBox);
m_keyLabel->setAlignment(AlignVCenter | AlignHCenter); m_keyLabel->setAlignment(AlignVCenter | AlignHCenter);
BigArrowButton *keyUp = new BigArrowButton(keyBox, Qt::RightArrow); BigArrowButton *keyUp = new BigArrowButton(keyBox, TQt::RightArrow);
TQToolTip::add TQToolTip::add
(keyUp, i18n("Sharpen")); (keyUp, i18n("Sharpen"));

@ -100,7 +100,7 @@ LilyPondOptionsDialog::LilyPondOptionsDialog(TQWidget *parent,
// //
TQGroupBox *basicOptionsBox = new TQGroupBox TQGroupBox *basicOptionsBox = new TQGroupBox
(1, Qt::Horizontal, (1, TQt::Horizontal,
i18n("Basic options"), generalFrame); i18n("Basic options"), generalFrame);
generalGrid->addWidget(basicOptionsBox, 0, 0); generalGrid->addWidget(basicOptionsBox, 0, 0);
@ -163,7 +163,7 @@ LilyPondOptionsDialog::LilyPondOptionsDialog(TQWidget *parent,
// //
TQGroupBox *staffOptionsBox = new TQGroupBox TQGroupBox *staffOptionsBox = new TQGroupBox
(1, Qt::Horizontal, (1, TQt::Horizontal,
i18n("Staff level options"), generalFrame); i18n("Staff level options"), generalFrame);
generalGrid->addWidget(staffOptionsBox, 1, 0); generalGrid->addWidget(staffOptionsBox, 1, 0);
@ -192,7 +192,7 @@ LilyPondOptionsDialog::LilyPondOptionsDialog(TQWidget *parent,
// //
TQGroupBox *notationOptionsBox = new TQGroupBox TQGroupBox *notationOptionsBox = new TQGroupBox
(1, Qt::Horizontal, (1, TQt::Horizontal,
i18n("Notation options"), generalFrame); i18n("Notation options"), generalFrame);
generalGrid->addWidget(notationOptionsBox, 2, 0); generalGrid->addWidget(notationOptionsBox, 2, 0);
@ -238,7 +238,7 @@ LilyPondOptionsDialog::LilyPondOptionsDialog(TQWidget *parent,
// //
TQGroupBox *advancedLayoutOptionsBox = new TQGroupBox TQGroupBox *advancedLayoutOptionsBox = new TQGroupBox
(1, Qt::Horizontal, (1, TQt::Horizontal,
i18n("Layout options"), advancedFrame); i18n("Layout options"), advancedFrame);
advancedGrid->addWidget(advancedLayoutOptionsBox, 0, 0); advancedGrid->addWidget(advancedLayoutOptionsBox, 0, 0);
@ -261,7 +261,7 @@ LilyPondOptionsDialog::LilyPondOptionsDialog(TQWidget *parent,
layoutAdvancedLayout->addMultiCellWidget(m_lilyRaggedBottom, 1, 2, 0, 1); layoutAdvancedLayout->addMultiCellWidget(m_lilyRaggedBottom, 1, 2, 0, 1);
TQGroupBox *miscOptionsBox = new TQGroupBox TQGroupBox *miscOptionsBox = new TQGroupBox
(1, Qt::Horizontal, (1, TQt::Horizontal,
i18n("Miscellaneous options"), advancedFrame); i18n("Miscellaneous options"), advancedFrame);
advancedGrid->addWidget(miscOptionsBox, 1, 0); advancedGrid->addWidget(miscOptionsBox, 1, 0);

@ -57,7 +57,7 @@ LyricEditDialog::LyricEditDialog(TQWidget *parent,
TQVBox *vbox = makeVBoxMainWidget(); TQVBox *vbox = makeVBoxMainWidget();
TQGroupBox *groupBox = new TQGroupBox TQGroupBox *groupBox = new TQGroupBox
(1, Qt::Horizontal, i18n("Lyrics for this segment"), vbox); (1, TQt::Horizontal, i18n("Lyrics for this segment"), vbox);
TQHBox *hbox = new TQHBox(groupBox); TQHBox *hbox = new TQHBox(groupBox);
hbox->setSpacing(5); hbox->setSpacing(5);

@ -44,7 +44,7 @@ MakeOrnamentDialog::MakeOrnamentDialog(TQWidget *parent, TQString defaultName,
Ok | Cancel, Ok) Ok | Cancel, Ok)
{ {
TQVBox *vbox = makeVBoxMainWidget(); TQVBox *vbox = makeVBoxMainWidget();
TQGroupBox *nameBox = new TQGroupBox(2, Qt::Vertical, i18n("Name"), vbox); TQGroupBox *nameBox = new TQGroupBox(2, TQt::Vertical, i18n("Name"), vbox);
new TQLabel(i18n("The name is used to identify both the ornament\nand the triggered segment that stores\nthe ornament's notes."), nameBox); new TQLabel(i18n("The name is used to identify both the ornament\nand the triggered segment that stores\nthe ornament's notes."), nameBox);

@ -72,7 +72,7 @@ ManageMetronomeDialog::ManageMetronomeDialog(TQWidget *parent,
TQVBox *vbox = new TQVBox(hbox); TQVBox *vbox = new TQVBox(hbox);
TQGroupBox *deviceBox = new TQGroupBox TQGroupBox *deviceBox = new TQGroupBox
(1, Qt::Horizontal, i18n("Metronome Instrument"), vbox); (1, TQt::Horizontal, i18n("Metronome Instrument"), vbox);
TQFrame *frame = new TQFrame(deviceBox); TQFrame *frame = new TQFrame(deviceBox);
TQGridLayout *layout = new TQGridLayout(frame, 2, 2, 10, 5); TQGridLayout *layout = new TQGridLayout(frame, 2, 2, 10, 5);
@ -113,7 +113,7 @@ ManageMetronomeDialog::ManageMetronomeDialog(TQWidget *parent,
layout->addWidget(m_metronomeInstrument, 1, 1); layout->addWidget(m_metronomeInstrument, 1, 1);
TQGroupBox *beatBox = new TQGroupBox TQGroupBox *beatBox = new TQGroupBox
(1, Qt::Horizontal, i18n("Beats"), vbox); (1, TQt::Horizontal, i18n("Beats"), vbox);
frame = new TQFrame(beatBox); frame = new TQFrame(beatBox);
layout = new TQGridLayout(frame, 4, 2, 10, 5); layout = new TQGridLayout(frame, 4, 2, 10, 5);
@ -161,7 +161,7 @@ ManageMetronomeDialog::ManageMetronomeDialog(TQWidget *parent,
connect(m_metronomePitchSelector, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotPitchSelectorChanged(int))); connect(m_metronomePitchSelector, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotPitchSelectorChanged(int)));
TQGroupBox *enableBox = new TQGroupBox TQGroupBox *enableBox = new TQGroupBox
(1, Qt::Horizontal, i18n("Metronome Activated"), vbox); (1, TQt::Horizontal, i18n("Metronome Activated"), vbox);
m_playEnabled = new TQCheckBox(i18n("Playing"), enableBox); m_playEnabled = new TQCheckBox(i18n("Playing"), enableBox);
m_recordEnabled = new TQCheckBox(i18n("Recording"), enableBox); m_recordEnabled = new TQCheckBox(i18n("Recording"), enableBox);
connect(m_playEnabled, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSetModified())); connect(m_playEnabled, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSetModified()));

@ -89,7 +89,7 @@ MarkerModifyDialog::initialise(Composition *composition,
m_timeEdit->setValue(time); m_timeEdit->setValue(time);
*/ */
TQGroupBox *groupBox = new TQGroupBox TQGroupBox *groupBox = new TQGroupBox
(1, Qt::Horizontal, i18n("Marker Properties"), vbox); (1, TQt::Horizontal, i18n("Marker Properties"), vbox);
TQFrame *frame = new TQFrame(groupBox); TQFrame *frame = new TQFrame(groupBox);

@ -47,7 +47,7 @@ PasteNotationDialog::PasteNotationDialog(TQWidget *parent,
TQVBox *vbox = makeVBoxMainWidget(); TQVBox *vbox = makeVBoxMainWidget();
TQButtonGroup *pasteTypeGroup = new TQButtonGroup TQButtonGroup *pasteTypeGroup = new TQButtonGroup
(1, Qt::Horizontal, i18n("Paste type"), vbox); (1, TQt::Horizontal, i18n("Paste type"), vbox);
PasteEventsCommand::PasteTypeMap pasteTypes = PasteEventsCommand::PasteTypeMap pasteTypes =
PasteEventsCommand::getPasteTypes(); PasteEventsCommand::getPasteTypes();
@ -64,7 +64,7 @@ PasteNotationDialog::PasteNotationDialog(TQWidget *parent,
} }
TQButtonGroup *setAsDefaultGroup = new TQButtonGroup TQButtonGroup *setAsDefaultGroup = new TQButtonGroup
(1, Qt::Horizontal, i18n("Options"), vbox); (1, TQt::Horizontal, i18n("Options"), vbox);
m_setAsDefaultButton = new TQCheckBox m_setAsDefaultButton = new TQCheckBox
(i18n("Make this the default paste type"), setAsDefaultGroup); (i18n("Make this the default paste type"), setAsDefaultGroup);

@ -56,7 +56,7 @@ RescaleDialog::RescaleDialog(TQWidget *parent,
constrainToCompositionDuration); constrainToCompositionDuration);
if (showCloseGapOption) { if (showCloseGapOption) {
TQGroupBox *optionBox = new TQGroupBox(1, Qt::Horizontal, i18n("Options"), vbox); TQGroupBox *optionBox = new TQGroupBox(1, TQt::Horizontal, i18n("Options"), vbox);
m_closeGap = new TQCheckBox(i18n("Adjust times of following events accordingly"), m_closeGap = new TQCheckBox(i18n("Adjust times of following events accordingly"),
optionBox); optionBox);
TDEConfig *config = kapp->config(); TDEConfig *config = kapp->config();

@ -70,7 +70,7 @@ SimpleEventEditDialog::SimpleEventEditDialog(TQWidget *parent,
TQVBox *vbox = makeVBoxMainWidget(); TQVBox *vbox = makeVBoxMainWidget();
TQGroupBox *groupBox = new TQGroupBox TQGroupBox *groupBox = new TQGroupBox
(1, Qt::Horizontal, i18n("Event Properties"), vbox); (1, TQt::Horizontal, i18n("Event Properties"), vbox);
TQFrame *frame = new TQFrame(groupBox); TQFrame *frame = new TQFrame(groupBox);
@ -187,7 +187,7 @@ SimpleEventEditDialog::SimpleEventEditDialog(TQWidget *parent,
TQT_SLOT(slotSysexSave())); TQT_SLOT(slotSysexSave()));
m_notationGroupBox = new TQGroupBox m_notationGroupBox = new TQGroupBox
(1, Qt::Horizontal, i18n("Notation Properties"), vbox); (1, TQt::Horizontal, i18n("Notation Properties"), vbox);
frame = new TQFrame(m_notationGroupBox); frame = new TQFrame(m_notationGroupBox);

@ -48,7 +48,7 @@ SplitByRecordingSrcDialog::SplitByRecordingSrcDialog(TQWidget *parent, Rosegarde
TQVBox *vBox = makeVBoxMainWidget(); TQVBox *vBox = makeVBoxMainWidget();
TQGroupBox *groupBox = new TQGroupBox TQGroupBox *groupBox = new TQGroupBox
(1, Qt::Horizontal, i18n("Recording Source"), vBox); (1, TQt::Horizontal, i18n("Recording Source"), vBox);
TQFrame *frame = new TQFrame(groupBox); TQFrame *frame = new TQFrame(groupBox);
TQGridLayout *layout = new TQGridLayout(frame, 2, 2, 10, 5); TQGridLayout *layout = new TQGridLayout(frame, 2, 2, 10, 5);

@ -58,7 +58,7 @@ TempoDialog::TempoDialog(TQWidget *parent, RosegardenGUIDoc *doc,
setHelp("tempo"); setHelp("tempo");
TQVBox *vbox = makeVBoxMainWidget(); TQVBox *vbox = makeVBoxMainWidget();
TQGroupBox *groupBox = new TQGroupBox(1, Qt::Horizontal, i18n("Tempo"), vbox); TQGroupBox *groupBox = new TQGroupBox(1, TQt::Horizontal, i18n("Tempo"), vbox);
TQFrame *frame = new TQFrame(groupBox); TQFrame *frame = new TQFrame(groupBox);
TQGridLayout *layout = new TQGridLayout(frame, 4, 3, 5, 5); TQGridLayout *layout = new TQGridLayout(frame, 4, 3, 5, 5);
@ -122,7 +122,7 @@ TempoDialog::TempoDialog(TQWidget *parent, RosegardenGUIDoc *doc,
} }
// Scope Box // Scope Box
TQButtonGroup *scopeGroup = new TQButtonGroup(1, Qt::Horizontal, TQButtonGroup *scopeGroup = new TQButtonGroup(1, TQt::Horizontal,
i18n("Scope"), vbox); i18n("Scope"), vbox);
// new TQLabel(scopeBox); // new TQLabel(scopeBox);

@ -61,11 +61,11 @@ TextEventDialog::TextEventDialog(TQWidget *parent,
TQVBox *vbox = makeVBoxMainWidget(); TQVBox *vbox = makeVBoxMainWidget();
TQGroupBox *entryBox = new TQGroupBox TQGroupBox *entryBox = new TQGroupBox
(1, Qt::Horizontal, i18n("Specification"), vbox); (1, TQt::Horizontal, i18n("Specification"), vbox);
TQGroupBox *exampleBox = new TQGroupBox TQGroupBox *exampleBox = new TQGroupBox
(1, Qt::Horizontal, i18n("Preview"), vbox); (1, TQt::Horizontal, i18n("Preview"), vbox);
TQGrid *entryGrid = new TQGrid(2, Qt::Horizontal, entryBox); TQGrid *entryGrid = new TQGrid(2, TQt::Horizontal, entryBox);
new TQLabel(i18n("Text: "), entryGrid); new TQLabel(i18n("Text: "), entryGrid);
m_text = new TQLineEdit(entryGrid); m_text = new TQLineEdit(entryGrid);

@ -77,7 +77,7 @@ TimeSignatureDialog::TimeSignatureDialog(TQWidget *parent,
TQVBox *vbox = makeVBoxMainWidget(); TQVBox *vbox = makeVBoxMainWidget();
TQGroupBox *groupBox = new TQGroupBox TQGroupBox *groupBox = new TQGroupBox
(1, Qt::Horizontal, i18n("Time signature"), vbox); (1, TQt::Horizontal, i18n("Time signature"), vbox);
TQHBox *numBox = new TQHBox(groupBox); TQHBox *numBox = new TQHBox(groupBox);
TQHBox *denomBox = new TQHBox(groupBox); TQHBox *denomBox = new TQHBox(groupBox);
@ -86,8 +86,8 @@ TimeSignatureDialog::TimeSignatureDialog(TQWidget *parent,
explanatoryLabel = new TQLabel(explanatoryText, groupBox); explanatoryLabel = new TQLabel(explanatoryText, groupBox);
} }
BigArrowButton *numDown = new BigArrowButton(numBox, Qt::LeftArrow); BigArrowButton *numDown = new BigArrowButton(numBox, TQt::LeftArrow);
BigArrowButton *denomDown = new BigArrowButton(denomBox, Qt::LeftArrow); BigArrowButton *denomDown = new BigArrowButton(denomBox, TQt::LeftArrow);
m_numLabel = new TQLabel m_numLabel = new TQLabel
(TQString("%1").arg(m_timeSignature.getNumerator()), numBox); (TQString("%1").arg(m_timeSignature.getNumerator()), numBox);
@ -100,8 +100,8 @@ TimeSignatureDialog::TimeSignatureDialog(TQWidget *parent,
m_numLabel->setFont(*timeSigFont); m_numLabel->setFont(*timeSigFont);
m_denomLabel->setFont(*timeSigFont); m_denomLabel->setFont(*timeSigFont);
BigArrowButton *numUp = new BigArrowButton(numBox, Qt::RightArrow); BigArrowButton *numUp = new BigArrowButton(numBox, TQt::RightArrow);
BigArrowButton *denomUp = new BigArrowButton(denomBox, Qt::RightArrow); BigArrowButton *denomUp = new BigArrowButton(denomBox, TQt::RightArrow);
TQObject::connect(numDown, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNumDown())); TQObject::connect(numDown, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNumDown()));
TQObject::connect(numUp, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNumUp())); TQObject::connect(numUp, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNumUp()));
@ -124,7 +124,7 @@ TimeSignatureDialog::TimeSignatureDialog(TQWidget *parent,
m_timeEditor = 0; m_timeEditor = 0;
groupBox = new TQButtonGroup(1, Qt::Horizontal, i18n("Scope"), vbox); groupBox = new TQButtonGroup(1, TQt::Horizontal, i18n("Scope"), vbox);
int barNo = composition->getBarNumber(m_time); int barNo = composition->getBarNumber(m_time);
bool atStartOfBar = (m_time == composition->getBarStart(barNo)); bool atStartOfBar = (m_time == composition->getBarStart(barNo));
@ -166,7 +166,7 @@ TimeSignatureDialog::TimeSignatureDialog(TQWidget *parent,
} }
} }
groupBox = new TQGroupBox(1, Qt::Horizontal, i18n("Options"), vbox); groupBox = new TQGroupBox(1, TQt::Horizontal, i18n("Options"), vbox);
TDEConfig *config = kapp->config(); TDEConfig *config = kapp->config();
config->setGroup(GeneralOptionsConfigGroup); config->setGroup(GeneralOptionsConfigGroup);

@ -53,7 +53,7 @@ TupletDialog::TupletDialog(TQWidget *parent, Note::Type defaultUnitType,
TQVBox *vbox = makeVBoxMainWidget(); TQVBox *vbox = makeVBoxMainWidget();
TQGroupBox *timingBox = new TQGroupBox TQGroupBox *timingBox = new TQGroupBox
(1, Qt::Horizontal, i18n("New timing for tuplet group"), vbox); (1, TQt::Horizontal, i18n("New timing for tuplet group"), vbox);
if (m_maxDuration > 0) { if (m_maxDuration > 0) {
@ -109,9 +109,9 @@ TupletDialog::TupletDialog(TQWidget *parent, Note::Type defaultUnitType,
updateTupledCombo(); updateTupledCombo();
m_timingDisplayBox = new TQGroupBox m_timingDisplayBox = new TQGroupBox
(1, Qt::Horizontal, i18n("Timing calculations"), vbox); (1, TQt::Horizontal, i18n("Timing calculations"), vbox);
TQGrid *timingDisplayGrid = new TQGrid(3, Qt::Horizontal, m_timingDisplayBox); TQGrid *timingDisplayGrid = new TQGrid(3, TQt::Horizontal, m_timingDisplayBox);
if (maxDuration > 0) { if (maxDuration > 0) {

@ -58,7 +58,7 @@ UseOrnamentDialog::UseOrnamentDialog(TQWidget *parent,
TQVBox *vbox = makeVBoxMainWidget(); TQVBox *vbox = makeVBoxMainWidget();
TQLabel *label; TQLabel *label;
TQGroupBox *notationBox = new TQGroupBox(1, Qt::Horizontal, i18n("Notation"), vbox); TQGroupBox *notationBox = new TQGroupBox(1, TQt::Horizontal, i18n("Notation"), vbox);
TQFrame *frame = new TQFrame(notationBox); TQFrame *frame = new TQFrame(notationBox);
TQGridLayout *layout = new TQGridLayout(frame, 4, 1, 5, 5); TQGridLayout *layout = new TQGridLayout(frame, 4, 1, 5, 5);
@ -99,7 +99,7 @@ UseOrnamentDialog::UseOrnamentDialog(TQWidget *parent,
m_text = new TQLineEdit(frame); m_text = new TQLineEdit(frame);
layout->addWidget(m_text, 0, 3); layout->addWidget(m_text, 0, 3);
TQGroupBox *performBox = new TQGroupBox(1, Qt::Horizontal, i18n("Performance"), vbox); TQGroupBox *performBox = new TQGroupBox(1, TQt::Horizontal, i18n("Performance"), vbox);
frame = new TQFrame(performBox); frame = new TQFrame(performBox);
layout = new TQGridLayout(frame, 3, 2, 5, 5); layout = new TQGridLayout(frame, 3, 2, 5, 5);

@ -124,7 +124,7 @@ EventView::EventView(RosegardenGUIDoc *doc,
// define some note filtering buttons in a group // define some note filtering buttons in a group
// //
m_filterGroup = m_filterGroup =
new TQButtonGroup(1, Qt::Horizontal, i18n("Event filters"), getCentralWidget()); new TQButtonGroup(1, TQt::Horizontal, i18n("Event filters"), getCentralWidget());
m_noteCheckBox = new TQCheckBox(i18n("Note"), m_filterGroup); m_noteCheckBox = new TQCheckBox(i18n("Note"), m_filterGroup);
m_programCheckBox = new TQCheckBox(i18n("Program Change"), m_filterGroup); m_programCheckBox = new TQCheckBox(i18n("Program Change"), m_filterGroup);
@ -156,7 +156,7 @@ EventView::EventView(RosegardenGUIDoc *doc,
segments[0]->getComposition()->getTriggerSegmentRec(id); segments[0]->getComposition()->getTriggerSegmentRec(id);
TQGroupBox *groupBox = new TQGroupBox TQGroupBox *groupBox = new TQGroupBox
(1, Qt::Horizontal, i18n("Triggered Segment Properties"), getCentralWidget()); (1, TQt::Horizontal, i18n("Triggered Segment Properties"), getCentralWidget());
TQFrame *frame = new TQFrame(groupBox); TQFrame *frame = new TQFrame(groupBox);
TQGridLayout *layout = new TQGridLayout(frame, 5, 3, 5, 5); TQGridLayout *layout = new TQGridLayout(frame, 5, 3, 5, 5);

@ -181,7 +181,7 @@ FingeringBox::mousePressEvent(TQMouseEvent *event)
if (!m_editable) if (!m_editable)
return; return;
if((event->button() == Qt::LeftButton) && m_editable) { if((event->button() == TQt::LeftButton) && m_editable) {
// Find string position // Find string position
m_press_string_num = getStringNumber(event->pos()); m_press_string_num = getStringNumber(event->pos());

@ -1396,7 +1396,7 @@ void MatrixView::slotMousePressed(timeT time, int pitch,
m_tool->handleMousePress(time, pitch, 0, e, el); m_tool->handleMousePress(time, pitch, 0, e, el);
if (e->button() != Qt::RightButton) { if (e->button() != TQt::RightButton) {
getCanvasView()->startAutoScroll(); getCanvasView()->startAutoScroll();
} }
@ -2215,7 +2215,7 @@ MatrixView::initZoomToolbar()
} }
m_hZoomSlider = new ZoomSlider<double> m_hZoomSlider = new ZoomSlider<double>
(zoomSizes, -1, Qt::Horizontal, zoomToolbar, "tde toolbar widget"); (zoomSizes, -1, TQt::Horizontal, zoomToolbar, "tde toolbar widget");
m_hZoomSlider->setTracking(true); m_hZoomSlider->setTracking(true);
m_hZoomSlider->setFocusPolicy(TQWidget::NoFocus); m_hZoomSlider->setFocusPolicy(TQWidget::NoFocus);

@ -256,7 +256,7 @@ void PianoKeyboard::mouseMoveEvent(TQMouseEvent* e)
} }
} }
if (e->state() & Qt::LeftButton) { if (e->state() & TQt::LeftButton) {
if (m_selecting) if (m_selecting)
emit keySelected(e->y(), true); emit keySelected(e->y(), true);
else else
@ -272,7 +272,7 @@ void PianoKeyboard::mousePressEvent(TQMouseEvent *e)
{ {
TQt::ButtonState bs = e->state(); TQt::ButtonState bs = e->state();
if (e->button() == Qt::LeftButton) { if (e->button() == TQt::LeftButton) {
m_mouseDown = true; m_mouseDown = true;
m_selecting = (bs & TQt::ShiftButton); m_selecting = (bs & TQt::ShiftButton);
m_lastKeyPressed = e->y(); m_lastKeyPressed = e->y();
@ -286,7 +286,7 @@ void PianoKeyboard::mousePressEvent(TQMouseEvent *e)
void PianoKeyboard::mouseReleaseEvent(TQMouseEvent *e) void PianoKeyboard::mouseReleaseEvent(TQMouseEvent *e)
{ {
if (e->button() == Qt::LeftButton) { if (e->button() == TQt::LeftButton) {
m_mouseDown = false; m_mouseDown = false;
m_selecting = false; m_selecting = false;
emit keyReleased(e->y(), false); emit keyReleased(e->y(), false);

@ -50,7 +50,7 @@ TQPointArray QCanvasMatrixDiamond::areaPoints() const
int pw = (pen().width() + 1) / 2; int pw = (pen().width() + 1) / 2;
if ( pw < 1 ) if ( pw < 1 )
pw = 1; pw = 1;
if ( pen() == Qt::NoPen ) if ( pen() == TQt::NoPen )
pw = 0; pw = 0;
pa[0] = TQPoint((int)x() - height() / 2 - pw, (int)y() - pw); pa[0] = TQPoint((int)x() - height() / 2 - pw, (int)y() - pw);
pa[1] = pa[0] + TQPoint(height() + pw * 2, 0); pa[1] = pa[0] + TQPoint(height() + pw * 2, 0);

@ -202,7 +202,7 @@ NoteFont::lookupDrawRep(TQPixmap *pixmap) const
return 0; return 0;
if (image.depth() > 1) { if (image.depth() > 1) {
image = image.convertDepth(1, Qt::MonoOnly | Qt::ThresholdDither); image = image.convertDepth(1, TQt::MonoOnly | TQt::ThresholdDither);
} }
NoteCharacterDrawRep *a = new NoteCharacterDrawRep(); NoteCharacterDrawRep *a = new NoteCharacterDrawRep();

@ -2921,7 +2921,7 @@ NotePixmapFactory::drawOttavaAux(int length, int octavesUp,
m_p->drawLine(x0, y0, x1, y0); m_p->drawLine(x0, y0, x1, y0);
pen.setStyle(Qt::SolidLine); pen.setStyle(TQt::SolidLine);
m_p->painter().setPen(pen); m_p->painter().setPen(pen);
// if (!m_inPrinterMethod) m_p->maskPainter().setPen(pen); // if (!m_inPrinterMethod) m_p->maskPainter().setPen(pen);

@ -42,8 +42,8 @@ public:
m_externalPainter = painter; m_externalPainter = painter;
m_useMask = false; m_useMask = false;
painter->setPen(TQPen(Qt::black, 1, Qt::SolidLine, painter->setPen(TQPen(TQt::black, 1, TQt::SolidLine,
Qt::RoundCap, Qt::RoundJoin)); TQt::RoundCap, TQt::RoundJoin));
if (m_externalPainter) { if (m_externalPainter) {
m_painter = m_externalPainter; m_painter = m_externalPainter;

@ -66,7 +66,7 @@ ControlParameterEditDialog::ControlParameterEditDialog(
TQVBox *vbox = makeVBoxMainWidget(); TQVBox *vbox = makeVBoxMainWidget();
TQGroupBox *groupBox = new TQGroupBox TQGroupBox *groupBox = new TQGroupBox
(1, Qt::Horizontal, i18n("Control Event Properties"), vbox); (1, TQt::Horizontal, i18n("Control Event Properties"), vbox);
TQFrame *frame = new TQFrame(groupBox); TQFrame *frame = new TQFrame(groupBox);

@ -89,7 +89,7 @@ MarkerEditor::MarkerEditor(TQWidget *parent,
for (int i = 0; i < 3; ++i) for (int i = 0; i < 3; ++i)
m_listView->setColumnAlignment(i, TQt::AlignHCenter); m_listView->setColumnAlignment(i, TQt::AlignHCenter);
TQGroupBox *posGroup = new TQGroupBox(2, Qt::Horizontal, TQGroupBox *posGroup = new TQGroupBox(2, TQt::Horizontal,
i18n("Pointer position"), mainFrame); i18n("Pointer position"), mainFrame);
new TQLabel(i18n("Absolute time:"), posGroup); new TQLabel(i18n("Absolute time:"), posGroup);

@ -40,7 +40,7 @@ TrackHeader::paintEvent(TQPaintEvent *e)
{ {
TQPainter p( this ); TQPainter p( this );
p.setPen( colorGroup().buttonText() ); p.setPen( colorGroup().buttonText() );
int pos = (orientation() == Qt::Horizontal) int pos = (orientation() == TQt::Horizontal)
? e->rect().left() ? e->rect().left()
: e->rect().top(); : e->rect().top();
int id = mapToIndex( sectionAt( pos + offset() ) ); int id = mapToIndex( sectionAt( pos + offset() ) );
@ -52,8 +52,8 @@ TrackHeader::paintEvent(TQPaintEvent *e)
for ( int i = id; i < count(); i++ ) { for ( int i = id; i < count(); i++ ) {
TQRect r = sRect( i ); TQRect r = sRect( i );
paintSection( &p, i, r ); paintSection( &p, i, r );
if ( orientation() == Qt::Horizontal && r. right() >= e->rect().right() || if ( orientation() == TQt::Horizontal && r. right() >= e->rect().right() ||
orientation() == Qt::Vertical && r. bottom() >= e->rect().bottom() ) orientation() == TQt::Vertical && r. bottom() >= e->rect().bottom() )
return ; return ;
} }

@ -142,12 +142,12 @@ TrackLabel::setSelected(bool on)
void void
TrackLabel::mousePressEvent(TQMouseEvent *e) TrackLabel::mousePressEvent(TQMouseEvent *e)
{ {
if (e->button() == Qt::RightButton) { if (e->button() == TQt::RightButton) {
emit clicked(); emit clicked();
emit changeToInstrumentList(); emit changeToInstrumentList();
} else if (e->button() == Qt::LeftButton) { } else if (e->button() == TQt::LeftButton) {
// start a timer on this hold // start a timer on this hold
m_pressTimer->start(200, true); // 200ms, single shot m_pressTimer->start(200, true); // 200ms, single shot
@ -161,7 +161,7 @@ TrackLabel::mouseReleaseEvent(TQMouseEvent *e)
if (m_pressTimer->isActive()) if (m_pressTimer->isActive())
m_pressTimer->stop(); m_pressTimer->stop();
if (e->button() == Qt::LeftButton) { if (e->button() == TQt::LeftButton) {
emit clicked(); emit clicked();
} }
} }
@ -169,7 +169,7 @@ TrackLabel::mouseReleaseEvent(TQMouseEvent *e)
void void
TrackLabel::mouseDoubleClickEvent(TQMouseEvent *e) TrackLabel::mouseDoubleClickEvent(TQMouseEvent *e)
{ {
if (e->button() != Qt::LeftButton) if (e->button() != TQt::LeftButton)
return ; return ;
// Highlight this label alone and cheat using // Highlight this label alone and cheat using

@ -878,7 +878,7 @@ void CompositionView::drawAreaAudioPreviews(TQPainter * p, const TQRect& clipRec
// << " - preResizeOrigin : " << api->preResizeOrigin << endl; // << " - preResizeOrigin : " << api->preResizeOrigin << endl;
p->drawImage(drawBasePoint, api->pixmap[idx], localRect, p->drawImage(drawBasePoint, api->pixmap[idx], localRect,
Qt::ColorOnly | Qt::ThresholdDither | Qt::AvoidDither); TQt::ColorOnly | TQt::ThresholdDither | TQt::AvoidDither);
++idx; ++idx;
if (idx >= api->pixmap.size()) if (idx >= api->pixmap.size())
@ -1361,8 +1361,8 @@ void CompositionView::contentsMousePressEvent(TQMouseEvent* e)
slotSetPencilOverExisting((bs & TQt::AltButton + TQt::ControlButton) != 0); slotSetPencilOverExisting((bs & TQt::AltButton + TQt::ControlButton) != 0);
switch (e->button()) { switch (e->button()) {
case Qt::LeftButton: case TQt::LeftButton:
case Qt::MidButton: case TQt::MidButton:
startAutoScroll(); startAutoScroll();
if (m_tool) if (m_tool)
@ -1371,7 +1371,7 @@ void CompositionView::contentsMousePressEvent(TQMouseEvent* e)
RG_DEBUG << "CompositionView::contentsMousePressEvent() :" RG_DEBUG << "CompositionView::contentsMousePressEvent() :"
<< this << " no tool\n"; << this << " no tool\n";
break; break;
case Qt::RightButton: case TQt::RightButton:
if (m_tool) if (m_tool)
m_tool->handleRightButtonPress(e); m_tool->handleRightButtonPress(e);
else else
@ -1392,8 +1392,8 @@ void CompositionView::contentsMouseReleaseEvent(TQMouseEvent* e)
if (!m_tool) if (!m_tool)
return ; return ;
if (e->button() == Qt::LeftButton || if (e->button() == TQt::LeftButton ||
e->button() == Qt::MidButton ) e->button() == TQt::MidButton )
m_tool->handleMouseButtonRelease(e); m_tool->handleMouseButtonRelease(e);
} }

@ -76,7 +76,7 @@ void SegmentMover::slotCanvasScrolled(int newX, int newY)
{ {
TQMouseEvent tmpEvent(TQEvent::MouseMove, TQMouseEvent tmpEvent(TQEvent::MouseMove,
m_canvas->viewport()->mapFromGlobal(TQCursor::pos()) + TQPoint(newX, newY), m_canvas->viewport()->mapFromGlobal(TQCursor::pos()) + TQPoint(newX, newY),
Qt::NoButton, Qt::NoButton); TQt::NoButton, TQt::NoButton);
handleMouseMove(&tmpEvent); handleMouseMove(&tmpEvent);
} }

@ -78,13 +78,13 @@ void SegmentPencil::slotCanvasScrolled(int newX, int newY)
{ {
TQMouseEvent tmpEvent(TQEvent::MouseMove, TQMouseEvent tmpEvent(TQEvent::MouseMove,
m_canvas->viewport()->mapFromGlobal(TQCursor::pos()) + TQPoint(newX, newY), m_canvas->viewport()->mapFromGlobal(TQCursor::pos()) + TQPoint(newX, newY),
Qt::NoButton, Qt::NoButton); TQt::NoButton, TQt::NoButton);
handleMouseMove(&tmpEvent); handleMouseMove(&tmpEvent);
} }
void SegmentPencil::handleMouseButtonPress(TQMouseEvent *e) void SegmentPencil::handleMouseButtonPress(TQMouseEvent *e)
{ {
if (e->button() == Qt::RightButton) if (e->button() == TQt::RightButton)
return; return;
// is user holding Ctrl+Alt? (ugly, but we are running short on available // is user holding Ctrl+Alt? (ugly, but we are running short on available
@ -151,7 +151,7 @@ void SegmentPencil::handleMouseButtonPress(TQMouseEvent *e)
void SegmentPencil::handleMouseButtonRelease(TQMouseEvent* e) void SegmentPencil::handleMouseButtonRelease(TQMouseEvent* e)
{ {
if (e->button() == Qt::RightButton) if (e->button() == TQt::RightButton)
return ; return ;
setContextHelpFor(e->pos()); setContextHelpFor(e->pos());

@ -83,7 +83,7 @@ void SegmentResizer::slotCanvasScrolled(int newX, int newY)
{ {
TQMouseEvent tmpEvent(TQEvent::MouseMove, TQMouseEvent tmpEvent(TQEvent::MouseMove,
m_canvas->viewport()->mapFromGlobal(TQCursor::pos()) + TQPoint(newX, newY), m_canvas->viewport()->mapFromGlobal(TQCursor::pos()) + TQPoint(newX, newY),
Qt::NoButton, Qt::NoButton); TQt::NoButton, TQt::NoButton);
handleMouseMove(&tmpEvent); handleMouseMove(&tmpEvent);
} }

@ -86,7 +86,7 @@ void SegmentSelector::slotCanvasScrolled(int newX, int newY)
{ {
TQMouseEvent tmpEvent(TQEvent::MouseMove, TQMouseEvent tmpEvent(TQEvent::MouseMove,
m_canvas->viewport()->mapFromGlobal(TQCursor::pos()) + TQPoint(newX, newY), m_canvas->viewport()->mapFromGlobal(TQCursor::pos()) + TQPoint(newX, newY),
Qt::NoButton, Qt::NoButton); TQt::NoButton, TQt::NoButton);
handleMouseMove(&tmpEvent); handleMouseMove(&tmpEvent);
} }
@ -172,8 +172,8 @@ SegmentSelector::handleMouseButtonPress(TQMouseEvent *e)
// Add on middle button or ctrl+left - bounding box on rest // Add on middle button or ctrl+left - bounding box on rest
// //
if (e->button() == Qt::MidButton || if (e->button() == TQt::MidButton ||
(e->button() == Qt::LeftButton && (e->state() & ControlButton))) { (e->button() == TQt::LeftButton && (e->state() & ControlButton))) {
m_dispatchTool = getToolBox()->getTool(SegmentPencil::ToolName); m_dispatchTool = getToolBox()->getTool(SegmentPencil::ToolName);

@ -84,7 +84,7 @@ TempoView::TempoView(RosegardenGUIDoc *doc, TQWidget *parent, timeT openTime):
// define some note filtering buttons in a group // define some note filtering buttons in a group
// //
m_filterGroup = m_filterGroup =
new TQButtonGroup(1, Qt::Horizontal, i18n("Filter"), getCentralWidget()); new TQButtonGroup(1, TQt::Horizontal, i18n("Filter"), getCentralWidget());
m_tempoCheckBox = new TQCheckBox(i18n("Tempo"), m_filterGroup); m_tempoCheckBox = new TQCheckBox(i18n("Tempo"), m_filterGroup);
m_timeSigCheckBox = new TQCheckBox(i18n("Time Signature"), m_filterGroup); m_timeSigCheckBox = new TQCheckBox(i18n("Time Signature"), m_filterGroup);

@ -54,7 +54,7 @@ void EditTool::handleMousePress(timeT time,
switch (e->button()) { switch (e->button()) {
case Qt::LeftButton: case TQt::LeftButton:
if (e->type() == TQEvent::MouseButtonDblClick) { if (e->type() == TQEvent::MouseButtonDblClick) {
RG_DEBUG << "EditTool::handleMousePress: it's a double-click" RG_DEBUG << "EditTool::handleMousePress: it's a double-click"
<< endl; << endl;
@ -66,11 +66,11 @@ void EditTool::handleMousePress(timeT time,
} }
break; break;
case Qt::RightButton: case TQt::RightButton:
handleRightButtonPress(time, height, staffNo, e, el); handleRightButtonPress(time, height, staffNo, e, el);
break; break;
case Qt::MidButton: case TQt::MidButton:
handleMidButtonPress(time, height, staffNo, e, el); handleMidButtonPress(time, height, staffNo, e, el);
break; break;

@ -96,7 +96,7 @@ PresetHandlerDialog::initDialog()
m_playerCombo->insertItem(i18n("Professional")); m_playerCombo->insertItem(i18n("Professional"));
TQGroupBox *scopeBox = new TQButtonGroup TQGroupBox *scopeBox = new TQButtonGroup
(1, Qt::Horizontal, i18n("Scope"), frame); (1, TQt::Horizontal, i18n("Scope"), frame);
if (m_fromNotation) { if (m_fromNotation) {
TQRadioButton *onlySelectedSegments = new TQRadioButton *onlySelectedSegments = new
TQRadioButton(i18n("Only selected segments"), scopeBox); TQRadioButton(i18n("Only selected segments"), scopeBox);

@ -48,7 +48,7 @@ KLedButton::~KLedButton()
void KLedButton::mousePressEvent( TQMouseEvent *e ) void KLedButton::mousePressEvent( TQMouseEvent *e )
{ {
if (e->button() == Qt::LeftButton) { if (e->button() == TQt::LeftButton) {
toggle(); toggle();
emit stateChanged( state() ); emit stateChanged( state() );
} }

@ -292,7 +292,7 @@ KLed::paintFlat() // paint a ROUND FLAT led lamp
// Set the brush to SolidPattern, this fills the entire area // Set the brush to SolidPattern, this fills the entire area
// of the ellipse which is drawn with a thin grey "border" (pen) // of the ellipse which is drawn with a thin grey "border" (pen)
brush.setStyle( Qt::SolidPattern ); brush.setStyle( TQt::SolidPattern );
brush.setColor( color ); brush.setColor( color );
pen.setWidth( 1 ); pen.setWidth( 1 );
@ -337,7 +337,7 @@ KLed::paintRound() // paint a ROUND RAISED led lamp
// Set the brush to SolidPattern, this fills the entire area // Set the brush to SolidPattern, this fills the entire area
// of the ellipse which is drawn first // of the ellipse which is drawn first
brush.setStyle( Qt::SolidPattern ); brush.setStyle( TQt::SolidPattern );
brush.setColor( color ); brush.setColor( color );
paint.setBrush( brush ); // Assign the brush to the painter paint.setBrush( brush ); // Assign the brush to the painter
@ -387,7 +387,7 @@ KLed::paintRound() // paint a ROUND RAISED led lamp
color = colorGroup().dark(); color = colorGroup().dark();
pen.setColor( color ); // Set the pen accordingly pen.setColor( color ); // Set the pen accordingly
paint.setPen( pen ); // Select pen for drawing paint.setPen( pen ); // Select pen for drawing
brush.setStyle( Qt::NoBrush ); // Switch off the brush brush.setStyle( TQt::NoBrush ); // Switch off the brush
paint.setBrush( brush ); // This avoids filling of the ellipse paint.setBrush( brush ); // This avoids filling of the ellipse
paint.drawEllipse( 1, 1, width, width ); paint.drawEllipse( 1, 1, width, width );
@ -457,7 +457,7 @@ KLed::paintSunken() // paint a ROUND SUNKEN led lamp
// Set the brush to SolidPattern, this fills the entire area // Set the brush to SolidPattern, this fills the entire area
// of the ellipse which is drawn first // of the ellipse which is drawn first
brush.setStyle( Qt::SolidPattern ); brush.setStyle( TQt::SolidPattern );
brush.setColor( color ); brush.setColor( color );
paint.setBrush( brush ); // Assign the brush to the painter paint.setBrush( brush ); // Assign the brush to the painter
@ -504,7 +504,7 @@ KLed::paintSunken() // paint a ROUND SUNKEN led lamp
// from the upper left. // from the upper left.
pen.setWidth( 2 * scale + 1 ); // ### shouldn't this value be smaller for smaller LEDs? pen.setWidth( 2 * scale + 1 ); // ### shouldn't this value be smaller for smaller LEDs?
brush.setStyle( Qt::NoBrush ); // Switch off the brush brush.setStyle( TQt::NoBrush ); // Switch off the brush
paint.setBrush( brush ); // This avoids filling of the ellipse paint.setBrush( brush ); // This avoids filling of the ellipse
// Set the initial color value to colorGroup().light() (bright) and start // Set the initial color value to colorGroup().light() (bright) and start

@ -2771,10 +2771,10 @@ void KlearlookStyle::drawControl(
TQPixmap pixmap = *mi->pixmap(); TQPixmap pixmap = *mi->pixmap();
if ( 1 == pixmap.depth() ) if ( 1 == pixmap.depth() )
p->setBackgroundMode( Qt::OpaqueMode ); p->setBackgroundMode( TQt::OpaqueMode );
p->drawPixmap( ir.x(), ( ir.height() - pixmap.height() ) >> 1, pixmap ); p->drawPixmap( ir.x(), ( ir.height() - pixmap.height() ) >> 1, pixmap );
if ( pixmap.depth() == 1 ) if ( pixmap.depth() == 1 )
p->setBackgroundMode( Qt::TransparentMode ); p->setBackgroundMode( TQt::TransparentMode );
} }
if ( mi->popup() ) if ( mi->popup() )
@ -3307,7 +3307,7 @@ void KlearlookStyle::drawComplexControl(
( hw && HOVER_SB_SUB == hover ? Style_MouseOver : Style_Default ) | ( hw && HOVER_SB_SUB == hover ? Style_MouseOver : Style_Default ) |
Style_Enabled | Style_Enabled |
( ( active == SC_ScrollBarSubLine ) ? Style_Down : Style_Default ) | ( ( active == SC_ScrollBarSubLine ) ? Style_Down : Style_Default ) |
( ( scrollbar->orientation() == Qt::Horizontal ) ? Style_Horizontal : Style_Default ) ( ( scrollbar->orientation() == TQt::Horizontal ) ? Style_Horizontal : Style_Default )
); );
if ( ( controls & SC_ScrollBarAddLine ) && addline.isValid() ) if ( ( controls & SC_ScrollBarAddLine ) && addline.isValid() )
drawPrimitive( drawPrimitive(
@ -3315,34 +3315,34 @@ void KlearlookStyle::drawComplexControl(
( hw && HOVER_SB_ADD == hover ? Style_MouseOver : Style_Default ) | ( hw && HOVER_SB_ADD == hover ? Style_MouseOver : Style_Default ) |
Style_Enabled | Style_Enabled |
( ( active == SC_ScrollBarAddLine ) ? Style_Down : Style_Default ) | ( ( active == SC_ScrollBarAddLine ) ? Style_Down : Style_Default ) |
( ( scrollbar->orientation() == Qt::Horizontal ) ? Style_Horizontal : Style_Default ) ( ( scrollbar->orientation() == TQt::Horizontal ) ? Style_Horizontal : Style_Default )
); );
if ( ( controls & SC_ScrollBarSubPage ) && subpage.isValid() ) if ( ( controls & SC_ScrollBarSubPage ) && subpage.isValid() )
drawPrimitive( PE_ScrollBarSubPage, p, ceData, elementFlags, subpage, cg, drawPrimitive( PE_ScrollBarSubPage, p, ceData, elementFlags, subpage, cg,
Style_Enabled | Style_Enabled |
( ( active == SC_ScrollBarSubPage ) ? Style_Down : Style_Default ) | ( ( active == SC_ScrollBarSubPage ) ? Style_Down : Style_Default ) |
( ( scrollbar->orientation() == Qt::Horizontal ) ? Style_Horizontal : Style_Default ) ); ( ( scrollbar->orientation() == TQt::Horizontal ) ? Style_Horizontal : Style_Default ) );
if ( ( controls & SC_ScrollBarAddPage ) && addpage.isValid() ) if ( ( controls & SC_ScrollBarAddPage ) && addpage.isValid() )
drawPrimitive( PE_ScrollBarAddPage, p, ceData, elementFlags, addpage, cg, drawPrimitive( PE_ScrollBarAddPage, p, ceData, elementFlags, addpage, cg,
( ( scrollbar->minValue() == scrollbar->maxValue() ) ? Style_Default : Style_Enabled ) | ( ( scrollbar->minValue() == scrollbar->maxValue() ) ? Style_Default : Style_Enabled ) |
( ( active == SC_ScrollBarAddPage ) ? Style_Down : Style_Default ) | ( ( active == SC_ScrollBarAddPage ) ? Style_Down : Style_Default ) |
( ( scrollbar->orientation() == Qt::Horizontal ) ? Style_Horizontal : Style_Default ) ); ( ( scrollbar->orientation() == TQt::Horizontal ) ? Style_Horizontal : Style_Default ) );
if ( ( controls & SC_ScrollBarFirst ) && first.isValid() ) if ( ( controls & SC_ScrollBarFirst ) && first.isValid() )
drawPrimitive( PE_ScrollBarFirst, p, ceData, elementFlags, first, cg, drawPrimitive( PE_ScrollBarFirst, p, ceData, elementFlags, first, cg,
Style_Enabled | Style_Enabled |
( ( active == SC_ScrollBarFirst ) ? Style_Down : Style_Default ) | ( ( active == SC_ScrollBarFirst ) ? Style_Down : Style_Default ) |
( ( scrollbar->orientation() == Qt::Horizontal ) ? Style_Horizontal : Style_Default ) ); ( ( scrollbar->orientation() == TQt::Horizontal ) ? Style_Horizontal : Style_Default ) );
if ( ( controls & SC_ScrollBarLast ) && last.isValid() ) if ( ( controls & SC_ScrollBarLast ) && last.isValid() )
drawPrimitive( PE_ScrollBarLast, p, ceData, elementFlags, last, cg, drawPrimitive( PE_ScrollBarLast, p, ceData, elementFlags, last, cg,
Style_Enabled | Style_Enabled |
( ( active == SC_ScrollBarLast ) ? Style_Down : Style_Default ) | ( ( active == SC_ScrollBarLast ) ? Style_Down : Style_Default ) |
( ( scrollbar->orientation() == Qt::Horizontal ) ? Style_Horizontal : Style_Default ) ); ( ( scrollbar->orientation() == TQt::Horizontal ) ? Style_Horizontal : Style_Default ) );
if ( ( controls & SC_ScrollBarSlider ) && slider.isValid() ) { if ( ( controls & SC_ScrollBarSlider ) && slider.isValid() ) {
drawPrimitive( PE_ScrollBarSlider, p, ceData, elementFlags, slider, cg, drawPrimitive( PE_ScrollBarSlider, p, ceData, elementFlags, slider, cg,
( hw && HOVER_SB_SLIDER == hover ? Style_MouseOver : Style_Default ) | ( hw && HOVER_SB_SLIDER == hover ? Style_MouseOver : Style_Default ) |
Style_Enabled | Style_Enabled |
( ( active == SC_ScrollBarSlider ) ? Style_Down : Style_Default ) | ( ( active == SC_ScrollBarSlider ) ? Style_Down : Style_Default ) |
( ( scrollbar->orientation() == Qt::Horizontal ) ? Style_Horizontal : Style_Default ) ); ( ( scrollbar->orientation() == TQt::Horizontal ) ? Style_Horizontal : Style_Default ) );
// ### perhaps this should not be able to accept focus if maxedOut? // ### perhaps this should not be able to accept focus if maxedOut?
if ( scrollbar->hasFocus() ) if ( scrollbar->hasFocus() )
@ -3855,7 +3855,7 @@ void KlearlookStyle::drawSliderGroove
drawPrimitive( PE_FocusRect, p, ceData, elementFlags, fr, TQColorGroup() ); drawPrimitive( PE_FocusRect, p, ceData, elementFlags, fr, TQColorGroup() );
} }
if ( Qt::Horizontal == slider->orientation() ) { if ( TQt::Horizontal == slider->orientation() ) {
int dh = ( groove.height() - 5 ) >> 1; int dh = ( groove.height() - 5 ) >> 1;
groove.addCoords( 0, dh, 0, -dh ); groove.addCoords( 0, dh, 0, -dh );

@ -162,7 +162,7 @@ ControlRuler::segmentDeleted(const Segment *)
void ControlRuler::contentsMousePressEvent(TQMouseEvent* e) void ControlRuler::contentsMousePressEvent(TQMouseEvent* e)
{ {
if (e->button() != Qt::LeftButton) { if (e->button() != TQt::LeftButton) {
m_numberFloat->hide(); m_numberFloat->hide();
m_selecting = false; m_selecting = false;
return ; return ;
@ -243,7 +243,7 @@ void ControlRuler::contentsMousePressEvent(TQMouseEvent* e)
void ControlRuler::contentsMouseReleaseEvent(TQMouseEvent* e) void ControlRuler::contentsMouseReleaseEvent(TQMouseEvent* e)
{ {
if (e->button() != Qt::LeftButton) { if (e->button() != TQt::LeftButton) {
m_numberFloat->hide(); m_numberFloat->hide();
m_selecting = false; m_selecting = false;
return ; return ;

@ -340,7 +340,7 @@ void ControllerEventsRuler::startControlLine()
void ControllerEventsRuler::contentsMousePressEvent(TQMouseEvent *e) void ControllerEventsRuler::contentsMousePressEvent(TQMouseEvent *e)
{ {
if (!m_controlLineShowing) { if (!m_controlLineShowing) {
if (e->button() == Qt::MidButton) if (e->button() == TQt::MidButton)
m_lastEventPos = inverseMapPoint(e->pos()); m_lastEventPos = inverseMapPoint(e->pos());
ControlRuler::contentsMousePressEvent(e); // send super ControlRuler::contentsMousePressEvent(e); // send super
@ -349,7 +349,7 @@ void ControllerEventsRuler::contentsMousePressEvent(TQMouseEvent *e)
} }
// cancel control line mode // cancel control line mode
if (e->button() == Qt::RightButton) { if (e->button() == TQt::RightButton) {
m_controlLineShowing = false; m_controlLineShowing = false;
m_controlLine->hide(); m_controlLine->hide();
@ -357,7 +357,7 @@ void ControllerEventsRuler::contentsMousePressEvent(TQMouseEvent *e)
return ; return ;
} }
if (e->button() == Qt::LeftButton) { if (e->button() == TQt::LeftButton) {
TQPoint p = inverseMapPoint(e->pos()); TQPoint p = inverseMapPoint(e->pos());
m_controlLine->show(); m_controlLine->show();
@ -371,7 +371,7 @@ void ControllerEventsRuler::contentsMousePressEvent(TQMouseEvent *e)
void ControllerEventsRuler::contentsMouseReleaseEvent(TQMouseEvent *e) void ControllerEventsRuler::contentsMouseReleaseEvent(TQMouseEvent *e)
{ {
if (!m_controlLineShowing) { if (!m_controlLineShowing) {
if (e->button() == Qt::MidButton) if (e->button() == TQt::MidButton)
insertControllerEvent(); insertControllerEvent();
ControlRuler::contentsMouseReleaseEvent(e); // send super ControlRuler::contentsMouseReleaseEvent(e); // send super
@ -407,7 +407,7 @@ void ControllerEventsRuler::contentsMouseMoveEvent(TQMouseEvent *e)
if (!m_controlLineShowing) { if (!m_controlLineShowing) {
// Don't send super if we're using the middle button // Don't send super if we're using the middle button
// //
if (e->button() == Qt::MidButton) { if (e->button() == TQt::MidButton) {
m_lastEventPos = inverseMapPoint(e->pos()); m_lastEventPos = inverseMapPoint(e->pos());
return ; return ;
} }

@ -256,7 +256,7 @@ LoopRuler::mousePressEvent(TQMouseEvent *mE)
TQt::ButtonState bs = mE->state(); TQt::ButtonState bs = mE->state();
setLoopingMode((bs & TQt::ShiftButton) != 0); setLoopingMode((bs & TQt::ShiftButton) != 0);
if (mE->button() == Qt::LeftButton) { if (mE->button() == TQt::LeftButton) {
double x = mE->pos().x() / getHScaleFactor() - m_currentXOffset - m_xorigin; double x = mE->pos().x() / getHScaleFactor() - m_currentXOffset - m_xorigin;
if (m_loopingMode) { if (m_loopingMode) {
@ -278,7 +278,7 @@ LoopRuler::mousePressEvent(TQMouseEvent *mE)
void void
LoopRuler::mouseReleaseEvent(TQMouseEvent *mE) LoopRuler::mouseReleaseEvent(TQMouseEvent *mE)
{ {
if (mE->button() == Qt::LeftButton) { if (mE->button() == TQt::LeftButton) {
if (m_loopingMode) { if (m_loopingMode) {
// Cancel the loop if there was no drag // Cancel the loop if there was no drag
// //
@ -319,7 +319,7 @@ LoopRuler::mouseDoubleClickEvent(TQMouseEvent *mE)
RG_DEBUG << "LoopRuler::mouseDoubleClickEvent: x = " << x << ", looping = " << m_loopingMode << endl; RG_DEBUG << "LoopRuler::mouseDoubleClickEvent: x = " << x << ", looping = " << m_loopingMode << endl;
if (mE->button() == Qt::LeftButton && !m_loopingMode) if (mE->button() == TQt::LeftButton && !m_loopingMode)
emit setPlayPosition(m_grid->snapX(x)); emit setPlayPosition(m_grid->snapX(x));
} }

@ -430,7 +430,7 @@ MarkerRuler::mousePressEvent(TQMouseEvent *e)
// if right-click, show popup menu // if right-click, show popup menu
// //
if (e->button() == Qt::RightButton) { if (e->button() == TQt::RightButton) {
if (!m_menu) if (!m_menu)
createMenu(); createMenu();
if (m_menu) { if (m_menu) {

@ -178,7 +178,7 @@ void PercussionPitchRuler::mousePressEvent(TQMouseEvent *e)
{ {
TQt::ButtonState bs = e->state(); TQt::ButtonState bs = e->state();
if (e->button() == Qt::LeftButton) { if (e->button() == TQt::LeftButton) {
m_mouseDown = true; m_mouseDown = true;
m_selecting = (bs & TQt::ShiftButton); m_selecting = (bs & TQt::ShiftButton);
@ -192,7 +192,7 @@ void PercussionPitchRuler::mousePressEvent(TQMouseEvent *e)
void PercussionPitchRuler::mouseReleaseEvent(TQMouseEvent *e) void PercussionPitchRuler::mouseReleaseEvent(TQMouseEvent *e)
{ {
if (e->button() == Qt::LeftButton) { if (e->button() == TQt::LeftButton) {
m_mouseDown = false; m_mouseDown = false;
m_selecting = false; m_selecting = false;
} }

@ -236,7 +236,7 @@ PropertyControlRuler::contentsMousePressEvent(TQMouseEvent *e)
RG_DEBUG << "PropertyControlRuler::contentsMousePressEvent\n"; RG_DEBUG << "PropertyControlRuler::contentsMousePressEvent\n";
if (!m_propertyLineShowing) { if (!m_propertyLineShowing) {
if (e->button() == Qt::MidButton) if (e->button() == TQt::MidButton)
m_lastEventPos = inverseMapPoint(e->pos()); m_lastEventPos = inverseMapPoint(e->pos());
ControlRuler::contentsMousePressEvent(e); // send super ControlRuler::contentsMousePressEvent(e); // send super
@ -245,7 +245,7 @@ PropertyControlRuler::contentsMousePressEvent(TQMouseEvent *e)
} }
// cancel control line mode // cancel control line mode
if (e->button() == Qt::RightButton) { if (e->button() == TQt::RightButton) {
m_propertyLineShowing = false; m_propertyLineShowing = false;
m_propertyLine->hide(); m_propertyLine->hide();
@ -253,7 +253,7 @@ PropertyControlRuler::contentsMousePressEvent(TQMouseEvent *e)
return ; return ;
} }
if (e->button() == Qt::LeftButton) { if (e->button() == TQt::LeftButton) {
TQPoint p = inverseMapPoint(e->pos()); TQPoint p = inverseMapPoint(e->pos());
m_propertyLine->show(); m_propertyLine->show();
@ -319,7 +319,7 @@ PropertyControlRuler::contentsMouseMoveEvent(TQMouseEvent *e)
if (!m_propertyLineShowing) { if (!m_propertyLineShowing) {
// Don't send super if we're using the middle button // Don't send super if we're using the middle button
// //
if (e->button() == Qt::MidButton) { if (e->button() == TQt::MidButton) {
m_lastEventPos = inverseMapPoint(e->pos()); m_lastEventPos = inverseMapPoint(e->pos());
return ; return ;
} }

@ -239,7 +239,7 @@ TempoRuler::slotScrollHoriz(int x)
void void
TempoRuler::mousePressEvent(TQMouseEvent *e) TempoRuler::mousePressEvent(TQMouseEvent *e)
{ {
if (e->button() == Qt::LeftButton) { if (e->button() == TQt::LeftButton) {
if (e->type() == TQEvent::MouseButtonDblClick) { if (e->type() == TQEvent::MouseButtonDblClick) {
timeT t = m_rulerScale->getTimeForX timeT t = m_rulerScale->getTimeForX
@ -291,7 +291,7 @@ TempoRuler::mousePressEvent(TQMouseEvent *e)
m_dragHoriz = false; m_dragHoriz = false;
} }
} else if (e->button() == Qt::RightButton) { } else if (e->button() == TQt::RightButton) {
m_clickX = e->x(); m_clickX = e->x();
if (!m_menu) if (!m_menu)

@ -52,7 +52,7 @@ MidiFilterDialog::MidiFilterDialog(TQWidget *parent,
m_thruBox = m_thruBox =
new TQButtonGroup(1, new TQButtonGroup(1,
Qt::Horizontal, TQt::Horizontal,
i18n("THRU events to ignore"), hBox); i18n("THRU events to ignore"), hBox);
TQCheckBox *noteThru = new TQCheckBox(i18n("Note"), m_thruBox); TQCheckBox *noteThru = new TQCheckBox(i18n("Note"), m_thruBox);
@ -88,7 +88,7 @@ MidiFilterDialog::MidiFilterDialog(TQWidget *parent,
m_recordBox = m_recordBox =
new TQButtonGroup(1, new TQButtonGroup(1,
Qt::Horizontal, TQt::Horizontal,
i18n("RECORD events to ignore"), hBox); i18n("RECORD events to ignore"), hBox);
TQCheckBox *noteRecord = new TQCheckBox(i18n("Note"), m_recordBox); TQCheckBox *noteRecord = new TQCheckBox(i18n("Note"), m_recordBox);

@ -93,7 +93,7 @@ DeviceManagerDialog::DeviceManagerDialog(TQWidget *parent,
setCaption(i18n("Manage MIDI Devices")); setCaption(i18n("Manage MIDI Devices"));
TQGroupBox *groupBox = new TQGroupBox(2, Qt::Horizontal, i18n("Play devices"), mainBox); TQGroupBox *groupBox = new TQGroupBox(2, TQt::Horizontal, i18n("Play devices"), mainBox);
m_playTable = new TQTable(0, 2, groupBox); m_playTable = new TQTable(0, 2, groupBox);
m_playTable->setSorting(false); m_playTable->setSorting(false);
@ -109,7 +109,7 @@ DeviceManagerDialog::DeviceManagerDialog(TQWidget *parent,
TQFrame *frame = new TQFrame(groupBox); TQFrame *frame = new TQFrame(groupBox);
TQVBoxLayout *vlayout = new TQVBoxLayout(frame); TQVBoxLayout *vlayout = new TQVBoxLayout(frame);
TQGrid *buttons = new TQGrid(2, Qt::Horizontal, frame); TQGrid *buttons = new TQGrid(2, TQt::Horizontal, frame);
TQPushButton *addButton = new TQPushButton(i18n("New"), buttons); TQPushButton *addButton = new TQPushButton(i18n("New"), buttons);
m_deletePlayButton = new TQPushButton(i18n("Delete"), buttons); m_deletePlayButton = new TQPushButton(i18n("Delete"), buttons);
m_importButton = new TQPushButton(i18n("Import..."), buttons); m_importButton = new TQPushButton(i18n("Import..."), buttons);
@ -151,7 +151,7 @@ DeviceManagerDialog::DeviceManagerDialog(TQWidget *parent,
this, TQT_SLOT(slotPlayDeviceSelected (int, int))); this, TQT_SLOT(slotPlayDeviceSelected (int, int)));
mainLayout->addWidget(groupBox); mainLayout->addWidget(groupBox);
groupBox = new TQGroupBox(2, Qt::Horizontal, i18n("Record devices"), mainBox); groupBox = new TQGroupBox(2, TQt::Horizontal, i18n("Record devices"), mainBox);
m_recordTable = new TQTable(0, 3, groupBox); m_recordTable = new TQTable(0, 3, groupBox);
m_recordTable->setSorting(false); m_recordTable->setSorting(false);
@ -168,7 +168,7 @@ DeviceManagerDialog::DeviceManagerDialog(TQWidget *parent,
frame = new TQFrame(groupBox); frame = new TQFrame(groupBox);
vlayout = new TQVBoxLayout(frame); vlayout = new TQVBoxLayout(frame);
buttons = new TQGrid(2, Qt::Horizontal, frame); buttons = new TQGrid(2, TQt::Horizontal, frame);
addButton = new TQPushButton(i18n("New"), buttons); addButton = new TQPushButton(i18n("New"), buttons);
m_deleteRecordButton = new TQPushButton(i18n("Delete"), buttons); m_deleteRecordButton = new TQPushButton(i18n("Delete"), buttons);
vlayout->addWidget(buttons); vlayout->addWidget(buttons);

@ -62,7 +62,7 @@ NameSetEditor::NameSetEditor(BankEditorDialog* bankEditor,
// Librarian // Librarian
// //
TQGroupBox *groupBox = new TQGroupBox(2, TQGroupBox *groupBox = new TQGroupBox(2,
Qt::Horizontal, TQt::Horizontal,
i18n("Librarian"), i18n("Librarian"),
m_mainFrame); m_mainFrame);
m_mainLayout->addMultiCellWidget(groupBox, 0, 2, 3, 5); m_mainLayout->addMultiCellWidget(groupBox, 0, 2, 3, 5);

@ -56,7 +56,7 @@ RemapInstrumentDialog::RemapInstrumentDialog(TQWidget *parent,
{ {
TQVBox *vBox = makeVBoxMainWidget(); TQVBox *vBox = makeVBoxMainWidget();
m_buttonGroup = new TQButtonGroup(1, Qt::Horizontal, m_buttonGroup = new TQButtonGroup(1, TQt::Horizontal,
i18n("Device or Instrument"), i18n("Device or Instrument"),
vBox); vBox);
@ -68,7 +68,7 @@ RemapInstrumentDialog::RemapInstrumentDialog(TQWidget *parent,
connect(m_buttonGroup, TQT_SIGNAL(released(int)), connect(m_buttonGroup, TQT_SIGNAL(released(int)),
this, TQT_SLOT(slotRemapReleased(int))); this, TQT_SLOT(slotRemapReleased(int)));
TQGroupBox *groupBox = new TQGroupBox(2, Qt::Horizontal, TQGroupBox *groupBox = new TQGroupBox(2, TQt::Horizontal,
i18n("Choose Source and Destination"), i18n("Choose Source and Destination"),
vBox); vBox);

@ -73,7 +73,7 @@ SynthPluginManagerDialog::SynthPluginManagerDialog(TQWidget *parent,
TQVBoxLayout *mainLayout = new TQVBoxLayout(mainBox, 10, 10); TQVBoxLayout *mainLayout = new TQVBoxLayout(mainBox, 10, 10);
TQGroupBox *groupBox = new TQGroupBox(1, Qt::Horizontal, i18n("Synth plugins"), mainBox); TQGroupBox *groupBox = new TQGroupBox(1, TQt::Horizontal, i18n("Synth plugins"), mainBox);
mainLayout->addWidget(groupBox); mainLayout->addWidget(groupBox);
TQFrame *pluginFrame = new TQFrame(groupBox); TQFrame *pluginFrame = new TQFrame(groupBox);

@ -30,7 +30,7 @@ namespace Rosegarden {
class BigArrowButton : public KArrowButton class BigArrowButton : public KArrowButton
{ {
public: public:
BigArrowButton(TQWidget *parent = 0, Qt::ArrowType arrow = Qt::UpArrow, BigArrowButton(TQWidget *parent = 0, TQt::ArrowType arrow = TQt::UpArrow,
const char *name = 0) : const char *name = 0) :
KArrowButton(parent, arrow, name) { } KArrowButton(parent, arrow, name) { }
virtual ~BigArrowButton() { } virtual ~BigArrowButton() { }

@ -45,7 +45,7 @@ DiatonicPitchChooser::DiatonicPitchChooser(TQString title,
int defaultNote, int defaultNote,
int defaultPitch, int defaultPitch,
int defaultOctave) : int defaultOctave) :
TQGroupBox(1, Qt::Horizontal, title, parent), TQGroupBox(1, TQt::Horizontal, title, parent),
m_defaultPitch(defaultPitch) m_defaultPitch(defaultPitch)
{ {
m_pitchDragLabel = new PitchDragLabel(this, defaultPitch); m_pitchDragLabel = new PitchDragLabel(this, defaultPitch);

@ -318,7 +318,7 @@ Fader::mousePressEvent(TQMouseEvent *e)
{ {
m_clickMousePos = -1; m_clickMousePos = -1;
if (e->button() == Qt::LeftButton) { if (e->button() == TQt::LeftButton) {
if (e->type() == TQEvent::MouseButtonDblClick) { if (e->type() == TQEvent::MouseButtonDblClick) {
setFader(0); setFader(0);

@ -40,7 +40,7 @@ namespace Rosegarden
PitchChooser::PitchChooser(TQString title, PitchChooser::PitchChooser(TQString title,
TQWidget *parent, TQWidget *parent,
int defaultPitch) : int defaultPitch) :
TQGroupBox(1, Qt::Horizontal, title, parent), TQGroupBox(1, TQt::Horizontal, title, parent),
m_defaultPitch(defaultPitch) m_defaultPitch(defaultPitch)
{ {
m_pitchDragLabel = new PitchDragLabel(this, defaultPitch); m_pitchDragLabel = new PitchDragLabel(this, defaultPitch);

@ -82,7 +82,7 @@ PitchDragLabel::slotSetPitch(int pitch, int octave, int step)
void void
PitchDragLabel::mousePressEvent(TQMouseEvent *e) PitchDragLabel::mousePressEvent(TQMouseEvent *e)
{ {
if (e->button() == Qt::LeftButton) { if (e->button() == TQt::LeftButton) {
m_clickedY = e->y(); m_clickedY = e->y();
m_clickedPitch = m_pitch; m_clickedPitch = m_pitch;
m_clicked = true; m_clicked = true;

@ -75,7 +75,7 @@ QuantizeParameters::QuantizeParameters(TQWidget *parent,
} }
TQGroupBox *quantizerBox = new TQGroupBox TQGroupBox *quantizerBox = new TQGroupBox
(1, Qt::Horizontal, i18n("Quantizer"), this); (1, TQt::Horizontal, i18n("Quantizer"), this);
m_mainLayout->addWidget(quantizerBox, zero, 0); m_mainLayout->addWidget(quantizerBox, zero, 0);
TQFrame *typeFrame = new TQFrame(quantizerBox); TQFrame *typeFrame = new TQFrame(quantizerBox);
@ -99,7 +99,7 @@ QuantizeParameters::QuantizeParameters(TQWidget *parent,
m_mainLayout->addWidget(parameterBox, zero + 1, 0); m_mainLayout->addWidget(parameterBox, zero + 1, 0);
m_notationBox = new TQGroupBox m_notationBox = new TQGroupBox
(1, Qt::Horizontal, i18n("Notation parameters"), parameterBox); (1, TQt::Horizontal, i18n("Notation parameters"), parameterBox);
TQFrame *notationFrame = new TQFrame(m_notationBox); TQFrame *notationFrame = new TQFrame(m_notationBox);
layout = new TQGridLayout(notationFrame, 4, 2, 5, 3); layout = new TQGridLayout(notationFrame, 4, 2, 5, 3);
@ -140,7 +140,7 @@ QuantizeParameters::QuantizeParameters(TQWidget *parent,
layout->addMultiCellWidget(m_counterpoint, 3, 3, 0, 1); layout->addMultiCellWidget(m_counterpoint, 3, 3, 0, 1);
m_gridBox = new TQGroupBox m_gridBox = new TQGroupBox
(1, Qt::Horizontal, i18n("Grid parameters"), parameterBox); (1, TQt::Horizontal, i18n("Grid parameters"), parameterBox);
TQFrame *gridFrame = new TQFrame(m_gridBox); TQFrame *gridFrame = new TQFrame(m_gridBox);
layout = new TQGridLayout(gridFrame, 4, 2, 5, 3); layout = new TQGridLayout(gridFrame, 4, 2, 5, 3);
@ -164,7 +164,7 @@ QuantizeParameters::QuantizeParameters(TQWidget *parent,
layout->addMultiCellWidget(m_durationCheckBox, 3, 3, 0, 1); layout->addMultiCellWidget(m_durationCheckBox, 3, 3, 0, 1);
m_postProcessingBox = new TQGroupBox m_postProcessingBox = new TQGroupBox
(1, Qt::Horizontal, i18n("After quantization"), this); (1, TQt::Horizontal, i18n("After quantization"), this);
if (!preamble.isNull()) { if (!preamble.isNull()) {
m_mainLayout->addMultiCellWidget(m_postProcessingBox, m_mainLayout->addMultiCellWidget(m_postProcessingBox,

@ -371,17 +371,17 @@ Rotary::snapPosition()
void void
Rotary::mousePressEvent(TQMouseEvent *e) Rotary::mousePressEvent(TQMouseEvent *e)
{ {
if (e->button() == Qt::LeftButton) { if (e->button() == TQt::LeftButton) {
m_buttonPressed = true; m_buttonPressed = true;
m_lastY = e->y(); m_lastY = e->y();
m_lastX = e->x(); m_lastX = e->x();
} else if (e->button() == Qt::MidButton) // reset to default } else if (e->button() == TQt::MidButton) // reset to default
{ {
m_position = m_initialPosition; m_position = m_initialPosition;
snapPosition(); snapPosition();
update(); update();
emit valueChanged(m_snapPosition); emit valueChanged(m_snapPosition);
} else if (e->button() == Qt::RightButton) // reset to centre position } else if (e->button() == TQt::RightButton) // reset to centre position
{ {
m_position = (m_maxValue + m_minValue) / 2.0; m_position = (m_maxValue + m_minValue) / 2.0;
snapPosition(); snapPosition();
@ -405,7 +405,7 @@ Rotary::mousePressEvent(TQMouseEvent *e)
// std::cerr << "Rotary::mousePressEvent: logarithmic = " << m_logarithmic // std::cerr << "Rotary::mousePressEvent: logarithmic = " << m_logarithmic
// << ", position = " << m_position << std::endl; // << ", position = " << m_position << std::endl;
if (e->button() == Qt::RightButton || e->button() == Qt::MidButton) { if (e->button() == TQt::RightButton || e->button() == TQt::MidButton) {
// one shot, 500ms // one shot, 500ms
_floatTimer->start(500, true); _floatTimer->start(500, true);
} }
@ -453,7 +453,7 @@ Rotary::mouseDoubleClickEvent(TQMouseEvent * /*e*/)
void void
Rotary::mouseReleaseEvent(TQMouseEvent *e) Rotary::mouseReleaseEvent(TQMouseEvent *e)
{ {
if (e->button() == Qt::LeftButton) { if (e->button() == TQt::LeftButton) {
m_buttonPressed = false; m_buttonPressed = false;
m_lastY = 0; m_lastY = 0;
m_lastX = 0; m_lastX = 0;

@ -51,15 +51,15 @@ ScrollBox::ScrollBox(TQWidget* parent, SizeMode sizeMode, const char* name) :
void ScrollBox::mousePressEvent(TQMouseEvent* e) void ScrollBox::mousePressEvent(TQMouseEvent* e)
{ {
m_mouse = e->pos(); m_mouse = e->pos();
if (e->button() == Qt::RightButton) if (e->button() == TQt::RightButton)
emit button3Pressed(); emit button3Pressed();
if (e->button() == Qt::MidButton) if (e->button() == TQt::MidButton)
emit button2Pressed(); emit button2Pressed();
} }
void ScrollBox::mouseMoveEvent(TQMouseEvent* e) void ScrollBox::mouseMoveEvent(TQMouseEvent* e)
{ {
if (e->state() != Qt::LeftButton) if (e->state() != TQt::LeftButton)
return ; return ;
int dx = (e->pos().x() - m_mouse.x()) * m_pagesize.width() / width(); int dx = (e->pos().x() - m_mouse.x()) * m_pagesize.width() / width();

@ -51,7 +51,7 @@ TimeWidget::TimeWidget(TQString title,
timeT absTime, timeT absTime,
bool editable, bool editable,
bool constrainToCompositionDuration) : bool constrainToCompositionDuration) :
TQGroupBox(1, Qt::Horizontal, title, parent), TQGroupBox(1, TQt::Horizontal, title, parent),
m_composition(composition), m_composition(composition),
m_isDuration(false), m_isDuration(false),
m_constrain(constrainToCompositionDuration), m_constrain(constrainToCompositionDuration),
@ -69,7 +69,7 @@ TimeWidget::TimeWidget(TQString title,
timeT duration, timeT duration,
bool editable, bool editable,
bool constrainToCompositionDuration) : bool constrainToCompositionDuration) :
TQGroupBox(1, Qt::Horizontal, title, parent), TQGroupBox(1, TQt::Horizontal, title, parent),
m_composition(composition), m_composition(composition),
m_isDuration(true), m_isDuration(true),
m_constrain(constrainToCompositionDuration), m_constrain(constrainToCompositionDuration),

@ -57,7 +57,7 @@ public:
* to the user as a nice continuous range. * to the user as a nice continuous range.
*/ */
ZoomSlider(const std::vector<T> &sizes, T defaultValue, ZoomSlider(const std::vector<T> &sizes, T defaultValue,
Qt::Orientation, TQWidget * parent, const char * name=0); TQt::Orientation, TQWidget * parent, const char * name=0);
virtual ~ZoomSlider(); virtual ~ZoomSlider();
@ -81,7 +81,7 @@ protected:
template<class T> template<class T>
ZoomSlider<T>::ZoomSlider(const std::vector<T> &sizes, ZoomSlider<T>::ZoomSlider(const std::vector<T> &sizes,
T initialSize, Qt::Orientation o, T initialSize, TQt::Orientation o,
TQWidget *parent, const char *name) : TQWidget *parent, const char *name) :
TQSlider(0, sizes.size()-1, 1, TQSlider(0, sizes.size()-1, 1,
getIndex(sizes, initialSize), o, parent, name), getIndex(sizes, initialSize), o, parent, name),

Loading…
Cancel
Save