summaryrefslogtreecommitdiffstats
path: root/kwordquiz/src/wqlwriter.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:39:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:39:55 +0000
commit0a6e0958c03e41c87b15557b6f407874f20c2f8d (patch)
tree2cdd58c4013b1be09cfcbb4ddae2b05712b9aeee /kwordquiz/src/wqlwriter.cpp
parent83f9dfafc157ff7823804b3ff457b43d021a5b4b (diff)
downloadtdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.tar.gz
tdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1157642 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kwordquiz/src/wqlwriter.cpp')
-rw-r--r--kwordquiz/src/wqlwriter.cpp42
1 files changed, 21 insertions, 21 deletions
diff --git a/kwordquiz/src/wqlwriter.cpp b/kwordquiz/src/wqlwriter.cpp
index 6428036e..e5314201 100644
--- a/kwordquiz/src/wqlwriter.cpp
+++ b/kwordquiz/src/wqlwriter.cpp
@@ -17,40 +17,40 @@
#define winendl "\r\n"
-WqlWriter::WqlWriter(QFile *file)
+WqlWriter::WqlWriter(TQFile *file)
{
outputFile = file;
if(outputFile->open(IO_WriteOnly))
{
outputStream.setDevice(outputFile);
- outputStream.setEncoding(QTextStream::Latin1);
+ outputStream.setEncoding(TQTextStream::Latin1);
outputStream << "WordQuiz" << winendl;
outputStream << "5.9.0" << winendl << winendl;
}
}
-void WqlWriter::writeFont( const QFont & font )
+void WqlWriter::writeFont( const TQFont & font )
{
outputStream << "[Font Info]" << winendl;
outputStream << "FontName1=\"" << font.family() << "\"" << winendl;
- outputStream << "FontSize1=" << QString::number(font.pointSize()) << winendl;
- outputStream << QString("FontBold1=%1").arg(font.bold() ? "1" : "0") <<winendl;
- outputStream << QString("FontItalic1=%1").arg(font.italic() ? "1" : "0") <<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 << "FontColor1=0" << winendl;
outputStream << "CharSet1=0" << winendl;
outputStream << "Layout1=0" << winendl;
outputStream << "FontName2=\"" << font.family() << "\"" << winendl;
- outputStream << "FontSize2=" << QString::number(font.pointSize()) << winendl;
- outputStream << QString("FontBold2=%1").arg(font.bold() ? "1" : "0") <<winendl;
- outputStream << QString("FontItalic2=%1").arg(font.italic() ? "1" : "0") <<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 << "FontColor2=0" << winendl;
outputStream << "CharSet2=0" << winendl;
outputStream << "Layout2=0" << winendl << winendl;
}
-void WqlWriter::writeCharacters( const QString & s )
+void WqlWriter::writeCharacters( const TQString & s )
{
outputStream << "[Character Info]" << winendl;
outputStream << "Characters1=" << s << winendl;
@@ -60,30 +60,30 @@ void WqlWriter::writeCharacters( const QString & s )
void WqlWriter::writeGridInfo( int col0, int col1, int col2, int numRows )
{
outputStream << "[Grid Info]" << winendl;
- outputStream << "ColWidth0=" << QString::number(col0) << winendl;
- outputStream << "ColWidth1=" << QString::number(col1) << winendl;
- outputStream << "ColWidth2=" << QString::number(col2) << winendl;
- outputStream << "RowCount=" << QString::number(numRows + 1) << winendl; //Add one for the header
+ outputStream << "ColWidth0=" << TQString::number(col0) << winendl;
+ outputStream << "ColWidth1=" << TQString::number(col1) << winendl;
+ outputStream << "ColWidth2=" << TQString::number(col2) << winendl;
+ outputStream << "RowCount=" << TQString::number(numRows + 1) << winendl; //Add one for the header
}
void WqlWriter::writeSelection( int lc, int tr, int rc, int br ) //part of [Grid Info]
{
- outputStream << "SelLeft=" << QString::number(lc + 1) << winendl;
- outputStream << "SelTop=" << QString::number(tr + 1) << winendl;
- outputStream << "SelRight=" << QString::number(rc + 1) << winendl;
- outputStream << "SelBottom=" << QString::number(br + 1) << winendl << winendl;
+ outputStream << "SelLeft=" << TQString::number(lc + 1) << winendl;
+ outputStream << "SelTop=" << TQString::number(tr + 1) << winendl;
+ outputStream << "SelRight=" << TQString::number(rc + 1) << winendl;
+ outputStream << "SelBottom=" << TQString::number(br + 1) << winendl << winendl;
}
-void WqlWriter::writeFirstItem( const QString & ll, const QString & rl )
+void WqlWriter::writeFirstItem( const TQString & ll, const TQString & rl )
{
outputStream << "[Vocabulary]" << winendl;
outputStream << ll << " [0000000300]" << winendl;
outputStream << rl << winendl;
}
-void WqlWriter::writeItem( const QString & left, const QString & right, int rh )
+void WqlWriter::writeItem( const TQString & left, const TQString & right, int rh )
{
- outputStream << left << QString( " [%1]").arg(rh * 15, 10, 10 ) << winendl ;
+ outputStream << left << TQString( " [%1]").arg(rh * 15, 10, 10 ) << winendl ;
outputStream << right << winendl;
}