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
L_Override void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Definition: ExtenderButton.cpp:428
void setAlignment(Qt::Alignment alignment)
Sets alignment of this Lancelot::BasicWidget.
Definition: BasicWidget.cpp:496
Definition: lancelot.h:32
ActionListView::ItemDisplayMode displayMode() const
Definition: ActionListView.cpp:312
void itemDeleted(int index)
This signal is emitted when an item is deleted from the model.
ItemDisplayMode displayMode() const
Definition: ActionListView.cpp:1066
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 updateExtenderPosition()
Definition: ActionListView.cpp:569
virtual bool isCategory(int index) const
Definition: ActionListModel.cpp:78
~ActionListViewItemFactory()
Definition: ActionListView.cpp:159
void setSelectedItem(ActionListViewItem *item, bool selected=true)
Definition: ActionListView.cpp:681
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 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
void setCategoriesActivable(bool value)
Definition: ActionListView.cpp:1168
void setShowsExtendersOutside(bool value)
Definition: ActionListView.cpp:1002
int extenderPosition() 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 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 void dataDropped(int where, const QMimeData *mimeData)
Invoked when the data is dropped into the model.
Definition: ActionListModel.cpp:59
void setItemIconSize(QSize size)
Definition: ActionListView.cpp:429
void setDisplayMode(ItemDisplayMode mode)
Definition: ActionListView.cpp:1057
void setExtenderPosition(int position)
Definition: ActionListView.cpp:1024
void setItemsGroup(Group *group=NULL)
Definition: ActionListView.cpp:1075
L_Override CustomListItem * itemForIndex(int index)
Definition: ActionListView.cpp:192
L_Override bool sceneEvent(QEvent *event)
Definition: ActionListView.cpp:845
void selectRelItem(int rel)
Definition: ActionListView.cpp:738
int categoryHeight(Qt::SizeHint which) const
Definition: ActionListView.cpp:962
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.
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
L_Override void setSelected(bool selected=true)
Definition: ActionListView.cpp:81
bool areCategoriesActivable() const
Definition: ActionListView.cpp:1163
Definition: lancelot.h:35
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
virtual QIcon icon(int index) const
Definition: ActionListModel.cpp:40
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
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
L_Override void mousePressEvent(QGraphicsSceneMouseEvent *event)
Definition: ActionListView.cpp:113
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
void setItemsGroupByName(const QString &group)
Definition: ActionListView.cpp:1084
virtual QMimeData * mimeData(int index) const
Definition: ActionListModel.cpp:46
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
ActionListView(QGraphicsItem *parent=0)
Definition: ActionListView.cpp:822
L_Override void hoverEnterEvent(QGraphicsSceneHoverEvent *event)
Definition: ExtenderButton.cpp:360
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 activated(int index)
L_Override void hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
Definition: ScrollPane.cpp:289
L_Override void hoverLeaveEvent(QGraphicsSceneHoverEvent *event)
Definition: ActionListView.cpp:1211
Button widget with special activation options beside clicking - hover and extender activation...
Definition: ExtenderButton.h:39
void initialSelection()
Definition: ActionListView.cpp:1148
Group * categoriesGroup() const
Definition: ActionListView.cpp:361
QAction * exec(const QPoint &p, QAction *action=0)
Definition: PopupMenu.cpp:127
void setModel(ActionListModel *model)
Definition: ActionListView.cpp:910
bool showsExtendersOutside
Definition: ActionListView_p.h:179
int selectedIndex() const
void sizeHintUpdateNeeded()
Definition: ActionListView.cpp:817
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
void setExtenderPosition(int position)
Definition: ActionListView.cpp:555
virtual void contextActivate(int index, QAction *context)
Method for handling context menu actions.
Definition: ActionListModel.cpp:102
Definition: lancelot.h:33
int extenderPosition() const
Definition: ActionListView.cpp:586
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Mon Oct 13 2014 22:55:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Mon Oct 13 2014 22:55:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.