From 3d1fa8562bf693237a1a76918b4487cca3e2e356 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 21 Jan 2013 18:37:56 -0600 Subject: Rename KCmdLineArgs to TDECmdLineArgs to avoid conflicts with KDE4 --- templates/basic/basicapp.py | 4 ++-- templates/basic/menuapp1.py | 6 +++--- templates/basic/menuapp2.py | 6 +++--- templates/basic/menuapp3.py | 6 +++--- 4 files changed, 11 insertions(+), 11 deletions(-) (limited to 'templates/basic') diff --git a/templates/basic/basicapp.py b/templates/basic/basicapp.py index b5b5f62..01ce1af 100644 --- a/templates/basic/basicapp.py +++ b/templates/basic/basicapp.py @@ -30,7 +30,7 @@ copyright holder. import sys from qt import SIGNAL -from tdecore import TDEApplication, KCmdLineArgs, KAboutData +from tdecore import TDEApplication, TDECmdLineArgs, KAboutData from tdeui import KMainWindow class MainWin (KMainWindow): @@ -49,7 +49,7 @@ aboutData = KAboutData ("", "",\ aboutData.addAuthor ("author1", "whatever they did", "email@somedomain") aboutData.addAuthor ("author2", "they did something else", "another@email.address") -KCmdLineArgs.init (sys.argv, aboutData) +TDECmdLineArgs.init (sys.argv, aboutData) app = TDEApplication () mainWindow = MainWin (None, "main window") diff --git a/templates/basic/menuapp1.py b/templates/basic/menuapp1.py index 4b33bda..7809cef 100644 --- a/templates/basic/menuapp1.py +++ b/templates/basic/menuapp1.py @@ -44,7 +44,7 @@ import sys from qt import TQPopupMenu, SIGNAL -from tdecore import TDEApplication, KCmdLineArgs, KAboutData, i18n, KStdAccel, KIcon, KIconLoader +from tdecore import TDEApplication, TDECmdLineArgs, KAboutData, i18n, KStdAccel, KIcon, KIconLoader from tdeui import KMainWindow, KMessageBox TOOLBAR_NEW = 1 @@ -184,9 +184,9 @@ aboutData = KAboutData ("", "",\ aboutData.addAuthor ("author1", "whatever they did", "email@somedomain") aboutData.addAuthor ("author2", "they did something else", "another@email.address") -KCmdLineArgs.init (sys.argv, aboutData) +TDECmdLineArgs.init (sys.argv, aboutData) -KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) +TDECmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) app = TDEApplication () mainWindow = MainWin (None, "main window") diff --git a/templates/basic/menuapp2.py b/templates/basic/menuapp2.py index 54d3593..f765692 100644 --- a/templates/basic/menuapp2.py +++ b/templates/basic/menuapp2.py @@ -43,7 +43,7 @@ import sys from qt import TQPopupMenu, SIGNAL -from tdecore import TDEApplication, KCmdLineArgs, KAboutData, i18n, KShortcut +from tdecore import TDEApplication, TDECmdLineArgs, KAboutData, i18n, KShortcut from tdeui import KMainWindow, KMessageBox, KStdAction, KAction STATUSBAR_LEFT = 1 @@ -190,9 +190,9 @@ aboutData = KAboutData ("", "",\ aboutData.addAuthor ("author1", "whatever they did", "email@somedomain") aboutData.addAuthor ("author2", "they did something else", "another@email.address") -KCmdLineArgs.init (sys.argv, aboutData) +TDECmdLineArgs.init (sys.argv, aboutData) -KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) +TDECmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) app = TDEApplication () mainWindow = MainWin (None, "main window") diff --git a/templates/basic/menuapp3.py b/templates/basic/menuapp3.py index e3328bc..9051661 100644 --- a/templates/basic/menuapp3.py +++ b/templates/basic/menuapp3.py @@ -43,7 +43,7 @@ import sys from qt import TQPopupMenu, SIGNAL -from tdecore import TDEApplication, KCmdLineArgs, KAboutData, i18n, KShortcut +from tdecore import TDEApplication, TDECmdLineArgs, KAboutData, i18n, KShortcut from tdeui import KMainWindow, KMessageBox, KStdAction, KAction, KActionCollection STATUSBAR_LEFT = 1 @@ -151,9 +151,9 @@ aboutData = KAboutData ("menuapp3", "",\ aboutData.addAuthor ("author1", "whatever they did", "email@somedomain") aboutData.addAuthor ("author2", "they did something else", "another@email.address") -KCmdLineArgs.init (sys.argv, aboutData) +TDECmdLineArgs.init (sys.argv, aboutData) -KCmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) +TDECmdLineArgs.addCmdLineOptions ([("+files", "File to open")]) app = TDEApplication () mainWindow = MainWin (None, "main window") -- cgit v1.2.1