author | mickeyl <mickeyl> | 2005-05-03 22:32:11 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-05-03 22:32:11 (UTC) |
commit | 1f412e211a7d5759d2ca51aa4e14c6292984f124 (patch) (unidiff) | |
tree | 6a6634d76f633cd5e8f3c6fcdf82f0604cdbad64 /noncore/settings | |
parent | 1daea169fcc0007727f0752251ca4546817999b7 (diff) | |
download | opie-1f412e211a7d5759d2ca51aa4e14c6292984f124.zip opie-1f412e211a7d5759d2ca51aa4e14c6292984f124.tar.gz opie-1f412e211a7d5759d2ca51aa4e14c6292984f124.tar.bz2 |
use OAutoBoxLayout for devices info
-rw-r--r-- | noncore/settings/sysinfo/devicesinfo.cpp | 16 | ||||
-rw-r--r-- | noncore/settings/sysinfo/devicesinfo.h | 16 |
2 files changed, 23 insertions, 9 deletions
diff --git a/noncore/settings/sysinfo/devicesinfo.cpp b/noncore/settings/sysinfo/devicesinfo.cpp index a1c9e0b..4bce65f 100644 --- a/noncore/settings/sysinfo/devicesinfo.cpp +++ b/noncore/settings/sysinfo/devicesinfo.cpp | |||
@@ -33,2 +33,3 @@ _;:, .> :=|. This program is free software; you can | |||
33 | #include <opie2/oinputsystem.h> | 33 | #include <opie2/oinputsystem.h> |
34 | #include <opie2/olayout.h> | ||
34 | #include <opie2/olistview.h> | 35 | #include <opie2/olistview.h> |
@@ -39,5 +40,5 @@ using namespace Opie::Ui; | |||
39 | /* QT */ | 40 | /* QT */ |
41 | #include <qlistview.h> | ||
40 | #include <qcombobox.h> | 42 | #include <qcombobox.h> |
41 | #include <qfile.h> | 43 | #include <qfile.h> |
42 | #include <qlayout.h> | ||
43 | #include <qpushbutton.h> | 44 | #include <qpushbutton.h> |
@@ -50,3 +51,3 @@ using namespace Opie::Ui; | |||
50 | DevicesView::DevicesView( QWidget* parent, const char* name, WFlags fl ) | 51 | DevicesView::DevicesView( QWidget* parent, const char* name, WFlags fl ) |
51 | :OListView( parent, name, fl ) | 52 | :Opie::Ui::OListView( parent, name, fl ) |
52 | { | 53 | { |
@@ -62,2 +63,4 @@ DevicesView::DevicesView( QWidget* parent, const char* name, WFlags fl ) | |||
62 | ( new UsbCategory( root ) )->populate(); | 63 | ( new UsbCategory( root ) )->populate(); |
64 | |||
65 | connect( this, SIGNAL(selectionChanged(QListViewItem*)), this, SLOT(selectionChanged(QListViewItem*)) ); | ||
63 | } | 66 | } |
@@ -68,2 +71,9 @@ DevicesView::~DevicesView() | |||
68 | 71 | ||
72 | |||
73 | void DevicesView::selectionChanged( QListViewItem* item ) | ||
74 | { | ||
75 | odebug << "DevicesView::selectionChanged to '" << item->text( 0 ) << "'" << oendl; | ||
76 | } | ||
77 | |||
78 | |||
69 | //================================================================================================= | 79 | //================================================================================================= |
@@ -72,3 +82,3 @@ DevicesInfo::DevicesInfo( QWidget* parent, const char* name, WFlags fl ) | |||
72 | { | 82 | { |
73 | QVBoxLayout *layout = new QVBoxLayout( this ); | 83 | OAutoBoxLayout *layout = new OAutoBoxLayout( this ); |
74 | layout->setSpacing( 4 ); | 84 | layout->setSpacing( 4 ); |
diff --git a/noncore/settings/sysinfo/devicesinfo.h b/noncore/settings/sysinfo/devicesinfo.h index 60ec999..262af31 100644 --- a/noncore/settings/sysinfo/devicesinfo.h +++ b/noncore/settings/sysinfo/devicesinfo.h | |||
@@ -31,8 +31,10 @@ _;:, .> :=|. This program is free software; you can | |||
31 | 31 | ||
32 | #include <qwidget.h> | 32 | /* OPIE */ |
33 | #include <opie2/olistview.h> | 33 | #include <opie2/olistview.h> |
34 | using namespace Opie::Ui; | 34 | |
35 | /* QT */ | ||
36 | #include <qwidget.h> | ||
35 | 37 | ||
36 | //================================================================================================= | 38 | //================================================================================================= |
37 | class DevicesView : public OListView | 39 | class DevicesView : public Opie::Ui::OListView |
38 | { | 40 | { |
@@ -42,2 +44,4 @@ public: | |||
42 | ~DevicesView(); | 44 | ~DevicesView(); |
45 | public slots: | ||
46 | void selectionChanged( QListViewItem* item ); | ||
43 | }; | 47 | }; |
@@ -53,3 +57,3 @@ public: | |||
53 | private: | 57 | private: |
54 | OListView* view; | 58 | Opie::Ui::OListView* view; |
55 | 59 | ||
@@ -59,3 +63,3 @@ private slots: | |||
59 | //================================================================================================= | 63 | //================================================================================================= |
60 | class Category : public OListViewItem | 64 | class Category : public Opie::Ui::OListViewItem |
61 | { | 65 | { |
@@ -69,3 +73,3 @@ public: | |||
69 | //================================================================================================= | 73 | //================================================================================================= |
70 | class Device : public OListViewItem | 74 | class Device : public Opie::Ui::OListViewItem |
71 | { | 75 | { |