summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/notation/NoteFontFactory.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-06 20:59:29 +0000
commit11f31c37e5fa4889d9989f10272f44845449cb7b (patch)
tree4383da04a76c497950d957fc6120b0fd0d9082c2 /src/gui/editors/notation/NoteFontFactory.cpp
parent832eb69d571e8e518db45d0c0e6fbc0f00690209 (diff)
downloadrosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.tar.gz
rosegarden-11f31c37e5fa4889d9989f10272f44845449cb7b.zip
Initial TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1172292 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/editors/notation/NoteFontFactory.cpp')
-rw-r--r--src/gui/editors/notation/NoteFontFactory.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/gui/editors/notation/NoteFontFactory.cpp b/src/gui/editors/notation/NoteFontFactory.cpp
index 2decce4..80e0772 100644
--- a/src/gui/editors/notation/NoteFontFactory.cpp
+++ b/src/gui/editors/notation/NoteFontFactory.cpp
@@ -38,9 +38,9 @@
#include <kconfig.h>
#include <kglobal.h>
#include <kmessagebox.h>
-#include <qdir.h>
-#include <qstring.h>
-#include <qstringlist.h>
+#include <tqdir.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
#include <algorithm>
@@ -60,31 +60,31 @@ NoteFontFactory::getFontNames(bool forceRescan)
KConfig *config = kapp->config();
config->setGroup(NotationViewConfigGroup);
- QString fontNameList = "";
+ TQString fontNameList = "";
if (!forceRescan) {
fontNameList = config->readEntry("notefontlist");
}
NOTATION_DEBUG << "NoteFontFactory::getFontNames: read from cache: " << fontNameList << endl;
- QStringList names = QStringList::split(",", fontNameList);
+ TQStringList names = TQStringList::split(",", fontNameList);
if (names.empty()) {
NOTATION_DEBUG << "NoteFontFactory::getFontNames: No names available, rescanning..." << endl;
- QString mappingDir =
+ TQString mappingDir =
KGlobal::dirs()->findResource("appdata", "fonts/mappings/");
- QDir dir(mappingDir);
+ TQDir dir(mappingDir);
if (!dir.exists()) {
std::cerr << "NoteFontFactory::getFontNames: mapping directory \""
<< mappingDir << "\" not found" << std::endl;
return m_fontNames;
}
- dir.setFilter(QDir::Files | QDir::Readable);
- QStringList files = dir.entryList();
- for (QStringList::Iterator i = files.begin(); i != files.end(); ++i) {
+ dir.setFilter(TQDir::Files | TQDir::Readable);
+ TQStringList files = dir.entryList();
+ for (TQStringList::Iterator i = files.begin(); i != files.end(); ++i) {
if ((*i).length() > 4 && (*i).right(4).lower() == ".xml") {
@@ -103,9 +103,9 @@ NoteFontFactory::getFontNames(bool forceRescan)
}
}
- QString savedNames = "";
+ TQString savedNames = "";
- for (QStringList::Iterator i = names.begin(); i != names.end(); ++i) {
+ for (TQStringList::Iterator i = names.begin(); i != names.end(); ++i) {
m_fontNames.insert(qstrtostr(*i));
if (i != names.begin())
savedNames += ",";
@@ -197,7 +197,7 @@ NoteFontFactory::getDefaultFontName()
else if (fontNames.size() > 0)
defaultFont = *fontNames.begin();
else {
- QString message = i18n("Can't obtain a default font -- no fonts found");
+ TQString message = i18n("Can't obtain a default font -- no fonts found");
KStartupLogo::hideIfStillThere();
KMessageBox::error(0, message);
throw NoFontsAvailable(qstrtostr(message));