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

List:       kde-commits
Subject:    [kde-workspace/plasma/sreich/sal-qml] plasma/netbook/containments/sal/applet: Small optimizations
From:       Aurélien Gâteau <agateau () kde ! org>
Date:       2012-05-03 13:53:00
Message-ID: 20120503135300.93D80A60A9 () git ! kde ! org
[Download RAW message or body]

Git commit ef7248e54c6041e54fcac46f207e9bdd18591ddb by Aurélien Gâteau.
Committed on 03/05/2012 at 11:17.
Pushed by gateau into branch 'plasma/sreich/sal-qml'.

Small optimizations

- Do not keep an instance of QDBusInterface around every time button is clicked
- Use an async call to show salviewer

M  +2    -2    plasma/netbook/containments/sal/applet/sallauncher.cpp

http://commits.kde.org/kde-workspace/ef7248e54c6041e54fcac46f207e9bdd18591ddb

diff --git a/plasma/netbook/containments/sal/applet/sallauncher.cpp \
b/plasma/netbook/containments/sal/applet/sallauncher.cpp index 0debb0d..7b75bd0 \
                100644
--- a/plasma/netbook/containments/sal/applet/sallauncher.cpp
+++ b/plasma/netbook/containments/sal/applet/sallauncher.cpp
@@ -80,9 +80,9 @@ void SalLauncher::iconClicked()
 
     QDBusConnection bus = QDBusConnection::sessionBus();
 
-    QDBusInterface *interface = new QDBusInterface("org.kde.salViewer", \
"/SalViewer", "org.kde.salViewer", bus, this); +    QDBusInterface \
interface("org.kde.salViewer", "/SalViewer", "org.kde.salViewer", bus);  
-    interface->call("showPopup", containment()->screen());
+    interface.asyncCall("showPopup", containment()->screen());
 }
 
 #include "sallauncher.moc"


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

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