a specific style made for QDockWidget that adds an icon to the dock widget title More...
#include <ViewerDockStyle.h>
Public Member Functions | |
virtual void | drawControl (ControlElement element, const QStyleOption *option, QPainter *painter, const QWidget *widget=0) const override |
override method from QProxyStyle More... | |
ViewerDockStyle (Viewer *) | |
constructor just set the viewer that is using this style More... | |
virtual | ~ViewerDockStyle () |
destructor More... | |
Private Attributes | |
QIcon * | icon |
icon generated from the viewer pixmap More... | |
a specific style made for QDockWidget that adds an icon to the dock widget title
Greatly inspired by https://stackoverflow.com/a/3482795
camitk::ViewerDockStyle::ViewerDockStyle | ( | Viewer * | viewer | ) |
constructor just set the viewer that is using this style
References camitk::Viewer::getIcon(), and icon.
|
virtual |
destructor
References icon.
|
overridevirtual |
override method from QProxyStyle
References icon.
|
private |
icon generated from the viewer pixmap
Referenced by drawControl(), ViewerDockStyle(), and ~ViewerDockStyle().