Commit c61f622d authored by Robert Knight's avatar Robert Knight
Browse files

Replace QTabBar with KTabBar in tabbed view container. Partly to follow the...

Replace QTabBar with KTabBar in tabbed view container.  Partly to follow the KDE guideline of using KWidgetType instead of QWidgetType and to enable easier addition of some user requested features.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=679108
parent ec188370
......@@ -402,8 +402,15 @@ void TabbedViewContainer::selectTabColor()
}
ViewContainerTabBar::ViewContainerTabBar(QWidget* parent)
: QTabBar(parent)
: KTabBar(parent)
{
//TODO Make tab re-ordering possible, but the QStackedWidget
// and tab widget will then have different indicies, in which
// case either the view widget stack needs to be re-ordered
// or mapping between the tab and stack widget indicies needs
// to be added
//
//setTabReorderingEnabled(true);
}
QSize ViewContainerTabBar::tabSizeHint(int index) const
......
......@@ -26,9 +26,11 @@
#include <QtCore/QObject>
#include <QtCore/QHash>
#include <QtCore/QList>
#include <QtGui/QTabBar>
#include <QtGui/QVBoxLayout>
// KDE
#include <KTabBar>
class QSpacerItem;
class QStackedWidget;
class QWidget;
......@@ -309,7 +311,7 @@ private:
// internal class,
// to allow for tweaks to the tab bar required by TabbedViewContainerV2.
// does not actually do anything currently
class ViewContainerTabBar : public QTabBar
class ViewContainerTabBar : public KTabBar
{
public:
ViewContainerTabBar(QWidget* parent = 0);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment