summaryrefslogtreecommitdiffstats
path: root/kanagram/src/vocabedit.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:44:41 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:44:41 +0000
commita374efce3a207b39514be3c52264091400ce297e (patch)
tree77bdf654b55826d4f59b53a5621310206bcaead1 /kanagram/src/vocabedit.cpp
parentf81a494f3957d5cf38c787973415597941934727 (diff)
downloadtdeedu-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 '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)