summaryrefslogtreecommitdiffstats
path: root/src/multibuffer.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:56:07 +0000
commitd6f8bbb45b267065a6907e71ff9c98bb6d161241 (patch)
treed109539636691d7b03036ca1c0ed29dbae6577cf /src/multibuffer.cpp
parent3331a47a9cad24795c7440ee8107143ce444ef34 (diff)
downloadtdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.tar.gz
tdevelop-d6f8bbb45b267065a6907e71ff9c98bb6d161241.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1157658 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/multibuffer.cpp')
-rw-r--r--src/multibuffer.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/multibuffer.cpp b/src/multibuffer.cpp
index cdbffe85..bd5942fc 100644
--- a/src/multibuffer.cpp
+++ b/src/multibuffer.cpp
@@ -45,8 +45,8 @@
#include <ktexteditor/document.h>
#include <ktexteditor/viewcursorinterface.h>
-MultiBuffer::MultiBuffer( QWidget *parent )
- : QSplitter( parent, "MultiBuffer" ),
+MultiBuffer::MultiBuffer( TQWidget *parent )
+ : TQSplitter( parent, "MultiBuffer" ),
m_editorFactory( 0 ),
m_delayActivate( false ),
m_activated( false ),
@@ -57,8 +57,8 @@ MultiBuffer::MultiBuffer( QWidget *parent )
API::getInstance() ->languageSupport() )
{
setOrientation( lang->splitOrientation() );
- connect( lang, SIGNAL( splitOrientationChanged( Qt::Orientation ) ),
- this, SLOT( setOrientation( Qt::Orientation ) ) );
+ connect( lang, TQT_SIGNAL( splitOrientationChanged( Qt::Orientation ) ),
+ this, TQT_SLOT( setOrientation( Qt::Orientation ) ) );
}
else
{
@@ -150,10 +150,10 @@ void MultiBuffer::registerDelayedActivation( KParts::Part *part,
m_delayedActivation[ part ] = qMakePair( line, col );
}
-KParts::Part* MultiBuffer::createPart( const QString &mimeType,
- const QString &partType,
- const QString &className,
- const QString &preferredName )
+KParts::Part* MultiBuffer::createPart( const TQString &mimeType,
+ const TQString &partType,
+ const TQString &className,
+ const TQString &preferredName )
{
m_editorFactory = PartController::getInstance() ->findPartFactory(
mimeType, partType, preferredName );
@@ -174,9 +174,9 @@ KParts::Part* MultiBuffer::createPart( const KURL &url )
KMimeType::Ptr mimeType = KMimeType::findByURL( url );
- QString className;
- QString services[] = { "KParts/ReadWritePart", "KParts/ReadOnlyPart" };
- QString classnames[] = { "KParts::ReadWritePart", "KParts::ReadOnlyPart" };
+ TQString className;
+ TQString services[] = { "KParts/ReadWritePart", "KParts/ReadOnlyPart" };
+ TQString classnames[] = { "KParts::ReadWritePart", "KParts::ReadOnlyPart" };
for ( uint i = 0; i < 2; ++i )
{
m_editorFactory = PartController::getInstance() ->findPartFactory(
@@ -201,7 +201,7 @@ void MultiBuffer::show()
{
if ( !m_delayedActivation.count() || m_activated )
{
- QSplitter::show();
+ TQSplitter::show();
return ;
}
@@ -221,8 +221,8 @@ void MultiBuffer::show()
// We're managing the view deletion by being its parent,
// don't let the part self-destruct
- disconnect( view, SIGNAL( destroyed() ),
- document, SLOT( slotWidgetDestroyed() ) );
+ disconnect( view, TQT_SIGNAL( destroyed() ),
+ document, TQT_SLOT( slotWidgetDestroyed() ) );
document->insertChildClient( view );
PartController::getInstance() ->integrateTextEditorPart( document );
@@ -246,12 +246,12 @@ void MultiBuffer::show()
}
m_activated = true;
- QSplitter::show();
+ TQSplitter::show();
}
void MultiBuffer::setOrientation( Qt::Orientation orientation )
{
- QSplitter::setOrientation( orientation );
+ TQSplitter::setOrientation( orientation );
}
void MultiBuffer::activePartChanged( const KURL &url )
@@ -263,12 +263,12 @@ void MultiBuffer::activePartChanged( const KURL &url )
TopLevel::getInstance() ->setCurrentDocumentCaption( url.fileName() );
}
-void MultiBuffer::focusInEvent( QFocusEvent *ev )
+void MultiBuffer::focusInEvent( TQFocusEvent *ev )
{
KParts::Part *active = activeBuffer();
if (active && active->widget())
active->widget()->setFocus();
- QSplitter::focusInEvent(ev);
+ TQSplitter::focusInEvent(ev);
}
bool MultiBuffer::hasPart( KParts::Part *part )