[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    playground/base/plasma/applets/presence
From:       Dariusz Mikulski <dariusz.mikulski () gmail ! com>
Date:       2009-01-13 22:20:25
Message-ID: 1231885225.286341.28012.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 910668 by mikulski:

fix parent's

 M  +4 -4      presence.cpp  


--- trunk/playground/base/plasma/applets/presence/presence.cpp #910667:910668
@@ -75,7 +75,7 @@
     // Set up the icon.
     Q_ASSERT(!m_icon);  // Pointer should still be assigned to 0.
     m_icon = new Plasma::IconWidget(this);
-    m_icon->setIcon(KIcon("user-online"));
+    m_icon->setIcon(KIcon("user-offline"));
 
     // The icon has been changed.
     iconChanged();
@@ -124,7 +124,7 @@
         Q_ASSERT(!m_masterIconLabel);  // Pointer should still be assigned to 0.
         Q_ASSERT(!m_masterStatusMessageLabel);  // Pointer should still be assigned to 0.
 
-        m_masterStatusLayout = new QHBoxLayout();
+        m_masterStatusLayout = new QHBoxLayout(m_widget);
 
         m_masterIconLabel = new QLabel;
         m_masterStatusMessageLabel = new QLabel;
@@ -138,8 +138,8 @@
         // Set up the rest of the view/layout etc. stuff.
         Q_ASSERT(!m_widget);  // Pointer should still be assigned to 0.
         Q_ASSERT(!m_layout);  // Pointer should still be assigned to 0.
-        m_widget = new QWidget;
-        m_layout = new QVBoxLayout();
+        m_widget = new QWidget();
+        m_layout = new QVBoxLayout(m_widget);
         m_layout->addLayout(m_masterStatusLayout);
         m_layout->addWidget(m_accountsView);
         m_widget->setLayout(m_layout);
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic