|
ManiVault 1.0.0
A Flexible and Extensible Visual Analytics Framework for High-Dimensional Data
|
#include <WidgetActionLabel.h>
Public Types | |
| enum | WidgetFlag { ColonAfterName = 0x00001 } |
Public Member Functions | |
| WidgetActionLabel (WidgetAction *action, QWidget *parent=nullptr, const std::uint32_t &flags=ColonAfterName) | |
| bool | eventFilter (QObject *target, QEvent *event) override |
| void | resizeEvent (QResizeEvent *resizeEvent) override |
| bool | geElide () const |
| void | setElide (bool elide) |
Public Member Functions inherited from hdps::gui::WidgetActionViewWidget | |
| WidgetActionViewWidget (QWidget *parent, WidgetAction *action) | |
| virtual WidgetAction * | getAction () final |
| virtual void | setAction (WidgetAction *widgetAction) |
Protected Attributes | |
| std::uint32_t | _flags |
| QLabel | _nameLabel |
| bool | _elide |
| QDrag * | _drag |
| QPoint | _lastMousePressPosition |
Additional Inherited Members | |
Protected Member Functions inherited from hdps::gui::WidgetActionViewWidget | |
| void | dragEnterEvent (QDragEnterEvent *dragEnterEvent) override |
| void | dragLeaveEvent (QDragLeaveEvent *dragLeaveEvent) override |
| void | dropEvent (QDropEvent *dropEvent) override |
Widget action label class
Provides a label view on the action
Features:
|
explicit |
Constructor
| action | Pointer to widget action |
| parent | Pointer to parent widget |
| windowFlags | Window flags |
|
override |
Respond to target object events
| target | Object of which an event occurred |
| event | The event that took place |
| bool hdps::gui::WidgetActionLabel::geElide | ( | ) | const |
Gets whether label elide is enabled or not
|
override |
Invoked when the widget is resized
| resizeEvent | Pointer to the resize event |
| void hdps::gui::WidgetActionLabel::setElide | ( | bool | elide | ) |
Set whether label elide is enabled or not
| labelElide | Whether label elide is enabled or not |
|
protected |
Whether to enable label elide (e.g. whether to truncate text and show an ellipsis when there is insufficient space for the text)
|
protected |
Action name label
|
protected |
|
protected |
Pointer is set during drag and drop action connection
|
protected |
Configuration flags