summaryrefslogtreecommitdiffstats
path: root/src/sigtool.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/sigtool.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/sigtool.cpp')
-rw-r--r--src/sigtool.cpp74
1 files changed, 37 insertions, 37 deletions
diff --git a/src/sigtool.cpp b/src/sigtool.cpp
index 77c92a0..779047b 100644
--- a/src/sigtool.cpp
+++ b/src/sigtool.cpp
@@ -12,7 +12,7 @@
#include <kurlrequester.h>
-#include <qlayout.h>
+#include <tqlayout.h>
#include <kmessagebox.h>
const char *mail_clients[] = {
@@ -21,57 +21,57 @@ const char *mail_clients[] = {
0
};
-Sigtool::Sigtool(QWidget *parent, const char *name)
- : QWidget(parent, name)
+Sigtool::Sigtool(TQWidget *parent, const char *name)
+ : TQWidget(parent, name)
{
- QVBoxLayout *vbox = new QVBoxLayout(this, KDialog::marginHint(),
+ TQVBoxLayout *vbox = new TQVBoxLayout(this, KDialog::marginHint(),
KDialog::spacingHint(), "vbox");
//KMessageBox::information (this,nooffilters);
- QGroupBox *mail_group = new QGroupBox(i18n("Email Client"), this);
+ TQGroupBox *mail_group = new TQGroupBox(i18n("Email Client"), this);
vbox->addWidget(mail_group);
- QGridLayout *mail_layout = new QGridLayout( mail_group, 2, 6, KDialog::spacingHint(),
+ TQGridLayout *mail_layout = new TQGridLayout( mail_group, 2, 6, KDialog::spacingHint(),
KDialog::spacingHint(), "mail_layout");
mail_layout->addRowSpacing(0, mail_group->fontMetrics().height());
mail_layout->setColStretch(1, 1);
mail_layout->setColStretch(2, 1);
//IP Address & Port
- QWidget *mail_hlp = new QWidget( mail_group );
+ TQWidget *mail_hlp = new TQWidget( mail_group );
mail_layout->addMultiCellWidget(mail_hlp, 1,2, 1,6);
- QGridLayout *mail_dir_layout = new QGridLayout(mail_hlp,2,6, KDialog::spacingHint() );
+ TQGridLayout *mail_dir_layout = new TQGridLayout(mail_hlp,2,6, KDialog::spacingHint() );
- QLabel *mail_dir_label = new QLabel(i18n("Choose your email client:"), mail_hlp);
- mail_dir_label->setAlignment(Qt::AlignRight);
+ TQLabel *mail_dir_label = new TQLabel(i18n("Choose your email client:"), mail_hlp);
+ mail_dir_label->setAlignment(TQt::AlignRight);
//mail_dir_label->setFixedSize(mail_dir_label->sizeHint());
mail_dir_layout->addWidget(mail_dir_label,0,2);
- check_combo = new QComboBox(false, mail_hlp);
+ check_combo = new TQComboBox(false, mail_hlp);
check_combo->insertStrList(mail_clients);
check_combo->adjustSize();
//check_combo->setFixedSize(check_combo->size());
mail_dir_layout->addWidget(check_combo,0,3);
//User & Pass
-// QWidget *mail_hlp2 = new QWidget( mail_group );
+// TQWidget *mail_hlp2 = new TQWidget( mail_group );
// mail_layout->addMultiCellWidget(mail_hlp2, 2,2, 1,2);
-// QHBoxLayout *mail_userpass_layout = new QHBoxLayout(mail_hlp2, KDialog::spacingHint() );
+// TQHBoxLayout *mail_userpass_layout = new TQHBoxLayout(mail_hlp2, KDialog::spacingHint() );
- search_button = new QPushButton (i18n( "Configure Automatically" ), mail_hlp);
+ search_button = new TQPushButton (i18n( "Configure Automatically" ), mail_hlp);
mail_dir_layout->addWidget(search_button,1,2);
//search_button->setFixedSize(search_button->sizeHint());
- manual_button = new QPushButton (i18n( "Tell me how to do it" ), mail_hlp);
+ manual_button = new TQPushButton (i18n( "Tell me how to do it" ), mail_hlp);
mail_dir_layout->addWidget(manual_button,1,3);
//manual_button->setFixedSize(manual_button->sizeHint());
-// KButtonBox *actionbox = new KButtonBox(mail_hlp, Qt::Horizontal);
+// KButtonBox *actionbox = new KButtonBox(mail_hlp, TQt::Horizontal);
// mail_userpass_layout->addWidget(actionbox);
// actionbox->addStretch();
// search_button = actionbox->addButton(i18n("&Configure Automatically"));
@@ -81,25 +81,25 @@ Sigtool::Sigtool(QWidget *parent, const char *name)
- QString text = i18n( "This will help you configure your email client to scan incoming and outgoing mail with KlamAV. Not all mail clients are fully supported yet. Infected mail is clearly marked as such and is wrapped in another email from KlamAV telling you the name of the virus and other relevant details." );
+ TQString text = i18n( "This will help you configure your email client to scan incoming and outgoing mail with KlamAV. Not all mail clients are fully supported yet. Infected mail is clearly marked as such and is wrapped in another email from KlamAV telling you the name of the virus and other relevant details." );
- QGroupBox *Notes = new QGroupBox(i18n("Notes"), this);
+ TQGroupBox *Notes = new TQGroupBox(i18n("Notes"), this);
vbox->addWidget(Notes);
- QGridLayout *notes_layout = new QGridLayout( Notes, 5, 2, KDialog::spacingHint(),
+ TQGridLayout *notes_layout = new TQGridLayout( Notes, 5, 2, KDialog::spacingHint(),
KDialog::spacingHint(), "notes_layout");
notes_layout->addRowSpacing(0, Notes->fontMetrics().height());
notes_layout->setColStretch(0, 1);
notes_layout->setColStretch(1, 1);
- QWidget *notes_hlp = new QWidget( Notes );
+ TQWidget *notes_hlp = new TQWidget( Notes );
notes_layout->addMultiCellWidget(notes_hlp, 1,1, 0,1);
- QHBoxLayout *notes_box = new QHBoxLayout(notes_hlp, KDialog::spacingHint() );
+ TQHBoxLayout *notes_box = new TQHBoxLayout(notes_hlp, KDialog::spacingHint() );
- notes_label = new QLabel(i18n(text), notes_hlp);
- notes_label->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter ) );
+ notes_label = new TQLabel(i18n(text), notes_hlp);
+ notes_label->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter ) );
//notes_label->setFixedSize(notes_label->sizeHint());
notes_box->addWidget(notes_label);
@@ -112,7 +112,7 @@ Sigtool::Sigtool(QWidget *parent, const char *name)
SLOT(configureKMail()) );
connect( manual_button, SIGNAL(clicked()),
SLOT(manual()) );
- connect( check_combo, SIGNAL(activated(const QString &)),
+ connect( check_combo, SIGNAL(activated(const TQString &)),
SLOT(dobuttons()) );
@@ -129,25 +129,25 @@ void Sigtool::configureKMail(){
KMessageBox::information (this,i18n( "Please ensure KMail is not open before we proceed.") );
- QString DatabaseLocation;
+ TQString DatabaseLocation;
config = KGlobal::config();
config->setGroup("Freshklam");
- QStringList lastDownloadPaths = config->readListEntry("lastDownloadPaths");
- for (QStringList::Iterator it = lastDownloadPaths.begin(); it == lastDownloadPaths.begin() ; it++){
+ TQStringList lastDownloadPaths = config->readListEntry("lastDownloadPaths");
+ for (TQStringList::Iterator it = lastDownloadPaths.begin(); it == lastDownloadPaths.begin() ; it++){
DatabaseLocation = *it;
}
config = new KConfig("kmailrc");
config->setGroup("General");
- QVariant nooffilters = config->readEntry("filters");
+ TQVariant nooffilters = config->readEntry("filters");
int numfilters = nooffilters.toInt();
nooffilters = numfilters;
for (int j=0; j != numfilters; j++ ){
- QVariant numb = j;
- QString filtername=QString("Filter #%1").arg(numb.toString());
+ TQVariant numb = j;
+ TQString filtername=TQString("Filter #%1").arg(numb.toString());
config->setGroup(filtername);
- QString binary = config->readEntry("action-args-0");
+ TQString binary = config->readEntry("action-args-0");
if (binary.find("klammail") != -1){
KMessageBox::information (this,i18n( "You're already set up! Sure you haven't already configured KMail for KlamAV scanning?") );
return;
@@ -155,13 +155,13 @@ void Sigtool::configureKMail(){
}
- QString filtername=QString("Filter #%1").arg(nooffilters.toString());
+ TQString filtername=TQString("Filter #%1").arg(nooffilters.toString());
config->setGroup(filtername);
config->writeEntry("ConfigureShortcut", "false");
config->writeEntry("Icon", "");
config->writeEntry("StopProcessingHere","false");
- config->writeEntry("action-args-0", QString("klammail -d %1").arg(DatabaseLocation));
+ config->writeEntry("action-args-0", TQString("klammail -d %1").arg(DatabaseLocation));
config->writeEntry("action-name-0","filter app");
config->writeEntry("actions","1");
config->writeEntry("apply-on","check-mail","manual-filtering");
@@ -174,7 +174,7 @@ void Sigtool::configureKMail(){
numfilters++;
nooffilters = numfilters;
- filtername=QString("Filter #%1").arg(nooffilters.toString());
+ filtername=TQString("Filter #%1").arg(nooffilters.toString());
config->setGroup(filtername);
config->writeEntry("ConfigureShortcut","false");
@@ -203,7 +203,7 @@ void Sigtool::configureKMail(){
void Sigtool::manualKMail(){
- QString text = i18n( "Mail scanning support is provided by a program called 'klammail'. This was installed automatically as part of the KlamAV installation. To use this program to scan your email as you send and receive it you need to set up a 'filter' in KMail to 'pipe' mail through klammail as it is coming in/going out. You should then set up a filter after this one to put any mail with the word 'virus-found' in the header into the quarantine folder of your choice. The mail will be clearly marked as infected and will tell you the name of the virus and who the mail is from." );
+ TQString text = i18n( "Mail scanning support is provided by a program called 'klammail'. This was installed automatically as part of the KlamAV installation. To use this program to scan your email as you send and receive it you need to set up a 'filter' in KMail to 'pipe' mail through klammail as it is coming in/going out. You should then set up a filter after this one to put any mail with the word 'virus-found' in the header into the quarantine folder of your choice. The mail will be clearly marked as infected and will tell you the name of the virus and who the mail is from." );
notes_label->setText( text );
@@ -212,10 +212,10 @@ void Sigtool::manualKMail(){
void Sigtool::manualXimian(){
- QString text = i18n( "Mail scanning support is provided by a program called 'klammail'. This was installed automatically as part of the KlamAV installation. To use this program to scan your email as you send and receive it you need to set up a 'filter' in Ximian Evolution to 'pipe' mail through klammail as it is coming in/going out. You should then set up a filter after this one to put any mail with the word 'virus-found' in the header into the quarantine folder of your choice. The mail will be clearly marked as infected and will tell you the name of the virus and who the mail is from." );
+ TQString text = i18n( "Mail scanning support is provided by a program called 'klammail'. This was installed automatically as part of the KlamAV installation. To use this program to scan your email as you send and receive it you need to set up a 'filter' in Ximian Evolution to 'pipe' mail through klammail as it is coming in/going out. You should then set up a filter after this one to put any mail with the word 'virus-found' in the header into the quarantine folder of your choice. The mail will be clearly marked as infected and will tell you the name of the virus and who the mail is from." );
notes_label->setText( text );
- notes_label->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter ) );
+ notes_label->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter ) );
}