summaryrefslogtreecommitdiffstats
path: root/src/firstrunwizard.ui.h
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2021-01-30 18:27:00 +0200
committerMavridis Philippe <mavridisf@gmail.com>2021-01-30 18:27:00 +0200
commitcbf067eac1f1f2077ae06b99698df674330f4313 (patch)
treeda1fe02d6b14e52aad6f9d1a85087c1fb9e2394c /src/firstrunwizard.ui.h
parent3a5d06908cf1044a0ef68580c12c1deedb8257f7 (diff)
downloadklamav-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.h26
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()
// {