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 /ktouch/src/ktouchcoloreditor.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 'ktouch/src/ktouchcoloreditor.cpp')
-rw-r--r-- | ktouch/src/ktouchcoloreditor.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ktouch/src/ktouchcoloreditor.cpp b/ktouch/src/ktouchcoloreditor.cpp index 1341366d..e9bdb829 100644 --- a/ktouch/src/ktouchcoloreditor.cpp +++ b/ktouch/src/ktouchcoloreditor.cpp @@ -13,8 +13,8 @@ #include "ktouchcoloreditor.h" #include "ktouchcoloreditor.moc" -#include <qlistbox.h> -#include <qgroupbox.h> +#include <tqlistbox.h> +#include <tqgroupbox.h> #include <kcolorbutton.h> #include <kdebug.h> @@ -23,7 +23,7 @@ #include <klocale.h> #include <kmessagebox.h> -KTouchColorEditor::KTouchColorEditor(QWidget* parent, const char* name, bool modal, WFlags fl) +KTouchColorEditor::KTouchColorEditor(TQWidget* parent, const char* name, bool modal, WFlags fl) : KTouchColorEditorDlg(parent,name, modal,fl) { } @@ -34,7 +34,7 @@ KTouchColorEditor::~KTouchColorEditor() } // ---------------------------------------------------------------------------- -void KTouchColorEditor::startEditor(QValueList<KTouchColorScheme>& schemes, int active, int & selected) { +void KTouchColorEditor::startEditor(TQValueList<KTouchColorScheme>& schemes, int active, int & selected) { m_schemes = schemes; m_currentItem = QMAX(0, active); updateListBox(); @@ -54,14 +54,14 @@ void KTouchColorEditor::startEditor(QValueList<KTouchColorScheme>& schemes, int } // ---------------------------------------------------------------------------- -void KTouchColorEditor::colorSchemeChanged(QListBoxItem *) { +void KTouchColorEditor::colorSchemeChanged(TQListBoxItem *) { // kdDebug() << "[KTouchColorEditor::colorSchemeChanged]" << endl; int num = schemeListBox->currentItem(); if (num < 0 || num >= static_cast<int>(m_schemes.count())) { updateControls(NULL); return; } - QValueList<KTouchColorScheme>::const_iterator it = m_schemes.begin(); + TQValueList<KTouchColorScheme>::const_iterator it = m_schemes.begin(); while (--num >= 0) ++it; updateControls(&(*it)); } @@ -75,7 +75,7 @@ void KTouchColorEditor::updateClicked() { updateListBox(); return; } - QValueList<KTouchColorScheme>::iterator it = m_schemes.begin(); + TQValueList<KTouchColorScheme>::iterator it = m_schemes.begin(); while (--num >= 0) ++it; (*it).m_name = nameEdit->text(); if ((*it).m_name.isEmpty()) @@ -116,7 +116,7 @@ void KTouchColorEditor::removeBtnClicked() { int num = schemeListBox->currentItem(); int old_num = num; if (num >=0 && num < static_cast<int>(m_schemes.count())) { - QValueList<KTouchColorScheme>::iterator it = m_schemes.begin(); + TQValueList<KTouchColorScheme>::iterator it = m_schemes.begin(); while (--num >= 0) ++it; m_schemes.erase(it); } @@ -136,7 +136,7 @@ void KTouchColorEditor::addBtnClicked() { } // ---------------------------------------------------------------------------- -void KTouchColorEditor::closeEvent( QCloseEvent* ce ) { +void KTouchColorEditor::closeEvent( TQCloseEvent* ce ) { int result = KMessageBox::questionYesNoCancel(this, i18n("Save modified color schemes?")); switch (result) { @@ -154,7 +154,7 @@ void KTouchColorEditor::closeEvent( QCloseEvent* ce ) { void KTouchColorEditor::updateListBox() { // kdDebug() << "[KTouchColorEditor::updateListBox]" << endl; schemeListBox->clear(); - for (QValueList<KTouchColorScheme>::const_iterator it = m_schemes.constBegin(); + for (TQValueList<KTouchColorScheme>::const_iterator it = m_schemes.constBegin(); it != m_schemes.constEnd(); ++it) { schemeListBox->insertItem( (*it).m_name ); |