diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:57:01 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:57:01 -0600 |
commit | 8411b33367c6905203c34e16a127a2c781785d38 (patch) | |
tree | 71173b7309b4c48239056e152ce4009f31731057 /src/codeeditor.cpp | |
parent | a836ba332960d5fc28c3f3ca9fbe52d63e9b7218 (diff) | |
download | kpicosim-8411b33367c6905203c34e16a127a2c781785d38.tar.gz kpicosim-8411b33367c6905203c34e16a127a2c781785d38.zip |
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit a836ba332960d5fc28c3f3ca9fbe52d63e9b7218.
Diffstat (limited to 'src/codeeditor.cpp')
-rwxr-xr-x | src/codeeditor.cpp | 12 |
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() ; |