diff options
author | Mavridis Philippe <mavridisf@gmail.com> | 2021-01-30 18:27:00 +0200 |
---|---|---|
committer | Mavridis Philippe <mavridisf@gmail.com> | 2021-01-30 18:27:00 +0200 |
commit | cbf067eac1f1f2077ae06b99698df674330f4313 (patch) | |
tree | da1fe02d6b14e52aad6f9d1a85087c1fb9e2394c /src/firstrunwizard.ui.h | |
parent | 3a5d06908cf1044a0ef68580c12c1deedb8257f7 (diff) | |
download | klamav-cbf067eac1f1f2077ae06b99698df674330f4313.tar.gz klamav-cbf067eac1f1f2077ae06b99698df674330f4313.zip |
Reworked First-Run Wizard.
It was made more compact because it doesn't make sense to have a
full-blown two-page wizard for setting up two paths and showing a
checkbox.
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'src/firstrunwizard.ui.h')
-rw-r--r-- | src/firstrunwizard.ui.h | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/src/firstrunwizard.ui.h b/src/firstrunwizard.ui.h index cb62580..f609bf5 100644 --- a/src/firstrunwizard.ui.h +++ b/src/firstrunwizard.ui.h @@ -28,9 +28,10 @@ void FirstRunWizard::init() { - //aesthetics - cancelButton()->setFixedSize( cancelButton()->sizeHint() ); + // remove unwanted buttons + cancelButton()->hide(); helpButton()->hide(); + backButton()->hide(); TQString homepath = getenv("HOME"); databasepath = homepath + "/.klamav/database"; @@ -39,29 +40,10 @@ FirstRunWizard::init() quarantinepath = homepath + "/.klamav/quarantine"; QuarantineLocation->setURL(quarantinepath); - preview->setPixmap( TQPixmap(locate("data", "klamav/about/klam.png")) ); - - -// picture1->setPixmap( getJPG( "amarok_rocks" ) ); -// picture4->setPixmap( *picture1->pixmap() ); - - - - setFinishEnabled ( WizardPage_1, true ); + setFinishEnabled ( WizardPage, true ); } -void -FirstRunWizard::showPage( TQWidget *w ) //virtual -{ - TQWizard::showPage( w ); - - - - cancelButton()->setText( w == WizardPage ? i18n("&Skip") : i18n("&Cancel") ); -} - - // void // FirstRunWizard::destroy() // { |