Computer Assited Medical Intervention Tool Kit  version 5.0
camitk::ViewerDockStyle Class Reference

a specific style made for QDockWidget that adds an icon to the dock widget title More...

#include <ViewerDockStyle.h>

+ Inheritance diagram for camitk::ViewerDockStyle:
+ Collaboration diagram for camitk::ViewerDockStyle:

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...
 

Detailed Description

a specific style made for QDockWidget that adds an icon to the dock widget title

Greatly inspired by https://stackoverflow.com/a/3482795

Constructor & Destructor Documentation

◆ ViewerDockStyle()

camitk::ViewerDockStyle::ViewerDockStyle ( Viewer viewer)

constructor just set the viewer that is using this style

◆ ~ViewerDockStyle()

camitk::ViewerDockStyle::~ViewerDockStyle ( )
virtual

destructor

Member Function Documentation

◆ drawControl()

void camitk::ViewerDockStyle::drawControl ( ControlElement  element,
const QStyleOption *  option,
QPainter *  painter,
const QWidget *  widget = 0 
) const
overridevirtual

override method from QProxyStyle

Member Data Documentation

◆ icon

QIcon* camitk::ViewerDockStyle::icon
private

icon generated from the viewer pixmap


The documentation for this class was generated from the following files: