From cbf067eac1f1f2077ae06b99698df674330f4313 Mon Sep 17 00:00:00 2001 From: Mavridis Philippe Date: Sat, 30 Jan 2021 18:27:00 +0200 Subject: 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 --- src/firstrunwizard.ui.h | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) (limited to 'src/firstrunwizard.ui.h') 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() // { -- cgit v1.2.1