summaryrefslogtreecommitdiff
path: root/noncore/settings/sysinfo/otabwidget.h
authordrw <drw>2002-08-11 22:12:54 (UTC)
committer drw <drw>2002-08-11 22:12:54 (UTC)
commit496ba37b34ef5847865e0e387443d7481b1487f0 (patch) (side-by-side diff)
tree60ec019d7d4539818743b6babd71300e22b1cbeb /noncore/settings/sysinfo/otabwidget.h
parente7af03e8257119824b53a63f581366b6e25f4ae5 (diff)
downloadopie-496ba37b34ef5847865e0e387443d7481b1487f0.zip
opie-496ba37b34ef5847865e0e387443d7481b1487f0.tar.gz
opie-496ba37b34ef5847865e0e387443d7481b1487f0.tar.bz2
OTabWidget updates
Diffstat (limited to 'noncore/settings/sysinfo/otabwidget.h') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sysinfo/otabwidget.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/noncore/settings/sysinfo/otabwidget.h b/noncore/settings/sysinfo/otabwidget.h
index 38f4d20..7450d51 100644
--- a/noncore/settings/sysinfo/otabwidget.h
+++ b/noncore/settings/sysinfo/otabwidget.h
@@ -21,6 +21,7 @@
#define OTABWIDGET_H
#include <qwidget.h>
+#include <qlist.h>
class QComboBox;
class QPixmap;
@@ -45,7 +46,7 @@ private:
QString l;
};
-typedef QValueList<TabInfo> TabInfoList;
+typedef QList<TabInfo> TabInfoList;
class OTabWidget : public QWidget
{
@@ -63,6 +64,8 @@ public:
~OTabWidget();
void addTab( QWidget *, const QString &, const QString & );
+ void setCurrentTab( QWidget * );
+ void setCurrentTab( QString );
QSize sizeHint() const;
@@ -70,8 +73,8 @@ protected:
void resizeEvent( QResizeEvent * );
private:
- TabInfoList tabs;
- TabInfoList::Iterator currentTab;
+ TabInfoList tabs;
+ TabInfo *currentTab;
TabStyle tabBarStyle;
TabPosition tabBarPosition;
@@ -83,8 +86,8 @@ private:
QWidgetStack *widgetStack;
QPixmap loadSmooth( const QString & );
- void selectTab( TabInfoList::Iterator );
- void setUpLayout( bool );
+ void selectTab( TabInfo * );
+ void setUpLayout();
private slots:
void slotTabBarSelected( int );