author | josef <josef> | 2002-10-06 18:34:28 (UTC) |
---|---|---|
committer | josef <josef> | 2002-10-06 18:34:28 (UTC) |
commit | aa8332baeebf7056d81fc245399477c7feaa1235 (patch) (side-by-side diff) | |
tree | 4b23429bcad955d02df24b40144cf5b7b6ffe0f3 /noncore/apps/opie-console/metafactory.cpp | |
parent | 6da8cac26f1d610d458c91bc2daad018cf9cf887 (diff) | |
download | opie-aa8332baeebf7056d81fc245399477c7feaa1235.zip opie-aa8332baeebf7056d81fc245399477c7feaa1235.tar.gz opie-aa8332baeebf7056d81fc245399477c7feaa1235.tar.bz2 |
- more factorization (is nearly complete now ;)
- move config plugins into separate file (3 classes and virtual superclass)
- first stub for save function
Diffstat (limited to 'noncore/apps/opie-console/metafactory.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/metafactory.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/noncore/apps/opie-console/metafactory.cpp b/noncore/apps/opie-console/metafactory.cpp index ea7f739..c5e614d 100644 --- a/noncore/apps/opie-console/metafactory.cpp +++ b/noncore/apps/opie-console/metafactory.cpp @@ -61,12 +61,12 @@ IOLayer* MetaFactory::newIOLayer( const QString& str,const Profile& prof ) { } -QWidget *MetaFactory::newConfigWidget ( const QString& str, QWidget* parent) { - QWidget *w = NULL; +ProfileEditorPlugin *MetaFactory::newConfigPlugin ( const QString& str, QWidget *parent, const Profile& prof) { + ProfileEditorPlugin *p = NULL; configWidget c; c = m_confFact[str]; - if(c) w = c(parent); + if(c) p = c(parent, prof); - return w; + return p; } |