diff options
Diffstat (limited to 'kdevdesigner/designer/outputwindow.cpp')
-rw-r--r-- | kdevdesigner/designer/outputwindow.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/kdevdesigner/designer/outputwindow.cpp b/kdevdesigner/designer/outputwindow.cpp index 84087f01..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; @@ -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,7 +115,7 @@ 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 ) @@ -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 ); |