diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:44:41 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-11 04:44:41 +0000 |
commit | a374efce3a207b39514be3c52264091400ce297e (patch) | |
tree | 77bdf654b55826d4f59b53a5621310206bcaead1 /kwordquiz/src/wqlwriter.cpp | |
parent | f81a494f3957d5cf38c787973415597941934727 (diff) | |
download | tdeedu-a374efce3a207b39514be3c52264091400ce297e.tar.gz tdeedu-a374efce3a207b39514be3c52264091400ce297e.zip |
TQt4 port kdeedu
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1236073 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kwordquiz/src/wqlwriter.cpp')
-rw-r--r-- | kwordquiz/src/wqlwriter.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kwordquiz/src/wqlwriter.cpp b/kwordquiz/src/wqlwriter.cpp index e5314201..579561ff 100644 --- a/kwordquiz/src/wqlwriter.cpp +++ b/kwordquiz/src/wqlwriter.cpp @@ -22,7 +22,7 @@ WqlWriter::WqlWriter(TQFile *file) outputFile = file; if(outputFile->open(IO_WriteOnly)) { - outputStream.setDevice(outputFile); + outputStream.setDevice(TQT_TQIODEVICE(outputFile)); outputStream.setEncoding(TQTextStream::Latin1); outputStream << "WordQuiz" << winendl; @@ -35,16 +35,16 @@ void WqlWriter::writeFont( const TQFont & font ) outputStream << "[Font Info]" << winendl; outputStream << "FontName1=\"" << font.family() << "\"" << winendl; outputStream << "FontSize1=" << TQString::number(font.pointSize()) << winendl; - outputStream << TQString("FontBold1=%1").arg(font.bold() ? "1" : "0") <<winendl; - outputStream << TQString("FontItalic1=%1").arg(font.italic() ? "1" : "0") <<winendl; + outputStream << TQString("FontBold1=%1").tqarg(font.bold() ? "1" : "0") <<winendl; + outputStream << TQString("FontItalic1=%1").tqarg(font.italic() ? "1" : "0") <<winendl; outputStream << "FontColor1=0" << winendl; outputStream << "CharSet1=0" << winendl; outputStream << "Layout1=0" << winendl; outputStream << "FontName2=\"" << font.family() << "\"" << winendl; outputStream << "FontSize2=" << TQString::number(font.pointSize()) << winendl; - outputStream << TQString("FontBold2=%1").arg(font.bold() ? "1" : "0") <<winendl; - outputStream << TQString("FontItalic2=%1").arg(font.italic() ? "1" : "0") <<winendl; + outputStream << TQString("FontBold2=%1").tqarg(font.bold() ? "1" : "0") <<winendl; + outputStream << TQString("FontItalic2=%1").tqarg(font.italic() ? "1" : "0") <<winendl; outputStream << "FontColor2=0" << winendl; outputStream << "CharSet2=0" << winendl; outputStream << "Layout2=0" << winendl << winendl; @@ -83,7 +83,7 @@ void WqlWriter::writeFirstItem( const TQString & ll, const TQString & rl ) void WqlWriter::writeItem( const TQString & left, const TQString & right, int rh ) { - outputStream << left << TQString( " [%1]").arg(rh * 15, 10, 10 ) << winendl ; + outputStream << left << TQString( " [%1]").tqarg(rh * 15, 10, 10 ) << winendl ; outputStream << right << winendl; } |