![]() |
digiKam Developer Documentation
Professional Photo Management with the Power of Open Source
|
The category drawing is performed by this class. More...
Signals | |
void | actionRequested (int action, const QModelIndex &index) |
Emit this signal on your subclass implementation to notify that something happened. | |
void | collapseOrExpandClicked (const QModelIndex &index) |
This signal becomes emitted when collapse or expand has been clicked. | |
Public Member Functions | |
DCategoryDrawer (DCategorizedView *const view) | |
Construct a category drawer for a given view. | |
virtual int | categoryHeight (const QModelIndex &index, const QStyleOption &option) const |
virtual void | drawCategory (const QModelIndex &index, int sortRole, const QStyleOption &option, QPainter *painter) const |
This method purpose is to draw a category represented by the given. | |
virtual int | leftMargin () const |
virtual int | rightMargin () const |
DCategorizedView * | view () const |
Protected Member Functions | |
virtual void | mouseButtonDoubleClicked (const QModelIndex &index, const QRect &blockRect, QMouseEvent *event) |
Method called when the mouse button has been double clicked. | |
virtual void | mouseButtonPressed (const QModelIndex &index, const QRect &blockRect, QMouseEvent *event) |
Method called when the mouse button has been pressed. | |
virtual void | mouseButtonReleased (const QModelIndex &index, const QRect &blockRect, QMouseEvent *event) |
Method called when the mouse button has been released. | |
virtual void | mouseLeft (const QModelIndex &index, const QRect &blockRect) |
Method called when the mouse button has left this block. | |
virtual void | mouseMoved (const QModelIndex &index, const QRect &blockRect, QMouseEvent *event) |
Method called when the mouse has been moved. | |
Friends | |
class | DCategorizedView |
It also gives information about the category height and margins.
|
signal |
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...)
|
virtual |
index
with style options option
. Reimplemented in Digikam::ItemCategoryDrawer, and Digikam::ImportCategoryDrawer.
|
virtual |
index | The index with the given |
sortRole | The sorting role |
option | The painter style options |
painter | The painter instance |
Reimplemented in Digikam::ItemCategoryDrawer, and Digikam::ImportCategoryDrawer.
|
virtual |
|
protectedvirtual |
index | The representative index of the block of items. |
blockRect | The rect occupied by the block of items. |
event | The mouse event. |
|
protectedvirtual |
index | The representative index of the block of items. |
blockRect | The rect occupied by the block of items. |
event | The mouse event. |
|
protectedvirtual |
index | The representative index of the block of items. |
blockRect | The rect occupied by the block of items. |
event | The mouse event. |
|
protectedvirtual |
index | The representative index of the block of items. |
blockRect | The rect occupied by the block of items. |
|
protectedvirtual |
index | The representative index of the block of items. |
blockRect | The rect occupied by the block of items. |
event | The mouse event. |
|
virtual |
DCategorizedView * Digikam::DCategoryDrawer::view | ( | ) | const |