QLabelAdapter.h

00001 /*
00002  * @(#)QLabelAdapter.h  0.2.0 / 2007-11-10
00003  *
00004  * Copyright (c) 2007, ETF and contributors. All rights reserved.
00005  *
00006  * This software is licensed under the LGPL, version 2.1, license.
00007  * A copy of the license is included in the file LICENSE-LGPL.txt.
00008  */
00009 #ifndef QLABELADAPTER_H
00010 #define QLABELADAPTER_H
00011 
00012 #include "JavaQxQSwing.h"
00013 
00014 /*^**************************************************************************^*/
00015 /*- QLabelAdapter Class.                                                     -*/
00016 /*^**************************************************************************^*/
00017 
00024 class JAVAQX_EXPORT QLabelAdapter : public QLabel
00025 {
00026 public:
00027   QLabelAdapter();
00028 public:
00029   QIcon icon() const;
00030   void setIcon(const QIcon &icon);
00031   void setIconSize(const QSize &size);
00032 public:
00033   virtual QSize sizeHint() const;
00034 protected:
00035   void paintEvent(QPaintEvent *e);
00036 protected:
00037   QIcon m_icon;
00038   QSize m_iconSize;
00039 };
00040 
00041 #endif // QLABELADAPTER_H
00042 
00043 /*^*****************************************************************************
00044   File History:
00045 
00046  - 2007-11-10 22:44:12 Slobodan
00047    Initial version
00048 
00049 *****************************************************************************^*/

Copyright © 2007 ETF and contributors. All Rights Reserved.