diff options
Diffstat (limited to 'src/gui/dialogs/ClefDialog.cpp')
-rw-r--r-- | src/gui/dialogs/ClefDialog.cpp | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/src/gui/dialogs/ClefDialog.cpp b/src/gui/dialogs/ClefDialog.cpp index 8f802b0..bfb2ee1 100644 --- a/src/gui/dialogs/ClefDialog.cpp +++ b/src/gui/dialogs/ClefDialog.cpp @@ -30,23 +30,23 @@ #include "gui/widgets/BigArrowButton.h" #include <klocale.h> #include <kdialogbase.h> -#include <qbuttongroup.h> -#include <qgroupbox.h> -#include <qhbox.h> -#include <qlabel.h> -#include <qobject.h> -#include <qpixmap.h> -#include <qradiobutton.h> -#include <qstring.h> -#include <qtooltip.h> -#include <qvbox.h> -#include <qwidget.h> +#include <tqbuttongroup.h> +#include <tqgroupbox.h> +#include <tqhbox.h> +#include <tqlabel.h> +#include <tqobject.h> +#include <tqpixmap.h> +#include <tqradiobutton.h> +#include <tqstring.h> +#include <tqtooltip.h> +#include <tqvbox.h> +#include <tqwidget.h> namespace Rosegarden { -ClefDialog::ClefDialog(QWidget *parent, +ClefDialog::ClefDialog(TQWidget *parent, NotePixmapFactory *npf, Clef defaultClef, bool showConversionOptions) : @@ -56,38 +56,38 @@ ClefDialog::ClefDialog(QWidget *parent, { setHelp("nv-signatures-clef"); - QVBox *vbox = makeVBoxMainWidget(); + TQVBox *vbox = makeVBoxMainWidget(); - QGroupBox *clefFrame = new QGroupBox + TQGroupBox *clefFrame = new QGroupBox (1, Horizontal, i18n("Clef"), vbox); - QButtonGroup *conversionFrame = new QButtonGroup + TQButtonGroup *conversionFrame = new QButtonGroup (1, Horizontal, i18n("Existing notes following clef change"), vbox); - QHBox *clefBox = new QHBox(clefFrame); + TQHBox *clefBox = new TQHBox(clefFrame); BigArrowButton *clefDown = new BigArrowButton(clefBox, Qt::LeftArrow); - QToolTip::add + TQToolTip::add (clefDown, i18n("Lower clef")); - QHBox *clefLabelBox = new QVBox(clefBox); + TQHBox *clefLabelBox = new TQVBox(clefBox); m_octaveUp = new BigArrowButton(clefLabelBox, Qt::UpArrow); - QToolTip::add + TQToolTip::add (m_octaveUp, i18n("Up an Octave")); - m_clefLabel = new QLabel(i18n("Clef"), clefLabelBox); + m_clefLabel = new TQLabel(i18n("Clef"), clefLabelBox); m_clefLabel->setAlignment(AlignVCenter | AlignHCenter); m_octaveDown = new BigArrowButton(clefLabelBox, Qt::DownArrow); - QToolTip::add + TQToolTip::add (m_octaveDown, i18n("Down an Octave")); BigArrowButton *clefUp = new BigArrowButton(clefBox, Qt::RightArrow); - QToolTip::add + TQToolTip::add (clefUp, i18n("Higher clef")); - m_clefNameLabel = new QLabel(i18n("Clef"), clefLabelBox); + m_clefNameLabel = new TQLabel(i18n("Clef"), clefLabelBox); m_clefNameLabel->setAlignment(AlignVCenter | AlignHCenter); if (showConversionOptions) { @@ -111,10 +111,10 @@ ClefDialog::ClefDialog(QWidget *parent, conversionFrame->hide(); } - QObject::connect(clefUp, SIGNAL(clicked()), this, SLOT(slotClefUp())); - QObject::connect(clefDown, SIGNAL(clicked()), this, SLOT(slotClefDown())); - QObject::connect(m_octaveUp, SIGNAL(clicked()), this, SLOT(slotOctaveUp())); - QObject::connect(m_octaveDown, SIGNAL(clicked()), this, SLOT(slotOctaveDown())); + TQObject::connect(clefUp, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotClefUp())); + TQObject::connect(clefDown, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotClefDown())); + TQObject::connect(m_octaveUp, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotOctaveUp())); + TQObject::connect(m_octaveDown, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotOctaveDown())); redrawClefPixmap(); } @@ -219,11 +219,11 @@ ClefDialog::slotOctaveDown() void ClefDialog::redrawClefPixmap() { - QPixmap pmap = NotePixmapFactory::toQPixmap + TQPixmap pmap = NotePixmapFactory::toQPixmap (m_notePixmapFactory->makeClefDisplayPixmap(m_clef)); m_clefLabel->setPixmap(pmap); - QString name; + TQString name; int octave = m_clef.getOctaveOffset(); switch (octave) { |