diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:32:20 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-15 15:32:20 -0600 |
commit | a836ba332960d5fc28c3f3ca9fbe52d63e9b7218 (patch) | |
tree | e5ffd3b495e179985a7bdd9ae0351c5b3d9ced53 /src/codeeditor.cpp | |
parent | 22c5fc0e5ec003c8730f102ebf6c9e7bbb78cc4c (diff) | |
download | kpicosim-a836ba332960d5fc28c3f3ca9fbe52d63e9b7218.tar.gz kpicosim-a836ba332960d5fc28c3f3ca9fbe52d63e9b7218.zip |
Rename a number of old tq methods that are no longer tq specific
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 a8e1dae..92a119e 100755 --- a/src/codeeditor.cpp +++ b/src/codeeditor.cpp @@ -22,13 +22,13 @@ #include <tqmessagebox.h> #include <kmessagebox.h> -#include <tqlayout.h> +#include <layout.h> #include <kfiledialog.h> CodeEditor::CodeEditor(TQWidget *parent, const char *name) : TQWidget(parent, name) { - TQVBoxLayout *tqlayout = new TQVBoxLayout(this) ; + TQVBoxLayout *layout = 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()) ); - tqlayout->addWidget( m_view ) ; + layout->addWidget( m_view ) ; m_exeLine = 0 ; m_filename = "" ; @@ -56,7 +56,7 @@ CodeEditor::CodeEditor(TQWidget *parent, const char *name) m_statusBar = new KStatusBar( this ) ; - tqlayout->addWidget( m_statusBar ) ; + layout->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 " ).tqarg( TQString::number( line+1 ) ).tqarg( TQString::number( column+1 ) ), 0 ) ; + m_statusBar->changeItem( TQString( " Line: %1 Col: %2 " ).arg( TQString::number( line+1 ) ).arg( 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?").tqarg( 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?").arg( filename ), "Save Document?", KGuiItem( "Save" ), KGuiItem( "Discard" ) ); if ( choice == KMessageBox::Yes ) save() ; |