summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/notation/NoteStyleFileReader.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2011-12-16 09:57:35 -0600
committerTimothy Pearson <[email protected]>2011-12-16 09:57:35 -0600
commit6ca08e7a881c0c97f338e0085f75af04ec08ad04 (patch)
tree5462bef0f060df1c19e3fcb98250e5cfa24edc11 /src/gui/editors/notation/NoteStyleFileReader.cpp
parent4faf11eccc5f08d2aa0540157d6eff80b7cdb02a (diff)
downloadrosegarden-6ca08e7a881c0c97f338e0085f75af04ec08ad04.tar.gz
rosegarden-6ca08e7a881c0c97f338e0085f75af04ec08ad04.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 4faf11eccc5f08d2aa0540157d6eff80b7cdb02a.
Diffstat (limited to 'src/gui/editors/notation/NoteStyleFileReader.cpp')
-rw-r--r--src/gui/editors/notation/NoteStyleFileReader.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/editors/notation/NoteStyleFileReader.cpp b/src/gui/editors/notation/NoteStyleFileReader.cpp
index 10e5f13..b8619c9 100644
--- a/src/gui/editors/notation/NoteStyleFileReader.cpp
+++ b/src/gui/editors/notation/NoteStyleFileReader.cpp
@@ -48,13 +48,13 @@ NoteStyleFileReader::NoteStyleFileReader(std::string name) :
KGlobal::dirs()->findResource("appdata", "styles/");
TQString styleFileName =
- TQString("%1/%2.xml").arg(styleDirectory).arg(strtoqstr(name));
+ TQString("%1/%2.xml").tqarg(styleDirectory).tqarg(strtoqstr(name));
TQFileInfo fileInfo(styleFileName);
if (!fileInfo.isReadable()) {
throw StyleFileReadFailed
- (qstrtostr(i18n("Can't open style file %1").arg(styleFileName)));
+ (qstrtostr(i18n("Can't open style file %1").tqarg(styleFileName)));
}
TQFile styleFile(styleFileName);
@@ -98,7 +98,7 @@ NoteStyleFileReader::startElement(const TQString &, const TQString &,
if (!setFromAttributes(type, attributes)) return false;
} catch (NotationStrings::MalformedNoteName n) {
- m_errorString = i18n("Unrecognised note name %1").arg(s);
+ m_errorString = i18n("Unrecognised note name %1").tqarg(s);
return false;
}
@@ -125,7 +125,7 @@ NoteStyleFileReader::setFromAttributes(Note::Type type,
TQString s;
bool haveShape = false;
- s = attributes.value("shape");
+ s = attributes.value("tqshape");
if (!s.isNull()) {
m_style->setShape(type, qstrtostr(s.lower()));
haveShape = true;
@@ -134,7 +134,7 @@ NoteStyleFileReader::setFromAttributes(Note::Type type,
s = attributes.value("charname");
if (!s.isNull()) {
if (haveShape) {
- m_errorString = i18n("global and note elements may have shape "
+ m_errorString = i18n("global and note elements may have tqshape "
"or charname attribute, but not both");
return false;
}