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-21 09:40:01 +0900
commit5446eb7150897a6fb453a7246d7d09ddd8d2bc69 (patch)
tree256ab63f945cfa34856ae619951a8eb7773918ee /kanagram
parent63af14c32527b3449e31cd9d01c38b5074177378 (diff)
downloadtdeedu-5446eb7150897a6fb453a7246d7d09ddd8d2bc69.tar.gz
tdeedu-5446eb7150897a6fb453a7246d7d09ddd8d2bc69.zip
Replace various '#define' strings - part 6
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit cf40f006901966bdf86163dbe5d1c7cb55f099ec)
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() );