qtmobility/examples/bearermonitor/sessionwidget.cpp
changeset 4 90517678cc4f
parent 0 cfcbf08528c4
child 5 453da2cfceef
--- a/qtmobility/examples/bearermonitor/sessionwidget.cpp	Fri Apr 16 15:51:22 2010 +0300
+++ b/qtmobility/examples/bearermonitor/sessionwidget.cpp	Mon May 03 13:18:40 2010 +0300
@@ -68,6 +68,10 @@
             this, SLOT(closeSession()));
     connect(stopSessionButton, SIGNAL(clicked()),
             this, SLOT(stopSession()));
+#if defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)
+    connect(deleteSessionButton, SIGNAL(clicked()),
+            this, SLOT(deleteSession()));
+#endif
 }
 
 SessionWidget::~SessionWidget()
@@ -75,6 +79,13 @@
     delete session;
 }
 
+#if defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)
+void SessionWidget::deleteSession()
+{
+    delete this;
+}
+#endif
+
 void SessionWidget::updateSession()
 {
     updateSessionState(session->state());