diff --git a/src/ViewContainer.cpp b/src/ViewContainer.cpp index a99f81efd..572f6bebf 100644 --- a/src/ViewContainer.cpp +++ b/src/ViewContainer.cpp @@ -483,7 +483,7 @@ TabbedViewContainer::TabbedViewContainer(NavigationPosition position , QObject* _tabBarLayout->addWidget(_tabBar); _tabBarLayout->addWidget(_closeTabButton); - _layout = new TabbedViewContainerLayout; + _layout = new QVBoxLayout; _layout->setSpacing(0); _layout->setContentsMargins(0, 0, 0, 0); diff --git a/src/ViewContainer.h b/src/ViewContainer.h index ce6b04eff..b0fcd8f70 100644 --- a/src/ViewContainer.h +++ b/src/ViewContainer.h @@ -380,21 +380,6 @@ private: bool _drawIndicatorDisabled; }; -// internal -// this class provides a work-around for a problem in Qt 4.x -// where the insertItem() method only has protected access - -// and the TabbedViewContainer class needs to call it. -// -// and presumably for binary compatibility reasons will -// not be fixed until Qt 5. -class TabbedViewContainerLayout : public QVBoxLayout -{ -public: - void insertItemAt(int index , QLayoutItem* item) { - insertItem(index, item); - } -}; - /** * An alternative tabbed view container which uses a QTabBar and QStackedWidget * combination for navigation instead of QTabWidget @@ -458,7 +443,7 @@ private: ViewContainerTabBar* _tabBar; QPointer _stackWidget; QPointer _containerWidget; - TabbedViewContainerLayout* _layout; + QVBoxLayout* _layout; QHBoxLayout* _tabBarLayout; QToolButton* _newTabButton; QToolButton* _closeTabButton;