Replace Qt with TQt

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/13/head
Michele Calgaro 6 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);
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->setFocusPolicy(TQWidget::NoFocus);
m_zoomLabel = new TQLabel(minZoom, zoomToolbar, "tde toolbar widget");

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

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

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

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

@ -76,9 +76,9 @@ EventEditDialog::EventEditDialog(TQWidget *parent,
TQVBox *vbox = makeVBoxMainWidget();
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("", intrinsicGrid);
@ -120,8 +120,8 @@ EventEditDialog::EventEditDialog(TQWidget *parent,
slotSubOrderingChanged(event.getSubOrdering());
TQGroupBox *persistentBox = new TQGroupBox
(1, Qt::Horizontal, i18n("Persistent properties"), vbox);
m_persistentGrid = new TQGrid(4, Qt::Horizontal, persistentBox);
(1, TQt::Horizontal, i18n("Persistent properties"), vbox);
m_persistentGrid = new TQGrid(4, TQt::Horizontal, persistentBox);
TQLabel *label = new TQLabel(i18n("Name"), m_persistentGrid);
TQFont font(label->font());
@ -150,7 +150,7 @@ EventEditDialog::EventEditDialog(TQWidget *parent,
} else {
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."),
nonPersistentBox);
@ -159,7 +159,7 @@ EventEditDialog::EventEditDialog(TQWidget *parent,
m_nonPersistentView->setResizePolicy(TQScrollView::AutoOneFit);
m_nonPersistentGrid = new TQGrid
(4, Qt::Horizontal, m_nonPersistentView->viewport());
(4, TQt::Horizontal, m_nonPersistentView->viewport());
m_nonPersistentView->addChild(m_nonPersistentGrid);
m_nonPersistentGrid->setSpacing(4);

@ -41,7 +41,7 @@ ExportDeviceDialog::ExportDeviceDialog(TQWidget *parent, TQString deviceName) :
Ok | Cancel, Ok)
{
TQVBox *vbox = makeVBoxMainWidget();
TQButtonGroup *bg = new TQButtonGroup(1, Qt::Horizontal,
TQButtonGroup *bg = new TQButtonGroup(1, TQt::Horizontal,
i18n("Export devices"),
vbox);
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)
{
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);
// Calculate decimal points according to the step size

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

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

@ -71,7 +71,7 @@ IntervalDialog::IntervalDialog(TQWidget *parent, bool askChangeKey, bool askTran
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->setChecked(true);
m_transposeChangingKey = new TQRadioButton(i18n("Change key for selection"), affectKeyGroup);

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

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

@ -57,7 +57,7 @@ LyricEditDialog::LyricEditDialog(TQWidget *parent,
TQVBox *vbox = makeVBoxMainWidget();
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);
hbox->setSpacing(5);

@ -44,7 +44,7 @@ MakeOrnamentDialog::MakeOrnamentDialog(TQWidget *parent, TQString defaultName,
Ok | Cancel, Ok)
{
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);

@ -72,7 +72,7 @@ ManageMetronomeDialog::ManageMetronomeDialog(TQWidget *parent,
TQVBox *vbox = new TQVBox(hbox);
TQGroupBox *deviceBox = new TQGroupBox
(1, Qt::Horizontal, i18n("Metronome Instrument"), vbox);
(1, TQt::Horizontal, i18n("Metronome Instrument"), vbox);
TQFrame *frame = new TQFrame(deviceBox);
TQGridLayout *layout = new TQGridLayout(frame, 2, 2, 10, 5);
@ -113,7 +113,7 @@ ManageMetronomeDialog::ManageMetronomeDialog(TQWidget *parent,
layout->addWidget(m_metronomeInstrument, 1, 1);
TQGroupBox *beatBox = new TQGroupBox
(1, Qt::Horizontal, i18n("Beats"), vbox);
(1, TQt::Horizontal, i18n("Beats"), vbox);
frame = new TQFrame(beatBox);
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)));
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_recordEnabled = new TQCheckBox(i18n("Recording"), enableBox);
connect(m_playEnabled, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotSetModified()));

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

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

@ -56,7 +56,7 @@ RescaleDialog::RescaleDialog(TQWidget *parent,
constrainToCompositionDuration);
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"),
optionBox);
TDEConfig *config = kapp->config();

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

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

@ -58,7 +58,7 @@ TempoDialog::TempoDialog(TQWidget *parent, RosegardenGUIDoc *doc,
setHelp("tempo");
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);
TQGridLayout *layout = new TQGridLayout(frame, 4, 3, 5, 5);
@ -122,7 +122,7 @@ TempoDialog::TempoDialog(TQWidget *parent, RosegardenGUIDoc *doc,
}
// Scope Box
TQButtonGroup *scopeGroup = new TQButtonGroup(1, Qt::Horizontal,
TQButtonGroup *scopeGroup = new TQButtonGroup(1, TQt::Horizontal,
i18n("Scope"), vbox);
// new TQLabel(scopeBox);

@ -61,11 +61,11 @@ TextEventDialog::TextEventDialog(TQWidget *parent,
TQVBox *vbox = makeVBoxMainWidget();
TQGroupBox *entryBox = new TQGroupBox
(1, Qt::Horizontal, i18n("Specification"), vbox);
(1, TQt::Horizontal, i18n("Specification"), vbox);
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);
m_text = new TQLineEdit(entryGrid);

@ -77,7 +77,7 @@ TimeSignatureDialog::TimeSignatureDialog(TQWidget *parent,
TQVBox *vbox = makeVBoxMainWidget();
TQGroupBox *groupBox = new TQGroupBox
(1, Qt::Horizontal, i18n("Time signature"), vbox);
(1, TQt::Horizontal, i18n("Time signature"), vbox);
TQHBox *numBox = new TQHBox(groupBox);
TQHBox *denomBox = new TQHBox(groupBox);
@ -86,8 +86,8 @@ TimeSignatureDialog::TimeSignatureDialog(TQWidget *parent,
explanatoryLabel = new TQLabel(explanatoryText, groupBox);
}
BigArrowButton *numDown = new BigArrowButton(numBox, Qt::LeftArrow);
BigArrowButton *denomDown = new BigArrowButton(denomBox, Qt::LeftArrow);
BigArrowButton *numDown = new BigArrowButton(numBox, TQt::LeftArrow);
BigArrowButton *denomDown = new BigArrowButton(denomBox, TQt::LeftArrow);
m_numLabel = new TQLabel
(TQString("%1").arg(m_timeSignature.getNumerator()), numBox);
@ -100,8 +100,8 @@ TimeSignatureDialog::TimeSignatureDialog(TQWidget *parent,
m_numLabel->setFont(*timeSigFont);
m_denomLabel->setFont(*timeSigFont);
BigArrowButton *numUp = new BigArrowButton(numBox, Qt::RightArrow);
BigArrowButton *denomUp = new BigArrowButton(denomBox, Qt::RightArrow);
BigArrowButton *numUp = new BigArrowButton(numBox, TQt::RightArrow);
BigArrowButton *denomUp = new BigArrowButton(denomBox, TQt::RightArrow);
TQObject::connect(numDown, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNumDown()));
TQObject::connect(numUp, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotNumUp()));
@ -124,7 +124,7 @@ TimeSignatureDialog::TimeSignatureDialog(TQWidget *parent,
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);
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();
config->setGroup(GeneralOptionsConfigGroup);

@ -53,7 +53,7 @@ TupletDialog::TupletDialog(TQWidget *parent, Note::Type defaultUnitType,
TQVBox *vbox = makeVBoxMainWidget();
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) {
@ -109,9 +109,9 @@ TupletDialog::TupletDialog(TQWidget *parent, Note::Type defaultUnitType,
updateTupledCombo();
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) {

@ -58,7 +58,7 @@ UseOrnamentDialog::UseOrnamentDialog(TQWidget *parent,
TQVBox *vbox = makeVBoxMainWidget();
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);
TQGridLayout *layout = new TQGridLayout(frame, 4, 1, 5, 5);
@ -99,7 +99,7 @@ UseOrnamentDialog::UseOrnamentDialog(TQWidget *parent,
m_text = new TQLineEdit(frame);
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);
layout = new TQGridLayout(frame, 3, 2, 5, 5);

@ -124,7 +124,7 @@ EventView::EventView(RosegardenGUIDoc *doc,
// define some note filtering buttons in a group
//
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_programCheckBox = new TQCheckBox(i18n("Program Change"), m_filterGroup);
@ -156,7 +156,7 @@ EventView::EventView(RosegardenGUIDoc *doc,
segments[0]->getComposition()->getTriggerSegmentRec(id);
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);
TQGridLayout *layout = new TQGridLayout(frame, 5, 3, 5, 5);

@ -181,7 +181,7 @@ FingeringBox::mousePressEvent(TQMouseEvent *event)
if (!m_editable)
return;
if((event->button() == Qt::LeftButton) && m_editable) {
if((event->button() == TQt::LeftButton) && m_editable) {
// Find string position
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);
if (e->button() != Qt::RightButton) {
if (e->button() != TQt::RightButton) {
getCanvasView()->startAutoScroll();
}
@ -2215,7 +2215,7 @@ MatrixView::initZoomToolbar()
}
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->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)
emit keySelected(e->y(), true);
else
@ -272,7 +272,7 @@ void PianoKeyboard::mousePressEvent(TQMouseEvent *e)
{
TQt::ButtonState bs = e->state();
if (e->button() == Qt::LeftButton) {
if (e->button() == TQt::LeftButton) {
m_mouseDown = true;
m_selecting = (bs & TQt::ShiftButton);
m_lastKeyPressed = e->y();
@ -286,7 +286,7 @@ void PianoKeyboard::mousePressEvent(TQMouseEvent *e)
void PianoKeyboard::mouseReleaseEvent(TQMouseEvent *e)
{
if (e->button() == Qt::LeftButton) {
if (e->button() == TQt::LeftButton) {
m_mouseDown = false;
m_selecting = false;
emit keyReleased(e->y(), false);

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

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

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

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

@ -66,7 +66,7 @@ ControlParameterEditDialog::ControlParameterEditDialog(
TQVBox *vbox = makeVBoxMainWidget();
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);

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

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

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

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

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

@ -78,13 +78,13 @@ void SegmentPencil::slotCanvasScrolled(int newX, int newY)
{
TQMouseEvent tmpEvent(TQEvent::MouseMove,
m_canvas->viewport()->mapFromGlobal(TQCursor::pos()) + TQPoint(newX, newY),
Qt::NoButton, Qt::NoButton);
TQt::NoButton, TQt::NoButton);
handleMouseMove(&tmpEvent);
}
void SegmentPencil::handleMouseButtonPress(TQMouseEvent *e)
{
if (e->button() == Qt::RightButton)
if (e->button() == TQt::RightButton)
return;
// 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)
{
if (e->button() == Qt::RightButton)
if (e->button() == TQt::RightButton)
return ;
setContextHelpFor(e->pos());

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

@ -86,7 +86,7 @@ void SegmentSelector::slotCanvasScrolled(int newX, int newY)
{
TQMouseEvent tmpEvent(TQEvent::MouseMove,
m_canvas->viewport()->mapFromGlobal(TQCursor::pos()) + TQPoint(newX, newY),
Qt::NoButton, Qt::NoButton);
TQt::NoButton, TQt::NoButton);
handleMouseMove(&tmpEvent);
}
@ -172,8 +172,8 @@ SegmentSelector::handleMouseButtonPress(TQMouseEvent *e)
// Add on middle button or ctrl+left - bounding box on rest
//
if (e->button() == Qt::MidButton ||
(e->button() == Qt::LeftButton && (e->state() & ControlButton))) {
if (e->button() == TQt::MidButton ||
(e->button() == TQt::LeftButton && (e->state() & ControlButton))) {
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
//
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_timeSigCheckBox = new TQCheckBox(i18n("Time Signature"), m_filterGroup);

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

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

@ -48,7 +48,7 @@ KLedButton::~KLedButton()
void KLedButton::mousePressEvent( TQMouseEvent *e )
{
if (e->button() == Qt::LeftButton) {
if (e->button() == TQt::LeftButton) {
toggle();
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
// of the ellipse which is drawn with a thin grey "border" (pen)
brush.setStyle( Qt::SolidPattern );
brush.setStyle( TQt::SolidPattern );
brush.setColor( color );
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
// of the ellipse which is drawn first
brush.setStyle( Qt::SolidPattern );
brush.setStyle( TQt::SolidPattern );
brush.setColor( color );
paint.setBrush( brush ); // Assign the brush to the painter
@ -387,7 +387,7 @@ KLed::paintRound() // paint a ROUND RAISED led lamp
color = colorGroup().dark();
pen.setColor( color ); // Set the pen accordingly
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.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
// of the ellipse which is drawn first
brush.setStyle( Qt::SolidPattern );
brush.setStyle( TQt::SolidPattern );
brush.setColor( color );
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.
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
// Set the initial color value to colorGroup().light() (bright) and start

@ -2771,10 +2771,10 @@ void KlearlookStyle::drawControl(
TQPixmap pixmap = *mi->pixmap();
if ( 1 == pixmap.depth() )
p->setBackgroundMode( Qt::OpaqueMode );
p->setBackgroundMode( TQt::OpaqueMode );
p->drawPixmap( ir.x(), ( ir.height() - pixmap.height() ) >> 1, pixmap );
if ( pixmap.depth() == 1 )
p->setBackgroundMode( Qt::TransparentMode );
p->setBackgroundMode( TQt::TransparentMode );
}
if ( mi->popup() )
@ -3307,7 +3307,7 @@ void KlearlookStyle::drawComplexControl(
( hw && HOVER_SB_SUB == hover ? Style_MouseOver : Style_Default ) |
Style_Enabled |
( ( 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() )
drawPrimitive(
@ -3315,34 +3315,34 @@ void KlearlookStyle::drawComplexControl(
( hw && HOVER_SB_ADD == hover ? Style_MouseOver : Style_Default ) |
Style_Enabled |
( ( 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() )
drawPrimitive( PE_ScrollBarSubPage, p, ceData, elementFlags, subpage, cg,
Style_Enabled |
( ( 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() )
drawPrimitive( PE_ScrollBarAddPage, p, ceData, elementFlags, addpage, cg,
( ( scrollbar->minValue() == scrollbar->maxValue() ) ? Style_Default : Style_Enabled ) |
( ( 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() )
drawPrimitive( PE_ScrollBarFirst, p, ceData, elementFlags, first, cg,
Style_Enabled |
( ( 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() )
drawPrimitive( PE_ScrollBarLast, p, ceData, elementFlags, last, cg,
Style_Enabled |
( ( 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() ) {
drawPrimitive( PE_ScrollBarSlider, p, ceData, elementFlags, slider, cg,
( hw && HOVER_SB_SLIDER == hover ? Style_MouseOver : Style_Default ) |
Style_Enabled |
( ( 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?
if ( scrollbar->hasFocus() )
@ -3855,7 +3855,7 @@ void KlearlookStyle::drawSliderGroove
drawPrimitive( PE_FocusRect, p, ceData, elementFlags, fr, TQColorGroup() );
}
if ( Qt::Horizontal == slider->orientation() ) {
if ( TQt::Horizontal == slider->orientation() ) {
int dh = ( groove.height() - 5 ) >> 1;
groove.addCoords( 0, dh, 0, -dh );

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

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

@ -256,7 +256,7 @@ LoopRuler::mousePressEvent(TQMouseEvent *mE)
TQt::ButtonState bs = mE->state();
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;
if (m_loopingMode) {
@ -278,7 +278,7 @@ LoopRuler::mousePressEvent(TQMouseEvent *mE)
void
LoopRuler::mouseReleaseEvent(TQMouseEvent *mE)
{
if (mE->button() == Qt::LeftButton) {
if (mE->button() == TQt::LeftButton) {
if (m_loopingMode) {
// 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;
if (mE->button() == Qt::LeftButton && !m_loopingMode)
if (mE->button() == TQt::LeftButton && !m_loopingMode)
emit setPlayPosition(m_grid->snapX(x));
}

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

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

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

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

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

@ -93,7 +93,7 @@ DeviceManagerDialog::DeviceManagerDialog(TQWidget *parent,
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->setSorting(false);
@ -109,7 +109,7 @@ DeviceManagerDialog::DeviceManagerDialog(TQWidget *parent,
TQFrame *frame = new TQFrame(groupBox);
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);
m_deletePlayButton = new TQPushButton(i18n("Delete"), buttons);
m_importButton = new TQPushButton(i18n("Import..."), buttons);
@ -151,7 +151,7 @@ DeviceManagerDialog::DeviceManagerDialog(TQWidget *parent,
this, TQT_SLOT(slotPlayDeviceSelected (int, int)));
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->setSorting(false);
@ -168,7 +168,7 @@ DeviceManagerDialog::DeviceManagerDialog(TQWidget *parent,
frame = new TQFrame(groupBox);
vlayout = new TQVBoxLayout(frame);
buttons = new TQGrid(2, Qt::Horizontal, frame);
buttons = new TQGrid(2, TQt::Horizontal, frame);
addButton = new TQPushButton(i18n("New"), buttons);
m_deleteRecordButton = new TQPushButton(i18n("Delete"), buttons);
vlayout->addWidget(buttons);

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

@ -56,7 +56,7 @@ RemapInstrumentDialog::RemapInstrumentDialog(TQWidget *parent,
{
TQVBox *vBox = makeVBoxMainWidget();
m_buttonGroup = new TQButtonGroup(1, Qt::Horizontal,
m_buttonGroup = new TQButtonGroup(1, TQt::Horizontal,
i18n("Device or Instrument"),
vBox);
@ -68,7 +68,7 @@ RemapInstrumentDialog::RemapInstrumentDialog(TQWidget *parent,
connect(m_buttonGroup, TQT_SIGNAL(released(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"),
vBox);

@ -73,7 +73,7 @@ SynthPluginManagerDialog::SynthPluginManagerDialog(TQWidget *parent,
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);
TQFrame *pluginFrame = new TQFrame(groupBox);

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

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

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

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

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

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

@ -371,17 +371,17 @@ Rotary::snapPosition()
void
Rotary::mousePressEvent(TQMouseEvent *e)
{
if (e->button() == Qt::LeftButton) {
if (e->button() == TQt::LeftButton) {
m_buttonPressed = true;
m_lastY = e->y();
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;
snapPosition();
update();
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;
snapPosition();
@ -405,7 +405,7 @@ Rotary::mousePressEvent(TQMouseEvent *e)
// std::cerr << "Rotary::mousePressEvent: logarithmic = " << m_logarithmic
// << ", 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
_floatTimer->start(500, true);
}
@ -453,7 +453,7 @@ Rotary::mouseDoubleClickEvent(TQMouseEvent * /*e*/)
void
Rotary::mouseReleaseEvent(TQMouseEvent *e)
{
if (e->button() == Qt::LeftButton) {
if (e->button() == TQt::LeftButton) {
m_buttonPressed = false;
m_lastY = 0;
m_lastX = 0;

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

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

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

Loading…
Cancel
Save