KDEUI
kpixmapsequencewidget.h
Go to the documentation of this file.
00001 /* 00002 Copyright 2009 Sebastian Trueg <trueg@kde.org> 00003 00004 This library is free software; you can redistribute it and/or 00005 modify it under the terms of the GNU Lesser General Public 00006 License as published by the Free Software Foundation; either 00007 version 2.1 of the License, or (at your option) any later version. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Lesser General Public License for more details. 00013 00014 You should have received a copy of the GNU Lesser General Public License 00015 along with this library; see the file COPYING.LIB. If not, write to 00016 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00017 Boston, MA 02110-1301, USA. 00018 */ 00019 00020 #ifndef _K_PIXMAPSEQUENCE_WIDGET_H_ 00021 #define _K_PIXMAPSEQUENCE_WIDGET_H_ 00022 00023 #include <QtGui/QWidget> 00024 00025 #include "kdeui_export.h" 00026 00027 class KPixmapSequence; 00028 00043 class KDEUI_EXPORT KPixmapSequenceWidget : public QWidget 00044 { 00045 Q_OBJECT 00046 Q_PROPERTY(int interval READ interval WRITE setInterval) 00047 00048 public: 00052 KPixmapSequenceWidget(QWidget *parent = 0); 00053 00057 ~KPixmapSequenceWidget(); 00058 00064 KPixmapSequence sequence() const; 00065 00071 int interval() const; 00072 00076 QSize sizeHint() const; 00077 00078 public Q_SLOTS: 00082 void setSequence(const KPixmapSequence &seq); 00083 00088 void setInterval(int msecs); 00089 00090 private: 00091 class Private; 00092 Private *const d; 00093 }; 00094 00095 #endif
KDE 4.6 API Reference