Diffstat (limited to 'noncore/settings/aqpkg/instoptionsimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/aqpkg/instoptionsimpl.cpp | 37 |
1 files changed, 33 insertions, 4 deletions
diff --git a/noncore/settings/aqpkg/instoptionsimpl.cpp b/noncore/settings/aqpkg/instoptionsimpl.cpp index 3a37eec..47b250d 100644 --- a/noncore/settings/aqpkg/instoptionsimpl.cpp +++ b/noncore/settings/aqpkg/instoptionsimpl.cpp | |||
@@ -20,14 +20,43 @@ | |||
20 | #endif | 20 | #endif |
21 | 21 | ||
22 | #include <qdialog.h> | ||
23 | #include <qcheckbox.h> | 22 | #include <qcheckbox.h> |
23 | #include <qgroupbox.h> | ||
24 | #include <qlayout.h> | ||
24 | 25 | ||
26 | #include "global.h" | ||
25 | #include "instoptionsimpl.h" | 27 | #include "instoptionsimpl.h" |
26 | #include "ipkg.h" | 28 | #include "ipkg.h" |
27 | #include "global.h" | ||
28 | 29 | ||
29 | InstallOptionsDlgImpl::InstallOptionsDlgImpl( int flags, QWidget * parent, const char* name, bool modal, WFlags fl ) | 30 | InstallOptionsDlgImpl::InstallOptionsDlgImpl( int flags, QWidget * parent, const char* name, bool modal, WFlags fl ) |
30 | : InstallOptionsDlg( parent, name, modal, fl ) | 31 | : QDialog( parent, name, modal, fl ) |
31 | { | 32 | { |
33 | setCaption( tr( "Options" ) ); | ||
34 | |||
35 | QVBoxLayout *layout = new QVBoxLayout( this ); | ||
36 | layout->setMargin( 2 ); | ||
37 | layout->setSpacing( 4 ); | ||
38 | |||
39 | QGroupBox *grpbox = new QGroupBox( 0, Qt::Vertical, tr( "Options" ), this ); | ||
40 | grpbox->layout()->setSpacing( 2 ); | ||
41 | grpbox->layout()->setMargin( 4 ); | ||
42 | layout->addWidget( grpbox ); | ||
43 | |||
44 | QVBoxLayout *grplayout = new QVBoxLayout( grpbox->layout() ); | ||
45 | |||
46 | forceDepends = new QCheckBox( tr( "Force Depends" ), grpbox ); | ||
47 | grplayout->addWidget( forceDepends ); | ||
48 | |||
49 | forceReinstall = new QCheckBox( tr( "Force Reinstall" ), grpbox ); | ||
50 | grplayout->addWidget( forceReinstall ); | ||
51 | |||
52 | forceRemove = new QCheckBox( tr( "Force Remove" ), grpbox ); | ||
53 | grplayout->addWidget( forceRemove ); | ||
54 | |||
55 | forceOverwrite = new QCheckBox( tr( "Force Overwrite" ), grpbox ); | ||
56 | grplayout->addWidget( forceOverwrite ); | ||
57 | |||
58 | verboseWget = new QCheckBox( tr( "Verbose WGet" ), grpbox ); | ||
59 | grplayout->addWidget( verboseWget ); | ||
60 | |||
32 | if ( flags & FORCE_DEPENDS ) | 61 | if ( flags & FORCE_DEPENDS ) |
33 | forceDepends->setChecked( true ); | 62 | forceDepends->setChecked( true ); |
@@ -68,3 +97,3 @@ int InstallOptionsDlgImpl :: getFlags() | |||
68 | 97 | ||
69 | return flags; | 98 | return flags; |
70 | } \ No newline at end of file | 99 | } |