Diffstat (limited to 'noncore/apps/opie-console/profilemanager.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/profilemanager.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/noncore/apps/opie-console/profilemanager.cpp b/noncore/apps/opie-console/profilemanager.cpp index dcf3cbd..78751e7 100644 --- a/noncore/apps/opie-console/profilemanager.cpp +++ b/noncore/apps/opie-console/profilemanager.cpp | |||
@@ -4,13 +4,14 @@ | |||
4 | #include <qfile.h> | 4 | #include <qfile.h> |
5 | #include <qlayout.h> | 5 | #include <qlayout.h> |
6 | #include <qwidgetstack.h> | 6 | #include <qwidgetstack.h> |
7 | 7 | ||
8 | #include <qpe/config.h> | 8 | #include <qpe/config.h> |
9 | 9 | ||
10 | #include "widget.h" | 10 | #include "widget_layer.h" |
11 | #include "emulation_widget.h" | ||
11 | #include "metafactory.h" | 12 | #include "metafactory.h" |
12 | #include "profileconfig.h" | 13 | #include "profileconfig.h" |
13 | #include "profilemanager.h" | 14 | #include "profilemanager.h" |
14 | 15 | ||
15 | ProfileManager::ProfileManager( MetaFactory* fact ) | 16 | ProfileManager::ProfileManager( MetaFactory* fact ) |
16 | : m_fact( fact ) | 17 | : m_fact( fact ) |
@@ -77,13 +78,13 @@ Session* ProfileManager::fromProfile( const Profile& prof, QWidget* parent) { | |||
77 | QWidgetStack *stack = new QWidgetStack(parent); | 78 | QWidgetStack *stack = new QWidgetStack(parent); |
78 | session->setWidgetStack( stack ); | 79 | session->setWidgetStack( stack ); |
79 | QWidget* dummy = new QWidget(stack ); | 80 | QWidget* dummy = new QWidget(stack ); |
80 | QHBoxLayout* lay = new QHBoxLayout(dummy ); | 81 | QHBoxLayout* lay = new QHBoxLayout(dummy ); |
81 | stack->addWidget( dummy, 0 ); | 82 | stack->addWidget( dummy, 0 ); |
82 | stack->raiseWidget( 0 ); | 83 | stack->raiseWidget( 0 ); |
83 | Widget* wid = new Widget(dummy ); | 84 | WidgetLayer* wid = new EmulationWidget( prof, dummy ); |
84 | lay->addWidget( wid ); | 85 | lay->addWidget( wid ); |
85 | 86 | ||
86 | session->setEmulationWidget( wid ); | 87 | session->setEmulationWidget( wid ); |
87 | session->setEmulationLayer( m_fact->newEmulationLayer( m_fact->external( prof.terminalName() ), | 88 | session->setEmulationLayer( m_fact->newEmulationLayer( m_fact->external( prof.terminalName() ), |
88 | wid ) ); | 89 | wid ) ); |
89 | session->connect(); | 90 | session->connect(); |