summaryrefslogtreecommitdiffstats
path: root/src/tdesvn_part.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:06:09 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:06:09 -0600
commit47bca8a908a56349637c0b91f4fc4f49f85f820f (patch)
tree56afb281e35997ab842e4c34ba21c98b4c1c6283 /src/tdesvn_part.cpp
parent7143a99b4f885d13f7ab57bca4156900cabb34b8 (diff)
downloadtdesvn-47bca8a908a56349637c0b91f4fc4f49f85f820f.tar.gz
tdesvn-47bca8a908a56349637c0b91f4fc4f49f85f820f.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'src/tdesvn_part.cpp')
-rw-r--r--src/tdesvn_part.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/tdesvn_part.cpp b/src/tdesvn_part.cpp
index c8f1e11..cab6e14 100644
--- a/src/tdesvn_part.cpp
+++ b/src/tdesvn_part.cpp
@@ -177,42 +177,42 @@ TDEAboutData* tdesvnPart::createAboutData()
*/
void tdesvnPart::setupActions()
{
- KToggleAction *toggletemp;
+ TDEToggleAction *toggletemp;
- toggletemp = new KToggleAction(i18n("Logs follow node changes"),KShortcut(),
+ toggletemp = new TDEToggleAction(i18n("Logs follow node changes"),TDEShortcut(),
actionCollection(),"toggle_log_follows");
toggletemp->setChecked(Kdesvnsettings::log_follows_nodes());
connect(toggletemp,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotLogFollowNodes(bool)));
- toggletemp = new KToggleAction(i18n("Display ignored files"),KShortcut(),
+ toggletemp = new TDEToggleAction(i18n("Display ignored files"),TDEShortcut(),
actionCollection(),"toggle_ignored_files");
toggletemp->setChecked(Kdesvnsettings::display_ignored_files());
connect(toggletemp,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotDisplayIgnored(bool)));
- toggletemp = new KToggleAction(i18n("Display unknown files"),KShortcut(),
+ toggletemp = new TDEToggleAction(i18n("Display unknown files"),TDEShortcut(),
actionCollection(),"toggle_unknown_files");
toggletemp->setChecked(Kdesvnsettings::display_unknown_files());
connect(toggletemp,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotDisplayUnkown(bool)));
- toggletemp = new KToggleAction(i18n("Hide unchanged files"),KShortcut(),
+ toggletemp = new TDEToggleAction(i18n("Hide unchanged files"),TDEShortcut(),
actionCollection(),"toggle_hide_unchanged_files");
toggletemp->setChecked(Kdesvnsettings::hide_unchanged_files());
connect(toggletemp,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotHideUnchanged(bool)));
- toggletemp = new KToggleAction(i18n("Work online"),KShortcut(),
+ toggletemp = new TDEToggleAction(i18n("Work online"),TDEShortcut(),
actionCollection(),"toggle_network");
toggletemp->setChecked(Kdesvnsettings::network_on());
connect(toggletemp,TQT_SIGNAL(toggled(bool)),this,TQT_SLOT(slotEnableNetwork(bool)));
kdDebug()<<"Appname = " << (TQString)kapp->instanceName() << endl;
- KAction * t = KStdAction::preferences(this, TQT_SLOT(slotShowSettings()), actionCollection(),"tdesvnpart_pref");
+ TDEAction * t = KStdAction::preferences(this, TQT_SLOT(slotShowSettings()), actionCollection(),"tdesvnpart_pref");
t->setText(i18n("&Configure %1...").arg("Kdesvn"));
if (TQString(kapp->instanceName())!=TQString("tdesvn")) {
- (void)new KAction(i18n("&About tdesvn part"), "tdesvn", 0, this, TQT_SLOT(showAboutApplication()), actionCollection(), "help_about_tdesvnpart");
- (void)new KAction(i18n("Kdesvn &Handbook"), "help", 0, this, TQT_SLOT(appHelpActivated()), actionCollection(), "help_tdesvn");
- (void)new KAction(i18n("Send Bugreport for tdesvn"), 0, 0, this, TQT_SLOT(reportBug()), actionCollection(), "report_bug");
+ (void)new TDEAction(i18n("&About tdesvn part"), "tdesvn", 0, this, TQT_SLOT(showAboutApplication()), actionCollection(), "help_about_tdesvnpart");
+ (void)new TDEAction(i18n("Kdesvn &Handbook"), "help", 0, this, TQT_SLOT(appHelpActivated()), actionCollection(), "help_tdesvn");
+ (void)new TDEAction(i18n("Send Bugreport for tdesvn"), 0, 0, this, TQT_SLOT(reportBug()), actionCollection(), "report_bug");
}
actionCollection()->setHighlightingEnabled(true);
}
@@ -375,20 +375,20 @@ void tdesvnPart::slotShowSettings()
*/
void tdesvnPart::slotSettingsChanged()
{
- KAction * temp;
+ TDEAction * temp;
temp = actionCollection()->action("toggle_log_follows");
if (temp) {
- ((KToggleAction*)temp)->setChecked(Kdesvnsettings::log_follows_nodes());
+ ((TDEToggleAction*)temp)->setChecked(Kdesvnsettings::log_follows_nodes());
}
temp = actionCollection()->action("toggle_ignored_files");
if (temp) {
- ((KToggleAction*)temp)->setChecked(Kdesvnsettings::display_ignored_files());
+ ((TDEToggleAction*)temp)->setChecked(Kdesvnsettings::display_ignored_files());
}
#if 0
/// not needed this momenta
temp = actionCollection()->action("toggle_unknown_files");
if (temp) {
- ((KToggleAction*)temp)->setChecked(tdesvnPart_Prefs::self()->mdisp_unknown_files);
+ ((TDEToggleAction*)temp)->setChecked(tdesvnPart_Prefs::self()->mdisp_unknown_files);
}
#endif
emit settingsChanged();