diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-09-06 20:59:29 +0000 |
commit | 11f31c37e5fa4889d9989f10272f44845449cb7b (patch) | |
tree | 4383da04a76c497950d957fc6120b0fd0d9082c2 /src/gui/widgets/DiatonicPitchChooser.cpp | |
parent | 832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff) | |
download | rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.tar.gz rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.zip |
Initial TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1172292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/widgets/DiatonicPitchChooser.cpp')
-rw-r--r-- | src/gui/widgets/DiatonicPitchChooser.cpp | 76 |
1 files changed, 38 insertions, 38 deletions
diff --git a/src/gui/widgets/DiatonicPitchChooser.cpp b/src/gui/widgets/DiatonicPitchChooser.cpp index 95b8b3a..6a1b8ab 100644 --- a/src/gui/widgets/DiatonicPitchChooser.cpp +++ b/src/gui/widgets/DiatonicPitchChooser.cpp @@ -32,27 +32,27 @@ #include "gui/general/MidiPitchLabel.h" #include "PitchDragLabel.h" #include <kcombobox.h> -#include <qgroupbox.h> -#include <qhbox.h> -#include <qlabel.h> -#include <qspinbox.h> -#include <qstring.h> -#include <qwidget.h> +#include <tqgroupbox.h> +#include <tqhbox.h> +#include <tqlabel.h> +#include <tqspinbox.h> +#include <tqstring.h> +#include <tqwidget.h> namespace Rosegarden { -DiatonicPitchChooser::DiatonicPitchChooser(QString title, - QWidget *parent, +DiatonicPitchChooser::DiatonicPitchChooser(TQString title, + TQWidget *parent, int defaultNote, int defaultPitch, int defaultOctave) : - QGroupBox(1, Horizontal, title, parent), + TQGroupBox(1, Horizontal, title, parent), m_defaultPitch(defaultPitch) { m_pitchDragLabel = new PitchDragLabel(this, defaultPitch); - QHBox *hbox = new QHBox(this); + TQHBox *hbox = new TQHBox(this); hbox->setSpacing(6); m_step = new KComboBox( hbox ); @@ -87,45 +87,45 @@ DiatonicPitchChooser::DiatonicPitchChooser(QString title, m_accidental->insertItem(i18n("double sharp")); m_accidental->setCurrentItem(2); // default: natural - m_pitchLabel = new QLabel(QString("%1").arg(getPitch()), hbox); + m_pitchLabel = new TQLabel(TQString("%1").arg(getPitch()), hbox); m_pitchLabel->setMinimumWidth(40); - connect(m_accidental, SIGNAL(activated(int)), - this, SLOT(slotSetAccidental(int))); + connect(m_accidental, TQT_SIGNAL(activated(int)), + this, TQT_SLOT(slotSetAccidental(int))); - connect(m_octave, SIGNAL(activated(int)), - this, SLOT(slotSetOctave(int))); + connect(m_octave, TQT_SIGNAL(activated(int)), + this, TQT_SLOT(slotSetOctave(int))); - connect(m_step, SIGNAL(activated(int)), - this, SLOT(slotSetStep(int))); + connect(m_step, TQT_SIGNAL(activated(int)), + this, TQT_SLOT(slotSetStep(int))); - //connect(m_pitch, SIGNAL(valueChanged(int)), - // this, SIGNAL(pitchChanged(int))); + //connect(m_pitch, TQT_SIGNAL(valueChanged(int)), + // this, TQT_SIGNAL(pitchChanged(int))); - //connect(m_pitch, SIGNAL(valueChanged(int)), - // this, SIGNAL(preview(int))); + //connect(m_pitch, TQT_SIGNAL(valueChanged(int)), + // this, TQT_SIGNAL(preview(int))); - connect(m_pitchDragLabel, SIGNAL(pitchDragged(int,int,int)), - this, SLOT(slotSetNote(int,int,int))); + connect(m_pitchDragLabel, TQT_SIGNAL(pitchDragged(int,int,int)), + this, TQT_SLOT(slotSetNote(int,int,int))); - //connect(m_pitchDragLabel, SIGNAL(pitchChanged(int)), - // this, SLOT(slotSetPitch(int))); + //connect(m_pitchDragLabel, TQT_SIGNAL(pitchChanged(int)), + // this, TQT_SLOT(slotSetPitch(int))); - connect(m_pitchDragLabel, SIGNAL(pitchChanged(int,int,int)), - this, SLOT(slotSetNote(int,int,int))); + connect(m_pitchDragLabel, TQT_SIGNAL(pitchChanged(int,int,int)), + this, TQT_SLOT(slotSetNote(int,int,int))); - //connect(m_pitchDragLabel, SIGNAL(pitchChanged(int)), - // this, SIGNAL(pitchChanged(int))); + //connect(m_pitchDragLabel, TQT_SIGNAL(pitchChanged(int)), + // this, TQT_SIGNAL(pitchChanged(int))); - connect(m_pitchDragLabel, SIGNAL(pitchDragged(int,int,int)), - this, SIGNAL(noteChanged(int,int,int))); + connect(m_pitchDragLabel, TQT_SIGNAL(pitchDragged(int,int,int)), + this, TQT_SIGNAL(noteChanged(int,int,int))); - connect(m_pitchDragLabel, SIGNAL(pitchChanged(int,int,int)), - this, SIGNAL(noteChanged(int,int,int))); + connect(m_pitchDragLabel, TQT_SIGNAL(pitchChanged(int,int,int)), + this, TQT_SIGNAL(noteChanged(int,int,int))); - connect(m_pitchDragLabel, SIGNAL(preview(int)), - this, SIGNAL(preview(int))); + connect(m_pitchDragLabel, TQT_SIGNAL(preview(int)), + this, TQT_SIGNAL(preview(int))); } @@ -157,7 +157,7 @@ DiatonicPitchChooser::slotSetPitch(int pitch) m_accidental->setCurrentItem(pitchChange + 2); - m_pitchLabel->setText(QString("%1").arg(pitch)); + m_pitchLabel->setText(TQString("%1").arg(pitch)); update(); } @@ -199,7 +199,7 @@ DiatonicPitchChooser::setLabelsIfNeeded() //{ m_pitchDragLabel->slotSetPitch(getPitch(), m_octave->currentItem(), m_step->currentItem()); //} - m_pitchLabel->setText(QString("%1").arg(getPitch())); + m_pitchLabel->setText(TQString("%1").arg(getPitch())); } void @@ -217,7 +217,7 @@ DiatonicPitchChooser::slotSetNote(int pitch, int octave, int step) m_accidental->setCurrentItem(pitchOffset + 2); //MidiPitchLabel pl(p); - m_pitchLabel->setText(QString("%1").arg(pitch)); + m_pitchLabel->setText(TQString("%1").arg(pitch)); update(); } |