-rw-r--r-- | noncore/apps/opie-console/profileeditordialog.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/profileeditordialog.cpp b/noncore/apps/opie-console/profileeditordialog.cpp index be23eff..3843943 100644 --- a/noncore/apps/opie-console/profileeditordialog.cpp +++ b/noncore/apps/opie-console/profileeditordialog.cpp | |||
@@ -94,48 +94,49 @@ void ProfileEditorDialog::initUI() | |||
94 | 94 | ||
95 | // layouting | 95 | // layouting |
96 | 96 | ||
97 | QVBoxLayout *vbox3 = new QVBoxLayout(tabprof, 2); | 97 | QVBoxLayout *vbox3 = new QVBoxLayout(tabprof, 2); |
98 | vbox3->add(name); | 98 | vbox3->add(name); |
99 | vbox3->add(name_line); | 99 | vbox3->add(name_line); |
100 | vbox3->addStretch(1); | 100 | vbox3->addStretch(1); |
101 | 101 | ||
102 | QVBoxLayout *vbox = new QVBoxLayout(tabconn, 2); | 102 | QVBoxLayout *vbox = new QVBoxLayout(tabconn, 2); |
103 | vbox->add(device); | 103 | vbox->add(device); |
104 | vbox->add(device_box); | 104 | vbox->add(device_box); |
105 | vbox->add(plugin_base); | 105 | vbox->add(plugin_base); |
106 | vbox->add(conn_widget); | 106 | vbox->add(conn_widget); |
107 | vbox->setStretchFactor(device, 1); | 107 | vbox->setStretchFactor(device, 1); |
108 | vbox->setStretchFactor(device_box, 1); | 108 | vbox->setStretchFactor(device_box, 1); |
109 | vbox->setStretchFactor(plugin_base, 1); | 109 | vbox->setStretchFactor(plugin_base, 1); |
110 | vbox->setStretchFactor(conn_widget, 7); | 110 | vbox->setStretchFactor(conn_widget, 7); |
111 | 111 | ||
112 | QVBoxLayout *vbox2 = new QVBoxLayout(tabterm, 2); | 112 | QVBoxLayout *vbox2 = new QVBoxLayout(tabterm, 2); |
113 | vbox2->add(term_widget); | 113 | vbox2->add(term_widget); |
114 | 114 | ||
115 | tabWidget->addTab(tabprof, "", QObject::tr("Profile")); | 115 | tabWidget->addTab(tabprof, "", QObject::tr("Profile")); |
116 | tabWidget->addTab(tabconn, "", QObject::tr("Connection")); | 116 | tabWidget->addTab(tabconn, "", QObject::tr("Connection")); |
117 | tabWidget->addTab(tabterm, "", QObject::tr("Terminal")); | 117 | tabWidget->addTab(tabterm, "", QObject::tr("Terminal")); |
118 | tabWidget->setCurrentTab( tabprof ); | ||
118 | 119 | ||
119 | // load profile values | 120 | // load profile values |
120 | name_line->setText(m_prof.name()); | 121 | name_line->setText(m_prof.name()); |
121 | for(int i = 0; i < device_box->count(); i++) | 122 | for(int i = 0; i < device_box->count(); i++) |
122 | { | 123 | { |
123 | device_box->setCurrentItem(i); | 124 | device_box->setCurrentItem(i); |
124 | if(prof_type() == m_prof.ioLayerName()) | 125 | if(prof_type() == m_prof.ioLayerName()) |
125 | { | 126 | { |
126 | slotDevice(i); | 127 | slotDevice(i); |
127 | break; | 128 | break; |
128 | } | 129 | } |
129 | } | 130 | } |
130 | 131 | ||
131 | // signals | 132 | // signals |
132 | connect(device_box, SIGNAL(activated(int)), SLOT(slotDevice(int))); | 133 | connect(device_box, SIGNAL(activated(int)), SLOT(slotDevice(int))); |
133 | } | 134 | } |
134 | 135 | ||
135 | ProfileEditorDialog::~ProfileEditorDialog() { | 136 | ProfileEditorDialog::~ProfileEditorDialog() { |
136 | 137 | ||
137 | } | 138 | } |
138 | 139 | ||
139 | void ProfileEditorDialog::slotDevice(int id) | 140 | void ProfileEditorDialog::slotDevice(int id) |
140 | { | 141 | { |
141 | delete plugin_plugin; | 142 | delete plugin_plugin; |