From 458efa7b0c935cbaafa2791021a5f8f7241aa876 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 2 May 2011 22:38:52 +0000 Subject: Initial TQt4 port of Rosegarden This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/rosegarden@1230242 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/gui/editors/notation/SystemFont.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/gui/editors/notation/SystemFont.cpp') diff --git a/src/gui/editors/notation/SystemFont.cpp b/src/gui/editors/notation/SystemFont.cpp index 62b4280..77d3341 100644 --- a/src/gui/editors/notation/SystemFont.cpp +++ b/src/gui/editors/notation/SystemFont.cpp @@ -130,11 +130,11 @@ qfont: TQFontInfo info(qfont); - NOTATION_DEBUG << "SystemFont::loadSystemFont[Qt]: have family " << info.family() << " (exactMatch " << info.exactMatch() << ")" << endl; + NOTATION_DEBUG << "SystemFont::loadSystemFont[TQt]: have family " << TQString(info.family()).ascii() << " (exactMatch " << info.exactMatch() << ")" << endl; // return info.exactMatch(); - // The Qt documentation says: + // The TQt documentation says: // // bool TQFontInfo::exactMatch() const // Returns TRUE if the matched window system font is exactly the @@ -143,23 +143,23 @@ qfont: // My arse. I specify "feta", I get "Verdana", and exactMatch // returns true. Uh huh. // - // UPDATE: in newer versions of Qt, I specify "fughetta", I get + // UPDATE: in newer versions of TQt, I specify "fughetta", I get // "Fughetta [macromedia]", and exactMatch returns false. Just as // useless, but in a different way. - TQString family = info.family().lower(); + TQString family = TQString(info.family()).lower(); if (family == name.lower()) return new SystemFontQt(qfont); else { - int bracket = family.find(" ["); + int bracket = family.tqfind(" ["); if (bracket > 1) family = family.left(bracket); if (family == name.lower()) return new SystemFontQt(qfont); } - NOTATION_DEBUG << "SystemFont::loadSystemFont[Qt]: Wrong family returned, failing" << endl; + NOTATION_DEBUG << "SystemFont::loadSystemFont[TQt]: Wrong family returned, failing" << endl; return 0; } -- cgit v1.2.1