summaryrefslogtreecommitdiffstats
path: root/src/gui/dialogs/LyricEditDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/dialogs/LyricEditDialog.cpp')
-rw-r--r--src/gui/dialogs/LyricEditDialog.cpp46
1 files changed, 23 insertions, 23 deletions
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 <kdialogbase.h>
-#include <qgroupbox.h>
-#include <qregexp.h>
-#include <qstring.h>
-#include <qtextedit.h>
-#include <qvbox.h>
-#include <qwidget.h>
+#include <tqgroupbox.h>
+#include <tqregexp.h>
+#include <tqstring.h>
+#include <tqtextedit.h>
+#include <tqvbox.h>
+#include <tqwidget.h>
#include <kcombobox.h>
-#include <qlabel.h>
-#include <qpushbutton.h>
+#include <tqlabel.h>
+#include <tqpushbutton.h>
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<int, bool> 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<Int>(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;