diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
commit | 48d4a26399959121f33d2bc3bfe51c7827b654fc (patch) | |
tree | 5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /src/multibuffer.cpp | |
parent | 7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff) | |
download | tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip |
TQt4 port kdevelop
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/multibuffer.cpp')
-rw-r--r-- | src/multibuffer.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/multibuffer.cpp b/src/multibuffer.cpp index bd5942fc..4960d870 100644 --- a/src/multibuffer.cpp +++ b/src/multibuffer.cpp @@ -45,8 +45,8 @@ #include <ktexteditor/document.h> #include <ktexteditor/viewcursorinterface.h> -MultiBuffer::MultiBuffer( TQWidget *parent ) - : TQSplitter( parent, "MultiBuffer" ), +MultiBuffer::MultiBuffer( TQWidget *tqparent ) + : TQSplitter( tqparent, "MultiBuffer" ), m_editorFactory( 0 ), m_delayActivate( false ), m_activated( false ), @@ -84,7 +84,7 @@ KParts::Part *MultiBuffer::activeBuffer( ) const bool MultiBuffer::hasURL( const KURL &url ) const { - return m_buffers.contains( url ); + return m_buffers.tqcontains( url ); } int MultiBuffer::numberOfBuffers() const @@ -124,7 +124,7 @@ KParts::Part* MultiBuffer::openURL( const KURL &url ) bool MultiBuffer::closeURL( const KURL &url ) { - if ( !m_buffers.contains( url ) ) + if ( !m_buffers.tqcontains( url ) ) return false; bool result = false; @@ -147,7 +147,7 @@ void MultiBuffer::registerURL( const KURL &url, KParts::Part *part ) void MultiBuffer::registerDelayedActivation( KParts::Part *part, int line, int col ) { - m_delayedActivation[ part ] = qMakePair( line, col ); + m_delayedActivation[ part ] = tqMakePair( line, col ); } KParts::Part* MultiBuffer::createPart( const TQString &mimeType, @@ -219,7 +219,7 @@ void MultiBuffer::show() KTextEditor::View *view = document->createView( this ); document->setWidget( view ); - // We're managing the view deletion by being its parent, + // We're managing the view deletion by being its tqparent, // don't let the part self-destruct disconnect( view, TQT_SIGNAL( destroyed() ), document, TQT_SLOT( slotWidgetDestroyed() ) ); @@ -256,7 +256,7 @@ void MultiBuffer::setOrientation( Qt::Orientation orientation ) void MultiBuffer::activePartChanged( const KURL &url ) { - if ( !m_buffers.contains( url ) ) + if ( !m_buffers.tqcontains( url ) ) return ; m_activeBuffer = m_buffers[ url ]; @@ -300,4 +300,4 @@ void MultiBuffer::updateUrlForPart(KParts::Part *part, KURL url) #include "multibuffer.moc" -// kate: space-indent on; indent-width 4; tab-width 4; replace-tabs on +// kate: space-indent on; indent-width 4; tab-width 4; tqreplace-tabs on |