diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2021-01-30 21:51:14 +0200 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2021-01-30 21:51:14 +0200 |
commit | 3f7deb35938a8993ee835e05de9bc2cddfe05744 (patch) | |
tree | 4a448ab06fdfe70ea2619dfc270c2083ccfe8ea0 /src/sigtool.cpp | |
parent | 3ee9f1b4a8f6bde34ce4482d4eb81933a89c3288 (diff) | |
download | klamav-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/sigtool.cpp')
-rw-r--r-- | src/sigtool.cpp | 15 |
1 files changed, 8 insertions, 7 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 ); } |