diff options
Diffstat (limited to 'src/multibuffer.cpp')
-rw-r--r-- | src/multibuffer.cpp | 36 |
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 ) |