liblancelot
ActionListView.cpp
Go to the documentation of this file.
123 if (isDown() && ((m_mousePos - event->pos()).toPoint().manhattanLength() > QApplication::startDragDistance())) {
135 ActionListViewItemFactory::ActionListViewItemFactory(ActionListModel * model, ActionListView * view) //>
624 void ActionListViewItemFactory::itemDrag(ActionListViewItem * sender, QGraphicsSceneMouseEvent * event) //>
virtual bool hasContextActions(int index) const
Definition: ActionListModel.cpp:90
void activate(int index)
Definition: ActionListView.cpp:376
qreal preferredWidth() const
L_Override void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: ExtenderButton.cpp:428
const QMimeData * mimeData() const
void setAlignment(Qt::Alignment alignment)
Sets alignment of this Lancelot::BasicWidget.
Definition: BasicWidget.cpp:496
void setHotSpot(const QPoint &hotspot)
Definition: lancelot.h:32
ActionListView::ItemDisplayMode displayMode() const
Definition: ActionListView.cpp:312
Qt::KeyboardModifiers modifiers() const
void itemDeleted(int index)
This signal is emitted when an item is deleted from the model.
ItemDisplayMode displayMode() const
Definition: ActionListView.cpp:1066
Type type() const
void activated(int index)
void activateSelectedItem()
Definition: ActionListView.cpp:656
friend class ActionListViewItem
Definition: ActionListView_p.h:165
L_Override bool sceneEventFilter(QGraphicsItem *watched, QEvent *event)
Definition: ActionListView.cpp:839
L_Override void hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
Definition: ExtenderButton.cpp:377
void setTitle(const QString &title)
Sets title of this Lancelot::BasicWidget.
Definition: BasicWidget.cpp:449
L_Override void mousePressEvent(QGraphicsSceneMouseEvent *event)
Definition: Widget.cpp:98
void setTarget(const QRectF &target)
QSize categoryIconSize() const
Definition: ActionListView.cpp:994
void setMaximumHeight(qreal height)
void setMimeData(QMimeData *data)
void updateExtenderPosition()
Definition: ActionListView.cpp:569
QRectF geometry() const
virtual bool isCategory(int index) const
Definition: ActionListModel.cpp:78
~ActionListViewItemFactory()
Definition: ActionListView.cpp:159
QObject * sender() const
void setSelectedItem(ActionListViewItem *item, bool selected=true)
Definition: ActionListView.cpp:681
qreal & rwidth()
void setPixmap(const QPixmap &pixmap)
L_Override void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
Definition: ActionListView.cpp:119
void setItemHeight(int height, Qt::SizeHint which)
Definition: ActionListView.cpp:938
bool showsExtendersOutside() const
All classes that are going to be used in the CustomList must subclass this and QGraphicsWidget.
Definition: CustomListView.h:37
void setMinimumHeight(qreal height)
void setModel(ActionListModel *model)
Definition: ActionListView.cpp:476
virtual int size() const =0
QSize itemIconSize() const
Definition: ActionListView.cpp:443
int itemAtPosition(int y) const
Definition: CustomListView.cpp:224
ActionListModel * model() const
Definition: ActionListView.cpp:504
QPoint mapToGlobal(const QPoint &pos) const
void setCategoriesActivable(bool value)
Definition: ActionListView.cpp:1168
void setPreferredHeight(qreal height)
void setShowsExtendersOutside(bool value)
Definition: ActionListView.cpp:1002
int extenderPosition() const
qreal top() const
void setItemFactory(CustomListItemFactory *factory)
Definition: CustomListView.cpp:199
void setItemExtender(int index)
Definition: ActionListView.cpp:576
void setMargin(Plasma::MarginEdge margin, qreal value)
Definition: CustomListView.cpp:309
ActionListViewItemFactory(ActionListModel *model, ActionListView *view)
Definition: ActionListView.cpp:135
void hide()
QWidget * widget() const
void setDescription(const QString &description)
Sets description of this Lancelot::BasicWidget.
Definition: BasicWidget.cpp:473
Definition: ActionListView.h:33
Private(ActionListView *listView)
Definition: ActionListView.cpp:787
L_Override void keyPressEvent(QKeyEvent *event)
Definition: ActionListView.cpp:1121
virtual bool event(QEvent *event)
virtual void dataDropped(int where, const QMimeData *mimeData)
Invoked when the data is dropped into the model.
Definition: ActionListModel.cpp:59
QGraphicsScene * scene() const
void setItemIconSize(QSize size)
Definition: ActionListView.cpp:429
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
void setAcceptDrops(bool on)
void setDisplayMode(ItemDisplayMode mode)
Definition: ActionListView.cpp:1057
void update(const QRectF &rect)
void setExtenderPosition(int position)
Definition: ActionListView.cpp:1024
void setItemsGroup(Group *group=NULL)
Definition: ActionListView.cpp:1075
void setHeight(qreal height)
L_Override CustomListItem * itemForIndex(int index)
Definition: ActionListView.cpp:192
L_Override bool sceneEvent(QEvent *event)
Definition: ActionListView.cpp:845
QSizeF size() const
void selectRelItem(int rel)
Definition: ActionListView.cpp:738
int categoryHeight(Qt::SizeHint which) const
Definition: ActionListView.cpp:962
Qt::DropAction exec(QFlags< Qt::DropAction > supportedActions)
void setCategoryIconSize(QSize size)
Definition: ActionListView.cpp:986
Plasma::SvgWidget * dropIndicator
Definition: ActionListView_p.h:178
void setItemIconSize(QSize size)
Definition: ActionListView.cpp:970
void itemInserted(int index)
This signal is emitted when an item is inserted into the model.
void itemAltered(int index)
This signal is emitted when an item is altered.
qreal y() const
void setAccepted(bool accepted)
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent *event)
Definition: lancelot.h:36
virtual void setDropActions(int index, Qt::DropActions &actions, Qt::DropAction &defaultAction)
Definition: ActionListModel.cpp:71
void scrollTo(QRectF rect)
Ensures that the specified area is visible.
Definition: ScrollPane.cpp:320
Group * categoriesGroup() const
Definition: ActionListView.cpp:1112
qreal m32() const
QList< QGraphicsView * > views() const
qreal m22() const
L_Override void setSelected(bool selected=true)
Definition: ActionListView.cpp:81
bool isEmpty() const
virtual bool sceneEvent(QEvent *event)
bool areCategoriesActivable() const
Definition: ActionListView.cpp:1163
Definition: lancelot.h:35
bool isIdentity() const
virtual bool dataDropAvailable(int where, const QMimeData *mimeData)
Definition: ActionListModel.cpp:52
void setExtenderPosition(int position)
Sets the position of the extender.
Definition: ExtenderButton.cpp:383
virtual QString title(int index) const =0
void setCategoriesGroup(Group *group=NULL)
Definition: ActionListView.cpp:341
QPoint mapFromScene(const QPointF &point) const
virtual QIcon icon(int index) const
Definition: ActionListModel.cpp:40
virtual bool sceneEventFilter(QGraphicsItem *watched, QEvent *event)
void setCategoriesGroup(Group *group=NULL)
Definition: ActionListView.cpp:1098
void setCategoriesGroupByName(const QString &group)
Definition: ActionListView.cpp:1107
virtual ~ActionListView()
Definition: ActionListView.cpp:905
void contextForSelectedItem()
Definition: ActionListView.cpp:665
QSizeF boundedTo(const QSizeF &otherSize) const
Wrapper around the CustomList which implements the actual scrolling.
Definition: CustomListView.h:151
virtual void dataDragFinished(int index, Qt::DropAction action)
This function is invoked when a data is dropped.
Definition: ActionListModel.cpp:65
~ActionListViewItem()
Definition: ActionListView.cpp:50
void setIconSize(QSize size)
Sets icon size of this Lancelot::BasicWidget.
Definition: BasicWidget.cpp:413
L_Override void contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
Definition: ActionListView.cpp:106
void itemDrag(ActionListViewItem *sender, QGraphicsSceneMouseEvent *event)
Definition: ActionListView.cpp:624
L_Override void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget)
Definition: ActionListView.cpp:56
QPointF pos() const
L_Override void mousePressEvent(QGraphicsSceneMouseEvent *event)
Definition: ActionListView.cpp:113
int key() const
Group * itemsGroup() const
Definition: ActionListView.cpp:336
virtual void setContextActions(int index, Lancelot::PopupMenu *menu)
Adds actions ofr the specifies item to menu.
Definition: ActionListModel.cpp:96
Definition: lancelot.h:34
QSize categoryIconSize() const
Definition: ActionListView.cpp:462
void updated()
This signal is emitted when the model is updated and the update is too complex to explain using itemI...
virtual CustomListItem * itemForIndex(int index)=0
L_Override void setGroup(Group *group=NULL)
Sets this widget's group.
Definition: ExtenderButton.cpp:340
void setDisplayMode(ActionListView::ItemDisplayMode mode)
Definition: ActionListView.cpp:300
void setItemHeight(int height, Qt::SizeHint which)
Definition: ActionListView.cpp:395
ActionListViewItem(ActionListViewItemFactory *factory)
Definition: ActionListView.cpp:42
L_Override void resizeEvent(QGraphicsSceneResizeEvent *event)
Definition: ActionListView.cpp:1202
virtual QString description(int index) const
Definition: ActionListModel.cpp:34
QPointF mapToScene(const QPointF &point) const
QPoint pos()
void setItemsGroupByName(const QString &group)
Definition: ActionListView.cpp:1084
QPoint toPoint() const
virtual QMimeData * mimeData(int index) const
Definition: ActionListModel.cpp:46
typedef DropActions
void immutabilityChanged(const Plasma::ImmutabilityType immutable)
Definition: ActionListView.cpp:812
ActionListViewItemFactory * itemFactory
Definition: ActionListView_p.h:177
L_Override int itemCount() const
Definition: ActionListView.cpp:386
void setCategoryHeight(int height, Qt::SizeHint which)
Definition: ActionListView.cpp:412
CustomListItemFactory * itemFactory() const
Definition: CustomListView.cpp:237
int categoryHeight(Qt::SizeHint which) const
Definition: ActionListView.cpp:424
void setItemsGroup(Group *group=NULL)
Definition: ActionListView.cpp:317
void setCategoryIconSize(QSize size)
Definition: ActionListView.cpp:448
int itemHeight(Qt::SizeHint which) const
Definition: ActionListView.cpp:946
L_Override void resizeEvent(QGraphicsSceneResizeEvent *event)
Definition: ScrollPane.cpp:223
L_Override QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint=QSizeF()) const
Definition: ActionListView.cpp:1174
void setFocusPolicy(Qt::FocusPolicy policy)
ActionListView(QGraphicsItem *parent=0)
Definition: ActionListView.cpp:822
L_Override void hoverEnterEvent(QGraphicsSceneHoverEvent *event)
Definition: ExtenderButton.cpp:360
void setVisible(bool visible)
qreal height() const
L_Override bool isSelected() const
Definition: ActionListView.cpp:101
L_Override QSizeF sizeHint(Qt::SizeHint which, const QSizeF &constraint=QSizeF()) const
Definition: CustomListView.cpp:357
void acceptProposedAction()
void activated(int index)
L_Override void hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
Definition: ScrollPane.cpp:289
L_Override void hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
Definition: ActionListView.cpp:1211
virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
Button widget with special activation options beside clicking - hover and extender activation...
Definition: ExtenderButton.h:39
QPointF pos() const
void initialSelection()
Definition: ActionListView.cpp:1148
qreal height() const
Group * categoriesGroup() const
Definition: ActionListView.cpp:361
void moveTop(qreal y)
QAction * exec(const QPoint &p, QAction *action=0)
Definition: PopupMenu.cpp:127
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setModel(ActionListModel *model)
Definition: ActionListView.cpp:910
QObject * parent() const
bool showsExtendersOutside
Definition: ActionListView_p.h:179
int selectedIndex() const
void sizeHintUpdateNeeded()
Definition: ActionListView.cpp:817
geometry
void clearSelection()
Definition: ActionListView.cpp:674
void setCategoryHeight(int height, Qt::SizeHint which)
Definition: ActionListView.cpp:954
void itemContext(ActionListViewItem *sender, bool mouseCoordinate=true)
Definition: ActionListView.cpp:591
L_Override int itemHeight(int index, Qt::SizeHint which) const
Definition: ActionListView.cpp:467
qreal width() const
void setExtenderPosition(int position)
Definition: ActionListView.cpp:555
int startDragDistance()
virtual void contextActivate(int index, QAction *context)
Method for handling context menu actions.
Definition: ActionListModel.cpp:102
Definition: lancelot.h:33
const T value(const Key &key) const
int extenderPosition() const
Definition: ActionListView.cpp:586
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:43:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:43:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.