diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:57:05 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-16 09:57:05 -0600 |
commit | cfd3139ae5afa303afd85cd868906bebc5f63e19 (patch) | |
tree | 4fb983aa0c6dd4ca9f5b68de40426cb0208f17a7 /krename/datetime.cpp | |
parent | 8e0ad9b24c415aeed5e82093211b95879512692a (diff) | |
download | krename-cfd3139ae5afa303afd85cd868906bebc5f63e19.tar.gz krename-cfd3139ae5afa303afd85cd868906bebc5f63e19.zip |
Revert "Rename a number of old tq methods that are no longer tq specific"
This reverts commit 8e0ad9b24c415aeed5e82093211b95879512692a.
Diffstat (limited to 'krename/datetime.cpp')
-rw-r--r-- | krename/datetime.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/krename/datetime.cpp b/krename/datetime.cpp index 2eac87f..e8cd9da 100644 --- a/krename/datetime.cpp +++ b/krename/datetime.cpp @@ -21,7 +21,7 @@ #include <tqcheckbox.h> #include <tqfileinfo.h> #include <tqlabel.h> -#include <layout.h> +#include <tqlayout.h> #include <tqpushbutton.h> // KDE includes @@ -149,7 +149,7 @@ TQString MyDatePlugin::processFile( BatchRenamer* b, int i, TQString, int ) f = fopen((const char *)filename, "r"); if( f == NULL ) - return TQString( i18n("Can't change date of file %1.") ).arg(filename); + return TQString( i18n("Can't change date of file %1.") ).tqarg(filename); fclose( f ); @@ -165,16 +165,16 @@ TQString MyDatePlugin::processFile( BatchRenamer* b, int i, TQString, int ) ti = mktime( &tmp ); if( ti == -1 ) - return TQString( i18n("Can't change date of file %1.") ).arg(filename); + return TQString( i18n("Can't change date of file %1.") ).tqarg(filename); if( stat( (const char *)filename, &st ) == -1 ) - return TQString( i18n("Can't change date of file %1.") ).arg(filename); + return TQString( i18n("Can't change date of file %1.") ).tqarg(filename); t->actime = st.st_atime; t->modtime = ti; if(utime( (const char *)filename, t ) != 0) - return TQString( i18n("Can't change date of file %1.") ).arg(filename); + return TQString( i18n("Can't change date of file %1.") ).tqarg(filename); return TQString(); #else @@ -189,7 +189,7 @@ TQString MyDatePlugin::processFile( BatchRenamer* b, int i, TQString, int ) f = fopen((const char *)filename, "r"); if( f == NULL ) - return TQString( i18n("Can't change date of file %1.") ).arg(filename); + return TQString( i18n("Can't change date of file %1.") ).tqarg(filename); fclose( f ); @@ -204,10 +204,10 @@ TQString MyDatePlugin::processFile( BatchRenamer* b, int i, TQString, int ) ti = mktime( &tmp ); if( ti == -1 ) - return TQString( i18n("Can't change date of file %1.") ).arg(filename); + return TQString( i18n("Can't change date of file %1.") ).tqarg(filename); if( stat( (const char *)filename, &st ) == -1 ) - return TQString( i18n("Can't change date of file %1.") ).arg(filename); + return TQString( i18n("Can't change date of file %1.") ).tqarg(filename); if(dvals.changeAccess) t->actime = ti; @@ -220,7 +220,7 @@ TQString MyDatePlugin::processFile( BatchRenamer* b, int i, TQString, int ) t->modtime = st.st_mtime; if(utime( (const char *)filename, t ) != 0) - return TQString( i18n("Can't change date of file %1.") ).arg(filename); + return TQString( i18n("Can't change date of file %1.") ).tqarg(filename); return TQString(); #endif @@ -231,7 +231,7 @@ void MyDatePlugin::changeDT() spinHour->setValue( TQTime::currentTime().hour()); spinMinute->setValue( TQTime::currentTime().minute()); spinSecond->setValue( TQTime::currentTime().second()); - kDate->setDate( TQDate::currentDate() ); + kDate->setDate( TQDate::tqcurrentDate() ); } |