#include <Workspace/Widgets/IOModel/widgetdelegate.h>
Inherits WidgetDelegateBase.
|
QSize | sizeHint (const QStyleOptionViewItem &option, const QModelIndex &index) const override |
|
◆ anonymous enum
◆ sizeHint()
QSize sizeHint |
( |
const QStyleOptionViewItem & |
option, |
|
|
const QModelIndex & |
index |
|
) |
| const |
|
override |
- Parameters
-
option | Controls how the item should be displayed (alignment, font, etc), but is currently ignored by this function. |
index | Specifies 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.