summaryrefslogtreecommitdiff
path: root/core/applets/restartapplet
Unidiff
Diffstat (limited to 'core/applets/restartapplet') (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/restartapplet/restart.cpp2
-rw-r--r--core/applets/restartapplet/restartappletimpl.cpp5
2 files changed, 2 insertions, 5 deletions
diff --git a/core/applets/restartapplet/restart.cpp b/core/applets/restartapplet/restart.cpp
index 226c2a8..2e17608 100644
--- a/core/applets/restartapplet/restart.cpp
+++ b/core/applets/restartapplet/restart.cpp
@@ -50,23 +50,21 @@ static char *restart_xpm[] = {
50" .. ", 50" .. ",
51" "}; 51" "};
52RestartApplet::RestartApplet( QWidget *parent, const char *name ) 52RestartApplet::RestartApplet( QWidget *parent, const char *name )
53 : QWidget( parent, name ) { 53 : QWidget( parent, name ) {
54 setFixedHeight( 18 ); 54 setFixedHeight( 18 );
55 setFixedWidth( 16 ); 55 setFixedWidth( 16 );
56 qDebug("new restartapplet");
57 show(); 56 show();
58} 57}
59 58
60RestartApplet::~RestartApplet() { 59RestartApplet::~RestartApplet() {
61} 60}
62 61
63void RestartApplet::mousePressEvent( QMouseEvent *) { 62void RestartApplet::mousePressEvent( QMouseEvent *) {
64 QCopEnvelope e("QPE/System", "restart()"); 63 QCopEnvelope e("QPE/System", "restart()");
65} 64}
66 65
67void RestartApplet::paintEvent( QPaintEvent* ) { 66void RestartApplet::paintEvent( QPaintEvent* ) {
68 QPainter p(this); 67 QPainter p(this);
69 qDebug("paint RESTART pixmap");
70 p.drawPixmap( 0, 1, ( const char** ) restart_xpm ); 68 p.drawPixmap( 0, 1, ( const char** ) restart_xpm );
71} 69}
72 70
diff --git a/core/applets/restartapplet/restartappletimpl.cpp b/core/applets/restartapplet/restartappletimpl.cpp
index d8e10d3..3adc80c 100644
--- a/core/applets/restartapplet/restartappletimpl.cpp
+++ b/core/applets/restartapplet/restartappletimpl.cpp
@@ -30,13 +30,12 @@ RestartAppletImpl::~RestartAppletImpl()
30{ 30{
31 delete restart; 31 delete restart;
32} 32}
33 33
34QWidget *RestartAppletImpl::applet( QWidget *parent ) 34QWidget *RestartAppletImpl::applet( QWidget *parent )
35{ 35{
36 qDebug("restart applet");
37 if ( !restart ) 36 if ( !restart )
38 restart = new RestartApplet( parent ); 37 restart = new RestartApplet( parent );
39 return restart; 38 return restart;
40} 39}
41 40
42int RestartAppletImpl::position() const 41int RestartAppletImpl::position() const
@@ -49,14 +48,14 @@ QRESULT RestartAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface
49 *iface = 0; 48 *iface = 0;
50 if ( uuid == IID_QUnknown ) 49 if ( uuid == IID_QUnknown )
51 *iface = this; 50 *iface = this;
52 else if ( uuid == IID_TaskbarApplet ) 51 else if ( uuid == IID_TaskbarApplet )
53 *iface = this; 52 *iface = this;
54 else 53 else
55 return QS_FALSE; 54 return QS_FALSE;
56 55
57 if ( *iface ) 56 if ( *iface )
58 (*iface)->addRef(); 57 (*iface)->addRef();
59 return QS_OK; 58 return QS_OK;
60} 59}
61 60
62Q_EXPORT_INTERFACE() 61Q_EXPORT_INTERFACE()