00001 /*************************************************************************** 00002 qpicturelabel.h 00003 ------------------- 00004 copyright : (C) 2004 by Jos van den Oever 00005 email : jos@vandenoever.info 00006 ***************************************************************************/ 00007 00008 /*************************************************************************** 00009 * * 00010 * This program is free software; you can redistribute it and/or modify * 00011 * it under the terms of the GNU General Public License as published by * 00012 * the Free Software Foundation; either version 2 of the License, or * 00013 * (at your option) any later version. * 00014 * * 00015 ***************************************************************************/ 00016 #ifndef QPICTURELABEL 00017 #define QPICTURELABEL 00018 00019 #include <qframe.h> 00020 #include <qpicture.h> 00021 00022 class QPictureLabel : public QFrame { 00023 public: 00024 QPictureLabel(QWidget* parent=0, const char* name=0, WFlags f=0); 00025 void setPicture(const QPicture &); 00026 protected: 00027 void paintEvent(QPaintEvent *); 00028 private: 00029 QPicture pict; 00030 }; 00031 00032 #endif