summaryrefslogtreecommitdiff
path: root/noncore/applets/autorotateapplet
Side-by-side diff
Diffstat (limited to 'noncore/applets/autorotateapplet') (more/less context) (show whitespace changes)
-rw-r--r--noncore/applets/autorotateapplet/autorotateimpl.cpp2
-rw-r--r--noncore/applets/autorotateapplet/autorotateimpl.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/noncore/applets/autorotateapplet/autorotateimpl.cpp b/noncore/applets/autorotateapplet/autorotateimpl.cpp
index 1b15c6d..305ac50 100644
--- a/noncore/applets/autorotateapplet/autorotateimpl.cpp
+++ b/noncore/applets/autorotateapplet/autorotateimpl.cpp
@@ -1,18 +1,18 @@
#include "autorotate.h"
#include "autorotateimpl.h"
AutoRotateImpl::AutoRotateImpl()
- : autoRotate(0), ref(0) {
+ : autoRotate(0){
qDebug ("here");
}
AutoRotateImpl::~AutoRotateImpl() {
delete autoRotate;
}
QWidget *AutoRotateImpl::applet( QWidget *parent ) {
if ( !autoRotate ) {
autoRotate = new AutoRotate( parent );
}
return autoRotate;
diff --git a/noncore/applets/autorotateapplet/autorotateimpl.h b/noncore/applets/autorotateapplet/autorotateimpl.h
index 87b0731..fde23a9 100644
--- a/noncore/applets/autorotateapplet/autorotateimpl.h
+++ b/noncore/applets/autorotateapplet/autorotateimpl.h
@@ -6,14 +6,13 @@ class AutoRotateImpl : public TaskbarAppletInterface {
public:
AutoRotateImpl();
virtual ~AutoRotateImpl();
QRESULT queryInterface( const QUuid&, QUnknownInterface** );
Q_REFCOUNT
virtual QWidget *applet( QWidget *parent );
virtual int position() const;
private:
AutoRotate *autoRotate;
- ulong ref;
};