summaryrefslogtreecommitdiffstats
path: root/certmanager/crlview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'certmanager/crlview.cpp')
-rw-r--r--certmanager/crlview.cpp56
1 files changed, 28 insertions, 28 deletions
diff --git a/certmanager/crlview.cpp b/certmanager/crlview.cpp
index 6cf7ddea..49a82f98 100644
--- a/certmanager/crlview.cpp
+++ b/certmanager/crlview.cpp
@@ -43,25 +43,25 @@
#include <kstdguiitem.h>
#include <kglobalsettings.h>
-#include <qlayout.h>
-#include <qlabel.h>
-#include <qtextedit.h>
-#include <qfontmetrics.h>
-#include <qtimer.h>
-
-CRLView::CRLView( QWidget* parent, const char* name, bool modal )
- : QDialog( parent, name, modal ), _process(0)
+#include <tqlayout.h>
+#include <tqlabel.h>
+#include <tqtextedit.h>
+#include <tqfontmetrics.h>
+#include <tqtimer.h>
+
+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()