use ktabbar here, as per krazy's suggestion
svn path=/trunk/KDE/kdelibs/; revision=880622
This commit is contained in:
parent
cf1dfdaf31
commit
c948455956
@ -98,7 +98,7 @@ void NativeTabBarPrivate::storeLastIndex()
|
||||
}
|
||||
|
||||
NativeTabBar::NativeTabBar(QWidget *parent)
|
||||
: QTabBar(parent),
|
||||
: KTabBar(parent),
|
||||
d(new NativeTabBarPrivate(this))
|
||||
{
|
||||
d->backgroundSvg = new Plasma::FrameSvg();
|
||||
|
@ -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
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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:
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user