[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdepim/libkleo/tests
From:       Laurent Montel <montel () kde ! org>
Date:       2007-06-12 9:39:21
Message-ID: 1181641161.433729.9100.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 674382 by mlaurent:

Q3Support--


 M  +3 -3      gnupgviewer.h  
 M  +0 -1      test_cryptoconfig.cpp  
 M  +4 -4      test_gnupgprocessbase.cpp  


--- trunk/KDE/kdepim/libkleo/tests/gnupgviewer.h #674381:674382
@@ -33,7 +33,7 @@
 #ifndef __KLEO_TESTS_GNUPGVIEWER_H__
 #define __KLEO_TESTS_GNUPGVIEWER_H__
 
-#include <q3textedit.h>
+#include <qtextedit.h>
 #include <QString>
 
 namespace Kleo {
@@ -42,10 +42,10 @@
 class K3Process;
 class QStringList;
 
-class GnuPGViewer : public Q3TextEdit {
+class GnuPGViewer : public QTextEdit {
   Q_OBJECT
 public:
-  GnuPGViewer( QWidget * parent=0, const char * name=0 );
+  GnuPGViewer( QWidget * parent=0 );
   ~GnuPGViewer();
 
   void setProcess( Kleo::GnuPGProcessBase * process );
--- trunk/KDE/kdepim/libkleo/tests/test_cryptoconfig.cpp #674381:674382
@@ -37,7 +37,6 @@
 #include <iostream>
 //Added by qt3to4:
 #include <Q3ValueList>
-#include <Q3CString>
 using namespace std;
 
 #include <stdlib.h>
--- trunk/KDE/kdepim/libkleo/tests/test_gnupgprocessbase.cpp #674381:674382
@@ -46,11 +46,11 @@
 
 #include <QStringList>
 
-GnuPGViewer::GnuPGViewer( QWidget * parent, const char * name )
-  : Q3TextEdit( parent, name ), mProcess( 0 )
+GnuPGViewer::GnuPGViewer( QWidget * parent )
+  : QTextEdit( parent ), mProcess( 0 )
 {
-  setTextFormat( Qt::LogText );
-  setMaxLogLines( 10000 );
+  setAcceptRichText(false);
+  document()->setMaximumBlockCount( 10000 );
 }
 
 GnuPGViewer::~GnuPGViewer() {
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic