summaryrefslogtreecommitdiffstats
path: root/parts/abbrev/abbrevconfigwidget.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /parts/abbrev/abbrevconfigwidget.cpp
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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),