summaryrefslogtreecommitdiffstats
path: root/src/aboutklamav.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2021-01-13 19:30:17 +0200
committerMavridis Philippe <mavridisf@gmail.com>2021-01-13 19:30:17 +0200
commit357ddeb8afd82d69ef871c146f4fc8f2c67fb17e (patch)
treedc3ef0e6fedd64f5fb177c114f72e1515a07cd1b /src/aboutklamav.cpp
parentc6cbd71bc169ac0e927e52325dbbbcb506abbc73 (diff)
downloadklamav-357ddeb8afd82d69ef871c146f4fc8f2c67fb17e.tar.gz
klamav-357ddeb8afd82d69ef871c146f4fc8f2c67fb17e.zip
Conversion Qt3->TQt
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'src/aboutklamav.cpp')
-rw-r--r--src/aboutklamav.cpp66
1 files changed, 33 insertions, 33 deletions
diff --git a/src/aboutklamav.cpp b/src/aboutklamav.cpp
index 403ac49..e06c18d 100644
--- a/src/aboutklamav.cpp
+++ b/src/aboutklamav.cpp
@@ -12,31 +12,31 @@
#include <kstandarddirs.h>
#include <kstandarddirs.h>
-#include <qlayout.h>
+#include <tqlayout.h>
using namespace KlamAV;
-Aboutklamav::Aboutklamav(QWidget *parent, const char *name)
- : QWidget(parent, name)
+Aboutklamav::Aboutklamav(TQWidget *parent, const char *name)
+ : TQWidget(parent, name)
{
-// QString location = locate("data", "klamav/about/klam.png");
-// QPixmap image0;
-// QImage img;
+// TQString location = locate("data", "klamav/about/klam.png");
+// TQPixmap image0;
+// TQImage img;
//
// //img.loadFromData( image0_data, sizeof( image0_data ), "PNG" );
// img.load(location,"PNG");
// image0 = img;
- QVBoxLayout *vbox = new QVBoxLayout(this, KDialog::marginHint(),
+ TQVBoxLayout *vbox = new TQVBoxLayout(this, KDialog::marginHint(),
KDialog::spacingHint(), "vbox");
- QWidget* privateLayoutWidget = new QWidget( this, "dblayout" );
+ TQWidget* privateLayoutWidget = new TQWidget( this, "dblayout" );
vbox->addWidget(privateLayoutWidget);
- QGridLayout* dblayout = new QGridLayout( privateLayoutWidget, 1, 1, 2, 2, "dblayout");
+ TQGridLayout* dblayout = new TQGridLayout( privateLayoutWidget, 1, 1, 2, 2, "dblayout");
dblayout->setColStretch(1, 1);
tabBrowser = new TabWidget(privateLayoutWidget);
@@ -44,8 +44,8 @@ Aboutklamav::Aboutklamav(QWidget *parent, const char *name)
homepage = new PageViewer(this, "page");
- connect( homepage, SIGNAL(setWindowCaption (const QString &)),
- this, SLOT(slotTabCaption (const QString &)) );
+ connect( homepage, SIGNAL(setWindowCaption (const TQString &)),
+ this, SLOT(slotTabCaption (const TQString &)) );
connect( homepage, SIGNAL(urlClicked(const KURL &,bool)),
this, SLOT(slotOpenTabPlain(const KURL &,bool)) );
@@ -55,43 +55,43 @@ Aboutklamav::Aboutklamav(QWidget *parent, const char *name)
tabBrowser->showPage(homepage->widget());
setFocus();
- QString location = locate("data", "klamav/about/aboutklamav.html");
+ TQString location = locate("data", "klamav/about/aboutklamav.html");
homepage->openURL(location);
- //slotTabCaption(QString("KlamAV %1").arg(KLAMAV_VERSION));
+ //slotTabCaption(TQString("KlamAV %1").arg(KLAMAV_VERSION));
//KMessageBox::information (this,nooffilters);
-/* QGroupBox *groupBox1 = new QGroupBox( "About KlamAV",this );
+/* TQGroupBox *groupBox1 = new TQGroupBox( "About KlamAV",this );
vbox->addWidget(groupBox1);
- groupBox1->setGeometry( QRect( 20, 40, 551, 391 ) );
+ groupBox1->setGeometry( TQRect( 20, 40, 551, 391 ) );
- QLabel *pixmapLabel1 = new QLabel( groupBox1, "pixmapLabel1" );
- pixmapLabel1->setGeometry( QRect( 60, 110, 140, 140 ) );
+ TQLabel *pixmapLabel1 = new TQLabel( groupBox1, "pixmapLabel1" );
+ pixmapLabel1->setGeometry( TQRect( 60, 110, 140, 140 ) );
pixmapLabel1->setPixmap( image0 );
pixmapLabel1->setScaledContents( TRUE );
- QLabel *textLabel1_2 = new QLabel( "KlamAV \n(C) Robert Hogan <hoganrobert@klamav.sf.net>",groupBox1 );
- textLabel1_2->setGeometry( QRect( 230, 80, 421, 61 ) );
+ TQLabel *textLabel1_2 = new TQLabel( "KlamAV \n(C) Robert Hogan <hoganrobert@klamav.sf.net>",groupBox1 );
+ textLabel1_2->setGeometry( TQRect( 230, 80, 421, 61 ) );
- QLabel *textLabel1_3 = new QLabel( "http://klamav.sourceforge.net",groupBox1 );
- textLabel1_3->setGeometry( QRect( 230, 130, 221, 21 ) );
+ TQLabel *textLabel1_3 = new TQLabel( "http://klamav.sourceforge.net",groupBox1 );
+ textLabel1_3->setGeometry( TQRect( 230, 130, 221, 21 ) );
- QLabel *textLabel1 = new QLabel( "Translators:\nRussian, Vitaly Lipatov \n German, Marc Hansen",groupBox1 );
- textLabel1->setGeometry( QRect( 230, 150, 401, 61 ) );
+ TQLabel *textLabel1 = new TQLabel( "Translators:\nRussian, Vitaly Lipatov \n German, Marc Hansen",groupBox1 );
+ textLabel1->setGeometry( TQRect( 230, 150, 401, 61 ) );
- QLabel *textLabel1 = new QLabel( "ClamAV \n(C) Tomasz Kojm <tkojm@clamav.net>",groupBox1 );
- textLabel1->setGeometry( QRect( 230, 20, 401, 61 ) );
+ TQLabel *textLabel1 = new TQLabel( "ClamAV \n(C) Tomasz Kojm <tkojm@clamav.net>",groupBox1 );
+ textLabel1->setGeometry( TQRect( 230, 20, 401, 61 ) );
- QLabel *textLabel1_4 = new QLabel( "http://www.clamav.net",groupBox1 );
- textLabel1_4->setGeometry( QRect( 230, 250, 221, 21 ) );
+ TQLabel *textLabel1_4 = new TQLabel( "http://www.clamav.net",groupBox1 );
+ textLabel1_4->setGeometry( TQRect( 230, 250, 221, 21 ) );
pixmapLabel1->setPixmap( image0 );
pixmapLabel1->setScaledContents( TRUE );
*/
- //resize( QSize(600, 480).expandedTo(minimumSizeHint()) );
+ //resize( TQSize(600, 480).expandedTo(minimumSizeHint()) );
@@ -108,10 +108,10 @@ void Aboutklamav::slotOpenTabPlain(const KURL& url, bool background)
PageViewer* page = new PageViewer(this, "page");
//connect( m_part, SIGNAL(signalSettingsChanged()), page, SLOT(slotPaletteOrFontChanged()));
-/* connect( page, SIGNAL(setTabIcon(const QPixmap&)),
- this, SLOT(setTabIcon(const QPixmap&)));*/
- connect( page, SIGNAL(setWindowCaption (const QString &)),
- this, SLOT(slotTabCaption (const QString &)) );
+/* connect( page, SIGNAL(setTabIcon(const TQPixmap&)),
+ this, SLOT(setTabIcon(const TQPixmap&)));*/
+ connect( page, SIGNAL(setWindowCaption (const TQString &)),
+ this, SLOT(slotTabCaption (const TQString &)) );
connect( page, SIGNAL(urlClicked(const KURL &,bool)),
this, SLOT(slotOpenTabPlain(const KURL &,bool)) );
@@ -131,7 +131,7 @@ void Aboutklamav::slotOpenTabPlain(const KURL& url, bool background)
page->openURL(url);
}
-void Aboutklamav::slotTabCaption(const QString &caption)
+void Aboutklamav::slotTabCaption(const TQString &caption)
{
if (!caption.isEmpty())
{