summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sysinfo/devicesinfo.cpp16
-rw-r--r--noncore/settings/sysinfo/devicesinfo.h16
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
#include <opie2/oinputsystem.h>
+#include <opie2/olayout.h>
#include <opie2/olistview.h>
@@ -39,5 +40,5 @@ using namespace Opie::Ui;
/* QT */
+#include <qlistview.h>
#include <qcombobox.h>
#include <qfile.h>
-#include <qlayout.h>
#include <qpushbutton.h>
@@ -50,3 +51,3 @@ using namespace Opie::Ui;
DevicesView::DevicesView( QWidget* parent, const char* name, WFlags fl )
- :OListView( parent, name, fl )
+ :Opie::Ui::OListView( parent, name, fl )
{
@@ -62,2 +63,4 @@ DevicesView::DevicesView( QWidget* parent, const char* name, WFlags fl )
( new UsbCategory( root ) )->populate();
+
+ connect( this, SIGNAL(selectionChanged(QListViewItem*)), this, SLOT(selectionChanged(QListViewItem*)) );
}
@@ -68,2 +71,9 @@ DevicesView::~DevicesView()
+
+void DevicesView::selectionChanged( QListViewItem* item )
+{
+ odebug << "DevicesView::selectionChanged to '" << item->text( 0 ) << "'" << oendl;
+}
+
+
//=================================================================================================
@@ -72,3 +82,3 @@ DevicesInfo::DevicesInfo( QWidget* parent, const char* name, WFlags fl )
{
- QVBoxLayout *layout = new QVBoxLayout( this );
+ OAutoBoxLayout *layout = new OAutoBoxLayout( this );
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
-#include <qwidget.h>
+/* OPIE */
#include <opie2/olistview.h>
-using namespace Opie::Ui;
+
+/* QT */
+#include <qwidget.h>
//=================================================================================================
-class DevicesView : public OListView
+class DevicesView : public Opie::Ui::OListView
{
@@ -42,2 +44,4 @@ public:
~DevicesView();
+public slots:
+ void selectionChanged( QListViewItem* item );
};
@@ -53,3 +57,3 @@ public:
private:
- OListView* view;
+ Opie::Ui::OListView* view;
@@ -59,3 +63,3 @@ private slots:
//=================================================================================================
-class Category : public OListViewItem
+class Category : public Opie::Ui::OListViewItem
{
@@ -69,3 +73,3 @@ public:
//=================================================================================================
-class Device : public OListViewItem
+class Device : public Opie::Ui::OListViewItem
{