author | josef <josef> | 2002-10-07 14:25:13 (UTC) |
---|---|---|
committer | josef <josef> | 2002-10-07 14:25:13 (UTC) |
commit | add436706a938a71a487db019dcd6ff236207bfc (patch) (unidiff) | |
tree | e774574de70c95f872ba190a502846c0f0bf5130 /noncore/apps/opie-console/profileeditordialog.cpp | |
parent | fa8df8b9d316f15bc089df5bde7eafb2ef10b36d (diff) | |
download | opie-add436706a938a71a487db019dcd6ff236207bfc.zip opie-add436706a938a71a487db019dcd6ff236207bfc.tar.gz opie-add436706a938a71a487db019dcd6ff236207bfc.tar.bz2 |
- first cleanups
- basic load/save works now, but none of the standard widget options is
remembered?
Diffstat (limited to 'noncore/apps/opie-console/profileeditordialog.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/profileeditordialog.cpp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/noncore/apps/opie-console/profileeditordialog.cpp b/noncore/apps/opie-console/profileeditordialog.cpp index d98e589..8e63429 100644 --- a/noncore/apps/opie-console/profileeditordialog.cpp +++ b/noncore/apps/opie-console/profileeditordialog.cpp | |||
@@ -73,7 +73,7 @@ void ProfileEditorDialog::initUI() | |||
73 | plugin_base = new QWidget(tabconn); | 73 | plugin_base = new QWidget(tabconn); |
74 | plugin_layout = new QHBoxLayout(plugin_base, 0); | 74 | plugin_layout = new QHBoxLayout(plugin_base, 0); |
75 | 75 | ||
76 | plugin_plugin = m_fact->newConfigPlugin("serial", plugin_base, m_prof); | 76 | plugin_plugin = m_fact->newConfigPlugin("serial", plugin_base, &m_prof); |
77 | plugin_layout->add(plugin_plugin->widget()); | 77 | plugin_layout->add(plugin_plugin->widget()); |
78 | 78 | ||
79 | // connection tab, general part | 79 | // connection tab, general part |
@@ -112,6 +112,15 @@ void ProfileEditorDialog::initUI() | |||
112 | // load profile values | 112 | // load profile values |
113 | 113 | ||
114 | name_line->setText(m_prof.name()); | 114 | name_line->setText(m_prof.name()); |
115 | for(int i = 0; i < device_box->count(); i++) | ||
116 | { | ||
117 | device_box->setCurrentItem(i); | ||
118 | if(prof_type() == m_prof.ioLayerName()) | ||
119 | { | ||
120 | slotDevice(i); | ||
121 | break; | ||
122 | } | ||
123 | } | ||
115 | 124 | ||
116 | // signals | 125 | // signals |
117 | 126 | ||
@@ -127,7 +136,7 @@ void ProfileEditorDialog::slotDevice(int id) | |||
127 | { | 136 | { |
128 | delete plugin_plugin; | 137 | delete plugin_plugin; |
129 | 138 | ||
130 | plugin_plugin = m_fact->newConfigPlugin(prof_type(), plugin_base, m_prof); | 139 | plugin_plugin = m_fact->newConfigPlugin(prof_type(), plugin_base, &m_prof); |
131 | plugin_layout->add(plugin_plugin->widget()); | 140 | plugin_layout->add(plugin_plugin->widget()); |
132 | 141 | ||
133 | // Reload profile associated to device, including e.g. conn_device() | 142 | // Reload profile associated to device, including e.g. conn_device() |
@@ -152,6 +161,7 @@ void ProfileEditorDialog::accept() | |||
152 | 161 | ||
153 | // Save general values | 162 | // Save general values |
154 | m_prof.setName(prof_name()); | 163 | m_prof.setName(prof_name()); |
164 | m_prof.setIOLayer(prof_type()); | ||
155 | 165 | ||
156 | QDialog::accept(); | 166 | QDialog::accept(); |
157 | } | 167 | } |