summaryrefslogtreecommitdiffstats
path: root/quanta/dialogs/specialchardialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/dialogs/specialchardialog.cpp')
-rw-r--r--quanta/dialogs/specialchardialog.cpp38
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"