Workspace 6.21.5
Public Types | Public Member Functions | List of all members
WidgetDelegate Class Reference

#include <Workspace/Widgets/IOModel/widgetdelegate.h>

Inherits WidgetDelegateBase.

Public Types

enum  { QWidgetRole = Qt::UserRole + 1 }
 

Public Member Functions

QSize sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override
 

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
QWidgetRole 

Member Function Documentation

◆ sizeHint()

QSize sizeHint ( const QStyleOptionViewItem &  option,
const QModelIndex &  index 
) const
override
Parameters
optionControls how the item should be displayed (alignment, font, etc), but is currently ignored by this function.
indexSpecifies for which item the size hint should be calculated. If the result of index.column() is not 1, the call is forwarded to the default base class implementation.
Returns
The size hint for the specified item. This will normally just be a forwarded call to the relevant QWidget's sizeHint() function.