summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2021-01-30 21:51:14 +0200
committerMavridis Philippe <mavridisf@gmail.com>2021-01-30 21:51:14 +0200
commit3f7deb35938a8993ee835e05de9bc2cddfe05744 (patch)
tree4a448ab06fdfe70ea2619dfc270c2083ccfe8ea0 /src
parent3ee9f1b4a8f6bde34ce4482d4eb81933a89c3288 (diff)
downloadklamav-3f7deb35938a8993ee835e05de9bc2cddfe05744.tar.gz
klamav-3f7deb35938a8993ee835e05de9bc2cddfe05744.zip
SigTool: Replaced TQLabel with TQTextBrowser for the instructions area.
This gives us a scrollable widget better suited for long text. Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/sigtool.cpp15
-rw-r--r--src/sigtool.h3
2 files changed, 10 insertions, 8 deletions
diff --git a/src/sigtool.cpp b/src/sigtool.cpp
index 5c93a7e..3568503 100644
--- a/src/sigtool.cpp
+++ b/src/sigtool.cpp
@@ -14,6 +14,7 @@
#include <kurlrequester.h>
#include <tqlayout.h>
#include <tdemessagebox.h>
+#include <tqtextbrowser.h>
const char *mail_clients[] = {
"KMail",
@@ -98,10 +99,10 @@ Sigtool::Sigtool(TQWidget *parent, const char *name)
notes_layout->addMultiCellWidget(notes_hlp, 1,1, 0,1);
TQHBoxLayout *notes_box = new TQHBoxLayout(notes_hlp, KDialog::spacingHint() );
- notes_label = new TQLabel(text, notes_hlp);
- notes_label->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter ) );
- //notes_label->setFixedSize(notes_label->sizeHint());
- notes_box->addWidget(notes_label);
+ notes_browser = new TQTextBrowser(notes_hlp);
+ notes_browser->setText(text);
+ notes_browser->setAlignment( TQt::AlignCenter );
+ notes_box->addWidget(notes_browser);
@@ -205,7 +206,7 @@ void Sigtool::manualKMail(){
const 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 );
+ notes_browser->setText( text );
}
@@ -214,8 +215,8 @@ void Sigtool::manualEvolution(){
const 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 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( TQLabel::WordBreak | TQLabel::AlignVCenter ) );
+ notes_browser->setText( text );
+ notes_browser->setAlignment( TQt::AlignCenter );
}
diff --git a/src/sigtool.h b/src/sigtool.h
index d76cf50..f1a6696 100644
--- a/src/sigtool.h
+++ b/src/sigtool.h
@@ -23,6 +23,7 @@ class TQCheckBox;
class TQListBox;
class TQPushButton;
class TQLabel;
+class TQTextBrowser;
class TDEProcess;
class TDEConfig;
class KURLRequester;
@@ -131,7 +132,7 @@ private:
TQStringList lastSearchItems;
TQStringList lastSearchPaths;
TQComboBox *check_combo;
- TQLabel *notes_label;
+ TQTextBrowser *notes_browser;
};
#endif // _Sigtool_H_