diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
commit | dc6b8e72fed2586239e3514819238c520636c9d9 (patch) | |
tree | 88b200df0a0b7fab9d6f147596173556f1ed9a13 /quanta/dialogs/specialchardialog.cpp | |
parent | 6927d4436e54551917f600b706a8d6109e49de1c (diff) | |
download | tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'quanta/dialogs/specialchardialog.cpp')
-rw-r--r-- | quanta/dialogs/specialchardialog.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/quanta/dialogs/specialchardialog.cpp b/quanta/dialogs/specialchardialog.cpp index e8f662ea..200b5afe 100644 --- a/quanta/dialogs/specialchardialog.cpp +++ b/quanta/dialogs/specialchardialog.cpp @@ -15,10 +15,10 @@ * * ***************************************************************************/ -#include <qfile.h> -#include <qpushbutton.h> -#include <qtextstream.h> -#include <qregexp.h> +#include <tqfile.h> +#include <tqpushbutton.h> +#include <tqtextstream.h> +#include <tqregexp.h> #include <klocale.h> #include <kstandarddirs.h> @@ -28,16 +28,16 @@ #include "specialchardialog.h" #include "resource.h" -SpecialCharDialog::SpecialCharDialog( QWidget* parent, const char* name, bool modal, WFlags fl) +SpecialCharDialog::SpecialCharDialog( TQWidget* parent, const char* name, bool modal, WFlags fl) :SpecialCharDialogS( parent, name, modal, fl ) { - connect ( FilterLineEdit, SIGNAL(textChanged(const QString&)), - SLOT(filterChars(const QString&)) ); - connect ( CharsListBox, SIGNAL(doubleClicked(QListBoxItem*)), - SLOT(insertCode()) ); - connect (buttonOk, SIGNAL(clicked()), SLOT(insertCode())); - connect (buttonChar, SIGNAL(clicked()), SLOT(insertChar())); - connect (buttonCancel, SIGNAL(clicked()), SLOT(cancel())); + connect ( FilterLineEdit, TQT_SIGNAL(textChanged(const TQString&)), + TQT_SLOT(filterChars(const TQString&)) ); + connect ( CharsListBox, TQT_SIGNAL(doubleClicked(TQListBoxItem*)), + TQT_SLOT(insertCode()) ); + connect (buttonOk, TQT_SIGNAL(clicked()), TQT_SLOT(insertCode())); + connect (buttonChar, TQT_SIGNAL(clicked()), TQT_SLOT(insertChar())); + connect (buttonCancel, TQT_SIGNAL(clicked()), TQT_SLOT(cancel())); filterChars(""); } @@ -45,13 +45,13 @@ SpecialCharDialog::~SpecialCharDialog() { } -void SpecialCharDialog::filterChars(const QString& filter) +void SpecialCharDialog::filterChars(const TQString& filter) { CharsListBox->clear(); if (filter.isEmpty()) CharsListBox->insertStringList(charList); else { - for (QStringList::ConstIterator it = charList.begin(); it != charList.end(); ++it) + for (TQStringList::ConstIterator it = charList.begin(); it != charList.end(); ++it) if ( (*it).contains(filter, false) ) CharsListBox->insertItem(*it); } @@ -59,30 +59,30 @@ void SpecialCharDialog::filterChars(const QString& filter) CharsListBox->setCurrentItem(0); } -QString SpecialCharDialog::selection() +TQString SpecialCharDialog::selection() { return m_selection; } void SpecialCharDialog::insertCode() { - QString selected = CharsListBox->text(CharsListBox->currentItem()); + TQString selected = CharsListBox->text(CharsListBox->currentItem()); int begin = selected.find("(&")+1; int length = selected.find(";)") - begin + 1; m_selection = selected.mid(begin, length); - done(QDialog::Accepted); + done(TQDialog::Accepted); } void SpecialCharDialog::insertChar() { m_selection = CharsListBox->text(CharsListBox->currentItem()).left(1); - done(QDialog::Accepted); + done(TQDialog::Accepted); } void SpecialCharDialog::cancel() { m_selection = ""; - done(QDialog::Rejected); + done(TQDialog::Rejected); } #include "specialchardialog.moc" |