diff options
Diffstat (limited to 'src/gui/editors/notation/NoteFontMap.cpp')
-rw-r--r-- | src/gui/editors/notation/NoteFontMap.cpp | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/src/gui/editors/notation/NoteFontMap.cpp b/src/gui/editors/notation/NoteFontMap.cpp index 9640087..3a77411 100644 --- a/src/gui/editors/notation/NoteFontMap.cpp +++ b/src/gui/editors/notation/NoteFontMap.cpp @@ -57,18 +57,18 @@ NoteFontMap::NoteFontMap(std::string name) : TQString mapFileName; TQString mapFileMixedName = TQString("%1/mappings/%2.xml") - .arg(m_fontDirectory) - .arg(strtoqstr(name)); + .tqarg(m_fontDirectory) + .tqarg(strtoqstr(name)); TQFileInfo mapFileMixedInfo(mapFileMixedName); if (!mapFileMixedInfo.isReadable()) { TQString lowerName = strtoqstr(name).lower(); - lowerName.replace(TQRegExp(" "), "_"); + lowerName.tqreplace(TQRegExp(" "), "_"); TQString mapFileLowerName = TQString("%1/mappings/%2.xml") - .arg(m_fontDirectory) - .arg(lowerName); + .tqarg(m_fontDirectory) + .tqarg(lowerName); TQFileInfo mapFileLowerInfo(mapFileLowerName); @@ -76,11 +76,11 @@ NoteFontMap::NoteFontMap(std::string name) : if (mapFileLowerName != mapFileMixedName) { throw MappingFileReadFailed (qstrtostr(i18n("Can't open font mapping file %1 or %2"). - arg(mapFileMixedName).arg(mapFileLowerName))); + tqarg(mapFileMixedName).tqarg(mapFileLowerName))); } else { throw MappingFileReadFailed (qstrtostr(i18n("Can't open font mapping file %1"). - arg(mapFileMixedName))); + tqarg(mapFileMixedName))); } } else { mapFileName = mapFileLowerName; @@ -287,14 +287,14 @@ NoteFontMap::startElement(const TQString &, const TQString &, fontId = s.toInt(); //!!! need to be able to calculate max size -- checkFont needs - //to take a size argument; unfortunately Qt doesn't seem to be + //to take a size argument; unfortunately TQt doesn't seem to be //able to report to us when a scalable font was loaded in the //wrong size, so large sizes might be significantly inaccurate //as it just stops scaling up any further at somewhere around //120px. We could test whether the metric for the black //notehead is noticeably smaller than the notehead should be, //and reject if so? [update -- no, that doesn't work either, - //Qt just returns the correct metric even if drawing the + //TQt just returns the correct metric even if drawing the //incorrect size] for (int sz = 1; sz <= 30; sz += (sz == 1 ? 1 : 2)) { @@ -595,7 +595,7 @@ NoteFontMap::startElement(const TQString &, const TQString &, m_systemFontNames[n] = name; delete font; } else { - std::cerr << TQString("Warning: Unable to load font \"%1\"").arg(name) << std::endl; + std::cerr << TQString("Warning: Unable to load font \"%1\"").tqarg(name) << std::endl; m_ok = false; } @@ -615,7 +615,7 @@ NoteFontMap::startElement(const TQString &, const TQString &, } if (!have) { std::cerr << TQString("Warning: Unable to load any of the fonts in \"%1\""). - arg(names) << std::endl; + tqarg(names) << std::endl; m_ok = false; } @@ -657,10 +657,10 @@ bool NoteFontMap::error(const TQXmlParseException& exception) { m_errorString = TQString("%1 at line %2, column %3: %4") - .arg(exception.message()) - .arg(exception.lineNumber()) - .arg(exception.columnNumber()) - .arg(m_errorString); + .tqarg(exception.message()) + .tqarg(exception.lineNumber()) + .tqarg(exception.columnNumber()) + .tqarg(m_errorString); return TQXmlDefaultHandler::error(exception); } @@ -668,10 +668,10 @@ bool NoteFontMap::fatalError(const TQXmlParseException& exception) { m_errorString = TQString("%1 at line %2, column %3: %4") - .arg(exception.message()) - .arg(exception.lineNumber()) - .arg(exception.columnNumber()) - .arg(m_errorString); + .tqarg(exception.message()) + .tqarg(exception.lineNumber()) + .tqarg(exception.columnNumber()) + .tqarg(m_errorString); return TQXmlDefaultHandler::fatalError(exception); } @@ -705,20 +705,20 @@ bool NoteFontMap::checkFile(int size, std::string &src) const { TQString pixmapFileMixedName = TQString("%1/%2/%3/%4.xpm") - .arg(m_fontDirectory) - .arg(strtoqstr(m_srcDirectory)) - .arg(size) - .arg(strtoqstr(src)); + .tqarg(m_fontDirectory) + .tqarg(strtoqstr(m_srcDirectory)) + .tqarg(size) + .tqarg(strtoqstr(src)); TQFileInfo pixmapFileMixedInfo(pixmapFileMixedName); if (!pixmapFileMixedInfo.isReadable()) { TQString pixmapFileLowerName = TQString("%1/%2/%3/%4.xpm") - .arg(m_fontDirectory) - .arg(strtoqstr(m_srcDirectory).lower()) - .arg(size) - .arg(strtoqstr(src)); + .tqarg(m_fontDirectory) + .tqarg(strtoqstr(m_srcDirectory).lower()) + .tqarg(size) + .tqarg(strtoqstr(src)); TQFileInfo pixmapFileLowerInfo(pixmapFileLowerName); @@ -991,7 +991,7 @@ NoteFontMap::HotspotData::getHotspot(int size, int width, int height, return true; } -QStringList +TQStringList NoteFontMap::getSystemFontNames() const { TQStringList names; |