diff options
Diffstat (limited to 'kivio/kiviopart/ui/objectlistpalette.cpp')
-rw-r--r-- | kivio/kiviopart/ui/objectlistpalette.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/kivio/kiviopart/ui/objectlistpalette.cpp b/kivio/kiviopart/ui/objectlistpalette.cpp index 721f84ca..28793807 100644 --- a/kivio/kiviopart/ui/objectlistpalette.cpp +++ b/kivio/kiviopart/ui/objectlistpalette.cpp @@ -18,9 +18,9 @@ */ #include "objectlistpalette.h" -#include <qlayout.h> -#include <qheader.h> -#include <qptrlist.h> +#include <tqlayout.h> +#include <tqheader.h> +#include <tqptrlist.h> #include <klistview.h> #include <kdebug.h> @@ -40,14 +40,14 @@ namespace Kivio { class ObjectListItem : public KListViewItem { public: - ObjectListItem(KListView* parent, KivioStencil* _stencil) - : KListViewItem(parent, "") + ObjectListItem(KListView* tqparent, KivioStencil* _stencil) + : KListViewItem(tqparent, "") { m_stencil = _stencil; setPixmap(0, Kivio::generatePixmapFromStencil(22, 22, m_stencil)); - QString type; - QString name; + TQString type; + TQString name; switch(m_stencil->type()) { case kstGroup: @@ -80,24 +80,24 @@ class ObjectListItem : public KListViewItem KivioStencil* m_stencil; }; -ObjectListPalette::ObjectListPalette(KivioView* parent, const char* name) - : QWidget(parent, name), m_view(parent) +ObjectListPalette::ObjectListPalette(KivioView* tqparent, const char* name) + : TQWidget(tqparent, name), m_view(tqparent) { m_blockUpdate = false; - QVBoxLayout* layout = new QVBoxLayout(this, 0, 2); + TQVBoxLayout* tqlayout = new TQVBoxLayout(this, 0, 2); m_objectList = new KListView(this); m_objectList->setFullWidth(true); m_objectList->setAllColumnsShowFocus(true); m_objectList->setSorting(-1); - m_objectList->setSelectionMode(QListView::Extended); + m_objectList->setSelectionMode(TQListView::Extended); m_objectList->addColumn(i18n("Name")); m_objectList->addColumn(i18n("Type")); - layout->addWidget(m_objectList); + tqlayout->addWidget(m_objectList); - connect(m_objectList, SIGNAL(selectionChanged()), this, SLOT(updateSelection())); + connect(m_objectList, TQT_SIGNAL(selectionChanged()), this, TQT_SLOT(updateSelection())); } ObjectListPalette::~ObjectListPalette() @@ -118,7 +118,7 @@ void ObjectListPalette::updateObjectList() m_objectList->clear(); - QPtrList<KivioLayer>* layers = page->layers(); + TQPtrList<KivioLayer>* layers = page->layers(); KivioLayer* layer = layers->first(); KivioStencil* stencil; @@ -147,8 +147,8 @@ void ObjectListPalette::updateSelection() page->unselectAllStencils(); - QPtrList<QListViewItem> selectedItems = m_objectList->selectedItems(); - QPtrListIterator<QListViewItem> it(selectedItems); + TQPtrList<TQListViewItem> selectedItems = m_objectList->selectedItems(); + TQPtrListIterator<TQListViewItem> it(selectedItems); ObjectListItem* item = 0; while((item = static_cast<ObjectListItem*>(it.current())) != 0) { |