diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:25:18 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:25:18 +0000 |
commit | aa3a1ca934bc541bddd3fa136a85f106f7da266e (patch) | |
tree | 9ad0b795aed8fa4ac30c2fe0fd1aacb8175714c0 /kdat/LoggerWidget.cpp | |
parent | b10cf7066791a2f362495890cd50c984e8025412 (diff) | |
download | tdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.tar.gz tdeadmin-aa3a1ca934bc541bddd3fa136a85f106f7da266e.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeadmin@1157635 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdat/LoggerWidget.cpp')
-rw-r--r-- | kdat/LoggerWidget.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
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 <qlabel.h> -#include <qlayout.h> -#include <qmultilineedit.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqmultilineedit.h> #include <kapplication.h> #include <kfiledialog.h> @@ -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() ); |