Rename KApplication to TDEApplication to avoid conflicts with KDE4

pull/2/head
Timothy Pearson 12 years ago
parent bd60bfd428
commit 3f33cbaf7f

@ -1729,7 +1729,7 @@ class DpmsPage(QWidget):
def create_displayconfig(parent,name):
""" Factory function for KControl """
global kapp
kapp = KApplication.kApplication()
kapp = TDEApplication.kApplication()
return DisplayApp(parent, name)
############################################################################
@ -1750,7 +1750,7 @@ if standalone:
aboutdata = MakeAboutData()
KCmdLineArgs.init(sys.argv,aboutdata)
kapp = KApplication()
kapp = TDEApplication()
displayapp = DisplayApp()
displayapp.exec_loop()

@ -692,6 +692,6 @@ if standalone:
KCmdLineArgs.init(sys.argv,aboutdata)
kapp = KApplication()
kapp = TDEApplication()
grubconfigapp = GrubConfigAppClass()
grubconfigapp.exec_loop()

@ -289,7 +289,7 @@ if standalone:
# print args.count()
# ----------------------------------------------------------------------------
kapp = KApplication()
kapp = TDEApplication()
KGlobal.iconLoader().addAppDir("guidance")
fuserapp = FUser(device)

@ -3281,7 +3281,7 @@ class MountConfigApp(programbase):
def create_mountconfig(parent,name):
global kapp, microhal
microhal = MicroHAL.MicroHAL()
kapp = KApplication.kApplication()
kapp = TDEApplication.kApplication()
return MountConfigApp(parent, name)
############################################################################
@ -3298,6 +3298,6 @@ if standalone:
KCmdLineArgs.init(sys.argv,aboutdata)
microhal = MicroHAL.MicroHAL()
kapp = KApplication()
kapp = TDEApplication()
sysvapp = MountConfigApp()
sysvapp.exec_loop()

@ -1099,7 +1099,7 @@ class PowermanagerApp(KDialogBase):
# There's a bug in KUniqueApplication that shows the pid in the dcop name,
# this fugly hack works around it.
class PMApp(KApplication):
class PMApp(TDEApplication):
def name(self):
return "power-manager"
@ -1116,7 +1116,7 @@ if __name__ == "__main__":
aboutdata.setProgramLogo(QImage("power-manager.png"))
KCmdLineArgs.init(sys.argv, aboutdata)
#kapp = KUniqueApplication(True, True, False)
#kapp = KApplication()
#kapp = TDEApplication()
kapp = PMApp(True, True)
mainWindow = PowermanagerApp(None, "main window")
doDcop(kapp)

@ -10,7 +10,7 @@
import sys
from qt import *
from tdecore import KCmdLineArgs, KApplication
from tdecore import KCmdLineArgs, TDEApplication
from tdecore import i18n
from tdeui import *
@ -232,7 +232,7 @@ if __name__ == "__main__":
version = ""
KCmdLineArgs.init (sys.argv, appname, description, version)
a = KApplication ()
a = TDEApplication ()
QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
w = PowerManagerUI()

@ -10,7 +10,7 @@
import sys
from qt import *
from tdecore import KCmdLineArgs, KApplication
from tdecore import KCmdLineArgs, TDEApplication
from tdecore import i18n
from tdeui import *
@ -59,7 +59,7 @@ if __name__ == "__main__":
version = ""
KCmdLineArgs.init (sys.argv, appname, description, version)
a = KApplication ()
a = TDEApplication ()
QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
w = NotifyWidget()

@ -10,7 +10,7 @@
import sys
from qt import *
from tdecore import KCmdLineArgs, KApplication
from tdecore import KCmdLineArgs, TDEApplication
from tdecore import i18n
from tdeui import *
@ -48,7 +48,7 @@ if __name__ == "__main__":
version = ""
KCmdLineArgs.init (sys.argv, appname, description, version)
a = KApplication ()
a = TDEApplication ()
QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
w = ToolTip()

@ -1459,7 +1459,7 @@ class CommandRunner(KDialogBase):
# Factory function for KControl
def create_serviceconfig(parent,name):
global kapp
kapp = KApplication.kApplication()
kapp = TDEApplication.kApplication()
return SysVInitApp(parent, name)
############################################################################
@ -1476,6 +1476,6 @@ if standalone:
aboutdata = MakeAboutData()
KCmdLineArgs.init(sys.argv,aboutdata)
kapp = KApplication()
kapp = TDEApplication()
sysvapp = SysVInitApp()
sysvapp.exec_loop()

@ -1748,6 +1748,6 @@ if standalone:
KCmdLineArgs.init(sys.argv,aboutdata)
kapp = KApplication()
kapp = TDEApplication()
userconfigapp = UserConfigApp()
userconfigapp.exec_loop()

@ -3521,7 +3521,7 @@ class LibrariesPage(QWidget):
def create_wineconfig(parent,name):
""" Factory function for KControl """
global kapp
kapp = KApplication.kApplication()
kapp = TDEApplication.kApplication()
return WineConfigApp(parent, name)
############################################################################
@ -3546,7 +3546,7 @@ if standalone:
options = [("+[appname]", str(i18n("Application to change settings for")))]
KCmdLineArgs.addCmdLineOptions( options )
kapp = KApplication()
kapp = TDEApplication()
wineconfigapp = WineConfigApp()
wineconfigapp.exec_loop(None)

Loading…
Cancel
Save