Plasma
PanelView Class Reference
#include <panelview.h>

Detailed Description
Definition at line 42 of file panelview.h.
Public Slots | |
void | setAlignment (Qt::Alignment align) |
void | setLocation (Plasma::Location location) |
void | setOffset (int newOffset) |
Public Member Functions | |
Qt::Alignment | alignment () const |
Plasma::Corona * | corona () const |
Plasma::Location | location () const |
int | offset () const |
PanelView (Plasma::Containment *panel, int id=0, QWidget *parent=0) | |
void | pinchContainment (const QRect &screenGeometry) |
~PanelView () | |
Protected Member Functions | |
void | moveEvent (QMoveEvent *event) |
void | resizeEvent (QResizeEvent *event) |
void | updateStruts () |
Constructor & Destructor Documentation
PanelView::PanelView | ( | Plasma::Containment * | panel, | |
int | id = 0 , |
|||
QWidget * | parent = 0 | |||
) | [explicit] |
Constructs a new panelview.
- parent the QWidget this panel is parented to
Definition at line 40 of file panelview.cpp.
PanelView::~PanelView | ( | ) |
Definition at line 91 of file panelview.cpp.
Member Function Documentation
Qt::Alignment PanelView::alignment | ( | ) | const |
Plasma::Corona * PanelView::corona | ( | ) | const |
- Returns:
- the Corona (scene) associated with this panel.
Definition at line 164 of file panelview.cpp.
Plasma::Location PanelView::location | ( | ) | const |
- Returns:
- the location (screen edge) where this panel is positioned.
Definition at line 159 of file panelview.cpp.
void PanelView::moveEvent | ( | QMoveEvent * | event | ) | [protected] |
Definition at line 632 of file panelview.cpp.
int PanelView::offset | ( | ) | const |
- Returns:
- the offset of the panel from the left screen edge
Definition at line 473 of file panelview.cpp.
void PanelView::pinchContainment | ( | const QRect & | screenGeometry | ) |
Pinches the min/max sizes of the containment to the current screen resolution.
Definition at line 342 of file panelview.cpp.
void PanelView::resizeEvent | ( | QResizeEvent * | event | ) | [protected] |
Definition at line 638 of file panelview.cpp.
void PanelView::setAlignment | ( | Qt::Alignment | align | ) | [slot] |
Sets the edge of the screen the panel will be aligned and will grow.
- Parameters:
-
align the direction (for instance Qt::AlignLeft) means the panel will start from the left of the screen and grow to the right
Definition at line 478 of file panelview.cpp.
void PanelView::setLocation | ( | Plasma::Location | location | ) | [slot] |
Sets the location (screen edge) where this panel is positioned.
- Parameters:
-
location the location to place the panel at
Definition at line 95 of file panelview.cpp.
void PanelView::setOffset | ( | int | newOffset | ) | [slot] |
Sets the offset the left border, the offset is the distance of the left border of the panel from the left border of the screen when the alignment is Qt::AlignLeft, right border and right edge if the alignment is Qt::alignRight and the distance between the center of the panel and the center of the screen if the alignment is Qt::AlignCenter.
Similar way for vertical panels.
- Parameters:
-
newOffset the offset of the panel
Definition at line 460 of file panelview.cpp.
void PanelView::updateStruts | ( | ) | [protected] |
Definition at line 571 of file panelview.cpp.
The documentation for this class was generated from the following files: