|
virtual void | mouseButtonDoubleClicked (const QModelIndex &index, const QRect &blockRect, QMouseEvent *event) |
|
virtual void | mouseButtonPressed (const QModelIndex &index, const QRect &blockRect, QMouseEvent *event) |
|
virtual void | mouseButtonReleased (const QModelIndex &index, const QRect &blockRect, QMouseEvent *event) |
|
virtual void | mouseLeft (const QModelIndex &index, const QRect &blockRect) |
|
virtual void | mouseMoved (const QModelIndex &index, const QRect &blockRect, QMouseEvent *event) |
|
◆ ItemCategoryDrawer()
◆ ~ItemCategoryDrawer()
Digikam::ItemCategoryDrawer::~ItemCategoryDrawer |
( |
| ) |
|
|
override |
◆ actionRequested
void Digikam::DCategoryDrawer::actionRequested |
( |
int |
action, |
|
|
const QModelIndex & |
index |
|
) |
| |
|
signalinherited |
Emit this signal on your subclass implementation to notify that something happened. Usually this will be triggered when you have received an event, and its position matched some "hot spot".
You give this action the integer you want, and having connected this signal to your code, the connected slot can perform the needed changes (view, model, selection model, delegate...)
◆ categoryHeight()
int Digikam::ItemCategoryDrawer::categoryHeight |
( |
const QModelIndex & |
index, |
|
|
const QStyleOption & |
option |
|
) |
| const |
|
overridevirtual |
- Returns
- The category height for the category represented by index
index
with style options option
.
Reimplemented from Digikam::DCategoryDrawer.
◆ collapseOrExpandClicked
void Digikam::DCategoryDrawer::collapseOrExpandClicked |
( |
const QModelIndex & |
index | ) |
|
|
signalinherited |
This signal becomes emitted when collapse or expand has been clicked.
◆ drawCategory()
void Digikam::ItemCategoryDrawer::drawCategory |
( |
const QModelIndex & |
index, |
|
|
int |
sortRole, |
|
|
const QStyleOption & |
option, |
|
|
QPainter * |
painter |
|
) |
| const |
|
overridevirtual |
◆ invalidatePaintingCache()
void Digikam::ItemCategoryDrawer::invalidatePaintingCache |
( |
| ) |
|
◆ leftMargin()
int Digikam::DCategoryDrawer::leftMargin |
( |
| ) |
const |
|
virtualinherited |
◆ maximumHeight()
int Digikam::ItemCategoryDrawer::maximumHeight |
( |
| ) |
const |
|
virtual |
◆ mouseButtonDoubleClicked()
void Digikam::DCategoryDrawer::mouseButtonDoubleClicked |
( |
const QModelIndex & |
index, |
|
|
const QRect & |
blockRect, |
|
|
QMouseEvent * |
event |
|
) |
| |
|
protectedvirtualinherited |
Method called when the mouse button has been double clicked.
- Parameters
-
index | The representative index of the block of items. |
blockRect | The rect occupied by the block of items. |
event | The mouse event. |
- Warning
- You explicitly have to determine whether the event has been accepted or not. You have to call event->accept() or event->ignore() at all possible case branches in your code.
◆ mouseButtonPressed()
void Digikam::DCategoryDrawer::mouseButtonPressed |
( |
const QModelIndex & |
index, |
|
|
const QRect & |
blockRect, |
|
|
QMouseEvent * |
event |
|
) |
| |
|
protectedvirtualinherited |
Method called when the mouse button has been pressed.
- Parameters
-
index | The representative index of the block of items. |
blockRect | The rect occupied by the block of items. |
event | The mouse event. |
- Warning
- You explicitly have to determine whether the event has been accepted or not. You have to call event->accept() or event->ignore() at all possible case branches in your code.
◆ mouseButtonReleased()
void Digikam::DCategoryDrawer::mouseButtonReleased |
( |
const QModelIndex & |
index, |
|
|
const QRect & |
blockRect, |
|
|
QMouseEvent * |
event |
|
) |
| |
|
protectedvirtualinherited |
Method called when the mouse button has been released.
- Parameters
-
index | The representative index of the block of items. |
blockRect | The rect occupied by the block of items. |
event | The mouse event. |
- Warning
- You explicitly have to determine whether the event has been accepted or not. You have to call event->accept() or event->ignore() at all possible case branches in your code.
◆ mouseLeft()
void Digikam::DCategoryDrawer::mouseLeft |
( |
const QModelIndex & |
index, |
|
|
const QRect & |
blockRect |
|
) |
| |
|
protectedvirtualinherited |
Method called when the mouse button has left this block.
- Parameters
-
index | The representative index of the block of items. |
blockRect | The rect occupied by the block of items. |
◆ mouseMoved()
void Digikam::DCategoryDrawer::mouseMoved |
( |
const QModelIndex & |
index, |
|
|
const QRect & |
blockRect, |
|
|
QMouseEvent * |
event |
|
) |
| |
|
protectedvirtualinherited |
Method called when the mouse has been moved.
- Parameters
-
index | The representative index of the block of items. |
blockRect | The rect occupied by the block of items. |
event | The mouse event. |
◆ rightMargin()
int Digikam::DCategoryDrawer::rightMargin |
( |
| ) |
const |
|
virtualinherited |
◆ setDefaultViewOptions()
void Digikam::ItemCategoryDrawer::setDefaultViewOptions |
( |
const QStyleOptionViewItem & |
option | ) |
|
◆ setLowerSpacing()
void Digikam::ItemCategoryDrawer::setLowerSpacing |
( |
int |
spacing | ) |
|
◆ view()
- Returns
- The view this category drawer is associated with.
The documentation for this class was generated from the following files: