• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdelibs API Reference
  • KDE Home
  • Contact Us
 

KDEUI

Public Slots | Public Member Functions | List of all members
KPixmapSequenceOverlayPainter Class Reference

#include <KPixmapSequenceOverlayPainter>

Inheritance diagram for KPixmapSequenceOverlayPainter:
Inheritance graph
[legend]

Public Slots

void setAlignment (Qt::Alignment align)
 
void setInterval (int msecs)
 
void setOffset (const QPoint &offset)
 
void setRect (const QRect &rect)
 
void setSequence (const KPixmapSequence &seq)
 
void setWidget (QWidget *w)
 
void start ()
 
void stop ()
 

Public Member Functions

 KPixmapSequenceOverlayPainter (QObject *parent=0)
 
 ~KPixmapSequenceOverlayPainter ()
 
Qt::Alignment alignment () const
 
int interval () const
 
QPoint offset () const
 
QRect rect () const
 
KPixmapSequence sequence () const
 

Detailed Description

Paints a KPixmapSequence on top of any widget at any position.

The KPixmapSequenceOverlayPainter paints an overlay on top of an arbitrary QWidget using a KPixmapSequence. This is typically used for spinners indicating that a process is not finished yet.

Author
Sebastian Trueg trueg.nosp@m.@kde.nosp@m..org
Since
4.4

Definition at line 46 of file kpixmapsequenceoverlaypainter.h.

Constructor & Destructor Documentation

KPixmapSequenceOverlayPainter::KPixmapSequenceOverlayPainter ( QObject *  parent = 0)

Constructor.

Definition at line 115 of file kpixmapsequenceoverlaypainter.cpp.

KPixmapSequenceOverlayPainter::~KPixmapSequenceOverlayPainter ( )

Destructor.

Definition at line 128 of file kpixmapsequenceoverlaypainter.cpp.

Member Function Documentation

Qt::Alignment KPixmapSequenceOverlayPainter::alignment ( ) const

The alignment of the pixmaps in the rect.

See also
setAlignment

Definition at line 161 of file kpixmapsequenceoverlaypainter.cpp.

int KPixmapSequenceOverlayPainter::interval ( ) const

The interval between frames.

See also
setInterval

Definition at line 141 of file kpixmapsequenceoverlaypainter.cpp.

QPoint KPixmapSequenceOverlayPainter::offset ( ) const

The optional offset within the rect.

See also
setOffset

Definition at line 167 of file kpixmapsequenceoverlaypainter.cpp.

QRect KPixmapSequenceOverlayPainter::rect ( ) const

The optional rect to draw the pixmaps in.

See also
setRect

Definition at line 147 of file kpixmapsequenceoverlaypainter.cpp.

KPixmapSequence KPixmapSequenceOverlayPainter::sequence ( ) const

The sequence used to draw the overlay.

See also
setSequence

Definition at line 135 of file kpixmapsequenceoverlaypainter.cpp.

void KPixmapSequenceOverlayPainter::setAlignment ( Qt::Alignment  align)
slot

Set the alignment of the sequence in rect.

Parameters
alignalignment of the overlay. Qt::AlignJustify does not make sense here. Defaults to Qt::Center.

Definition at line 204 of file kpixmapsequenceoverlaypainter.cpp.

void KPixmapSequenceOverlayPainter::setInterval ( int  msecs)
slot

Set the interval between frames.

The default is 200.

Definition at line 182 of file kpixmapsequenceoverlaypainter.cpp.

void KPixmapSequenceOverlayPainter::setOffset ( const QPoint &  offset)
slot

Set the offset relative to the placement determined by alignment and rect.

Parameters
offsetAn optional offset which allows an absolute placement.

Defaults to an empty point.

Definition at line 213 of file kpixmapsequenceoverlaypainter.cpp.

void KPixmapSequenceOverlayPainter::setRect ( const QRect &  rect)
slot

Set the rect in which to place the sequence.

Be aware that this optional property does not scale the pixmaps (except if it is smaller) but allows to change the placement.

Parameters
rectThe rect in which to draw the pixmap using alignment and offset. Be aware that setting a rect bigger than the widget can lead to weird painting errors.

Defaults to the widget's rect.

Definition at line 195 of file kpixmapsequenceoverlaypainter.cpp.

void KPixmapSequenceOverlayPainter::setSequence ( const KPixmapSequence &  seq)
slot

Set the sequence to be used.

By default the KDE busy sequence is used.

Definition at line 173 of file kpixmapsequenceoverlaypainter.cpp.

void KPixmapSequenceOverlayPainter::setWidget ( QWidget *  w)
slot

Set the widget to draw the overlay on.

Definition at line 188 of file kpixmapsequenceoverlaypainter.cpp.

void KPixmapSequenceOverlayPainter::start ( )
slot

Start drawing the sequence.

The overlay will be drawn until a call to stop()

Definition at line 222 of file kpixmapsequenceoverlaypainter.cpp.

void KPixmapSequenceOverlayPainter::stop ( )
slot

Stop drawing the overlay.

Definition at line 238 of file kpixmapsequenceoverlaypainter.cpp.


The documentation for this class was generated from the following files:
  • kpixmapsequenceoverlaypainter.h
  • kpixmapsequenceoverlaypainter.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal