[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/sysadmin/shaman
From: Lukas Appelhans <l.appelhans () gmx ! de>
Date: 2010-05-23 12:55:43
Message-ID: 20100523130132.700A6AC8BD () svn ! kde ! org
[Download RAW message or body]
SVN commit 1129702 by lappelhans:
No need to delete packages in the model as the backend should handle all this...
M +1 -0 libshaman/shamanbase.h
M +1 -1 plugins/packagesview/PackagesModel.cpp
M +6 -2 plugins/testguiscript/guitest.py
--- trunk/playground/sysadmin/shaman/libshaman/shamanbase.h #1129701:1129702
@@ -51,6 +51,7 @@
class SHAMAN_EXPORT Base : public QObject
{
Q_OBJECT
+ Q_ENUMS(OperationMode)
Q_DISABLE_COPY(Base)
Q_DECLARE_PRIVATE(Base)
BasePrivate * const d_ptr;
--- trunk/playground/sysadmin/shaman/plugins/packagesview/PackagesModel.cpp #1129701:1129702
@@ -274,7 +274,7 @@
{
kDebug() << "Adding" << pkgList.count() << "metapackages";
Shaman::AbstractPackage::List pkgs;
- qDeleteAll(m_packages);
+ //qDeleteAll(m_packages);
m_packages.clear();
foreach (Shaman::MetaPackage* package, pkgList) {
--- trunk/playground/sysadmin/shaman/plugins/testguiscript/guitest.py #1129701:1129702
@@ -1,4 +1,5 @@
#!/usr/bin/env python
+# -*- coding: utf-8 -*-
import GuiPlugin
import GuiInterface
@@ -27,12 +28,15 @@
self.m_action = QAction("foobar", None)
action_ptr = sip.unwrapinstance(self.m_action)
GuiInterface.addAction(action_ptr)
+ GuiInterface.statusBar().setProgress(11)
+ #print CoreInterface.backend().bla()
#print CoreInterface.backend().packageGroups()
+ #print CoreInterface.backend().packages()
def preUpdateRepositoriesHook(self):
print "test this hook man"
- print CoreInterface.backend().error()
- print CoreInterface.backend().packageGroups()
+ #print CoreInterface.backend().error()
+ #print CoreInterface.backend().packageGroups()
#print CoreInterface.backend().repositories()
GuiPlugin.setHookCompleted(GuiPlugin.PreUpdateRepositoriesHook, GuiPlugin.Success)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic