From c663b6440964f6ac48027143ac9e63298991f9d0 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 31 Jul 2010 19:33:34 +0000 Subject: Trinity Qt initial conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1157639 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- khotkeys/shared/voicesignature.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'khotkeys/shared/voicesignature.cpp') diff --git a/khotkeys/shared/voicesignature.cpp b/khotkeys/shared/voicesignature.cpp index c77c278b3..773f28731 100644 --- a/khotkeys/shared/voicesignature.cpp +++ b/khotkeys/shared/voicesignature.cpp @@ -29,7 +29,7 @@ #include -#include +#include #undef Complex @@ -109,10 +109,10 @@ static inline double hamming(uint n, uint size) } -static QMemArray fft(const Sound& sound, unsigned int start, unsigned int stop) +static TQMemArray fft(const Sound& sound, unsigned int start, unsigned int stop) { if(start>=stop || sound.size() == 0) - return QMemArray(); + return TQMemArray(); //We need a sample with a size of a power of two uint size=stop-start; @@ -146,7 +146,7 @@ static QMemArray fft(const Sound& sound, unsigned int start, unsigned in } //Generate an array to work in - QMemArray samples(size); + TQMemArray samples(size); //Fill it with samples in the "reversed carry" order int rev_carry = 0; @@ -188,7 +188,7 @@ static QMemArray fft(const Sound& sound, unsigned int start, unsigned in } } - QMemArray result(size); + TQMemArray result(size); for(uint f=0;f fft(const Sound& sound, unsigned int start, unsigned in -QMemArray VoiceSignature::fft(const Sound& sound, unsigned int start, unsigned int stop) +TQMemArray VoiceSignature::fft(const Sound& sound, unsigned int start, unsigned int stop) { return KHotKeys::fft(sound, start, stop); - /*QMemArray result(8000); + /*TQMemArray result(8000); for(int f=0; f<8000;f++) { Complex c(0); @@ -276,7 +276,7 @@ bool VoiceSignature::window(const Sound& sound, unsigned int *_start, unsigned i VoiceSignature::VoiceSignature(const Sound& sound) { static uint temp_wind=0, temp_fft=0, temp_moy=0; - QTime t; + TQTime t; t.start(); unsigned int start , stop; @@ -296,7 +296,7 @@ VoiceSignature::VoiceSignature(const Sound& sound) unsigned int w_stop =MIN(stop , start+ (int)((wind+1.0+WINDOW_SUPER)*length/WINDOW_NUMBER)); - QMemArray fourrier=fft(sound, w_start,w_stop); + TQMemArray fourrier=fft(sound, w_start,w_stop); temp_fft+=t.restart(); @@ -394,24 +394,24 @@ int VoiceSignature::size2() return FOUR_NUMBER; } -QMap > VoiceSignature::pond; +TQMap > VoiceSignature::pond; -void VoiceSignature::write(KConfigBase *cfg, const QString &key) const +void VoiceSignature::write(KConfigBase *cfg, const TQString &key) const { - QStringList sl; + TQStringList sl; for(int x=0;xwriteEntry(key,sl); } -void VoiceSignature::read(KConfigBase *cfg, const QString &key) +void VoiceSignature::read(KConfigBase *cfg, const TQString &key) { - QStringList sl=cfg->readListEntry(key); + TQStringList sl=cfg->readListEntry(key); for(int x=0;x