![]() |
VR-Forces 5.0.2 Developer's Guide
|
A specialized QTabWidget that supports re-orientating tab icons based on its tab bar's position based on a user-settable property.

Public Member Functions | |
| DtOrientedQTabWidget (QWidget *parent=nullptr) | |
| virtual | ~DtOrientedQTabWidget () |
| virtual void | setTabBar (QTabBar *tabBar) |
| virtual void | setTabPosition (QTabWidget::TabPosition position) |
| virtual void | setTabIcon (int index, const QIcon &icon) |
| virtual void | setIconsPerpendicularToTab (bool) |
| virtual bool | iconsPerpendicularToTab () const |
Protected Member Functions | |
| virtual void | rotateIconsIfNeeded () |
| virtual void | rotateIconIfNeeded (int index, int currentRotation) |
| virtual void | rotateIcon (int index, int degrees) |
| virtual bool | iconsNeedUpdate (int currentRotation) const |
Protected Attributes | |
| bool | myIconsPerpendicularToTab |
| int | myCurrentIconRotation |
| makVrv::DtOrientedQTabWidget::DtOrientedQTabWidget | ( | QWidget * | parent = nullptr | ) |
CTOR.
|
virtual |
DTOR.
|
virtual |
Akin to calling QTabWidget::setTabBar(QTabBar*)
|
virtual |
Set the position of the tab widget. This function automatically updates all the icons.
|
virtual |
Set the icon for a tab with the given index This function automatically updates the icon's rotation.
|
virtual |
Set whether or not to rotate icons based on the tab bar's position If layout of tabs is in West or East mode, and, this flag is true, icons will always be perpendicular to the tab (90 degrees). This function automatically updates all the icons.
|
virtual |
|
protectedvirtual |
Rotates all icons, if needed. Assumes all icons are already rotated by the amount specified by myCurrentIconRotation.
|
protectedvirtual |
Rotates a given icon, if needed.
| index | The index of the icon to rotate, if needed. |
| currentRotation | The current (clock-wise) rotation of the icon of interest. |
Rotates an icon at the specific index by a specified amount.
| index | The index of the icon to rotate, if needed. |
| currentRotation | The current (clock-wise) rotation of the icon of interest. |
|
protectedvirtual |
Check and return whether or not an icon needs updating.
| currentRotation | The current rotation of the icon being checked |
|
protected |
|
protected |