summaryrefslogtreecommitdiff
authorandyq <andyq>2002-10-10 11:53:44 (UTC)
committer andyq <andyq>2002-10-10 11:53:44 (UTC)
commit4ecb48197df25b84ce0d1e6ec95e78c2fa6d0699 (patch) (unidiff)
treee32369cb3acfb3e79f60d4c9f94adeaaaa3a4123
parentcb2b407e2f58a73447d706de7c374bf275a96992 (diff)
downloadopie-4ecb48197df25b84ce0d1e6ec95e78c2fa6d0699.zip
opie-4ecb48197df25b84ce0d1e6ec95e78c2fa6d0699.tar.gz
opie-4ecb48197df25b84ce0d1e6ec95e78c2fa6d0699.tar.bz2
Made output text box text slightly smalled so more output can be displayed
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/aqpkg/installdlgimpl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/noncore/settings/aqpkg/installdlgimpl.cpp b/noncore/settings/aqpkg/installdlgimpl.cpp
index 31be213..d4f751c 100644
--- a/noncore/settings/aqpkg/installdlgimpl.cpp
+++ b/noncore/settings/aqpkg/installdlgimpl.cpp
@@ -31,48 +31,52 @@
31#include "destination.h" 31#include "destination.h"
32#include "installdlgimpl.h" 32#include "installdlgimpl.h"
33#include "global.h" 33#include "global.h"
34 34
35InstallDlgImpl::InstallDlgImpl( vector<QString> &packageList, DataManager *dataManager, QWidget * parent, const char* name, bool modal, WFlags fl ) 35InstallDlgImpl::InstallDlgImpl( vector<QString> &packageList, DataManager *dataManager, QWidget * parent, const char* name, bool modal, WFlags fl )
36 : InstallDlg( parent, name, modal, fl ) 36 : InstallDlg( parent, name, modal, fl )
37{ 37{
38 dataMgr = dataManager; 38 dataMgr = dataManager;
39 vector<Destination>::iterator dit; 39 vector<Destination>::iterator dit;
40 40
41 QString defaultDest = "root"; 41 QString defaultDest = "root";
42#ifdef QWS 42#ifdef QWS
43 Config cfg( "aqpkg" ); 43 Config cfg( "aqpkg" );
44 cfg.setGroup( "settings" ); 44 cfg.setGroup( "settings" );
45 defaultDest = cfg.readEntry( "dest", "root" ); 45 defaultDest = cfg.readEntry( "dest", "root" );
46 46
47 // Grab flags - Turn MAKE_LINKS on by default (if no flags found) 47 // Grab flags - Turn MAKE_LINKS on by default (if no flags found)
48 flags = cfg.readNumEntry( "installFlags", MAKE_LINKS ); 48 flags = cfg.readNumEntry( "installFlags", MAKE_LINKS );
49#else 49#else
50 flags = 0; 50 flags = 0;
51#endif 51#endif
52 52
53 // Output text is read only 53 // Output text is read only
54 output->setReadOnly( true ); 54 output->setReadOnly( true );
55 QFont f( "helvetica" );
56 f.setPointSize( 10 );
57 output->setFont( f );
58
55 59
56 // setup destination data 60 // setup destination data
57 int defIndex = 0; 61 int defIndex = 0;
58 int i; 62 int i;
59 for ( i = 0 , dit = dataMgr->getDestinationList().begin() ; dit != dataMgr->getDestinationList().end() ; ++dit, ++i ) 63 for ( i = 0 , dit = dataMgr->getDestinationList().begin() ; dit != dataMgr->getDestinationList().end() ; ++dit, ++i )
60 { 64 {
61 destination->insertItem( dit->getDestinationName() ); 65 destination->insertItem( dit->getDestinationName() );
62 if ( dit->getDestinationName() == defaultDest ) 66 if ( dit->getDestinationName() == defaultDest )
63 defIndex = i; 67 defIndex = i;
64 } 68 }
65 69
66 destination->setCurrentItem( defIndex ); 70 destination->setCurrentItem( defIndex );
67 71
68 vector<QString>::iterator it; 72 vector<QString>::iterator it;
69 // setup package data 73 // setup package data
70 QString remove = "Remove\n"; 74 QString remove = "Remove\n";
71 QString install = "\nInstall\n"; 75 QString install = "\nInstall\n";
72 QString upgrade = "\nUpgrade\n"; 76 QString upgrade = "\nUpgrade\n";
73 for ( it = packageList.begin() ; it != packageList.end() ; ++it ) 77 for ( it = packageList.begin() ; it != packageList.end() ; ++it )
74 { 78 {
75 QString name = *it; 79 QString name = *it;
76 if ( name.startsWith( "I" ) ) 80 if ( name.startsWith( "I" ) )
77 { 81 {
78 installList.push_back( name.mid(1) ); 82 installList.push_back( name.mid(1) );