From aa3a1ca934bc541bddd3fa136a85f106f7da266e Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:25:18 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1157635 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdat/LoggerWidget.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'kdat/LoggerWidget.cpp') diff --git a/kdat/LoggerWidget.cpp b/kdat/LoggerWidget.cpp index ac0bdc5..11921c2 100644 --- a/kdat/LoggerWidget.cpp +++ b/kdat/LoggerWidget.cpp @@ -16,9 +16,9 @@ // along with this program; if not, write to the Free Software // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -#include -#include -#include +#include +#include +#include #include #include @@ -29,16 +29,16 @@ #include "LoggerWidget.moc" -LoggerWidget::LoggerWidget( const QString & title, QWidget* parent, const char* name ) - : QWidget( parent, name ) +LoggerWidget::LoggerWidget( const TQString & title, TQWidget* parent, const char* name ) + : TQWidget( parent, name ) { - QLabel* lbl1 = new QLabel( title, this ); + TQLabel* lbl1 = new TQLabel( title, this ); lbl1->setFixedHeight( lbl1->sizeHint().height() ); - _mle = new QMultiLineEdit( this ); + _mle = new TQMultiLineEdit( this ); _mle->setReadOnly( TRUE ); - QVBoxLayout* l1 = new QVBoxLayout( this, 0, 4 ); + TQVBoxLayout* l1 = new TQVBoxLayout( this, 0, 4 ); l1->addWidget( lbl1 ); l1->addWidget( _mle, 1 ); } @@ -47,7 +47,7 @@ LoggerWidget::~LoggerWidget() { } -void LoggerWidget::append( const QString & text ) +void LoggerWidget::append( const TQString & text ) { _mle->append( text ); _mle->setCursorPosition( _mle->numLines(), 0 ); @@ -55,9 +55,9 @@ void LoggerWidget::append( const QString & text ) void LoggerWidget::save() { - QString file = KFileDialog::getSaveFileName( QString::null, QString::null, this ); + TQString file = KFileDialog::getSaveFileName( TQString::null, TQString::null, this ); if ( !file.isNull() ) { - QFile f( file ); + TQFile f( file ); if ( f.exists() ) { int result = KMessageBox::warningContinueCancel( this, i18n( "Log file exists, overwrite?" ), @@ -67,7 +67,7 @@ void LoggerWidget::save() return; } if ( f.open( IO_WriteOnly ) ) { - QCString line; + TQCString line; for ( int i = 0; i < _mle->numLines(); i++ ) { line = _mle->textLine( i ).utf8(); f.writeBlock( line, line.length() ); -- cgit v1.2.1