liblancelot
Lancelot::Panel Class Reference
#include <Panel.h>
Inheritance diagram for Lancelot::Panel:
Public Member Functions | |
Panel (QString title, QGraphicsItem *parent=0) | |
virtual | ~Panel () |
qreal | borderSize (Plasma::MarginEdge edge) const |
QIcon | icon () const |
QSize | iconSize () const |
bool | isShowingTitle () const |
QGraphicsLayoutItem * | layoutItem () const |
L_Override void | setGroup (Group *group=NULL) |
void | setIcon (QIcon icon) |
void | setIconSize (QSize size) |
void | setLayoutItem (QGraphicsLayoutItem *layoutItem) |
void | setShowingTitle (bool value) |
void | setTitle (const QString &title) |
QString | title () const |
Public Member Functions inherited from Lancelot::Widget | |
Widget (QGraphicsItem *parent=0) | |
virtual | ~Widget () |
Group * | group () const |
QString | groupName () const |
bool | isDown () const |
bool | isHovered () const |
virtual void | setGroupByName (const QString &groupName) |
Protected Member Functions | |
L_Override void | resizeEvent (QGraphicsSceneResizeEvent *event) |
L_Override QSizeF | sizeHint (Qt::SizeHint which, const QSizeF &constraint=QSizeF()) const |
Protected Member Functions inherited from Lancelot::Widget | |
L_Override void | hideEvent (QHideEvent *event) |
L_Override void | hoverEnterEvent (QGraphicsSceneHoverEvent *event) |
L_Override void | hoverLeaveEvent (QGraphicsSceneHoverEvent *event) |
L_Override void | mousePressEvent (QGraphicsSceneMouseEvent *event) |
L_Override void | mouseReleaseEvent (QGraphicsSceneMouseEvent *event) |
L_Override void | paint (QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0) |
void | paintBackground (QPainter *painter) |
void | paintBackground (QPainter *painter, const QString &element) |
void | setDown (bool value) |
void | setHovered (bool value) |
void | setPaintBackwardsWhenRTL (bool value) |
L_Override QSizeF | sizeHint (Qt::SizeHint which, const QSizeF &constraint=QSizeF()) const |
Properties | |
QIcon | icon |
QSize | iconSize |
QString | title |
Properties inherited from Lancelot::Widget | |
bool | down |
QString | group |
Additional Inherited Members | |
Signals inherited from Lancelot::Widget | |
void | clicked () |
void | mouseHoverEnter () |
void | mouseHoverLeave () |
void | pressed () |
void | released () |
Detailed Description
Constructor & Destructor Documentation
|
explicit |
Creates a new Lancelot::Widget.
- Parameters
-
title the title of the widget parent parent item
|
virtual |
Destroys Lancelot::Panel.
Member Function Documentation
qreal Lancelot::Panel::borderSize | ( | Plasma::MarginEdge | edge | ) | const |
QIcon Lancelot::Panel::icon | ( | ) | const |
- Returns
- icon of this Lancelot::Panel
QSize Lancelot::Panel::iconSize | ( | ) | const |
- Returns
- icon size of this Lancelot::Panel
bool Lancelot::Panel::isShowingTitle | ( | ) | const |
QGraphicsLayoutItem * Lancelot::Panel::layoutItem | ( | ) | const |
|
protected |
|
virtual |
Sets this widget's group.
- Parameters
-
group new group
Reimplemented from Lancelot::Widget.
Reimplemented in Lancelot::PassagewayView.
void Lancelot::Panel::setIcon | ( | QIcon | icon | ) |
Sets icon of this Lancelot::Panel.
- Parameters
-
icon new icon
void Lancelot::Panel::setIconSize | ( | QSize | size | ) |
Sets icon size of this Lancelot::Panel.
- Parameters
-
size new icon size
void Lancelot::Panel::setLayoutItem | ( | QGraphicsLayoutItem * | layoutItem | ) |
void Lancelot::Panel::setShowingTitle | ( | bool | value | ) |
void Lancelot::Panel::setTitle | ( | const QString & | title | ) |
Sets title of this Lancelot::Panel.
- Parameters
-
title new title
|
protected |
QString Lancelot::Panel::title | ( | ) | const |
- Returns
- title of this Lancelot::Panel
Property Documentation
The documentation for this class was generated from the following files:
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.