summaryrefslogtreecommitdiffstats
path: root/parts/abbrev/abbrevconfigwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parts/abbrev/abbrevconfigwidget.cpp')
-rw-r--r--parts/abbrev/abbrevconfigwidget.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/parts/abbrev/abbrevconfigwidget.cpp b/parts/abbrev/abbrevconfigwidget.cpp
index d7729249..6e174603 100644
--- a/parts/abbrev/abbrevconfigwidget.cpp
+++ b/parts/abbrev/abbrevconfigwidget.cpp
@@ -18,25 +18,25 @@
#include <kconfig.h>
#include <kiconloader.h>
-#include <qlistview.h>
-#include <qmultilineedit.h>
-#include <qcheckbox.h>
+#include <tqlistview.h>
+#include <tqmultilineedit.h>
+#include <tqcheckbox.h>
#include "addtemplatedlg.h"
#include "abbrevpart.h"
-AbbrevConfigWidget::AbbrevConfigWidget(AbbrevPart *part, QWidget *parent, const char *name)
+AbbrevConfigWidget::AbbrevConfigWidget(AbbrevPart *part, TQWidget *parent, const char *name)
: AbbrevConfigWidgetBase(parent, name)
{
m_part = part;
qWarning("creating abbrevconfigwidget for %d abbrevs", part->templates().allTemplates().count());
- QPtrList<CodeTemplate> templates = part->templates().allTemplates();
+ TQPtrList<CodeTemplate> templates = part->templates().allTemplates();
CodeTemplate *templ;
for (templ = templates.first(); templ; templ = templates.next())
{
qWarning("creating item for code template ");
- QListViewItem *it = new QListViewItem( listTemplates,
+ TQListViewItem *it = new TQListViewItem( listTemplates,
templ->name,
templ->description,
templ->suffixes,
@@ -56,15 +56,15 @@ AbbrevConfigWidget::~AbbrevConfigWidget()
void AbbrevConfigWidget::addTemplate()
{
- QStringList suffixesList = m_part->templates().suffixes();
+ TQStringList suffixesList = m_part->templates().suffixes();
AddTemplateDialog dlg( suffixesList, this );
if( dlg.exec() ){
- QString templ = dlg.templ();
- QString description = dlg.description();
- QString suffixes = dlg.suffixes();
+ TQString templ = dlg.templ();
+ TQString description = dlg.description();
+ TQString suffixes = dlg.suffixes();
if( !(templ.isEmpty() || description.isEmpty()) || suffixes.isEmpty()) {
- QListViewItem* item = new QListViewItem( listTemplates, templ, description, suffixes );
+ TQListViewItem* item = new TQListViewItem( listTemplates, templ, description, suffixes );
listTemplates->setSelected( item, true );
editCode->setFocus();
}
@@ -82,7 +82,7 @@ void AbbrevConfigWidget::removeTemplate()
void AbbrevConfigWidget::selectionChanged()
{
- QListViewItem* item = listTemplates->selectedItem();
+ TQListViewItem* item = listTemplates->selectedItem();
if( item ){
editCode->setText( item->text(3) );
}
@@ -91,7 +91,7 @@ void AbbrevConfigWidget::selectionChanged()
void AbbrevConfigWidget::codeChanged()
{
- QListViewItem* item = listTemplates->selectedItem();
+ TQListViewItem* item = listTemplates->selectedItem();
if( item ){
item->setText( 3, editCode->text() );
if (item->text(3) == item->text(4))
@@ -106,7 +106,7 @@ void AbbrevConfigWidget::accept()
{
m_part->clearTemplates();
- QListViewItem* item = listTemplates->firstChild();
+ TQListViewItem* item = listTemplates->firstChild();
while( item ){
m_part->addTemplate( item->text(0),
item->text(1),