summaryrefslogtreecommitdiffstats
path: root/parts/classview/classviewwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'parts/classview/classviewwidget.cpp')
-rw-r--r--parts/classview/classviewwidget.cpp182
1 files changed, 91 insertions, 91 deletions
diff --git a/parts/classview/classviewwidget.cpp b/parts/classview/classviewwidget.cpp
index 0ab90856..64079546 100644
--- a/parts/classview/classviewwidget.cpp
+++ b/parts/classview/classviewwidget.cpp
@@ -41,15 +41,15 @@
#include <klocale.h>
#include <kdebug.h>
-#include <qheader.h>
-#include <qdir.h>
-#include <qstylesheet.h>
-#include <qstringlist.h>
+#include <tqheader.h>
+#include <tqdir.h>
+#include <tqstylesheet.h>
+#include <tqstringlist.h>
// namespace ?!?
ClassViewWidget::ClassViewWidget( ClassViewPart * part )
- : KListView( 0, "ClassViewWidget" ), QToolTip( viewport() ), m_part( part ), m_projectDirectoryLength( 0 )
+ : KListView( 0, "ClassViewWidget" ), TQToolTip( viewport() ), m_part( part ), m_projectDirectoryLength( 0 )
{
addColumn( "" );
header()->hide();
@@ -59,40 +59,40 @@ ClassViewWidget::ClassViewWidget( ClassViewPart * part )
m_projectItem = 0;
- connect( this, SIGNAL(returnPressed(QListViewItem*)), this, SLOT(slotExecuted(QListViewItem*)) );
- connect( this, SIGNAL(executed(QListViewItem*)), this, SLOT(slotExecuted(QListViewItem*)) );
- connect( m_part->core(), SIGNAL(projectOpened()), this, SLOT(slotProjectOpened()) );
- connect( m_part->core(), SIGNAL(projectClosed()), this, SLOT(slotProjectClosed()) );
- connect( m_part->core(), SIGNAL(languageChanged()), this, SLOT(slotProjectOpened()) );
+ connect( this, TQT_SIGNAL(returnPressed(TQListViewItem*)), this, TQT_SLOT(slotExecuted(TQListViewItem*)) );
+ connect( this, TQT_SIGNAL(executed(TQListViewItem*)), this, TQT_SLOT(slotExecuted(TQListViewItem*)) );
+ connect( m_part->core(), TQT_SIGNAL(projectOpened()), this, TQT_SLOT(slotProjectOpened()) );
+ connect( m_part->core(), TQT_SIGNAL(projectClosed()), this, TQT_SLOT(slotProjectClosed()) );
+ connect( m_part->core(), TQT_SIGNAL(languageChanged()), this, TQT_SLOT(slotProjectOpened()) );
- QStringList lst;
+ TQStringList lst;
lst << i18n( "Group by Directories" ) << i18n( "Plain List" ) << i18n( "Java Like Mode" );
m_actionViewMode = new KSelectAction( i18n("View Mode"), KShortcut(), m_part->actionCollection(), "classview_mode" );
m_actionViewMode->setItems( lst );
m_actionViewMode->setWhatsThis(i18n("<b>View mode</b><p>Class browser items can be grouped by directories, listed in a plain or java like view."));
- m_actionNewClass = new KAction( i18n("New Class..."), KShortcut(), this, SLOT(slotNewClass()),
+ m_actionNewClass = new KAction( i18n("New Class..."), KShortcut(), this, TQT_SLOT(slotNewClass()),
m_part->actionCollection(), "classview_new_class" );
m_actionNewClass->setWhatsThis(i18n("<b>New class</b><p>Calls the <b>New Class</b> wizard."));
- m_actionCreateAccessMethods = new KAction( i18n("Create get/set Methods"), KShortcut(), this, SLOT(slotCreateAccessMethods()), m_part->actionCollection(), "classview_create_access_methods" );
+ m_actionCreateAccessMethods = new KAction( i18n("Create get/set Methods"), KShortcut(), this, TQT_SLOT(slotCreateAccessMethods()), m_part->actionCollection(), "classview_create_access_methods" );
- m_actionAddMethod = new KAction( i18n("Add Method..."), KShortcut(), this, SLOT(slotAddMethod()),
+ m_actionAddMethod = new KAction( i18n("Add Method..."), KShortcut(), this, TQT_SLOT(slotAddMethod()),
m_part->actionCollection(), "classview_add_method" );
m_actionAddMethod->setWhatsThis(i18n("<b>Add method</b><p>Calls the <b>New Method</b> wizard."));
- m_actionAddAttribute = new KAction( i18n("Add Attribute..."), KShortcut(), this, SLOT(slotAddAttribute()),
+ m_actionAddAttribute = new KAction( i18n("Add Attribute..."), KShortcut(), this, TQT_SLOT(slotAddAttribute()),
m_part->actionCollection(), "classview_add_attribute" );
m_actionAddAttribute->setWhatsThis(i18n("<b>Add attribute</b><p>Calls the <b>New Attribute</b> wizard."));
- m_actionOpenDeclaration = new KAction( i18n("Open Declaration"), KShortcut(), this, SLOT(slotOpenDeclaration()),
+ m_actionOpenDeclaration = new KAction( i18n("Open Declaration"), KShortcut(), this, TQT_SLOT(slotOpenDeclaration()),
m_part->actionCollection(), "classview_open_declaration" );
m_actionOpenDeclaration->setWhatsThis(i18n("<b>Open declaration</b><p>Opens a file where the selected item is declared and jumps to the declaration line."));
- m_actionOpenImplementation = new KAction( i18n("Open Implementation"), KShortcut(), this, SLOT(slotOpenImplementation()),
+ m_actionOpenImplementation = new KAction( i18n("Open Implementation"), KShortcut(), this, TQT_SLOT(slotOpenImplementation()),
m_part->actionCollection(), "classview_open_implementation" );
m_actionOpenImplementation->setWhatsThis(i18n("<b>Open implementation</b><p>Opens a file where the selected item is defined (implemented) and jumps to the definition line."));
- m_actionFollowEditor = new KToggleAction( i18n("Follow Editor"), KShortcut(), this, SLOT(slotFollowEditor()), m_part->actionCollection(), "classview_follow_editor" );
+ m_actionFollowEditor = new KToggleAction( i18n("Follow Editor"), KShortcut(), this, TQT_SLOT(slotFollowEditor()), m_part->actionCollection(), "classview_follow_editor" );
KConfig* config = m_part->instance()->config();
config->setGroup( "General" );
@@ -110,13 +110,13 @@ ClassViewWidget::~ClassViewWidget( )
}
template <class ModelType, class ListItemType>
- static bool selectItemG( ItemDom item, const QMap<KSharedPtr<ModelType>, ListItemType*>& map )
+ static bool selectItemG( ItemDom item, const TQMap<KSharedPtr<ModelType>, ListItemType*>& map )
{
ModelType* c = dynamic_cast<ModelType*>( &(*item) );
if( c ) {
KSharedPtr<ModelType> d( c );
- typename QMap<KSharedPtr<ModelType>, ListItemType*>::ConstIterator it = map.find(d);
+ typename TQMap<KSharedPtr<ModelType>, ListItemType*>::ConstIterator it = map.find(d);
if( it != map.end() ) {
( *it )->select();
return true;
@@ -126,7 +126,7 @@ template <class ModelType, class ListItemType>
}
-void ClassViewWidget::slotExecuted( QListViewItem* item )
+void ClassViewWidget::slotExecuted( TQListViewItem* item )
{
if( ClassViewItem* cbitem = dynamic_cast<ClassViewItem*>( item ) ){
if( cbitem->hasImplementation() )
@@ -143,7 +143,7 @@ void ClassViewWidget::clear( )
m_projectItem = 0;
}
-void restoreOpenNodes( QStringList & list, QListViewItem * item )
+void restoreOpenNodes( TQStringList & list, TQListViewItem * item )
{
if ( item && !list.isEmpty() )
{
@@ -160,13 +160,13 @@ void restoreOpenNodes( QStringList & list, QListViewItem * item )
}
}
-void storeOpenNodes( QValueList<QStringList> & openNodes, QStringList const & list, QListViewItem * item )
+void storeOpenNodes( TQValueList<TQStringList> & openNodes, TQStringList const & list, TQListViewItem * item )
{
if ( item )
{
if ( item->isOpen() )
{
- QStringList mylist( list );
+ TQStringList mylist( list );
mylist << item->text( 0 );
openNodes << mylist;
storeOpenNodes( openNodes, mylist, item->firstChild() );
@@ -180,8 +180,8 @@ void ClassViewWidget::refresh()
if( !m_part->project() )
return;
- QValueList<QStringList> openNodes;
- storeOpenNodes( openNodes, QStringList(), firstChild() );
+ TQValueList<TQStringList> openNodes;
+ storeOpenNodes( openNodes, TQStringList(), firstChild() );
int scrollbarPos = verticalScrollBar()->value();
clear();
@@ -196,7 +196,7 @@ void ClassViewWidget::refresh()
++it;
}
- QValueList<QStringList>::iterator itt = openNodes.begin();
+ TQValueList<TQStringList>::iterator itt = openNodes.begin();
while ( itt != openNodes.end() )
{
restoreOpenNodes ( *itt, firstChild() );
@@ -218,12 +218,12 @@ void ClassViewWidget::slotProjectOpened( )
m_projectDirectoryLength = m_projectDirectory.length() + 1;
- connect( m_part->languageSupport(), SIGNAL(updatedSourceInfo()),
- this, SLOT(refresh()) );
- connect( m_part->languageSupport(), SIGNAL(aboutToRemoveSourceInfo(const QString&)),
- this, SLOT(removeFile(const QString&)) );
- connect( m_part->languageSupport(), SIGNAL(addedSourceInfo(const QString&)),
- this, SLOT(insertFile(const QString&)) );
+ connect( m_part->languageSupport(), TQT_SIGNAL(updatedSourceInfo()),
+ this, TQT_SLOT(refresh()) );
+ connect( m_part->languageSupport(), TQT_SIGNAL(aboutToRemoveSourceInfo(const TQString&)),
+ this, TQT_SLOT(removeFile(const TQString&)) );
+ connect( m_part->languageSupport(), TQT_SIGNAL(addedSourceInfo(const TQString&)),
+ this, TQT_SLOT(insertFile(const TQString&)) );
}
void ClassViewWidget::slotProjectClosed( )
@@ -231,9 +231,9 @@ void ClassViewWidget::slotProjectClosed( )
}
-void ClassViewWidget::insertFile( const QString& fileName )
+void ClassViewWidget::insertFile( const TQString& fileName )
{
- QString fn = URLUtil::canonicalPath( fileName );
+ TQString fn = URLUtil::canonicalPath( fileName );
//kdDebug() << "======================== insertFile(" << fn << ")" << endl;
FileDom dom = m_part->codeModel()->fileByName( fn );
@@ -241,13 +241,13 @@ void ClassViewWidget::insertFile( const QString& fileName )
return;
fn = URLUtil::relativePathToFile(m_part->project()->projectDirectory(), fn);
- QStringList path;
+ TQStringList path;
switch( viewMode() )
{
case KDevelop3ViewMode:
{
- path = QStringList::split( "/", fn );
+ path = TQStringList::split( "/", fn );
path.pop_back();
}
break;
@@ -259,10 +259,10 @@ void ClassViewWidget::insertFile( const QString& fileName )
case JavaLikeViewMode:
{
- QStringList l = QStringList::split( "/", fn );
+ TQStringList l = TQStringList::split( "/", fn );
l.pop_back();
- QString package = l.join(".");
+ TQString package = l.join(".");
if( !package.isEmpty() )
path.push_back( package );
}
@@ -272,9 +272,9 @@ void ClassViewWidget::insertFile( const QString& fileName )
m_projectItem->processFile( dom, path );
}
-void ClassViewWidget::removeFile( const QString& fileName )
+void ClassViewWidget::removeFile( const TQString& fileName )
{
- QString fn = URLUtil::canonicalPath( fileName );
+ TQString fn = URLUtil::canonicalPath( fileName );
//kdDebug() << "======================== removeFile(" << fn << ")" << endl;
FileDom dom = m_part->codeModel()->fileByName( fn );
@@ -282,13 +282,13 @@ void ClassViewWidget::removeFile( const QString& fileName )
return;
fn = URLUtil::relativePathToFile(m_part->project()->projectDirectory(), fn);
- QStringList path;
+ TQStringList path;
switch( viewMode() )
{
case KDevelop3ViewMode:
{
- path = QStringList::split( "/", fn );
+ path = TQStringList::split( "/", fn );
path.pop_back();
}
break;
@@ -300,10 +300,10 @@ void ClassViewWidget::removeFile( const QString& fileName )
case JavaLikeViewMode:
{
- QStringList l = QStringList::split( "/", fn );
+ TQStringList l = TQStringList::split( "/", fn );
l.pop_back();
- QString package = l.join(".");
+ TQString package = l.join(".");
if( !package.isEmpty() )
path.push_back( package );
}
@@ -313,7 +313,7 @@ void ClassViewWidget::removeFile( const QString& fileName )
m_projectItem->processFile( dom, path, true );
}
-void ClassViewWidget::contentsContextMenuEvent( QContextMenuEvent * ev )
+void ClassViewWidget::contentsContextMenuEvent( TQContextMenuEvent * ev )
{
KPopupMenu menu( this );
@@ -376,14 +376,14 @@ int ClassViewWidget::viewMode( ) const
return m_actionViewMode->currentItem();
}
-QString ClassViewItem::comment() {
- return QString();
+TQString ClassViewItem::comment() {
+ return TQString();
}
void ClassViewItem::select( ) {
setOpen(true);
listView()->setCurrentItem(this);
- QListViewItem* c = firstChild();
+ TQListViewItem* c = firstChild();
int size = 0;
if(c != 0) {
while(c->nextSibling()) {
@@ -411,7 +411,7 @@ bool ClassViewWidget::selectItem( ItemDom item ) {
}
-QString NamespaceDomBrowserItem::comment() {
+TQString NamespaceDomBrowserItem::comment() {
return m_dom->comment();
}
@@ -437,17 +437,17 @@ bool FolderBrowserItem::selectItem(ItemDom item)
///searching for namespaces is currently not supported and not useful
}
- for( QMap<ClassDom, ClassDomBrowserItem*>::Iterator it = m_classes.begin(); it != m_classes.end(); ++it ) {
+ for( TQMap<ClassDom, ClassDomBrowserItem*>::Iterator it = m_classes.begin(); it != m_classes.end(); ++it ) {
if( (*it)->selectItem(item) )
return true;
}
- for( QMap<QString, NamespaceDomBrowserItem*>::Iterator it = m_namespaces.begin(); it != m_namespaces.end(); ++it ) {
+ for( TQMap<TQString, NamespaceDomBrowserItem*>::Iterator it = m_namespaces.begin(); it != m_namespaces.end(); ++it ) {
if( (*it)->selectItem(item) )
return true;
}
- for( QMap<QString, FolderBrowserItem*>::Iterator it = m_folders.begin(); it != m_folders.end(); ++it ) {
+ for( TQMap<TQString, FolderBrowserItem*>::Iterator it = m_folders.begin(); it != m_folders.end(); ++it ) {
if( (*it)->selectItem(item) ) {
return true;
}
@@ -456,7 +456,7 @@ bool FolderBrowserItem::selectItem(ItemDom item)
}
-void FolderBrowserItem::processFile( FileDom file, QStringList& path, bool remove )
+void FolderBrowserItem::processFile( FileDom file, TQStringList& path, bool remove )
{
if( path.isEmpty() ){
NamespaceList namespaceList = file->namespaceList();
@@ -479,7 +479,7 @@ void FolderBrowserItem::processFile( FileDom file, QStringList& path, bool remov
return;
}
- QString current = path.front();
+ TQString current = path.front();
path.pop_front();
FolderBrowserItem* item = m_folders.contains( current ) ? m_folders[ current ] : 0;
@@ -664,12 +664,12 @@ bool NamespaceDomBrowserItem::selectItem( ItemDom item)
///currently not neccessary..
}
- for(QMap<ClassDom, ClassDomBrowserItem*>::Iterator it = m_classes.begin(); it != m_classes.end(); ++it) {
+ for(TQMap<ClassDom, ClassDomBrowserItem*>::Iterator it = m_classes.begin(); it != m_classes.end(); ++it) {
if( (*it)->selectItem(item) )
return true;
}
- for(QMap<QString, NamespaceDomBrowserItem*>::Iterator it = m_namespaces.begin(); it != m_namespaces.end(); ++it) {
+ for(TQMap<TQString, NamespaceDomBrowserItem*>::Iterator it = m_namespaces.begin(); it != m_namespaces.end(); ++it) {
if( (*it)->selectItem(item) )
return true;
}
@@ -834,7 +834,7 @@ bool ClassDomBrowserItem::selectItem(ItemDom item)
if( selectItemG ( item, m_variables ) ) return true;
}
- for(QMap<ClassDom, ClassDomBrowserItem*>::Iterator it = m_classes.begin(); it != m_classes.end(); ++it) {
+ for(TQMap<ClassDom, ClassDomBrowserItem*>::Iterator it = m_classes.begin(); it != m_classes.end(); ++it) {
if( (*it)->selectItem(item) )
return true;
}
@@ -951,7 +951,7 @@ void NamespaceDomBrowserItem::setup( )
setPixmap( 0, UserIcon("CVnamespace", KIcon::DefaultState, listView()->m_part->instance()) );
setExpandable( true );
- QString txt = listView()->m_part->languageSupport()->formatModelItem(m_dom.data(), true);
+ TQString txt = listView()->m_part->languageSupport()->formatModelItem(m_dom.data(), true);
setText( 0, txt );
}
@@ -961,7 +961,7 @@ void ClassDomBrowserItem::setup( )
setPixmap( 0, UserIcon("CVclass", KIcon::DefaultState, listView()->m_part->instance()) );
setExpandable( true );
- QString txt = listView()->m_part->languageSupport()->formatModelItem(m_dom.data(), true);
+ TQString txt = listView()->m_part->languageSupport()->formatModelItem(m_dom.data(), true);
setText( 0, txt );
}
@@ -971,7 +971,7 @@ void TypeAliasDomBrowserItem::setup( )
setPixmap( 0, UserIcon("CVtypedef", KIcon::DefaultState, listView()->m_part->instance()) );
setExpandable( false );
- QString txt = listView()->m_part->languageSupport()->formatModelItem(m_dom.data(), true);
+ TQString txt = listView()->m_part->languageSupport()->formatModelItem(m_dom.data(), true);
setText( 0, txt );
}
@@ -979,8 +979,8 @@ void FunctionDomBrowserItem::setup( )
{
ClassViewItem::setup();
- QString iconName;
- QString methodType;
+ TQString iconName;
+ TQString methodType;
if ( m_dom->isSignal() )
methodType = "signal";
@@ -998,7 +998,7 @@ void FunctionDomBrowserItem::setup( )
setPixmap( 0, UserIcon(iconName, KIcon::DefaultState, listView()->m_part->instance()) );
- QString txt = listView()->m_part->languageSupport()->formatModelItem(m_dom.data(), true);
+ TQString txt = listView()->m_part->languageSupport()->formatModelItem(m_dom.data(), true);
item() = highlightFunctionName(txt, 1, m_styles);
}
@@ -1020,13 +1020,13 @@ void FunctionDomBrowserItem::openImplementation()
return;
FunctionDefinitionDom fun;
- QFileInfo fileInfo( m_dom->fileName() );
- QString path = fileInfo.dirPath( true );
+ TQFileInfo fileInfo( m_dom->fileName() );
+ TQString path = fileInfo.dirPath( true );
for( FunctionDefinitionList::Iterator it=lst.begin(); it!=lst.end(); ++it )
{
- QFileInfo defFileInfo( (*it)->fileName() );
- QString defPath = defFileInfo.dirPath( true );
+ TQFileInfo defFileInfo( (*it)->fileName() );
+ TQString defPath = defFileInfo.dirPath( true );
if( path != defPath )
continue;
@@ -1050,7 +1050,7 @@ void FunctionDomBrowserItem::openImplementation()
void VariableDomBrowserItem::setup( )
{
ClassViewItem::setup();
- QString iconName;
+ TQString iconName;
if( m_dom->access() == CodeModelItem::Private )
iconName = "CVprivate_var";
else if( m_dom->access() == CodeModelItem::Protected )
@@ -1060,7 +1060,7 @@ void VariableDomBrowserItem::setup( )
setPixmap( 0, UserIcon(iconName, KIcon::DefaultState, listView()->m_part->instance()) );
- QString txt = listView()->m_part->languageSupport()->formatModelItem(m_dom.data(), true);
+ TQString txt = listView()->m_part->languageSupport()->formatModelItem(m_dom.data(), true);
setText( 0, txt );
}
@@ -1076,32 +1076,32 @@ void VariableDomBrowserItem::openImplementation()
{
}
-QString FolderBrowserItem::key( int , bool ) const
+TQString FolderBrowserItem::key( int , bool ) const
{
return "0 " + text( 0 );
}
-QString NamespaceDomBrowserItem::key( int , bool ) const
+TQString NamespaceDomBrowserItem::key( int , bool ) const
{
return "1 " + text( 0 );
}
-QString ClassDomBrowserItem::key( int , bool ) const
+TQString ClassDomBrowserItem::key( int , bool ) const
{
return "2 " + text( 0 );
}
-QString TypeAliasDomBrowserItem::key( int , bool ) const
+TQString TypeAliasDomBrowserItem::key( int , bool ) const
{
return "3 " + text( 0 );
}
-QString FunctionDomBrowserItem::key( int , bool ) const
+TQString FunctionDomBrowserItem::key( int , bool ) const
{
return "4 " + text( 0 );
}
-QString VariableDomBrowserItem::key( int , bool ) const
+TQString VariableDomBrowserItem::key( int , bool ) const
{
return "5 " + text( 0 );
}
@@ -1165,12 +1165,12 @@ bool FunctionDomBrowserItem::hasImplementation() const
return !lst.isEmpty();
}
-void ClassViewWidget::maybeTip( QPoint const & p )
+void ClassViewWidget::maybeTip( TQPoint const & p )
{
ClassViewItem * item = dynamic_cast<ClassViewItem*>( itemAt( p ) );
if ( !item ) return;
- QString tooltip;
+ TQString tooltip;
if ( item->isNamespace() )
{
@@ -1195,7 +1195,7 @@ void ClassViewWidget::maybeTip( QPoint const & p )
FunctionDomBrowserItem * fitem = dynamic_cast<FunctionDomBrowserItem*>( item );
if ( fitem )
{
- QString access;
+ TQString access;
if ( fitem->dom()->access() == CodeModelItem::Private )
access = "[private] ";
else if ( fitem->dom()->access() == CodeModelItem::Protected )
@@ -1203,7 +1203,7 @@ void ClassViewWidget::maybeTip( QPoint const & p )
else if ( fitem->dom()->access() == CodeModelItem::Public )
access = "[public] ";
- QStringList arguments;
+ TQStringList arguments;
ArgumentList const & list = fitem->dom()->argumentList();
ArgumentList::ConstIterator it( list.begin() );
while ( it != list.end() )
@@ -1212,13 +1212,13 @@ void ClassViewWidget::maybeTip( QPoint const & p )
++it;
}
- QString strstatic = fitem->dom()->isStatic() ? QString( "[static] " ) : QString::null;
- QString strsignal = fitem->dom()->isSignal() ? QString( "[signal] " ) : QString::null;
- QString strslot = fitem->dom()->isSlot() ? QString( "[slot] " ) : QString::null;
- QString strresult = !fitem->dom()->resultType().isEmpty() ? fitem->dom()->resultType() + " " : QString::null;
+ TQString strstatic = fitem->dom()->isStatic() ? TQString( "[static] " ) : TQString::null;
+ TQString strsignal = fitem->dom()->isSignal() ? TQString( "[signal] " ) : TQString::null;
+ TQString strslot = fitem->dom()->isSlot() ? TQString( "[slot] " ) : TQString::null;
+ TQString strresult = !fitem->dom()->resultType().isEmpty() ? fitem->dom()->resultType() + " " : TQString::null;
- QString strconstant = fitem->dom()->isConstant() ? QString( " [const]" ) : QString::null;
- QString strabstract = fitem->dom()->isAbstract() ? QString( " [abstract]" ) : QString::null;
+ TQString strconstant = fitem->dom()->isConstant() ? TQString( " [const]" ) : TQString::null;
+ TQString strabstract = fitem->dom()->isAbstract() ? TQString( " [abstract]" ) : TQString::null;
tooltip = access + strstatic + strsignal + strslot + strresult
+ fitem->dom()->scope().join("::") + "::" + fitem->dom()->name()
@@ -1230,7 +1230,7 @@ void ClassViewWidget::maybeTip( QPoint const & p )
VariableDomBrowserItem * vitem = dynamic_cast<VariableDomBrowserItem*>( item );
if ( vitem )
{
- QString access;
+ TQString access;
if ( vitem->dom()->access() == CodeModelItem::Private )
access = "[private] ";
else if ( vitem->dom()->access() == CodeModelItem::Protected )
@@ -1238,7 +1238,7 @@ void ClassViewWidget::maybeTip( QPoint const & p )
else if ( vitem->dom()->access() == CodeModelItem::Public )
access = "[public] ";
- QString strstatic = vitem->dom()->isStatic() ? QString( "[static] " ) : QString::null;
+ TQString strstatic = vitem->dom()->isStatic() ? TQString( "[static] " ) : TQString::null;
tooltip = access + strstatic + vitem->dom()->type() + " " + vitem->dom()->name();
}
}
@@ -1246,7 +1246,7 @@ void ClassViewWidget::maybeTip( QPoint const & p )
{
if( TypeAliasDomBrowserItem * titem = dynamic_cast<TypeAliasDomBrowserItem*>( item ) )
{
- tooltip = QString( "[Type] " ) + titem->dom()->type() + " " + titem->dom()->name();
+ tooltip = TQString( "[Type] " ) + titem->dom()->type() + " " + titem->dom()->name();
}
}
@@ -1259,11 +1259,11 @@ void ClassViewWidget::maybeTip( QPoint const & p )
kdDebug(0) << tooltip << endl;
- QRect r = itemRect( item );
+ TQRect r = itemRect( item );
if ( item && r.isValid() && !tooltip.isEmpty() )
{
- tip( r, QString("<qt><pre>") + QStyleSheet::escape( tooltip ) + QString("</pre></qt>") );
+ tip( r, TQString("<qt><pre>") + TQStyleSheet::escape( tooltip ) + TQString("</pre></qt>") );
}
}