From 7be55ffa061c026e35e2d6a0effe1161ddb0d41f Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:53:50 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- certmanager/crlview.cpp | 56 ++++++++++++++++++++++++------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) (limited to 'certmanager/crlview.cpp') diff --git a/certmanager/crlview.cpp b/certmanager/crlview.cpp index 6cf7ddeaa..49a82f98d 100644 --- a/certmanager/crlview.cpp +++ b/certmanager/crlview.cpp @@ -43,25 +43,25 @@ #include #include -#include -#include -#include -#include -#include - -CRLView::CRLView( QWidget* parent, const char* name, bool modal ) - : QDialog( parent, name, modal ), _process(0) +#include +#include +#include +#include +#include + +CRLView::CRLView( TQWidget* parent, const char* name, bool modal ) + : TQDialog( parent, name, modal ), _process(0) { - QVBoxLayout* topLayout = new QVBoxLayout( this, 10, 4 ); + TQVBoxLayout* topLayout = new TQVBoxLayout( this, 10, 4 ); - topLayout->addWidget( new QLabel( i18n("CRL cache dump:"), this ) ); + topLayout->addWidget( new TQLabel( i18n("CRL cache dump:"), this ) ); - _textView = new QTextEdit( this ); + _textView = new TQTextEdit( this ); _textView->setFont( KGlobalSettings::fixedFont() ); - _textView->setTextFormat( QTextEdit::LogText ); + _textView->setTextFormat( TQTextEdit::LogText ); topLayout->addWidget( _textView ); - QHBoxLayout* hbLayout = new QHBoxLayout( topLayout ); + TQHBoxLayout* hbLayout = new TQHBoxLayout( topLayout ); _updateButton = new KPushButton( i18n("&Update"), this ); _closeButton = new KPushButton( KStdGuiItem::close(), this ); @@ -71,16 +71,16 @@ CRLView::CRLView( QWidget* parent, const char* name, bool modal ) hbLayout->addWidget( _closeButton ); // connections: - connect( _updateButton, SIGNAL( clicked() ), - this, SLOT( slotUpdateView() ) ); - connect( _closeButton, SIGNAL( clicked() ), - this, SLOT( close() ) ); + connect( _updateButton, TQT_SIGNAL( clicked() ), + this, TQT_SLOT( slotUpdateView() ) ); + connect( _closeButton, TQT_SIGNAL( clicked() ), + this, TQT_SLOT( close() ) ); resize( _textView->fontMetrics().width( 'M' ) * 80, _textView->fontMetrics().lineSpacing() * 25 ); - _timer = new QTimer( this ); - connect( _timer, SIGNAL(timeout()), SLOT(slotAppendBuffer()) ); + _timer = new TQTimer( this ); + connect( _timer, TQT_SIGNAL(timeout()), TQT_SLOT(slotAppendBuffer()) ); } CRLView::~CRLView() @@ -88,8 +88,8 @@ CRLView::~CRLView() delete _process; _process = 0; } -void CRLView::closeEvent( QCloseEvent * e ) { - QDialog::closeEvent( e ); +void CRLView::closeEvent( TQCloseEvent * e ) { + TQDialog::closeEvent( e ); delete _process; _process = 0; } @@ -97,14 +97,14 @@ void CRLView::slotUpdateView() { _updateButton->setEnabled( false ); _textView->clear(); - _buffer = QString::null; + _buffer = TQString::null; if( _process == 0 ) { _process = new KProcess(); *_process << "gpgsm" << "--call-dirmngr" << "listcrls"; - connect( _process, SIGNAL( receivedStdout( KProcess*, char*, int) ), - this, SLOT( slotReadStdout( KProcess*, char*, int ) ) ); - connect( _process, SIGNAL( processExited( KProcess* ) ), - this, SLOT( slotProcessExited() ) ); + connect( _process, TQT_SIGNAL( receivedStdout( KProcess*, char*, int) ), + this, TQT_SLOT( slotReadStdout( KProcess*, char*, int ) ) ); + connect( _process, TQT_SIGNAL( processExited( KProcess* ) ), + this, TQT_SLOT( slotProcessExited() ) ); } if( _process->isRunning() ) _process->kill(); if( !_process->start( KProcess::NotifyOnExit, KProcess::Stdout ) ) { @@ -116,12 +116,12 @@ void CRLView::slotUpdateView() void CRLView::slotReadStdout( KProcess*, char* buf, int len) { - _buffer.append( QString::fromUtf8( buf, len ) ); + _buffer.append( TQString::fromUtf8( buf, len ) ); } void CRLView::slotAppendBuffer() { _textView->append( _buffer ); - _buffer = QString::null; + _buffer = TQString::null; } void CRLView::slotProcessExited() -- cgit v1.2.1