Diffstat (limited to 'noncore/apps/opie-console/profilemanager.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/profilemanager.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/profilemanager.cpp b/noncore/apps/opie-console/profilemanager.cpp index c8a4db5..24256a5 100644 --- a/noncore/apps/opie-console/profilemanager.cpp +++ b/noncore/apps/opie-console/profilemanager.cpp | |||
@@ -10,24 +10,26 @@ ProfileManager::ProfileManager( MetaFactory* fact ) | |||
10 | { | 10 | { |
11 | 11 | ||
12 | } | 12 | } |
13 | ProfileManager::~ProfileManager() { | 13 | ProfileManager::~ProfileManager() { |
14 | 14 | ||
15 | } | 15 | } |
16 | void ProfileManager::load() { | 16 | void ProfileManager::load() { |
17 | m_list.clear(); | 17 | m_list.clear(); |
18 | qWarning("load"); | ||
18 | ProfileConfig conf("opie-console-profiles"); | 19 | ProfileConfig conf("opie-console-profiles"); |
19 | QStringList groups = conf.groups(); | 20 | QStringList groups = conf.groups(); |
20 | QStringList::Iterator it; | 21 | QStringList::Iterator it; |
21 | 22 | ||
22 | /* | 23 | /* |
23 | * for each profile | 24 | * for each profile |
24 | */ | 25 | */ |
25 | for ( it = groups.begin(); it != groups.end(); ++it ) { | 26 | for ( it = groups.begin(); it != groups.end(); ++it ) { |
27 | qWarning("group " + (*it) ); | ||
26 | conf.setGroup( (*it) ); | 28 | conf.setGroup( (*it) ); |
27 | Profile prof; | 29 | Profile prof; |
28 | prof.setName( conf.readEntry("name") ); | 30 | prof.setName( conf.readEntry("name") ); |
29 | prof.setIOLayer( conf.readEntry("iolayer") ); | 31 | prof.setIOLayer( conf.readEntry("iolayer") ); |
30 | prof.setBackground( conf.readNumEntry("back") ); | 32 | prof.setBackground( conf.readNumEntry("back") ); |
31 | prof.setForeground( conf.readNumEntry("fore") ); | 33 | prof.setForeground( conf.readNumEntry("fore") ); |
32 | prof.setTerminal( conf.readNumEntry("terminal") ); | 34 | prof.setTerminal( conf.readNumEntry("terminal") ); |
33 | prof.setConf( conf.items( (*it) ) ); | 35 | prof.setConf( conf.items( (*it) ) ); |