summaryrefslogtreecommitdiffstats
path: root/kwordquiz/src/kwordquizdoc.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:58:43 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-16 09:58:43 -0600
commit2d7b541a4e0095d40e37aaefbf9c4a9b9d149302 (patch)
tree628c1676b27475e583cfd0c2105bb41b646654bf /kwordquiz/src/kwordquizdoc.cpp
parent6c3f7a55fb7888efc80a7350ef0c2f46ee02baa3 (diff)
downloadtdeedu-2d7b541a4e0095d40e37aaefbf9c4a9b9d149302.tar.gz
tdeedu-2d7b541a4e0095d40e37aaefbf9c4a9b9d149302.zip
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 6c3f7a55fb7888efc80a7350ef0c2f46ee02baa3.
Diffstat (limited to 'kwordquiz/src/kwordquizdoc.cpp')
-rw-r--r--kwordquiz/src/kwordquizdoc.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kwordquiz/src/kwordquizdoc.cpp b/kwordquiz/src/kwordquizdoc.cpp
index 333f7713..c1e3dacc 100644
--- a/kwordquiz/src/kwordquizdoc.cpp
+++ b/kwordquiz/src/kwordquizdoc.cpp
@@ -73,14 +73,14 @@ const KURL& KWordQuizDoc::URL() const
void KWordQuizDoc::slotUpdateAllViews(KWordQuizView *sender)
{
- //m_view->repaint();
+ //m_view->tqrepaint();
/*KWordQuizView *w;
if(pViewList)
{
for(w=pViewList->first(); w!=0; w=pViewList->next())
{
if(w!=sender)
- w->repaint();
+ w->tqrepaint();
}
}*/
@@ -162,7 +162,7 @@ bool KWordQuizDoc::openDocument(const KURL& url, bool append, int index)
TQFile file(tmpfile);
if (!file.open(IO_ReadOnly))
{
- KMessageBox::error(0, i18n("<qt>Cannot open file<br><b>%1</b></qt>").arg(url.path()));
+ KMessageBox::error(0, i18n("<qt>Cannot open file<br><b>%1</b></qt>").tqarg(url.path()));
return false;
}
@@ -333,7 +333,7 @@ bool KWordQuizDoc::saveDocument(const KURL& url, const char *format /*=0*/)
if (!file.open(IO_WriteOnly))
{
KMessageBox::error(0, i18n("<qt>Cannot write to file<br><b>%1</b></qt>")
- .arg(url.path()));
+ .tqarg(url.path()));
//if (filename == fname)
// filename = "";
return false;
@@ -347,7 +347,7 @@ bool KWordQuizDoc::saveDocument(const KURL& url, const char *format /*=0*/)
{
file.close();
KVTMLWriter writer(&file);
- writer.addHeader(TQString("kwordquiz %1").arg(KWTQ_VERSION), 2, g->numRows(), url.fileName());
+ writer.addHeader(TQString("kwordquiz %1").tqarg(KWTQ_VERSION), 2, g->numRows(), url.fileName());
writer.addFirstItem(g->horizontalHeader()->label(0), g->columnWidth(0), g->text(w, 0), g->horizontalHeader()->label(1), g->columnWidth(1), g->text(w, 1));
w++;
int r = g->numRows();
@@ -479,7 +479,7 @@ void KWordQuizDoc::slotModifiedOnDisk( const TQString & path)
/*@todo this code doesn't work very well. Have to look in more detail on how Kate does it.
if (doc_url.path() == path)
{
- TQString str = i18n("The file %1 was changed (modified) on disc by another program!\n\n").arg(doc_url.fileName());
+ TQString str = i18n("The file %1 was changed (modified) on disc by another program!\n\n").tqarg(doc_url.fileName());
int i = KMessageBox::warningYesNoCancel(0, str + i18n("Do you want to reload the modified file? Data loss may occur."),TQString(),i18n("Reload"),i18n("Do Not Reload"));
if ( i == KMessageBox::Yes)
openDocument(doc_url);