Diffstat (limited to 'noncore/apps/opie-console/profilemanager.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/profilemanager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/apps/opie-console/profilemanager.cpp b/noncore/apps/opie-console/profilemanager.cpp index 113327c..e8bdb2e 100644 --- a/noncore/apps/opie-console/profilemanager.cpp +++ b/noncore/apps/opie-console/profilemanager.cpp | |||
@@ -69,28 +69,28 @@ Profile::ValueList ProfileManager::all()const { | |||
69 | * raise the dummy | 69 | * raise the dummy |
70 | * call session->connect(= | 70 | * call session->connect(= |
71 | * this way we only need to reparent | 71 | * this way we only need to reparent |
72 | * in TabWidget | 72 | * in TabWidget |
73 | */ | 73 | */ |
74 | Session* ProfileManager::fromProfile( const Profile& prof, QWidget* parent) { | 74 | Session* ProfileManager::fromProfile( const Profile& prof, QWidget* parent) { |
75 | Session* session = new Session(); | 75 | Session* session = new Session(); |
76 | session->setName( prof.name() ); | 76 | session->setName( prof.name() ); |
77 | /* translate the internal name to the external */ | 77 | /* translate the internal name to the external */ |
78 | session->setIOLayer(m_fact->newIOLayer( m_fact->external(prof.ioLayerName()) , | 78 | session->setIOLayer(m_fact->newIOLayer( m_fact->external(prof.ioLayerName()) , |
79 | prof) ); | 79 | prof) ); |
80 | 80 | ||
81 | QWidgetStack *stack = new QWidgetStack(parent); | 81 | QWidgetStack *stack = new QWidgetStack( parent ); |
82 | session->setWidgetStack( stack ); | 82 | session->setWidgetStack( stack ); |
83 | QWidget* dummy = new QWidget( stack ); | 83 | QWidget* dummy = new QWidget( stack ); |
84 | QHBoxLayout* lay = new QHBoxLayout(dummy ); | 84 | QHBoxLayout* lay = new QHBoxLayout( dummy ); |
85 | stack->addWidget( dummy, 0 ); | 85 | stack->addWidget( dummy, 0 ); |
86 | stack->raiseWidget( 0 ); | 86 | stack->raiseWidget( 0 ); |
87 | EmulationHandler* handler = new EmulationHandler(prof,dummy ); | 87 | EmulationHandler* handler = new EmulationHandler(prof,dummy ); |
88 | lay->addWidget( handler->widget() ); | 88 | lay->addWidget( handler->widget() ); |
89 | // WidgetLayer* wid = new EmulationWidget( prof, dummy ); | 89 | // WidgetLayer* wid = new EmulationWidget( prof, dummy ); |
90 | // lay->addWidget( wid ); | 90 | // lay->addWidget( wid ); |
91 | 91 | ||
92 | // session->setEmulationWidget( wid ); | 92 | // session->setEmulationWidget( wid ); |
93 | // session->setEmulationLayer( m_fact->newEmulationLayer( m_fact->external( prof.terminalName() ), | 93 | // session->setEmulationLayer( m_fact->newEmulationLayer( m_fact->external( prof.terminalName() ), |
94 | // wid ) ); | 94 | // wid ) ); |
95 | session->connect(); | 95 | session->connect(); |
96 | 96 | ||