summaryrefslogtreecommitdiffstats
path: root/kanagram/src/vocabedit.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kanagram/src/vocabedit.cpp')
-rw-r--r--kanagram/src/vocabedit.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/kanagram/src/vocabedit.cpp b/kanagram/src/vocabedit.cpp
index 46a81450..2315faa4 100644
--- a/kanagram/src/vocabedit.cpp
+++ b/kanagram/src/vocabedit.cpp
@@ -41,12 +41,12 @@
#include "kanagramsettings.h"
-VocabEdit::VocabEdit(TQWidget *parent, TQString fileName) : VocabEditWidget(parent), m_fileName("")
+VocabEdit::VocabEdit(TQWidget *tqparent, TQString fileName) : VocabEditWidget(tqparent), m_fileName("")
{
if(fileName != "")
{
m_fileName = fileName;
- KEduVocDocument *doc = new KEduVocDocument(this);
+ KEduVocDocument *doc = new KEduVocDocument(TQT_TQOBJECT(this));
doc->open(KURL(m_fileName), false);
for(int i = 0; i < doc->numEntries(); i++)
{
@@ -83,7 +83,7 @@ VocabEdit::~VocabEdit()
void VocabEdit::slotSave()
{
- KEduVocDocument *doc = new KEduVocDocument(this);
+ KEduVocDocument *doc = new KEduVocDocument(TQT_TQOBJECT(this));
doc->setTitle(txtVocabName->text());
doc->setDocRemark(txtDescription->text());
for(uint i = 0; i < m_vocabList.size(); i++)
@@ -94,15 +94,15 @@ void VocabEdit::slotSave()
TQString fileName;
if(m_fileName == "")
{
- fileName = KGlobal::dirs()->saveLocation("data", "kanagram/data/" + KanagramSettings::dataLanguage()) + txtVocabName->text().lower().replace(" ", "") + ".kvtml";
+ fileName = KGlobal::dirs()->saveLocation("data", "kanagram/data/" + KanagramSettings::dataLanguage()) + txtVocabName->text().lower().tqreplace(" ", "") + ".kvtml";
}
else
{
fileName = m_fileName;
}
- doc->saveAs(this, KURL(fileName), KEduVocDocument::automatic, "kanagram");
+ doc->saveAs(TQT_TQOBJECT(this), KURL(fileName), KEduVocDocument::automatic, "kanagram");
- VocabSettings *settings = (VocabSettings*)this->parentWidget();
+ VocabSettings *settings = (VocabSettings*)this->tqparentWidget();
settings->refreshView();
if(m_textChanged)