summaryrefslogtreecommitdiffstats
path: root/src/gui/editors/notation/NoteFontFactory.cpp
diff options
context:
space:
mode:
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));