• 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
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
 QObject (QObject *parent, const char *name)
 
virtual  ~QObject ()
 
bool blockSignals (bool block)
 
QObject * child (const char *objName, const char *inheritsClass, bool recursiveSearch) const
 
const QObjectList & children () const
 
const char * className () const
 
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const QObject *receiver, const char *method)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method)
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QByteArray > dynamicPropertyNames () const
 
virtual bool event (QEvent *e)
 
T findChild (const QString &name) const
 
QList< T > findChildren (const QRegExp &regExp) const
 
QList< T > findChildren (const QString &name) const
 
bool inherits (const char *className) const
 
void insertChild (QObject *object)
 
void installEventFilter (QObject *filterObj)
 
bool isA (const char *className) const
 
bool isWidgetType () const
 
void killTimer (int id)
 
virtual const QMetaObject * metaObject () const
 
void moveToThread (QThread *targetThread)
 
const char * name () const
 
const char * name (const char *defaultName) const
 
QString objectName () const
 
QObject * parent () const
 
QVariant property (const char *name) const
 
void removeChild (QObject *object)
 
void removeEventFilter (QObject *obj)
 
void setName (const char *name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval)
 
QThread * thread () const
 

Additional Inherited Members

- Static Public Member Functions inherited from QObject
bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 
- Protected Member Functions inherited from QObject
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
 
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const char *signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const char *signal)
 
int receivers (const char *signal) const
 
QObject * sender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 
- Properties inherited from QObject
 objectName
 

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-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:24:03 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
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • 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