summaryrefslogtreecommitdiff
authorjosef <josef>2002-10-07 16:03:17 (UTC)
committer josef <josef>2002-10-07 16:03:17 (UTC)
commitab5b7ba61580bfd3aa20297e67bd9fa6b6c90d41 (patch) (unidiff)
tree40ae13308e3509ffed90570b22ffbb000fe7cb10
parente68537563c9950654b9a771730f0fc3890803a54 (diff)
downloadopie-ab5b7ba61580bfd3aa20297e67bd9fa6b6c90d41.zip
opie-ab5b7ba61580bfd3aa20297e67bd9fa6b6c90d41.tar.gz
opie-ab5b7ba61580bfd3aa20297e67bd9fa6b6c90d41.tar.bz2
- forgot : QObject()
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/profileeditorplugins.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/profileeditorplugins.cpp b/noncore/apps/opie-console/profileeditorplugins.cpp
index a0bcab8..b63fa1c 100644
--- a/noncore/apps/opie-console/profileeditorplugins.cpp
+++ b/noncore/apps/opie-console/profileeditorplugins.cpp
@@ -1,50 +1,51 @@
1 1
2#include "profileeditorplugins.h" 2#include "profileeditorplugins.h"
3#include "profile.h" 3#include "profile.h"
4 4
5#include "qframe.h" 5#include "qframe.h"
6#include "qlabel.h" 6#include "qlabel.h"
7#include "qlineedit.h" 7#include "qlineedit.h"
8#include "qlayout.h" 8#include "qlayout.h"
9#include "qcombobox.h" 9#include "qcombobox.h"
10#include "qradiobutton.h" 10#include "qradiobutton.h"
11#include "qcheckbox.h" 11#include "qcheckbox.h"
12#include "qbuttongroup.h" 12#include "qbuttongroup.h"
13 13
14#include "io_serial.h" 14#include "io_serial.h"
15 15
16// Base class 16// Base class
17 17
18ProfileEditorPlugin::ProfileEditorPlugin(QWidget *parent, Profile *p) 18ProfileEditorPlugin::ProfileEditorPlugin(QWidget *parent, Profile *p)
19: QObject()
19{ 20{
20 m_parent = parent; 21 m_parent = parent;
21 m_profile = p; 22 m_profile = p;
22 m_widget = NULL; 23 m_widget = NULL;
23} 24}
24 25
25ProfileEditorPlugin::~ProfileEditorPlugin() 26ProfileEditorPlugin::~ProfileEditorPlugin()
26{ 27{
27 if(m_widget) delete m_widget; 28 if(m_widget) delete m_widget;
28} 29}
29 30
30QWidget *ProfileEditorPlugin::connection_widget() 31QWidget *ProfileEditorPlugin::connection_widget()
31{ 32{
32 QWidget *root; 33 QWidget *root;
33 QVBoxLayout *lroot; 34 QVBoxLayout *lroot;
34 35
35 root = new QWidget(); 36 root = new QWidget();
36 37
37 // Build GUI 38 // Build GUI
38 39
39 QComboBox *speed_box = new QComboBox(root); 40 QComboBox *speed_box = new QComboBox(root);
40 speed_box->insertItem("115200 baud", id_baud_115200); 41 speed_box->insertItem("115200 baud", id_baud_115200);
41 speed_box->insertItem("57600 baud", id_baud_57600); 42 speed_box->insertItem("57600 baud", id_baud_57600);
42 speed_box->insertItem("38400 baud", id_baud_38400); 43 speed_box->insertItem("38400 baud", id_baud_38400);
43 speed_box->insertItem("19200 baud", id_baud_19200); 44 speed_box->insertItem("19200 baud", id_baud_19200);
44 speed_box->insertItem("9600 baud", id_baud_9600); 45 speed_box->insertItem("9600 baud", id_baud_9600);
45 46
46 QLabel *speedlabel = new QLabel(QObject::tr("Speed"), root); 47 QLabel *speedlabel = new QLabel(QObject::tr("Speed"), root);
47 QLabel *flow = new QLabel(QObject::tr("Flow control"), root); 48 QLabel *flow = new QLabel(QObject::tr("Flow control"), root);
48 QLabel *parity = new QLabel(QObject::tr("Parity"), root); 49 QLabel *parity = new QLabel(QObject::tr("Parity"), root);
49 50
50 QButtonGroup *group_flow = new QButtonGroup(root); 51 QButtonGroup *group_flow = new QButtonGroup(root);