tabwidget.hpp 628 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
#ifndef CVVISUAL_TABWIDGET
#define CVVISUAL_TABWIDGET

#include <QTabWidget>
#include <QTabBar>


namespace cvv
{
namespace gui
{

/**
 * @brief A simple to QTabWidget Subclass, enabling the access to protected
 * members.
 */
class TabWidget : public QTabWidget
{

      public:
	/**
	 * @brief Constructor of this class.
	 */
	TabWidget(QWidget *parent) : QTabWidget(parent)
	{
	};

	/**
	 * @brief Returns the shown tab bar.
	 * This method helps to access the member tabBar which has by default
	 * only a protected setter.
	 * @return shown tab bar.
	 */
	QTabBar *getTabBar() const
	{
		return tabBar();
	}
};
}
}

#endif