author | mickeyl <mickeyl> | 2005-05-03 22:32:11 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-05-03 22:32:11 (UTC) |
commit | 1f412e211a7d5759d2ca51aa4e14c6292984f124 (patch) (side-by-side diff) | |
tree | 6a6634d76f633cd5e8f3c6fcdf82f0604cdbad64 /noncore/settings/sysinfo/devicesinfo.h | |
parent | 1daea169fcc0007727f0752251ca4546817999b7 (diff) | |
download | opie-1f412e211a7d5759d2ca51aa4e14c6292984f124.zip opie-1f412e211a7d5759d2ca51aa4e14c6292984f124.tar.gz opie-1f412e211a7d5759d2ca51aa4e14c6292984f124.tar.bz2 |
use OAutoBoxLayout for devices info
Diffstat (limited to 'noncore/settings/sysinfo/devicesinfo.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/sysinfo/devicesinfo.h | 16 |
1 files changed, 10 insertions, 6 deletions
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 @@ -8,87 +8,91 @@ _;:, .> :=|. This program is free software; you can :`=1 )Y*s>-.-- : the terms of the GNU General Public .="- .-=="i, .._ License as published by the Free Software - . .-<_> .<> Foundation; version 2 of the License. ._= =} : .%`+i> _;_. .i_,=:_. -<s. This program is distributed in the hope that + . -:. = it will be useful, but WITHOUT ANY WARRANTY; : .. .:, . . . without even the implied warranty of =_ + =;=|` MERCHANTABILITY or FITNESS FOR A _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU ..}^=.= = ; General Public License for more ++= -. .` .: details. : = ...= . :.=- -. .:....=;==+<; You should have received a copy of the GNU -_. . . )=. = General Public License along with -- :-=` this application; see the file LICENSE.GPL. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #ifndef DEVICESINFO_H #define DEVICESINFO_H -#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 { Q_OBJECT public: DevicesView( QWidget* parent = 0, const char* name = 0, WFlags f = 0 ); ~DevicesView(); +public slots: + void selectionChanged( QListViewItem* item ); }; //================================================================================================= class DevicesInfo : public QWidget { Q_OBJECT public: DevicesInfo( QWidget *parent = 0, const char *name = 0, WFlags f = 0 ); ~DevicesInfo(); private: - OListView* view; + Opie::Ui::OListView* view; private slots: }; //================================================================================================= -class Category : public OListViewItem +class Category : public Opie::Ui::OListViewItem { public: Category( DevicesView* parent, const QString& name ); virtual ~Category(); virtual void populate() = 0; }; //================================================================================================= -class Device : public OListViewItem +class Device : public Opie::Ui::OListViewItem { public: Device( Category* parent, const QString& name ); ~Device(); }; //================================================================================================= class CpuCategory : public Category { public: CpuCategory( DevicesView* parent ); virtual ~CpuCategory(); virtual void populate(); }; //================================================================================================= class InputCategory : public Category { public: InputCategory( DevicesView* parent ); virtual ~InputCategory(); virtual void populate(); |