diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-25 00:38:54 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-25 00:38:54 -0600 |
commit | da1522385e5367bae56b90fac55c4355e475905b (patch) | |
tree | bfa432864dbf322feb4ed3a878f1222ee8ea7727 /languages/cpp/app_templates/kscons_kmdi | |
parent | b9e542d0c805e9adee3a67e44532d5321032e21e (diff) | |
download | tdevelop-da1522385e5367bae56b90fac55c4355e475905b.tar.gz tdevelop-da1522385e5367bae56b90fac55c4355e475905b.zip |
Rename KCModule, KConfig, KIO, KServer, and KSocket to avoid conflicts with KDE4
Diffstat (limited to 'languages/cpp/app_templates/kscons_kmdi')
-rw-r--r-- | languages/cpp/app_templates/kscons_kmdi/README | 2 | ||||
-rw-r--r-- | languages/cpp/app_templates/kscons_kmdi/appkmdi.cpp | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/languages/cpp/app_templates/kscons_kmdi/README b/languages/cpp/app_templates/kscons_kmdi/README index a8de4e35..bf4edf71 100644 --- a/languages/cpp/app_templates/kscons_kmdi/README +++ b/languages/cpp/app_templates/kscons_kmdi/README @@ -67,7 +67,7 @@ For more details, consult : http://devel-home.kde.org/~larrosa/tutorial/p9.html http://developer.kde.org/documentation/tutorials/xmlui/preface.html -* Use KConfig XT to create your configuration dialogs and make +* Use TDEConfig XT to create your configuration dialogs and make them more maintainable. For that, you will need to write two simple configuration files diff --git a/languages/cpp/app_templates/kscons_kmdi/appkmdi.cpp b/languages/cpp/app_templates/kscons_kmdi/appkmdi.cpp index dd297ed7..30e6647c 100644 --- a/languages/cpp/app_templates/kscons_kmdi/appkmdi.cpp +++ b/languages/cpp/app_templates/kscons_kmdi/appkmdi.cpp @@ -103,7 +103,7 @@ setAutoSaveSettings(); // Read the dock config only if the app was started at least only once - kmdi is tricky - KConfig *cfg = new KConfig("%{APPNAMELC}_dockposrc"); + TDEConfig *cfg = new TDEConfig("%{APPNAMELC}_dockposrc"); if (cfg->readNumEntry("%{APPNAMELC}_main_dock_settings", 0) == 1) manager()->readConfig(cfg); cfg->writeEntry("%{APPNAMELC}_main_dock_settings", 1); delete cfg; @@ -114,7 +114,7 @@ %{APPNAMELC}kmdi::~%{APPNAMELC}kmdi() { // Write the dock config on exit - KConfig *cfg = new KConfig("%{APPNAMELC}_dockposrc"); + TDEConfig *cfg = new TDEConfig("%{APPNAMELC}_dockposrc"); manager()->writeConfig(cfg); delete cfg; delete m_console; @@ -315,10 +315,10 @@ void %{APPNAMELC}kmdi::optionsPreferences() // // compare the names of the widgets in the .ui file // to the names of the variables in the .kcfg file - if (KConfigDialog::showDialog("settings")) + if (TDEConfigDialog::showDialog("settings")) return; - KConfigDialog *dialog = new KConfigDialog(this, "settings", Settings::self(), KDialogBase::Swallow); + TDEConfigDialog *dialog = new TDEConfigDialog(this, "settings", Settings::self(), KDialogBase::Swallow); dialog->addPage(new prefs(), i18n("General"), "package_settings"); connect(dialog, TQT_SIGNAL(settingsChanged()), this, TQT_SLOT(settingsChanged())); dialog->show(); |