summaryrefslogtreecommitdiffstats
path: root/src/codeeditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/codeeditor.cpp')
-rwxr-xr-xsrc/codeeditor.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/codeeditor.cpp b/src/codeeditor.cpp
index 92a119e..a8e1dae 100755
--- a/src/codeeditor.cpp
+++ b/src/codeeditor.cpp
@@ -22,13 +22,13 @@
#include <tqmessagebox.h>
#include <kmessagebox.h>
-#include <layout.h>
+#include <tqlayout.h>
#include <kfiledialog.h>
CodeEditor::CodeEditor(TQWidget *parent, const char *name)
: TQWidget(parent, name)
{
- TQVBoxLayout *layout = new TQVBoxLayout(this) ;
+ TQVBoxLayout *tqlayout = new TQVBoxLayout(this) ;
KLibFactory *factory = KLibLoader::self()->factory( "libkatepart" ) ;
m_doc = ( Kate::Document* ) factory->create( 0L, "kate", "KTextEditor::Document" ) ;
@@ -37,7 +37,7 @@ CodeEditor::CodeEditor(TQWidget *parent, const char *name)
connect( m_view, TQT_SIGNAL(cursorPositionChanged()), this, TQT_SLOT(slotCursorPositionChanged()) );
- layout->addWidget( m_view ) ;
+ tqlayout->addWidget( m_view ) ;
m_exeLine = 0 ;
m_filename = "" ;
@@ -56,7 +56,7 @@ CodeEditor::CodeEditor(TQWidget *parent, const char *name)
m_statusBar = new KStatusBar( this ) ;
- layout->addWidget( m_statusBar ) ;
+ tqlayout->addWidget( m_statusBar ) ;
m_statusBar->insertItem( "", 0, 0, true ) ;
slotCursorPositionChanged() ;
@@ -74,7 +74,7 @@ void CodeEditor::slotCursorPositionChanged()
{
unsigned int line, column ;
m_view->cursorPosition( &line, &column ) ;
- m_statusBar->changeItem( TQString( " Line: %1 Col: %2 " ).arg( TQString::number( line+1 ) ).arg( TQString::number( column+1 ) ), 0 ) ;
+ m_statusBar->changeItem( TQString( " Line: %1 Col: %2 " ).tqarg( TQString::number( line+1 ) ).tqarg( TQString::number( column+1 ) ), 0 ) ;
}
void CodeEditor::slotToggleBreakpoint()
@@ -250,7 +250,7 @@ bool CodeEditor::askSave()
else
filename = "Untitled" ;
- int choice = KMessageBox::warningYesNoCancel( this, TQString( "The document \'%1\' has been modified.\nDo you want to save it?").arg( filename ), "Save Document?", KGuiItem( "Save" ), KGuiItem( "Discard" ) );
+ int choice = KMessageBox::warningYesNoCancel( this, TQString( "The document \'%1\' has been modified.\nDo you want to save it?").tqarg( filename ), "Save Document?", KGuiItem( "Save" ), KGuiItem( "Discard" ) );
if ( choice == KMessageBox::Yes )
save() ;