use ktabbar here, as per krazy's suggestion

svn path=/trunk/KDE/kdelibs/; revision=880622
This commit is contained in:
Aaron J. Seigo 2008-11-05 23:28:07 +00:00
parent cf1dfdaf31
commit c948455956
4 changed files with 9 additions and 8 deletions

View File

@ -98,7 +98,7 @@ void NativeTabBarPrivate::storeLastIndex()
}
NativeTabBar::NativeTabBar(QWidget *parent)
: QTabBar(parent),
: KTabBar(parent),
d(new NativeTabBarPrivate(this))
{
d->backgroundSvg = new Plasma::FrameSvg();

View File

@ -21,14 +21,14 @@
#ifndef NATIVETABBAR_H
#define NATIVETABBAR_H
#include <QTabBar>
#include <ktabbar.h>
namespace Plasma
{
class NativeTabBarPrivate;
class NativeTabBar : public QTabBar
class NativeTabBar : public KTabBar
{
Q_OBJECT

View File

@ -85,7 +85,7 @@ public:
void updateTabWidgetMode();
void slidingCompleted(QGraphicsItem *item);
void shapeChanged(const QTabBar::Shape shape);
void shapeChanged(const KTabBar::Shape shape);
TabBar *q;
TabBarProxy *tabProxy;
@ -399,7 +399,7 @@ QString TabBar::styleSheet() const
return d->tabProxy->native->styleSheet();
}
QTabBar *TabBar::nativeWidget() const
KTabBar *TabBar::nativeWidget() const
{
return d->tabProxy->native;
}

View File

@ -21,7 +21,8 @@
#define PLASMA_TABBAR_H
#include <QtGui/QGraphicsWidget>
#include <QtGui/QTabBar>
#include <ktabbar.h>
#include <plasma/plasma_export.h>
@ -46,7 +47,7 @@ class PLASMA_EXPORT TabBar : public QGraphicsWidget
{
Q_OBJECT
Q_PROPERTY(QTabBar *nativeWidget READ nativeWidget)
Q_PROPERTY(KTabBar *nativeWidget READ nativeWidget)
Q_PROPERTY(int currentIndex READ currentIndex WRITE setCurrentIndex)
Q_PROPERTY(int count READ count)
Q_PROPERTY(QString styleSheet READ styleSheet WRITE setStyleSheet)
@ -171,7 +172,7 @@ public:
/**
* @return the native widget wrapped by this TabBar
*/
QTabBar *nativeWidget() const;
KTabBar *nativeWidget() const;
public Q_SLOTS:
/**