From 11f31c37e5fa4889d9989f10272f44845449cb7b Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 6 Sep 2010 20:59:29 +0000 Subject: Initial TQt conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1172292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/gui/dialogs/LyricEditDialog.cpp | 46 ++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'src/gui/dialogs/LyricEditDialog.cpp') diff --git a/src/gui/dialogs/LyricEditDialog.cpp b/src/gui/dialogs/LyricEditDialog.cpp index 4dfeba2..691f046 100644 --- a/src/gui/dialogs/LyricEditDialog.cpp +++ b/src/gui/dialogs/LyricEditDialog.cpp @@ -34,21 +34,21 @@ #include "base/NotationTypes.h" #include "base/Segment.h" #include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include #include -#include -#include +#include +#include namespace Rosegarden { -LyricEditDialog::LyricEditDialog(QWidget *parent, +LyricEditDialog::LyricEditDialog(TQWidget *parent, Segment *segment) : KDialogBase(parent, 0, true, i18n("Edit Lyrics"), Ok | Cancel | Help), m_segment(segment), @@ -56,23 +56,23 @@ LyricEditDialog::LyricEditDialog(QWidget *parent, { setHelp("nv-text-lyrics"); - QVBox *vbox = makeVBoxMainWidget(); + TQVBox *vbox = makeVBoxMainWidget(); - QGroupBox *groupBox = new QGroupBox + TQGroupBox *groupBox = new QGroupBox (1, Horizontal, i18n("Lyrics for this segment"), vbox); - QHBox *hbox = new QHBox(groupBox); + TQHBox *hbox = new TQHBox(groupBox); hbox->setSpacing(5); -// new QLabel(i18n("Verse:"), hbox); +// new TQLabel(i18n("Verse:"), hbox); m_verseNumber = new KComboBox(hbox); m_verseNumber->setEditable(false); - connect(m_verseNumber, SIGNAL(activated(int)), this, SLOT(slotVerseNumberChanged(int))); - m_verseAddButton = new QPushButton(i18n("Add Verse"), hbox); - connect(m_verseAddButton, SIGNAL(clicked()), this, SLOT(slotAddVerse())); - QFrame *f = new QFrame(hbox); + connect(m_verseNumber, TQT_SIGNAL(activated(int)), this, TQT_SLOT(slotVerseNumberChanged(int))); + m_verseAddButton = new TQPushButton(i18n("Add Verse"), hbox); + connect(m_verseAddButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotAddVerse())); + TQFrame *f = new TQFrame(hbox); hbox->setStretchFactor(f, 10); - m_textEdit = new QTextEdit(groupBox); + m_textEdit = new TQTextEdit(groupBox); m_textEdit->setTextFormat(Qt::PlainText); m_textEdit->setMinimumWidth(300); @@ -91,7 +91,7 @@ void LyricEditDialog::slotVerseNumberChanged(int verse) { NOTATION_DEBUG << "LyricEditDialog::slotVerseNumberChanged(" << verse << ")" << endl; - QString text = m_textEdit->text(); + TQString text = m_textEdit->text(); m_texts[m_currentVerse] = text; m_textEdit->setText(m_texts[verse]); m_currentVerse = verse; @@ -148,7 +148,7 @@ LyricEditDialog::unparse() int lastBarNo = comp->getBarNumber(lastTime); std::map haveLyric; - QString fragment = QString("[%1] ").arg(lastBarNo + 1); + TQString fragment = TQString("[%1] ").arg(lastBarNo + 1); m_skeleton = fragment; m_texts.clear(); @@ -192,7 +192,7 @@ LyricEditDialog::unparse() ++lastBarNo; } - fragment += QString("\n[%1] ").arg(myBarNo + 1); + fragment += TQString("\n[%1] ").arg(myBarNo + 1); m_skeleton += fragment; for (size_t v = 0; v < m_verseCount; ++v) m_texts[v] += fragment; @@ -218,8 +218,8 @@ LyricEditDialog::unparse() long verse = 0; (*i)->get(Text::LyricVersePropertyName, verse); - QString syllable(strtoqstr(ssyllable)); - syllable.replace(QRegExp("\\s+"), "~"); + TQString syllable(strtoqstr(ssyllable)); + syllable.replace(TQRegExp("\\s+"), "~"); m_texts[verse] += " " + syllable; haveLyric[verse] = true; -- cgit v1.2.1