6#include <QStylePainter>
18 this->associatedWidget = associatedWidget;
22 selectedStatus =
false;
33 associatedWidget = NULL;
40 position = newPosition;
59 radioGroup = newRadioGroup;
84 if (associatedWidget == NULL)
86 QString msg =
"Tab::setSelected called but can't show or hide the "
87 "associatedWidget because it is NULL!";
88 throw IException(IException::Programmer, msg,
91 setChecked(newStatus);
92 newStatus ? associatedWidget->show() : associatedWidget->hide();
93 selectedStatus = newStatus;
106 return selectedStatus;
118 emit clicked(position);
void handleTriggered()
This SLOT is executed when the Tab is clicked, and emits its own clicked SIGNAL (which contains its i...
bool isSelected()
A selected Tab will look visually pressed and have its associatedWidget visible.
const int & getRadioGroup() const
Tabs which share a radio group have the property that only only one Tab in the group can be selected ...
const int & getPosition() const
get the position of the Tab within a TabBar
void setSelected(bool newStatus)
A selected Tab will look visually pressed and have its associatedWidget visible.
void setRadioGroup(const int &newRadioGroup)
Tabs which share a radio group have the property that only only one Tab in the group can be selected ...
void setPosition(const int &newPosition)
set the position of the Tab within a TabBar
Tab(QWidget *associatedWidget, QWidget *parent=0)
constructs a Tab
virtual ~Tab()
destructs a Tab
This is free and unencumbered software released into the public domain.