knotebutton.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
#ifndef KNOTEBUTTON_H
00022
#define KNOTEBUTTON_H
00023
00024
#include <qpushbutton.h>
00025
00026
class QPainter;
00027
class QEvent;
00028
class QResizeEvent;
00029
00030
00031
class KNoteButton:
public QPushButton
00032 {
00033 Q_OBJECT
00034
public:
00035 KNoteButton(
const QString& icon,
QWidget *parent=0,
const char *name=0 );
00036 ~KNoteButton();
00037
00038
virtual QSize sizeHint() const;
00039
00040 protected:
00041 virtual
void enterEvent(
QEvent * );
00042 virtual
void leaveEvent( QEvent * );
00043
00044 virtual
void drawButton(
QPainter *p );
00045 virtual
void drawButtonLabel(
QPainter *p );
00046
00047 private:
00048
bool m_flat;
00049 };
00050
00051 #endif
This file is part of the documentation for knotes Library Version 3.3.0.