summaryrefslogtreecommitdiffstats
path: root/parts/classview/classviewwidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'parts/classview/classviewwidget.h')
-rw-r--r--parts/classview/classviewwidget.h59
1 files changed, 30 insertions, 29 deletions
diff --git a/parts/classview/classviewwidget.h b/parts/classview/classviewwidget.h
index 0ace5692..29276a31 100644
--- a/parts/classview/classviewwidget.h
+++ b/parts/classview/classviewwidget.h
@@ -43,9 +43,10 @@ class VariableDomBrowserItem;
class KSelectAction;
class KToggleAction;
-class ClassViewWidget : public KListView, public QToolTip
+class ClassViewWidget : public KListView, public TQToolTip
{
Q_OBJECT
+ TQ_OBJECT
public:
enum ViewMode
{
@@ -120,10 +121,10 @@ class ClassViewItem: public FancyListViewItem
{
private:
public:
- ClassViewItem( TQListView* parent, const TQString& text=TQString::null )
- : FancyListViewItem( static_cast<ClassViewWidget*>( parent )->m_paintStyles, parent, text ) {}
- ClassViewItem( TQListViewItem* parent, const TQString& text=TQString::null )
- : FancyListViewItem( static_cast<ClassViewWidget*>( parent->listView() )->m_paintStyles, parent, text ) {}
+ ClassViewItem( TQListView* tqparent, const TQString& text=TQString() )
+ : FancyListViewItem( static_cast<ClassViewWidget*>( tqparent )->m_paintStyles, tqparent, text ) {}
+ ClassViewItem( TQListViewItem* tqparent, const TQString& text=TQString() )
+ : FancyListViewItem( static_cast<ClassViewWidget*>( tqparent->listView() )->m_paintStyles, tqparent, text ) {}
virtual const CodeModelItem* model() const { return 0; }
@@ -152,10 +153,10 @@ public:
class FolderBrowserItem: public ClassViewItem
{
public:
- FolderBrowserItem( ClassViewWidget* widget, TQListView* parent, const TQString& name=TQString::null )
- : ClassViewItem( parent, name ), m_widget(widget) {}
- FolderBrowserItem( ClassViewWidget* widget, TQListViewItem* parent, const TQString& name=TQString::null )
- : ClassViewItem( parent, name ), m_widget(widget) {}
+ FolderBrowserItem( ClassViewWidget* widget, TQListView* tqparent, const TQString& name=TQString() )
+ : ClassViewItem( tqparent, name ), m_widget(widget) {}
+ FolderBrowserItem( ClassViewWidget* widget, TQListViewItem* tqparent, const TQString& name=TQString() )
+ : ClassViewItem( tqparent, name ), m_widget(widget) {}
virtual bool isFolder() const { return true; }
@@ -184,10 +185,10 @@ private:
class NamespaceDomBrowserItem: public ClassViewItem
{
public:
- NamespaceDomBrowserItem( TQListView* parent, NamespaceDom dom )
- : ClassViewItem( parent, dom->name() ), m_dom( dom ) {}
- NamespaceDomBrowserItem( TQListViewItem* parent, NamespaceDom dom )
- : ClassViewItem( parent, dom->name() ), m_dom( dom ) {}
+ NamespaceDomBrowserItem( TQListView* tqparent, NamespaceDom dom )
+ : ClassViewItem( tqparent, dom->name() ), m_dom( dom ) {}
+ NamespaceDomBrowserItem( TQListViewItem* tqparent, NamespaceDom dom )
+ : ClassViewItem( tqparent, dom->name() ), m_dom( dom ) {}
const CodeModelItem* model() const { return m_dom; }
@@ -218,10 +219,10 @@ private:
class ClassDomBrowserItem: public ClassViewItem
{
public:
- ClassDomBrowserItem( TQListView* parent, ClassDom dom )
- : ClassViewItem( parent, dom->name() ), m_dom( dom ) {}
- ClassDomBrowserItem( TQListViewItem* parent, ClassDom dom )
- : ClassViewItem( parent, dom->name() ), m_dom( dom ) {}
+ ClassDomBrowserItem( TQListView* tqparent, ClassDom dom )
+ : ClassViewItem( tqparent, dom->name() ), m_dom( dom ) {}
+ ClassDomBrowserItem( TQListViewItem* tqparent, ClassDom dom )
+ : ClassViewItem( tqparent, dom->name() ), m_dom( dom ) {}
const CodeModelItem* model() const { return m_dom; }
virtual bool isClass() const { return true; }
@@ -256,10 +257,10 @@ private:
class TypeAliasDomBrowserItem: public ClassViewItem
{
public:
- TypeAliasDomBrowserItem( TQListView* parent, TypeAliasDom dom )
- : ClassViewItem( parent, dom->name() ), m_dom( dom ) {}
- TypeAliasDomBrowserItem( TQListViewItem* parent, TypeAliasDom dom )
- : ClassViewItem( parent, dom->name() ), m_dom( dom ) {}
+ TypeAliasDomBrowserItem( TQListView* tqparent, TypeAliasDom dom )
+ : ClassViewItem( tqparent, dom->name() ), m_dom( dom ) {}
+ TypeAliasDomBrowserItem( TQListViewItem* tqparent, TypeAliasDom dom )
+ : ClassViewItem( tqparent, dom->name() ), m_dom( dom ) {}
const CodeModelItem* model() const { return m_dom; }
virtual bool isTypeAlias() const { return true; }
@@ -284,10 +285,10 @@ private:
class FunctionDomBrowserItem: public ClassViewItem
{
public:
- FunctionDomBrowserItem( TQListView* parent, FunctionDom dom )
- : ClassViewItem( parent, dom->name() ), m_dom( dom ) {}
- FunctionDomBrowserItem( TQListViewItem* parent, FunctionDom dom )
- : ClassViewItem( parent, dom->name() ), m_dom( dom ) {}
+ FunctionDomBrowserItem( TQListView* tqparent, FunctionDom dom )
+ : ClassViewItem( tqparent, dom->name() ), m_dom( dom ) {}
+ FunctionDomBrowserItem( TQListViewItem* tqparent, FunctionDom dom )
+ : ClassViewItem( tqparent, dom->name() ), m_dom( dom ) {}
const CodeModelItem* model() const { return m_dom; }
virtual bool isFunction() const { return true; }
@@ -315,10 +316,10 @@ private:
class VariableDomBrowserItem: public ClassViewItem
{
public:
- VariableDomBrowserItem( TQListView* parent, VariableDom dom )
- : ClassViewItem( parent, dom->name() ), m_dom( dom ) {}
- VariableDomBrowserItem( TQListViewItem* parent, VariableDom dom )
- : ClassViewItem( parent, dom->name() ), m_dom( dom ) {}
+ VariableDomBrowserItem( TQListView* tqparent, VariableDom dom )
+ : ClassViewItem( tqparent, dom->name() ), m_dom( dom ) {}
+ VariableDomBrowserItem( TQListViewItem* tqparent, VariableDom dom )
+ : ClassViewItem( tqparent, dom->name() ), m_dom( dom ) {}
const CodeModelItem* model() const { return m_dom; }
virtual bool isVariable() const { return true; }