diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:22:56 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:22:56 +0000 |
commit | 7346aee26bf190a7e70333c40fab4caca847cd27 (patch) | |
tree | 4b019b434f88dcc3eeaafe1d3f26240b4c4718e8 /kate/cppsymbolviewer | |
parent | 23a3d3aa5b44cbdf305495919866d9dbf4f6da54 (diff) | |
download | tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.tar.gz tdeaddons-7346aee26bf190a7e70333c40fab4caca847cd27.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1157634 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kate/cppsymbolviewer')
-rw-r--r-- | kate/cppsymbolviewer/cpp_parser.cpp | 66 | ||||
-rw-r--r-- | kate/cppsymbolviewer/plugin_katesymbolviewer.cpp | 70 | ||||
-rw-r--r-- | kate/cppsymbolviewer/plugin_katesymbolviewer.h | 42 | ||||
-rw-r--r-- | kate/cppsymbolviewer/tcl_parser.cpp | 38 |
4 files changed, 108 insertions, 108 deletions
diff --git a/kate/cppsymbolviewer/cpp_parser.cpp b/kate/cppsymbolviewer/cpp_parser.cpp index 01ee919..b666983 100644 --- a/kate/cppsymbolviewer/cpp_parser.cpp +++ b/kate/cppsymbolviewer/cpp_parser.cpp @@ -20,32 +20,32 @@ void KatePluginSymbolViewerView::parseCppSymbols(void) if (!win->viewManager()->activeView()) return; - QString cl; // Current Line - QString stripped; + TQString cl; // Current Line + TQString stripped; uint i, j, tmpPos = 0; int par = 0, graph = 0, retry = 0; char mclass = 0, block = 0, comment = 0; // comment: 0-no comment 1-inline comment 2-multiline comment 3-string char macro = 0, macro_pos = 0, func_close = 0; bool structure = false; - QPixmap cls( ( const char** ) class_xpm ); - QPixmap sct( ( const char** ) struct_xpm ); - QPixmap mcr( ( const char** ) macro_xpm ); - QPixmap mtd( ( const char** ) method_xpm ); - QListViewItem *node = NULL; - QListViewItem *mcrNode = NULL, *sctNode = NULL, *clsNode = NULL, *mtdNode = NULL; - QListViewItem *lastMcrNode = NULL, *lastSctNode = NULL, *lastClsNode = NULL, *lastMtdNode = NULL; + TQPixmap cls( ( const char** ) class_xpm ); + TQPixmap sct( ( const char** ) struct_xpm ); + TQPixmap mcr( ( const char** ) macro_xpm ); + TQPixmap mtd( ( const char** ) method_xpm ); + TQListViewItem *node = NULL; + TQListViewItem *mcrNode = NULL, *sctNode = NULL, *clsNode = NULL, *mtdNode = NULL; + TQListViewItem *lastMcrNode = NULL, *lastSctNode = NULL, *lastClsNode = NULL, *lastMtdNode = NULL; Kate::Document *kv = win->viewManager()->activeView()->getDoc(); //kdDebug(13000)<<"Lines counted :"<<kv->numLines()<<endl; if(treeMode) { - mcrNode = new QListViewItem(symbols, symbols->lastItem(), i18n("Macros")); - sctNode = new QListViewItem(symbols, symbols->lastItem(), i18n("Structures")); - clsNode = new QListViewItem(symbols, symbols->lastItem(), i18n("Functions")); - mcrNode->setPixmap(0, (const QPixmap &)mcr); - sctNode->setPixmap(0, (const QPixmap &)sct); - clsNode->setPixmap(0, (const QPixmap &)cls); + mcrNode = new TQListViewItem(symbols, symbols->lastItem(), i18n("Macros")); + sctNode = new TQListViewItem(symbols, symbols->lastItem(), i18n("Structures")); + clsNode = new TQListViewItem(symbols, symbols->lastItem(), i18n("Functions")); + mcrNode->setPixmap(0, (const TQPixmap &)mcr); + sctNode->setPixmap(0, (const TQPixmap &)sct); + clsNode->setPixmap(0, (const TQPixmap &)cls); if (expanded_on) { mcrNode->setOpen(TRUE); @@ -105,12 +105,12 @@ void KatePluginSymbolViewerView::parseCppSymbols(void) { if (treeMode) { - node = new QListViewItem(mcrNode, lastMcrNode, stripped); + node = new TQListViewItem(mcrNode, lastMcrNode, stripped); lastMcrNode = node; } - else node = new QListViewItem(symbols, symbols->lastItem(), stripped); - node->setPixmap(0, (const QPixmap &)mcr); - node->setText(1, QString::number( i, 10)); + else node = new TQListViewItem(symbols, symbols->lastItem(), stripped); + node->setPixmap(0, (const TQPixmap &)mcr); + node->setText(1, TQString::number( i, 10)); } macro = 0; macro_pos = 0; @@ -142,15 +142,15 @@ void KatePluginSymbolViewerView::parseCppSymbols(void) { if (treeMode) { - node = new QListViewItem(clsNode, lastClsNode, stripped); + node = new TQListViewItem(clsNode, lastClsNode, stripped); if (expanded_on) node->setOpen(TRUE); lastClsNode = node; mtdNode = lastClsNode; lastMtdNode = lastClsNode; } - else node = new QListViewItem(symbols, symbols->lastItem(), stripped); - node->setPixmap(0, (const QPixmap &)cls); - node->setText(1, QString::number( i, 10)); + else node = new TQListViewItem(symbols, symbols->lastItem(), stripped); + node->setPixmap(0, (const TQPixmap &)cls); + node->setText(1, TQString::number( i, 10)); stripped = ""; if (mclass == 1) mclass = 3; } @@ -237,20 +237,20 @@ void KatePluginSymbolViewerView::parseCppSymbols(void) { if (mclass == 4) { - node = new QListViewItem(mtdNode, lastMtdNode, stripped); + node = new TQListViewItem(mtdNode, lastMtdNode, stripped); lastMtdNode = node; } else { - node = new QListViewItem(clsNode, lastClsNode, stripped); + node = new TQListViewItem(clsNode, lastClsNode, stripped); lastClsNode = node; } } else - node = new QListViewItem(symbols, symbols->lastItem(), stripped); - if (mclass == 4) node->setPixmap(0, (const QPixmap &)mtd); - else node->setPixmap(0, (const QPixmap &)cls); - node->setText(1, QString::number( tmpPos, 10)); + node = new TQListViewItem(symbols, symbols->lastItem(), stripped); + if (mclass == 4) node->setPixmap(0, (const TQPixmap &)mtd); + else node->setPixmap(0, (const TQPixmap &)cls); + node->setText(1, TQString::number( tmpPos, 10)); } stripped = ""; retry = 0; @@ -297,12 +297,12 @@ void KatePluginSymbolViewerView::parseCppSymbols(void) { if (treeMode) { - node = new QListViewItem(sctNode, lastSctNode, stripped); + node = new TQListViewItem(sctNode, lastSctNode, stripped); lastSctNode = node; } - else node = new QListViewItem(symbols, symbols->lastItem(), stripped); - node->setPixmap(0, (const QPixmap &)sct); - node->setText(1, QString::number( tmpPos, 10)); + else node = new TQListViewItem(symbols, symbols->lastItem(), stripped); + node->setPixmap(0, (const TQPixmap &)sct); + node->setText(1, TQString::number( tmpPos, 10)); } //kdDebug(13000)<<"Structure -- Inserted : "<<stripped<<" at row : "<<i<<endl; stripped = ""; diff --git a/kate/cppsymbolviewer/plugin_katesymbolviewer.cpp b/kate/cppsymbolviewer/plugin_katesymbolviewer.cpp index 3e18097..9165878 100644 --- a/kate/cppsymbolviewer/plugin_katesymbolviewer.cpp +++ b/kate/cppsymbolviewer/plugin_katesymbolviewer.cpp @@ -11,11 +11,11 @@ * Nov 28 2003 v.1.1 - Structured for multilanguage support * Added preliminary Tcl/Tk parser (thanks Rohit). To be improved. * Various bugfixing. - * Jun 19 2003 v.1.0 - Removed QTimer (polling is Evil(tm)... ) + * Jun 19 2003 v.1.0 - Removed TQTimer (polling is Evil(tm)... ) * - Captured documentChanged() event to refresh symbol list * - Tooltips vanished into nowhere...sigh :( * May 04 2003 v 0.6 - Symbol List becomes a KListView object. Removed Tooltip class. - * Added a QTimer that every 200ms checks: + * Added a TQTimer that every 200ms checks: * * if the list width has changed * * if the document has changed * Added an entry in the popup menu to switch between List and Tree mode @@ -47,15 +47,15 @@ #include <kgenericfactory.h> #include <kfiledialog.h> -#include <qlayout.h> -#include <qgroupbox.h> +#include <tqlayout.h> +#include <tqgroupbox.h> K_EXPORT_COMPONENT_FACTORY( katecppsymbolviewerplugin, KGenericFactory<KatePluginSymbolViewer>( "katesymbolviewer" ) ) KatePluginSymbolViewerView::KatePluginSymbolViewerView(Kate::MainWindow *w) { KGlobal::locale()->insertCatalogue("katecppsymbolviewer"); - KToggleAction* act = new KToggleAction ( i18n("Hide Symbols"), 0, this, SLOT( slotInsertSymbol() ), actionCollection(), "view_insert_symbolviewer" ); + KToggleAction* act = new KToggleAction ( i18n("Hide Symbols"), 0, this, TQT_SLOT( slotInsertSymbol() ), actionCollection(), "view_insert_symbolviewer" ); act->setCheckedState(i18n("Show Symbols")); setInstance (new KInstance("kate")); @@ -65,15 +65,15 @@ KatePluginSymbolViewerView::KatePluginSymbolViewerView(Kate::MainWindow *w) symbols = 0; m_Active = false; - popup = new QPopupMenu(); - popup->insertItem(i18n("Refresh List"), this, SLOT(slotRefreshSymbol())); + popup = new TQPopupMenu(); + popup->insertItem(i18n("Refresh List"), this, TQT_SLOT(slotRefreshSymbol())); popup->insertSeparator(); - m_macro = popup->insertItem(i18n("Show Macros"), this, SLOT(toggleShowMacros())); - m_struct = popup->insertItem(i18n("Show Structures"), this, SLOT(toggleShowStructures())); - m_func = popup->insertItem(i18n("Show Functions"), this, SLOT(toggleShowFunctions())); + m_macro = popup->insertItem(i18n("Show Macros"), this, TQT_SLOT(toggleShowMacros())); + m_struct = popup->insertItem(i18n("Show Structures"), this, TQT_SLOT(toggleShowStructures())); + m_func = popup->insertItem(i18n("Show Functions"), this, TQT_SLOT(toggleShowFunctions())); popup->insertSeparator(); - popup->insertItem(i18n("List/Tree Mode"), this, SLOT(slotChangeMode())); - m_sort = popup->insertItem(i18n("Enable sorting"), this, SLOT(slotEnableSorting())); + popup->insertItem(i18n("List/Tree Mode"), this, TQT_SLOT(slotChangeMode())); + m_sort = popup->insertItem(i18n("Enable sorting"), this, TQT_SLOT(slotEnableSorting())); popup->setItemChecked(m_macro, true); popup->setItemChecked(m_struct, true); @@ -117,7 +117,7 @@ void KatePluginSymbolViewerView::toggleShowFunctions(void) void KatePluginSymbolViewerView::slotInsertSymbol() { - QPixmap cls( ( const char** ) class_xpm ); + TQPixmap cls( ( const char** ) class_xpm ); if (m_Active == false) { @@ -126,17 +126,17 @@ void KatePluginSymbolViewerView::slotInsertSymbol() symbols = new KListView(dock); treeMode = 0; - connect(symbols, SIGNAL(executed(QListViewItem *)), this, SLOT(goToSymbol(QListViewItem *))); - connect(symbols, SIGNAL(rightButtonClicked(QListViewItem *, const QPoint&, int)), - SLOT(slotShowContextMenu(QListViewItem *, const QPoint&, int))); - connect(win->viewManager(), SIGNAL(viewChanged()), this, SLOT(slotDocChanged())); - //connect(symbols, SIGNAL(resizeEvent(QResizeEvent *)), this, SLOT(slotViewChanged(QResizeEvent *))); + connect(symbols, TQT_SIGNAL(executed(TQListViewItem *)), this, TQT_SLOT(goToSymbol(TQListViewItem *))); + connect(symbols, TQT_SIGNAL(rightButtonClicked(TQListViewItem *, const TQPoint&, int)), + TQT_SLOT(slotShowContextMenu(TQListViewItem *, const TQPoint&, int))); + connect(win->viewManager(), TQT_SIGNAL(viewChanged()), this, TQT_SLOT(slotDocChanged())); + //connect(symbols, TQT_SIGNAL(resizeEvent(TQResizeEvent *)), this, TQT_SLOT(slotViewChanged(TQResizeEvent *))); m_Active = true; //symbols->addColumn(i18n("Symbols"), symbols->parentWidget()->width()); symbols->addColumn(i18n("Symbols")); symbols->addColumn(i18n("Position")); - symbols->setColumnWidthMode(1, QListView::Manual); + symbols->setColumnWidthMode(1, TQListView::Manual); symbols->setColumnWidth ( 1, 0 ); symbols->setSorting(-1, FALSE); symbols->setRootIsDecorated(0); @@ -189,13 +189,13 @@ void KatePluginSymbolViewerView::slotDocChanged() slotRefreshSymbol(); } -void KatePluginSymbolViewerView::slotViewChanged(QResizeEvent *) +void KatePluginSymbolViewerView::slotViewChanged(TQResizeEvent *) { kdDebug(13000)<<"View changed !!!!"<<endl; symbols->setColumnWidth(0, symbols->parentWidget()->width()); } -void KatePluginSymbolViewerView::slotShowContextMenu(QListViewItem *, const QPoint &p, int) +void KatePluginSymbolViewerView::slotShowContextMenu(TQListViewItem *, const TQPoint &p, int) { popup->popup(p); } @@ -215,9 +215,9 @@ void KatePluginSymbolViewerView::parseSymbols(void) /** Get the current highlighting mode */ hlMode = kv->hlMode(); - QString hlModeName = kv->hlModeName(hlMode); + TQString hlModeName = kv->hlModeName(hlMode); - //QListViewItem mcrNode = new QListViewItem(symbols, symbols->lastItem(), hlModeName); + //TQListViewItem mcrNode = new TQListViewItem(symbols, symbols->lastItem(), hlModeName); if (hlModeName == "C++" || hlModeName == "C") parseCppSymbols(); @@ -227,7 +227,7 @@ void KatePluginSymbolViewerView::parseSymbols(void) parseCppSymbols(); } -void KatePluginSymbolViewerView::goToSymbol(QListViewItem *it) +void KatePluginSymbolViewerView::goToSymbol(TQListViewItem *it) { Kate::View *kv = win->viewManager()->activeView(); @@ -241,7 +241,7 @@ void KatePluginSymbolViewerView::goToSymbol(QListViewItem *it) kv->gotoLineNumber(it->text(1).toInt(NULL, 10)); } -KatePluginSymbolViewer::KatePluginSymbolViewer( QObject* parent, const char* name, const QStringList& ) +KatePluginSymbolViewer::KatePluginSymbolViewer( TQObject* parent, const char* name, const TQStringList& ) : Kate::Plugin ( (Kate::Application*)parent, name ), pConfig("katecppsymbolviewerpluginrc") { @@ -276,12 +276,12 @@ void KatePluginSymbolViewer::removeView(Kate::MainWindow *win) } Kate::PluginConfigPage* KatePluginSymbolViewer::configPage( - uint, QWidget *w, const char* /*name*/) + uint, TQWidget *w, const char* /*name*/) { KatePluginSymbolViewerConfigPage* p = new KatePluginSymbolViewerConfigPage(this, w); initConfigPage( p ); - connect( p, SIGNAL(configPageApplyRequest(KatePluginSymbolViewerConfigPage*)), - SLOT(applyConfig(KatePluginSymbolViewerConfigPage *)) ); + connect( p, TQT_SIGNAL(configPageApplyRequest(KatePluginSymbolViewerConfigPage*)), + TQT_SLOT(applyConfig(KatePluginSymbolViewerConfigPage *)) ); return (Kate::PluginConfigPage*)p; } @@ -307,24 +307,24 @@ void KatePluginSymbolViewer::applyConfig( KatePluginSymbolViewerConfigPage* p ) // BEGIN KatePluginSymbolViewerConfigPage KatePluginSymbolViewerConfigPage::KatePluginSymbolViewerConfigPage( - QObject* /*parent*/ /*= 0L*/, QWidget *parentWidget /*= 0L*/) + TQObject* /*parent*/ /*= 0L*/, TQWidget *parentWidget /*= 0L*/) : Kate::PluginConfigPage( parentWidget ) { - QVBoxLayout* top = new QVBoxLayout(this, 0, + TQVBoxLayout* top = new TQVBoxLayout(this, 0, KDialogBase::spacingHint()); - QGroupBox* gb = new QGroupBox( i18n("Parser Options"), + TQGroupBox* gb = new TQGroupBox( i18n("Parser Options"), this, "cppsymbolviewer_config_page_layout" ); gb->setColumnLayout(1, Qt::Horizontal); gb->setInsideSpacing(KDialogBase::spacingHint()); - viewReturns = new QCheckBox(i18n("Display functions parameters"), gb); - expandTree = new QCheckBox(i18n("Automatically expand nodes in tree mode"), gb); + viewReturns = new TQCheckBox(i18n("Display functions parameters"), gb); + expandTree = new TQCheckBox(i18n("Automatically expand nodes in tree mode"), gb); top->add(gb); top->addStretch(1); // throw signal changed - connect(viewReturns, SIGNAL(toggled(bool)), this, SIGNAL(changed())); - connect(expandTree, SIGNAL(toggled(bool)), this, SIGNAL(changed())); + connect(viewReturns, TQT_SIGNAL(toggled(bool)), this, TQT_SIGNAL(changed())); + connect(expandTree, TQT_SIGNAL(toggled(bool)), this, TQT_SIGNAL(changed())); } KatePluginSymbolViewerConfigPage::~KatePluginSymbolViewerConfigPage() {} diff --git a/kate/cppsymbolviewer/plugin_katesymbolviewer.h b/kate/cppsymbolviewer/plugin_katesymbolviewer.h index f20f097..e8ac0e0 100644 --- a/kate/cppsymbolviewer/plugin_katesymbolviewer.h +++ b/kate/cppsymbolviewer/plugin_katesymbolviewer.h @@ -30,12 +30,12 @@ #include <kate/pluginconfiginterfaceextension.h> #include <kdebug.h> -#include <qmemarray.h> -#include <qpopupmenu.h> -#include <qevent.h> -#include <qcheckbox.h> -//#include <qprocess.h> -#include <qregexp.h> +#include <tqmemarray.h> +#include <tqpopupmenu.h> +#include <tqevent.h> +#include <tqcheckbox.h> +//#include <tqprocess.h> +#include <tqregexp.h> #include <klibloader.h> #include <klocale.h> #include <klistview.h> @@ -43,7 +43,7 @@ #include <kconfig.h> -class KatePluginSymbolViewerView : public QObject, public KXMLGUIClient +class KatePluginSymbolViewerView : public TQObject, public KXMLGUIClient { Q_OBJECT @@ -59,17 +59,17 @@ class KatePluginSymbolViewerView : public QObject, public KXMLGUIClient void slotChangeMode(); void slotEnableSorting(); void slotDocChanged(); - void goToSymbol(QListViewItem *); - void slotShowContextMenu(QListViewItem *, const QPoint&, int); + void goToSymbol(TQListViewItem *); + void slotShowContextMenu(TQListViewItem *, const TQPoint&, int); void toggleShowMacros(void); void toggleShowStructures(void); void toggleShowFunctions(void); protected: - void slotViewChanged(QResizeEvent *e); + void slotViewChanged(TQResizeEvent *e); private: - QPopupMenu *popup; + TQPopupMenu *popup; KListView *symbols; - QWidget *dock; + TQWidget *dock; bool m_Active; int m_macro, m_struct, m_func, m_sort; bool macro_on, struct_on, func_on; @@ -92,7 +92,7 @@ class KatePluginSymbolViewerConfigPage : public Kate::PluginConfigPage friend class KatePluginSymbolViewer; public: - KatePluginSymbolViewerConfigPage (QObject* parent = 0L, QWidget *parentWidget = 0L); + KatePluginSymbolViewerConfigPage (TQObject* parent = 0L, TQWidget *parentWidget = 0L); ~KatePluginSymbolViewerConfigPage (); /** @@ -116,8 +116,8 @@ class KatePluginSymbolViewerConfigPage : public Kate::PluginConfigPage void configPageInitRequest( KatePluginSymbolViewerConfigPage* ); private: - QCheckBox* viewReturns; - QCheckBox* expandTree; + TQCheckBox* viewReturns; + TQCheckBox* expandTree; }; class KatePluginSymbolViewer : public Kate::Plugin, Kate::PluginViewInterface, Kate::PluginConfigInterfaceExtension @@ -125,17 +125,17 @@ class KatePluginSymbolViewer : public Kate::Plugin, Kate::PluginViewInterface, K Q_OBJECT public: - KatePluginSymbolViewer( QObject* parent = 0, const char* name = 0, const QStringList& = QStringList() ); + KatePluginSymbolViewer( TQObject* parent = 0, const char* name = 0, const TQStringList& = TQStringList() ); virtual ~KatePluginSymbolViewer(); void addView (Kate::MainWindow *win); void removeView (Kate::MainWindow *win); uint configPages () const { return 1; } - Kate::PluginConfigPage *configPage (uint , QWidget *w, const char *name=0); - QString configPageName(uint) const { return i18n("Symbol Viewer"); } - QString configPageFullName(uint) const { return i18n("Symbol Viewer Configuration Page"); } - QPixmap configPagePixmap (uint , int ) const { return 0L; } + Kate::PluginConfigPage *configPage (uint , TQWidget *w, const char *name=0); + TQString configPageName(uint) const { return i18n("Symbol Viewer"); } + TQString configPageFullName(uint) const { return i18n("Symbol Viewer Configuration Page"); } + TQPixmap configPagePixmap (uint , int ) const { return 0L; } public slots: void applyConfig( KatePluginSymbolViewerConfigPage* ); @@ -144,7 +144,7 @@ class KatePluginSymbolViewer : public Kate::Plugin, Kate::PluginViewInterface, K void initConfigPage( KatePluginSymbolViewerConfigPage* ); private: - QPtrList<KatePluginSymbolViewerView> m_views; + TQPtrList<KatePluginSymbolViewerView> m_views; KConfig pConfig; }; diff --git a/kate/cppsymbolviewer/tcl_parser.cpp b/kate/cppsymbolviewer/tcl_parser.cpp index ff51e60..c2eae61 100644 --- a/kate/cppsymbolviewer/tcl_parser.cpp +++ b/kate/cppsymbolviewer/tcl_parser.cpp @@ -21,25 +21,25 @@ void KatePluginSymbolViewerView::parseTclSymbols(void) if (!win->viewManager()->activeView()) return; - QString currline, prevline; + TQString currline, prevline; bool prevComment = false; - QString varStr("set "); - QString procStr("proc"); - QString stripped; + TQString varStr("set "); + TQString procStr("proc"); + TQString stripped; uint i, j, args_par = 0, graph = 0; char block = 0, parse_func = 0; - QListViewItem *node = NULL; - QListViewItem *mcrNode = NULL, *clsNode = NULL; - QListViewItem *lastMcrNode = NULL, *lastClsNode = NULL; + TQListViewItem *node = NULL; + TQListViewItem *mcrNode = NULL, *clsNode = NULL; + TQListViewItem *lastMcrNode = NULL, *lastClsNode = NULL; - QPixmap mcr( ( const char** ) macro_xpm ); - QPixmap cls( ( const char** ) class_xpm ); + TQPixmap mcr( ( const char** ) macro_xpm ); + TQPixmap cls( ( const char** ) class_xpm ); if(treeMode) { - clsNode = new QListViewItem(symbols, symbols->lastItem(), i18n("Functions")); - mcrNode = new QListViewItem(symbols, symbols->lastItem(), i18n("Globals")); + clsNode = new TQListViewItem(symbols, symbols->lastItem(), i18n("Functions")); + mcrNode = new TQListViewItem(symbols, symbols->lastItem(), i18n("Globals")); lastMcrNode = mcrNode; lastClsNode = clsNode; if (expanded_on) @@ -86,14 +86,14 @@ void KatePluginSymbolViewerView::parseTclSymbols(void) if (treeMode) { - node = new QListViewItem(mcrNode, lastMcrNode, stripped); + node = new TQListViewItem(mcrNode, lastMcrNode, stripped); lastMcrNode = node; } else - node = new QListViewItem(symbols, symbols->lastItem(), stripped); + node = new TQListViewItem(symbols, symbols->lastItem(), stripped); - node->setPixmap(0, (const QPixmap &)mcr); - node->setText(1, QString::number( i, 10)); + node->setPixmap(0, (const TQPixmap &)mcr); + node->setText(1, TQString::number( i, 10)); stripped = ""; }//macro } // starts with "set" @@ -127,13 +127,13 @@ void KatePluginSymbolViewerView::parseTclSymbols(void) { if (treeMode) { - node = new QListViewItem(clsNode, lastClsNode, stripped); + node = new TQListViewItem(clsNode, lastClsNode, stripped); lastClsNode = node; } else - node = new QListViewItem(symbols, symbols->lastItem(), stripped); - node->setPixmap(0, (const QPixmap &)cls); - node->setText(1, QString::number( i, 10)); + node = new TQListViewItem(symbols, symbols->lastItem(), stripped); + node->setPixmap(0, (const TQPixmap &)cls); + node->setText(1, TQString::number( i, 10)); } stripped = ""; block = 1; |