summaryrefslogtreecommitdiffstats
path: root/kdevdesigner/designer/outputwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kdevdesigner/designer/outputwindow.cpp')
-rw-r--r--kdevdesigner/designer/outputwindow.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kdevdesigner/designer/outputwindow.cpp b/kdevdesigner/designer/outputwindow.cpp
index a23c14a7..60604d97 100644
--- a/kdevdesigner/designer/outputwindow.cpp
+++ b/kdevdesigner/designer/outputwindow.cpp
@@ -40,7 +40,7 @@
#include <tdelocale.h>
static TQTextEdit *debugoutput = 0;
-bool debugToStderr = FALSE;
+bool debugToStderr = false;
TQtMsgHandler OutputWindow::oldMsgHandler = 0;
@@ -57,24 +57,24 @@ OutputWindow::~OutputWindow()
debugoutput = debugView = 0;
errorView = 0;
if ( !debugToStderr )
- tqInstallMsgHandler( oldMsgHandler );
+ qInstallMsgHandler( oldMsgHandler );
delete iface;
}
void OutputWindow::shuttingDown()
{
if ( !debugToStderr )
- tqInstallMsgHandler( oldMsgHandler );
+ qInstallMsgHandler( oldMsgHandler );
}
void OutputWindow::setupError()
{
errorView = new TQListView( this, "OutputWindow::errorView" );
errorView->setSorting( -1 );
- connect( errorView, TQT_SIGNAL( currentChanged( TQListViewItem* ) ),
- this, TQT_SLOT( currentErrorChanged( TQListViewItem* ) ) );
- connect( errorView, TQT_SIGNAL( clicked( TQListViewItem* ) ),
- this, TQT_SLOT( currentErrorChanged( TQListViewItem* ) ) );
+ connect( errorView, TQ_SIGNAL( currentChanged( TQListViewItem* ) ),
+ this, TQ_SLOT( currentErrorChanged( TQListViewItem* ) ) );
+ connect( errorView, TQ_SIGNAL( clicked( TQListViewItem* ) ),
+ this, TQ_SLOT( currentErrorChanged( TQListViewItem* ) ) );
if ( MetaDataBase::languages().count() > 1 )
addTab( errorView, i18n( "Warnings/Errors" ) );
@@ -89,7 +89,7 @@ void OutputWindow::setupError()
errorView->setColumnWidth( 1, errorView->fontMetrics().width( "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOP" ) );
errorView->setColumnWidth( 2, errorView->fontMetrics().width( "9999999" ) );
errorView->setColumnAlignment( 2, TQt::AlignRight );
- errorView->setAllColumnsShowFocus( TRUE );
+ errorView->setAllColumnsShowFocus( true );
}
static void debugMessageOutput( TQtMsgType type, const char *msg )
@@ -115,11 +115,11 @@ static void debugMessageOutput( TQtMsgType type, const char *msg )
void OutputWindow::setupDebug()
{
debugoutput = debugView = new TQTextEdit( this, "OutputWindow::debugView" );
- //debugView->setReadOnly( TRUE );
+ //debugView->setReadOnly( true );
addTab( debugView, "Debug Output" );
if ( !debugToStderr )
- oldMsgHandler = tqInstallMsgHandler( debugMessageOutput );
+ oldMsgHandler = qInstallMsgHandler( debugMessageOutput );
}
void OutputWindow::setErrorMessages( const TQStringList &errors, const TQValueList<uint> &lines,
@@ -169,7 +169,7 @@ void OutputWindow::currentErrorChanged( TQListViewItem *i )
if ( !i )
return;
ErrorItem *ei = (ErrorItem*)i;
- ei->setRead( TRUE );
+ ei->setRead( true );
MainWindow::self->showSourceLine( ei->location(), ei->line() - 1, MainWindow::Error );
}
@@ -179,7 +179,7 @@ ErrorItem::ErrorItem( TQListView *parent, TQListViewItem *after, const TQString
const TQString &locationString, TQObject *locationObject )
: TQListViewItem( parent, after )
{
- setMultiLinesEnabled( TRUE );
+ setMultiLinesEnabled( true );
TQString m( message );
type = m.startsWith( "Warning: " ) ? Warning : Error;
m = m.mid( m.find( ':' ) + 1 );
@@ -190,7 +190,7 @@ ErrorItem::ErrorItem( TQListView *parent, TQListViewItem *after, const TQString
object = locationObject;
read = !after;
if ( !after ) {
- parent->setSelected( this, TRUE );
+ parent->setSelected( this, true );
parent->setCurrentItem( this );
}
}
@@ -202,7 +202,7 @@ void ErrorItem::paintCell( TQPainter *p, const TQColorGroup & cg,
g.setColor( TQColorGroup::Text, type == Error ? TQt::red : TQt::darkYellow );
if ( !read ) {
TQFont f( p->font() );
- f.setBold( TRUE );
+ f.setBold( true );
p->setFont( f );
}
TQListViewItem::paintCell( p, g, column, width, alignment );