digiKam
|
Signals | |
void | actionRequested (int action, const QModelIndex &index) |
void | collapseOrExpandClicked (const QModelIndex &index) |
Public Member Functions | |
virtual int | categoryHeight (const QModelIndex &index, const QStyleOption &option) const |
DCategoryDrawer (DCategorizedView *const view) | |
virtual void | drawCategory (const QModelIndex &index, int sortRole, const QStyleOption &option, QPainter *painter) const |
virtual int | leftMargin () const |
virtual int | rightMargin () const |
DCategorizedView * | view () const |
~DCategoryDrawer () override | |
Protected Member Functions | |
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) |
Friends | |
class | DCategorizedView |
The category drawing is performed by this class. It also gives information about the category height and margins.
|
explicit |
Construct a category drawer for a given view
|
override |
|
signal |
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...)
|
virtual |
index
with style options option
. Reimplemented in Digikam::ImportCategoryDrawer, and Digikam::ItemCategoryDrawer.
Referenced by Digikam::DCategorizedView::Private::visualCategoryRectInViewport(), and Digikam::DCategorizedView::Private::visualRectInViewport().
|
signal |
This signal becomes emitted when collapse or expand has been clicked.
|
virtual |
This method purpose is to draw a category represented by the given
index | with the given |
sortRole | sorting role |
Reimplemented in Digikam::ImportCategoryDrawer, and Digikam::ItemCategoryDrawer.
References Digikam::DCategorizedSortFilterProxyModel::CategoryDisplayRole.
Referenced by Digikam::DCategorizedView::Private::drawNewCategory().
|
virtual |
|
protectedvirtual |
Method called when the mouse button has been double clicked.
index | The representative index of the block of items. |
blockRect | The rect occupied by the block of items. |
event | The mouse event. |
|
protectedvirtual |
Method called when the mouse button has been pressed.
index | The representative index of the block of items. |
blockRect | The rect occupied by the block of items. |
event | The mouse event. |
|
protectedvirtual |
Method called when the mouse button has been released.
index | The representative index of the block of items. |
blockRect | The rect occupied by the block of items. |
event | The mouse event. |
|
protectedvirtual |
Method called when the mouse button has left this block.
index | The representative index of the block of items. |
blockRect | The rect occupied by the block of items. |
|
protectedvirtual |
Method called when the mouse has been moved.
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 |
|
friend |