summaryrefslogtreecommitdiff
path: root/noncore/settings/aqpkg/instoptionsimpl.cpp
Unidiff
Diffstat (limited to 'noncore/settings/aqpkg/instoptionsimpl.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/aqpkg/instoptionsimpl.cpp35
1 files changed, 32 insertions, 3 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
@@ -19,16 +19,45 @@
19#include <qpe/config.h> 19#include <qpe/config.h>
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
29InstallOptionsDlgImpl::InstallOptionsDlgImpl( int flags, QWidget * parent, const char* name, bool modal, WFlags fl ) 30InstallOptionsDlgImpl::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 );
34 if ( flags & FORCE_REINSTALL ) 63 if ( flags & FORCE_REINSTALL )