Rename KDE_VERSION to TDE_VERSION

pull/2/head
Timothy Pearson 13 years ago
parent 62b854c208
commit 9fad243fd6

@ -1,2 +1,2 @@
#include <kapplication.h> #include <kapplication.h>
#define KCONTROL_VERSION KDE_VERSION_STRING #define KCONTROL_VERSION TDE_VERSION_STRING

@ -165,17 +165,17 @@ static bool isNewRelease()
int versionMinor = KDesktopSettings::kDEVersionMinor(); int versionMinor = KDesktopSettings::kDEVersionMinor();
int versionRelease = KDesktopSettings::kDEVersionRelease(); int versionRelease = KDesktopSettings::kDEVersionRelease();
if( versionMajor < KDE_VERSION_MAJOR ) if( versionMajor < TDE_VERSION_MAJOR )
bNewRelease = true; bNewRelease = true;
else if( versionMinor < KDE_VERSION_MINOR ) else if( versionMinor < TDE_VERSION_MINOR )
bNewRelease = true; bNewRelease = true;
else if( versionRelease < KDE_VERSION_RELEASE ) else if( versionRelease < TDE_VERSION_RELEASE )
bNewRelease = true; bNewRelease = true;
if( bNewRelease ) { if( bNewRelease ) {
KDesktopSettings::setKDEVersionMajor( KDE_VERSION_MAJOR ); KDesktopSettings::setKDEVersionMajor( TDE_VERSION_MAJOR );
KDesktopSettings::setKDEVersionMinor( KDE_VERSION_MINOR ); KDesktopSettings::setKDEVersionMinor( TDE_VERSION_MINOR );
KDesktopSettings::setKDEVersionRelease( KDE_VERSION_RELEASE ); KDesktopSettings::setKDEVersionRelease( TDE_VERSION_RELEASE );
KDesktopSettings::writeConfig(); KDesktopSettings::writeConfig();
} }

@ -1,7 +1,7 @@
#ifndef __version_h__ #ifndef __version_h__
#define __version_h__ #define __version_h__
#define HELPCENTER_VERSION KDE_VERSION_STRING #define HELPCENTER_VERSION TDE_VERSION_STRING
#endif #endif
// vim:ts=2:sw=2:et // vim:ts=2:sw=2:et

@ -157,7 +157,7 @@ void KasAboutDialog::addInfoPage()
"<h2>Kasbar Version: %1</h2>" "<h2>Kasbar Version: %1</h2>"
"<b>KDE Version:</b> %2" "<b>KDE Version:</b> %2"
"</body></qt>" ) "</body></qt>" )
.arg( VERSION_STRING ).arg( KDE_VERSION_STRING ), .arg( VERSION_STRING ).arg( TDE_VERSION_STRING ),
aboutPage ); aboutPage );
KTextBrowser *text5 = new KTextBrowser( aboutPage ); KTextBrowser *text5 = new KTextBrowser( aboutPage );

@ -62,7 +62,7 @@ KInstance* KManPartFactory::instance()
if( !s_instance ) if( !s_instance )
{ {
s_about = new KAboutData( "kmanpart", s_about = new KAboutData( "kmanpart",
I18N_NOOP( "KMan" ), KDE_VERSION_STRING ); I18N_NOOP( "KMan" ), TDE_VERSION_STRING );
s_instance = new KInstance( s_about ); s_instance = new KInstance( s_about );
} }
return s_instance; return s_instance;

@ -319,8 +319,8 @@ static void InitStringDefinitions( void )
// \*S "Change to default font size" // \*S "Change to default font size"
#ifndef SIMPLE_MAN2HTML #ifndef SIMPLE_MAN2HTML
// Special KDE KIO man: // Special KDE KIO man:
const TQCString kdeversion(KDE_VERSION_STRING); const TQCString kdeversion(TDE_VERSION_STRING);
s_stringDefinitionMap.insert( ".KDE_VERSION_STRING", StringDefinition( kdeversion.length(), kdeversion ) ); s_stringDefinitionMap.insert( ".TDE_VERSION_STRING", StringDefinition( kdeversion.length(), kdeversion ) );
#endif #endif
} }
@ -1429,14 +1429,14 @@ static int read_only_number_register( const TQCString& name )
return s_nroff; return s_nroff;
#ifndef SIMPLE_MAN2HTML #ifndef SIMPLE_MAN2HTML
// Special KDE KIO man: // Special KDE KIO man:
else if ( name == ".KDE_VERSION_MAJOR" ) else if ( name == ".TDE_VERSION_MAJOR" )
return KDE_VERSION_MAJOR; return TDE_VERSION_MAJOR;
else if ( name == ".KDE_VERSION_MINOR" ) else if ( name == ".TDE_VERSION_MINOR" )
return KDE_VERSION_MINOR; return TDE_VERSION_MINOR;
else if ( name == ".KDE_VERSION_RELEASE" ) else if ( name == ".TDE_VERSION_RELEASE" )
return KDE_VERSION_RELEASE; return TDE_VERSION_RELEASE;
else if ( name == ".KDE_VERSION" ) else if ( name == ".TDE_VERSION" )
return KDE_VERSION; return TDE_VERSION;
#endif #endif
// ### TODO: should .T be set to "html"? But we are not the HTML post-processor. :-( // ### TODO: should .T be set to "html"? But we are not the HTML post-processor. :-(

@ -42,7 +42,7 @@ int main(int argc, char *argv[])
I18N_NOOP( "ktrash" ), I18N_NOOP( "ktrash" ),
I18N_NOOP( "Helper program to handle the KDE trash can\n" I18N_NOOP( "Helper program to handle the KDE trash can\n"
"Note: to move files to the trash, do not use ktrash, but \"kfmclient move 'url' trash:/\"" ), "Note: to move files to the trash, do not use ktrash, but \"kfmclient move 'url' trash:/\"" ),
KDE_VERSION_STRING ); TDE_VERSION_STRING );
KCmdLineArgs::addCmdLineOptions( options ); KCmdLineArgs::addCmdLineOptions( options );
KApplication app; KApplication app;

@ -45,7 +45,7 @@ KCountryPage::KCountryPage(TQWidget *parent, const char *name ) : KCountryPageDl
b_startedLanguageChanged = false; b_startedLanguageChanged = false;
// set appropriate Trinity version (kapplication.h) // set appropriate Trinity version (kapplication.h)
txt_welcome->setText(i18n("<h3>Welcome to Trinity %1</h3>").arg(KDE_VERSION_STRING)); txt_welcome->setText(i18n("<h3>Welcome to Trinity %1</h3>").arg(TDE_VERSION_STRING));
flang = new KFindLanguage(); flang = new KFindLanguage();

Loading…
Cancel
Save