summaryrefslogtreecommitdiffstats
path: root/kanagram
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-12-20 22:30:18 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-12-20 22:34:10 +0900
commitcf40f006901966bdf86163dbe5d1c7cb55f099ec (patch)
treeada95d7786d3412ed5b002061f6d1529c210c8f1 /kanagram
parent0c53c58d50e69e4fb032e073e0bd40c9acde69d3 (diff)
downloadtdeedu-cf40f006901966bdf86163dbe5d1c7cb55f099ec.tar.gz
tdeedu-cf40f006901966bdf86163dbe5d1c7cb55f099ec.zip
Replace various '#define' strings - part 6
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'kanagram')
-rw-r--r--kanagram/src/vocabedit.cpp6
-rw-r--r--kanagram/src/vocabsettings.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/kanagram/src/vocabedit.cpp b/kanagram/src/vocabedit.cpp
index b36a3454..77002048 100644
--- a/kanagram/src/vocabedit.cpp
+++ b/kanagram/src/vocabedit.cpp
@@ -46,7 +46,7 @@ VocabEdit::VocabEdit(TQWidget *parent, TQString fileName) : VocabEditWidget(pare
if(fileName != "")
{
m_fileName = fileName;
- KEduVocDocument *doc = new KEduVocDocument(TQT_TQOBJECT(this));
+ KEduVocDocument *doc = new KEduVocDocument(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(TQT_TQOBJECT(this));
+ KEduVocDocument *doc = new KEduVocDocument(this);
doc->setTitle(txtVocabName->text());
doc->setDocRemark(txtDescription->text());
for(uint i = 0; i < m_vocabList.size(); i++)
@@ -100,7 +100,7 @@ void VocabEdit::slotSave()
{
fileName = m_fileName;
}
- doc->saveAs(TQT_TQOBJECT(this), KURL(fileName), KEduVocDocument::automatic, "kanagram");
+ doc->saveAs(this, KURL(fileName), KEduVocDocument::automatic, "kanagram");
VocabSettings *settings = (VocabSettings*)this->parentWidget();
settings->refreshView();
diff --git a/kanagram/src/vocabsettings.cpp b/kanagram/src/vocabsettings.cpp
index 77b21966..d965abd5 100644
--- a/kanagram/src/vocabsettings.cpp
+++ b/kanagram/src/vocabsettings.cpp
@@ -37,7 +37,7 @@ void VocabSettings::refreshView()
m_fileList = TDEGlobal::dirs()->findAllResources("appdata", "data/" + KanagramSettings::dataLanguage() + "/" + "*.kvtml");
for(uint i = 0; i < m_fileList.size(); i++)
{
- KEduVocDocument *doc = new KEduVocDocument(TQT_TQOBJECT(this));
+ KEduVocDocument *doc = new KEduVocDocument(this);
doc->open(KURL(m_fileList[i]), false);
TQListViewItem *item = new TQListViewItem(lviewVocab, 0);
item->setText( 0, doc->getTitle() );