summaryrefslogtreecommitdiff
path: root/noncore/applets/autorotateapplet/autorotate.h
authormickeyl <mickeyl>2004-03-01 21:10:13 (UTC)
committer mickeyl <mickeyl>2004-03-01 21:10:13 (UTC)
commit77af6f58d59011e123309c82b684695508a46787 (patch) (side-by-side diff)
tree1eeb3b323bc14581af7da9fe5b58c4c611b00575 /noncore/applets/autorotateapplet/autorotate.h
parent7b0bdb05e4ae29b2643d73e3b8f20a86a86dcccc (diff)
downloadopie-77af6f58d59011e123309c82b684695508a46787.zip
opie-77af6f58d59011e123309c82b684695508a46787.tar.gz
opie-77af6f58d59011e123309c82b684695508a46787.tar.bz2
remove boiler plate code in favour of a template
Diffstat (limited to 'noncore/applets/autorotateapplet/autorotate.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/applets/autorotateapplet/autorotate.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/noncore/applets/autorotateapplet/autorotate.h b/noncore/applets/autorotateapplet/autorotate.h
index e05e7a0..ef322a6 100644
--- a/noncore/applets/autorotateapplet/autorotate.h
+++ b/noncore/applets/autorotateapplet/autorotate.h
@@ -13,26 +13,25 @@
#ifndef AUTOROTATE_H
#define AUTOROTATE_H
#include <qwidget.h>
#include <qpixmap.h>
#include <qpopupmenu.h>
class AutoRotate : public QWidget {
Q_OBJECT
public:
AutoRotate( QWidget *parent = 0 );
~AutoRotate();
-
-private slots:
+ static int position();
protected:
void paintEvent( QPaintEvent* );
void mousePressEvent( QMouseEvent * );
private:
bool isRotateEnabled();
void setRotateEnabled(bool);
QPixmap enabledPm;
QPixmap disabledPm;
void iconShow();
QPopupMenu *popupMenu;
};