summaryrefslogtreecommitdiffstats
path: root/src/commands/edit/SetLyricsCommand.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands/edit/SetLyricsCommand.cpp')
-rw-r--r--src/commands/edit/SetLyricsCommand.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/commands/edit/SetLyricsCommand.cpp b/src/commands/edit/SetLyricsCommand.cpp
index 16f5be4..cfee2bf 100644
--- a/src/commands/edit/SetLyricsCommand.cpp
+++ b/src/commands/edit/SetLyricsCommand.cpp
@@ -32,9 +32,9 @@
#include "base/NotationTypes.h"
#include "base/Segment.h"
#include "base/BaseProperties.h"
-#include <qregexp.h>
-#include <qstring.h>
-#include <qstringlist.h>
+#include <tqregexp.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
namespace Rosegarden
@@ -42,7 +42,7 @@ namespace Rosegarden
using namespace BaseProperties;
-SetLyricsCommand::SetLyricsCommand(Segment *segment, int verse, QString newLyricData) :
+SetLyricsCommand::SetLyricsCommand(Segment *segment, int verse, TQString newLyricData) :
KNamedCommand(getGlobalName()),
m_segment(segment),
m_verse(verse),
@@ -93,26 +93,26 @@ SetLyricsCommand::execute()
// now parse the new string
- QStringList barStrings =
- QStringList::split("/", m_newLyricData, true); // empties ok
+ TQStringList barStrings =
+ TQStringList::split("/", m_newLyricData, true); // empties ok
Composition *comp = m_segment->getComposition();
int barNo = comp->getBarNumber(m_segment->getStartTime());
- for (QStringList::Iterator bsi = barStrings.begin();
+ for (TQStringList::Iterator bsi = barStrings.begin();
bsi != barStrings.end(); ++bsi) {
NOTATION_DEBUG << "Parsing lyrics for bar number " << barNo << ": \"" << *bsi << "\"" << endl;
std::pair<timeT, timeT> barRange = comp->getBarRange(barNo++);
- QString syllables = *bsi;
- syllables.replace(QRegExp("\\[\\d+\\] "), " ");
- QStringList syllableList = QStringList::split(" ", syllables); // no empties
+ TQString syllables = *bsi;
+ syllables.replace(TQRegExp("\\[\\d+\\] "), " ");
+ TQStringList syllableList = TQStringList::split(" ", syllables); // no empties
i = m_segment->findTime(barRange.first);
timeT laterThan = barRange.first - 1;
- for (QStringList::Iterator ssi = syllableList.begin();
+ for (TQStringList::Iterator ssi = syllableList.begin();
ssi != syllableList.end(); ++ssi) {
while (m_segment->isBeforeEndMarker(i) &&
@@ -130,8 +130,8 @@ SetLyricsCommand::execute()
notationTime = (*i)->getNotationAbsoluteTime();
}
- QString syllable = *ssi;
- syllable.replace(QRegExp("~"), " ");
+ TQString syllable = *ssi;
+ syllable.replace(TQRegExp("~"), " ");
syllable = syllable.simplifyWhiteSpace();
if (syllable == "")
continue;