diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:39:55 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:39:55 +0000 |
commit | 0a6e0958c03e41c87b15557b6f407874f20c2f8d (patch) | |
tree | 2cdd58c4013b1be09cfcbb4ddae2b05712b9aeee /kanagram/src/vocabsettings.cpp | |
parent | 83f9dfafc157ff7823804b3ff457b43d021a5b4b (diff) | |
download | tdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.tar.gz tdeedu-0a6e0958c03e41c87b15557b6f407874f20c2f8d.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeedu@1157642 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kanagram/src/vocabsettings.cpp')
-rw-r--r-- | kanagram/src/vocabsettings.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kanagram/src/vocabsettings.cpp b/kanagram/src/vocabsettings.cpp index c7b41ba7..730f9216 100644 --- a/kanagram/src/vocabsettings.cpp +++ b/kanagram/src/vocabsettings.cpp @@ -1,27 +1,27 @@ #include "vocabsettings.h" #include "vocabedit.h" -#include <qpushbutton.h> +#include <tqpushbutton.h> #include <kdebug.h> #include <kstandarddirs.h> -#include <qstringlist.h> -#include <qlistview.h> -#include <qvaluevector.h> -#include <qfile.h> -#include <qfileinfo.h> +#include <tqstringlist.h> +#include <tqlistview.h> +#include <tqvaluevector.h> +#include <tqfile.h> +#include <tqfileinfo.h> #include <kurl.h> #include "keduvocdocument.h" #include "kanagramsettings.h" -VocabSettings::VocabSettings(QWidget *parent) : VocabSettingsWidget(parent) +VocabSettings::VocabSettings(TQWidget *parent) : VocabSettingsWidget(parent) { - connect(btnCreateNew, SIGNAL(clicked()), this, SLOT(slotCreateNew())); - connect(btnEdit, SIGNAL(clicked()), this, SLOT(slotEdit())); - connect(btnDelete, SIGNAL(clicked()), this, SLOT(slotDelete())); - connect(lviewVocab, SIGNAL(selectionChanged(QListViewItem *)), this, SLOT(slotSelectionChanged(QListViewItem *))); + connect(btnCreateNew, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotCreateNew())); + connect(btnEdit, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotEdit())); + connect(btnDelete, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotDelete())); + connect(lviewVocab, TQT_SIGNAL(selectionChanged(TQListViewItem *)), this, TQT_SLOT(slotSelectionChanged(TQListViewItem *))); refreshView(); } @@ -39,7 +39,7 @@ void VocabSettings::refreshView() { KEduVocDocument *doc = new KEduVocDocument(this); doc->open(KURL(m_fileList[i]), false); - QListViewItem *item = new QListViewItem(lviewVocab, 0); + TQListViewItem *item = new TQListViewItem(lviewVocab, 0); item->setText( 0, doc->getTitle() ); item->setText( 1, doc->getDocRemark() ); m_itemMap[item] = i; @@ -61,7 +61,7 @@ void VocabSettings::slotDelete() if(lviewVocab->selectedItem()) { int index = m_itemMap[lviewVocab->selectedItem()]; - /*bool itWorked = */QFile::remove(m_fileList[index]); + /*bool itWorked = */TQFile::remove(m_fileList[index]); } refreshView(); @@ -73,10 +73,10 @@ void VocabSettings::slotCreateNew() vocabEdit->show(); } -void VocabSettings::slotSelectionChanged(QListViewItem *item) +void VocabSettings::slotSelectionChanged(TQListViewItem *item) { int index = m_itemMap[item]; - QFileInfo info = QFileInfo(m_fileList[index]); + TQFileInfo info = TQFileInfo(m_fileList[index]); if(!info.isWritable()) { btnDelete->setEnabled(false); |