author | harlekin <harlekin> | 2004-01-05 17:42:58 (UTC) |
---|---|---|
committer | harlekin <harlekin> | 2004-01-05 17:42:58 (UTC) |
commit | 3804209658d051d197526a28561bbd2e31b6f439 (patch) (side-by-side diff) | |
tree | a584208303908ca31f6ab039ac00e9fe6fcd606a /noncore/net/mail/taskbarapplet/mailapplet.h | |
parent | 642fd965cca78fe4398cbe12afcd15cd2f2257ad (diff) | |
download | opie-3804209658d051d197526a28561bbd2e31b6f439.zip opie-3804209658d051d197526a28561bbd2e31b6f439.tar.gz opie-3804209658d051d197526a28561bbd2e31b6f439.tar.bz2 |
inherit from qwidget instead of qbutton
Diffstat (limited to 'noncore/net/mail/taskbarapplet/mailapplet.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/net/mail/taskbarapplet/mailapplet.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/noncore/net/mail/taskbarapplet/mailapplet.h b/noncore/net/mail/taskbarapplet/mailapplet.h index 8369176..25f0652 100644 --- a/noncore/net/mail/taskbarapplet/mailapplet.h +++ b/noncore/net/mail/taskbarapplet/mailapplet.h @@ -1,37 +1,38 @@ #ifndef MAILAPPLET_H #define MAILAPPLET_H #include <qbutton.h> #include <libmailwrapper/statusmail.h> class Config; class QTimer; -class MailApplet : public QButton { +class MailApplet : public QWidget { Q_OBJECT public: - MailApplet( QWidget *parent = 0, const char *name = 0, WFlags fl = 0 ); + MailApplet( QWidget *parent = 0 ); ~MailApplet(); protected: - void drawButton(QPainter *); - void drawButtonText(QPainter *); void gotNewMail(); + void mouseReleaseEvent( QMouseEvent* ); + void paintEvent( QPaintEvent* ); protected slots: void startup(); void slotCheck(); void slotClicked(); private: Config *m_config; QTimer *m_intervalTimer; int m_intervalMs; StatusMail* m_statusMail; + int m_newMails; }; #endif |