Rename a number of old tq methods that are no longer tq specific

pull/1/head
Timothy Pearson 13 years ago
parent 22c5fc0e5e
commit a836ba3329

@ -22,13 +22,13 @@
#include <tqmessagebox.h> #include <tqmessagebox.h>
#include <kmessagebox.h> #include <kmessagebox.h>
#include <tqlayout.h> #include <layout.h>
#include <kfiledialog.h> #include <kfiledialog.h>
CodeEditor::CodeEditor(TQWidget *parent, const char *name) CodeEditor::CodeEditor(TQWidget *parent, const char *name)
: TQWidget(parent, name) : TQWidget(parent, name)
{ {
TQVBoxLayout *tqlayout = new TQVBoxLayout(this) ; TQVBoxLayout *layout = new TQVBoxLayout(this) ;
KLibFactory *factory = KLibLoader::self()->factory( "libkatepart" ) ; KLibFactory *factory = KLibLoader::self()->factory( "libkatepart" ) ;
m_doc = ( Kate::Document* ) factory->create( 0L, "kate", "KTextEditor::Document" ) ; 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()) ); connect( m_view, TQT_SIGNAL(cursorPositionChanged()), this, TQT_SLOT(slotCursorPositionChanged()) );
tqlayout->addWidget( m_view ) ; layout->addWidget( m_view ) ;
m_exeLine = 0 ; m_exeLine = 0 ;
m_filename = "" ; m_filename = "" ;
@ -56,7 +56,7 @@ CodeEditor::CodeEditor(TQWidget *parent, const char *name)
m_statusBar = new KStatusBar( this ) ; m_statusBar = new KStatusBar( this ) ;
tqlayout->addWidget( m_statusBar ) ; layout->addWidget( m_statusBar ) ;
m_statusBar->insertItem( "", 0, 0, true ) ; m_statusBar->insertItem( "", 0, 0, true ) ;
slotCursorPositionChanged() ; slotCursorPositionChanged() ;
@ -74,7 +74,7 @@ void CodeEditor::slotCursorPositionChanged()
{ {
unsigned int line, column ; unsigned int line, column ;
m_view->cursorPosition( &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() void CodeEditor::slotToggleBreakpoint()
@ -250,7 +250,7 @@ bool CodeEditor::askSave()
else else
filename = "Untitled" ; 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 ) if ( choice == KMessageBox::Yes )
save() ; save() ;

@ -67,7 +67,7 @@
#include <klocale.h> #include <klocale.h>
#include <kmenubar.h> #include <kmenubar.h>
#include <tqlayout.h> #include <layout.h>
#include <tqkeysequence.h> #include <tqkeysequence.h>
#include <knuminput.h> #include <knuminput.h>
#include <tqnamespace.h> #include <tqnamespace.h>
@ -79,7 +79,7 @@
#include "kjtagdialog.h" #include "kjtagdialog.h"
#include <kfiledialog.h> #include <kfiledialog.h>
#include <kmessagebox.h> #include <kmessagebox.h>
#include <tqlayout.h> #include <layout.h>
#include <ksimpleconfig.h> #include <ksimpleconfig.h>
#include <khelpmenu.h> #include <khelpmenu.h>
#include <kaboutdata.h> #include <kaboutdata.h>

@ -18,7 +18,7 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/ ***************************************************************************/
#include "kportview.h" #include "kportview.h"
#include <tqlayout.h> #include <layout.h>
#include <tqlabel.h> #include <tqlabel.h>
KPortView::KPortView( CPicoBlaze *cpu, TQWidget *parent, const char *name) KPortView::KPortView( CPicoBlaze *cpu, TQWidget *parent, const char *name)

@ -1,7 +1,7 @@
#include "kprocessorview.h" #include "kprocessorview.h"
#include <tqlabel.h> #include <tqlabel.h>
#include <tqlayout.h> #include <layout.h>
#include <tqscrollview.h> #include <tqscrollview.h>
#include <tqsize.h> #include <tqsize.h>
#include <tqmessagebox.h> #include <tqmessagebox.h>

@ -19,7 +19,7 @@
***************************************************************************/ ***************************************************************************/
#include "kserialview.h" #include "kserialview.h"
#include <tqlabel.h> #include <tqlabel.h>
#include <tqlayout.h> #include <layout.h>
#include <tqgroupbox.h> #include <tqgroupbox.h>
#include <tqframe.h> #include <tqframe.h>
@ -40,9 +40,9 @@ KSerialView::KSerialView( CPicoBlaze *cpu, TQWidget * parent ) : TQWidget( paren
TQWidget *settings = new TQWidget( this ) ; TQWidget *settings = new TQWidget( this ) ;
settings->setMinimumSize( 90, 90 ) ; settings->setMinimumSize( 90, 90 ) ;
TQVBoxLayout *tqlayout = new TQVBoxLayout( this ) ; TQVBoxLayout *layout = new TQVBoxLayout( this ) ;
tqlayout->addWidget( view ) ; layout->addWidget( view ) ;
tqlayout->addWidget( settings ) ; layout->addWidget( settings ) ;
TQGroupBox *groupBox = new TQGroupBox( "Serial Settings", settings ) ; TQGroupBox *groupBox = new TQGroupBox( "Serial Settings", settings ) ;
groupBox->setFixedSize( 200, 80 ) ; groupBox->setFixedSize( 200, 80 ) ;

Loading…
Cancel
Save