summaryrefslogtreecommitdiffstats
path: root/kbabel/kbabeldict/modules/dbsearchengine
diff options
context:
space:
mode:
Diffstat (limited to 'kbabel/kbabeldict/modules/dbsearchengine')
-rw-r--r--kbabel/kbabeldict/modules/dbsearchengine/KDBSearchEngine.cpp70
-rw-r--r--kbabel/kbabeldict/modules/dbsearchengine/KDBSearchEngine.h15
-rw-r--r--kbabel/kbabeldict/modules/dbsearchengine/database.cpp28
-rw-r--r--kbabel/kbabeldict/modules/dbsearchengine/database.h11
-rw-r--r--kbabel/kbabeldict/modules/dbsearchengine/dbscan.cpp18
-rw-r--r--kbabel/kbabeldict/modules/dbsearchengine/dbscan.h11
-rw-r--r--kbabel/kbabeldict/modules/dbsearchengine/dbse_factory.cpp8
-rw-r--r--kbabel/kbabeldict/modules/dbsearchengine/dbse_factory.h7
-rw-r--r--kbabel/kbabeldict/modules/dbsearchengine/dbseprefwidget.ui152
-rw-r--r--kbabel/kbabeldict/modules/dbsearchengine/makemsgdb.C4
-rw-r--r--kbabel/kbabeldict/modules/dbsearchengine/preferenceswidget.cpp16
-rw-r--r--kbabel/kbabeldict/modules/dbsearchengine/preferenceswidget.h3
12 files changed, 174 insertions, 169 deletions
diff --git a/kbabel/kbabeldict/modules/dbsearchengine/KDBSearchEngine.cpp b/kbabel/kbabeldict/modules/dbsearchengine/KDBSearchEngine.cpp
index 5c5c6a6d..3e658255 100644
--- a/kbabel/kbabeldict/modules/dbsearchengine/KDBSearchEngine.cpp
+++ b/kbabel/kbabeldict/modules/dbsearchengine/KDBSearchEngine.cpp
@@ -18,11 +18,11 @@
* *
* In addition, as a special exception, the copyright holders give *
* permission to link the code of this program with any edition of *
- * the Qt library by Trolltech AS, Norway (or with modified versions *
- * of Qt that use the same license as Qt), and distribute linked *
+ * the TQt library by Trolltech AS, Norway (or with modified versions *
+ * of TQt that use the same license as TQt), and distribute linked *
* combinations including the two. You must obey the GNU General *
* Public License in all respects for all of the code used other than *
- * Qt. If you modify this file, you may extend this exception to *
+ * TQt. If you modify this file, you may extend this exception to *
* your version of the file, but you are not obligated to do so. If *
* you do not wish to do so, delete this exception statement from *
* your version. *
@@ -72,8 +72,8 @@
using namespace KBabel;
-KDBSearchEngine::KDBSearchEngine (TQObject * parent, const char *name):
-SearchEngine (parent, name)
+KDBSearchEngine::KDBSearchEngine (TQObject * tqparent, const char *name):
+SearchEngine (tqparent, name)
{
edited = "unknown";
dm = 0; //Database Manager
@@ -124,7 +124,7 @@ KDBSearchEngine::loadDatabase (TQString database, bool noask = false)
i18n
("Database folder does not exist:\n%1\n"
"Do you want to create it now?").
- arg (database), TQString::null, i18n("Create Folder"), i18n("Do Not Create")) ==
+ arg (database), TQString(), i18n("Create Folder"), i18n("Do Not Create")) ==
KMessageBox::Yes)
{
asked = true;
@@ -255,7 +255,7 @@ KDBSearchEngine::loadDatabase (TQString database, bool noask = false)
if (asked
|| KMessageBox::questionYesNo (0,
i18n
- ("Database files not found.\nDo you want to create them now?"), TQString::null, i18n("Create"), i18n("Do Not Create"))
+ ("Database files not found.\nDo you want to create them now?"), TQString(), i18n("Create"), i18n("Do Not Create"))
== KMessageBox::Yes)
{
//fprintf(stderr,"SI\n");
@@ -559,7 +559,7 @@ KDBSearchEngine::repeat ()
bool ok = false;
min =
- QInputDialog::getInteger (i18n ("Minimum Repetition"),
+ TQInputDialog::getInteger (i18n ("Minimum Repetition"),
i18n
("Insert the minimum number of repetitions for a string:"),
2, 1, 999999, 1, &ok);
@@ -607,7 +607,7 @@ KDBSearchEngine::repeat ()
if (tot >= min && !inlibs)
{
id = item.key;
- id = id.replace ("\n", "\"\n\"");
+ id = id.tqreplace ("\n", "\"\n\"");
mle->append (txt.arg (tot).arg (ntra).arg (id));
}
@@ -667,7 +667,7 @@ KDBSearchEngine::startSearchNow (int searchmode)
bool allkey = (searchmode == MD_ALL_GOOD_KEYS);
- bool equal, contains, contained, regexp, intra;
+ bool equal, tqcontains, contained, regexp, intra;
intra = searchmode & MD_IN_TRANSLATION;
@@ -700,12 +700,12 @@ KDBSearchEngine::startSearchNow (int searchmode)
int pos;
for (i = 0; i < len; i++)
{
- while ((pos = idMod->find (remchar.at (i))) != -1)
+ while ((pos = idMod->tqfind (remchar.at (i))) != -1)
idMod->remove (pos, 1);
}
if (comm)
- idMod->replace (TQRegExp ("\\_\\:.*\\\\n"), ""); //Read it from catalog !!! (NOT ONLY HERE)
+ idMod->tqreplace (TQRegExp ("\\_\\:.*\\\\n"), ""); //Read it from catalog !!! (NOT ONLY HERE)
if (norm)
@@ -773,7 +773,7 @@ KDBSearchEngine::startSearchNow (int searchmode)
// Emit progress, process event and check stop now
if (count % step == 0)
{
- emit progress (100 * count / /*QMAX( */
+ emit progress (100 * count / /*TQMAX( */
totalprogress /*,1) */ );
kapp->processEvents (100);
@@ -802,12 +802,12 @@ KDBSearchEngine::startSearchNow (int searchmode)
//Remove character in list of character to be ignored
for (i = 0; i < len; i++)
- while ((pos = msgId.find (remchar.at (i))) != -1)
+ while ((pos = msgId.tqfind (remchar.at (i))) != -1)
msgId.remove (pos, 1);
//Remove context information from id found
if (comm)
- msgId.replace (TQRegExp ("\\_\\:.*\\\\n"), "");
+ msgId.tqreplace (TQRegExp ("\\_\\:.*\\\\n"), "");
if (norm)
@@ -838,14 +838,14 @@ KDBSearchEngine::startSearchNow (int searchmode)
//Remove character in list of character to be ignored
for (i = 0; i < len; i++)
while ((pos =
- msgId.find (remchar.at (i))) !=
+ msgId.tqfind (remchar.at (i))) !=
-1)
msgId.remove (pos, 1);
//Remove context information from id found
if (comm)
msgId.
- replace (TQRegExp ("\\_\\:.*\\\\n"),
+ tqreplace (TQRegExp ("\\_\\:.*\\\\n"),
"");
@@ -867,12 +867,12 @@ KDBSearchEngine::startSearchNow (int searchmode)
equal = false;
if (rules & Contains)
- contains = idMod->contains (msgId);
+ tqcontains = idMod->tqcontains (msgId);
else
- contains = false;
+ tqcontains = false;
if (rules & Contained)
- contained = msgId.contains (*idMod);
+ contained = msgId.tqcontains (*idMod);
else
contained = false;
@@ -887,7 +887,7 @@ KDBSearchEngine::startSearchNow (int searchmode)
}
while (intra && nn < item.numTra);
- if (equal || contains || contained || regexp || allkey)
+ if (equal || tqcontains || contained || regexp || allkey)
{
if (equal)
@@ -1034,7 +1034,7 @@ KDBSearchEngine::startSingleSearch (TQString searchString,
in = reg.search (searchString, in + len);
len = reg.matchedLength ();
TQString regToAdd = searchString;
- regToAdd.replace (in, len, "[a-zA-Z0-9_%" + regaddchar + "]*");
+ regToAdd.tqreplace (in, len, "[a-zA-Z0-9_%" + regaddchar + "]*");
regToAdd.append ("$");
regToAdd.prepend ("^");
// fprintf(stderr,"%s",(const char *)regToAdd.local8Bit());
@@ -1203,10 +1203,10 @@ KDBSearchEngine::readSettings (KConfigBase * config)
}
PrefWidget *
-KDBSearchEngine::preferencesWidget (TQWidget * parent)
+KDBSearchEngine::preferencesWidget (TQWidget * tqparent)
{
- pw = new PreferencesWidget (parent);
+ pw = new PreferencesWidget (tqparent);
setSettings ();
connect (pw, TQT_SIGNAL (restoreNow ()), this, TQT_SLOT (setSettings ()));
connect (pw, TQT_SIGNAL (applyNow ()), this, TQT_SLOT (updateSettings ()));
@@ -1406,19 +1406,19 @@ KDBSearchEngine::about () const
}
-QString
+TQString
KDBSearchEngine::name () const
{
return i18n ("Translation Database");
}
-QString
+TQString
KDBSearchEngine::id () const
{
return TQString ("KDBSearchEngine");
}
-QString
+TQString
KDBSearchEngine::lastError ()
{
return lasterror;
@@ -1552,11 +1552,11 @@ KDBSearchEngine::setLastError (const TQString & er)
lasterror = er;
}
-QString
+TQString
KDBSearchEngine::translate (const TQString & text, const uint pluralForm)
{
if (!openDb ())
- return TQString::null;
+ return TQString();
/*
if(!dbOpened)
@@ -1566,7 +1566,7 @@ if(!dbOpened)
{
//emit anerror
hasError(i18n("Database not opened"));
- return TQString::null;
+ return TQString();
}
}
*/
@@ -1574,7 +1574,7 @@ if(!dbOpened)
DataBaseItem dbit = dm->getItem (text);
if (dbit.isNull ())
- return TQString::null;
+ return TQString();
if (dbit.numTra == 1)
return dbit.translations[0].translation;
@@ -1744,9 +1744,9 @@ TQValueList < KeyAndScore > KDBSearchEngine::searchWords (TQString phrase,
int
in = 0, len = 0;
- QString
+ TQString
keyst = dm->getKey (min);
- QRegExp
+ TQRegExp
reg ("[a-zA-Z0-9_%" /*+remchar */ + regaddchar + "]+");
while ((in = reg.search (keyst, in + len)) != -1)
{
@@ -1798,7 +1798,7 @@ TQValueList < KeyAndScore > KDBSearchEngine::searchWords (TQString phrase,
for (int j = 0; j < nres; j++)
{
- QString
+ TQString
strkey = dm->getKey (resloc[j]);
int
stdscore = KDBSearchEngine::score (phrase, strkey);
@@ -1811,7 +1811,7 @@ TQValueList < KeyAndScore > KDBSearchEngine::searchWords (TQString phrase,
in = 0, len = 0, nword = 0;
int
remove = retnot ? common : 0;
- QRegExp
+ TQRegExp
reg ("[a-zA-Z0-9_%" /*+remchar */ + regaddchar + "]+");
while ((in = reg.search (strkey, in + len)) != -1)
{
diff --git a/kbabel/kbabeldict/modules/dbsearchengine/KDBSearchEngine.h b/kbabel/kbabeldict/modules/dbsearchengine/KDBSearchEngine.h
index d948bbd4..d884f233 100644
--- a/kbabel/kbabeldict/modules/dbsearchengine/KDBSearchEngine.h
+++ b/kbabel/kbabeldict/modules/dbsearchengine/KDBSearchEngine.h
@@ -15,11 +15,11 @@
* *
* In addition, as a special exception, the copyright holders give *
* permission to link the code of this program with any edition of *
- * the Qt library by Trolltech AS, Norway (or with modified versions *
- * of Qt that use the same license as Qt), and distribute linked *
+ * the TQt library by Trolltech AS, Norway (or with modified versions *
+ * of TQt that use the same license as TQt), and distribute linked *
* combinations including the two. You must obey the GNU General *
* Public License in all respects for all of the code used other than *
- * Qt. If you modify this file, you may extend this exception to *
+ * TQt. If you modify this file, you may extend this exception to *
* your version of the file, but you are not obligated to do so. If *
* you do not wish to do so, delete this exception statement from *
* your version. *
@@ -67,7 +67,7 @@ class SearchEntry
int rules;
};
-class KeyAndScore : public QString
+class KeyAndScore : public TQString
{
public:
KeyAndScore();
@@ -94,11 +94,12 @@ class CatalogDescription
class KDBSearchEngine : public SearchEngine
{
Q_OBJECT
+ TQ_OBJECT
public:
- KDBSearchEngine(TQObject *parent=0,const char *name=0);
+ KDBSearchEngine(TQObject *tqparent=0,const char *name=0);
~KDBSearchEngine();
enum Rules {Equal = 1, Contains = 2, Contained = 4, RegExp = 8};
enum FormatRules { Dots = 1, Ampersand = 2, FirstWordUpper = 4, //Not yet used
@@ -163,7 +164,7 @@ public:
/*
Sets the rules to decide when 2 string match (Uppercase and remove char
are not set here)
- 1 = EQUAL
+ 1 = ETQUAL
2 = SEARCH STRING IS CONTAINED IN DATABASE STRING (use with care, if you search nothing
it will produce a dangerouse output)
4 = DATABASE STRING IS CONTAINED IN SEARCH STRING (it exclude msgid "")
@@ -193,7 +194,7 @@ public:
virtual void saveSettings(KConfigBase *config);
virtual void readSettings(KConfigBase *config);
- virtual PrefWidget *preferencesWidget(TQWidget *parent);
+ virtual PrefWidget *preferencesWidget(TQWidget *tqparent);
virtual const KAboutData *about() const;
diff --git a/kbabel/kbabeldict/modules/dbsearchengine/database.cpp b/kbabel/kbabeldict/modules/dbsearchengine/database.cpp
index 0847d594..cb5ebae1 100644
--- a/kbabel/kbabeldict/modules/dbsearchengine/database.cpp
+++ b/kbabel/kbabeldict/modules/dbsearchengine/database.cpp
@@ -19,11 +19,11 @@
* *
* In addition, as a special exception, the copyright holders give *
* permission to link the code of this program with any edition of *
- * the Qt library by Trolltech AS, Norway (or with modified versions *
- * of Qt that use the same license as Qt), and distribute linked *
+ * the TQt library by Trolltech AS, Norway (or with modified versions *
+ * of TQt that use the same license as TQt), and distribute linked *
* combinations including the two. You must obey the GNU General *
* Public License in all respects for all of the code used other than *
- * Qt. If you modify this file, you may extend this exception to *
+ * TQt. If you modify this file, you may extend this exception to *
* your version of the file, but you are not obligated to do so. If *
* you do not wish to do so, delete this exception statement from *
* your version. *
@@ -294,8 +294,8 @@ DataBaseItem::toRawData (char *_data)
DataBaseManager::DataBaseManager (TQString directory, TQString lang,
- TQObject * parent, const char *name):
-TQObject (parent, name)
+ TQObject * tqparent, const char *name):
+TQObject (tqparent, name)
{
TQString filename;
@@ -782,7 +782,7 @@ DataBaseManager::createDataBase (TQString directory,
rename (filename.local8Bit (), filename.local8Bit () + ",old");
-//kdDebug(0) << TQString("Creating %1").arg(filename) << endl;
+//kdDebug(0) << TQString("Creating %1").tqarg(filename) << endl;
iAmOk = true;
@@ -889,7 +889,7 @@ DataBaseManager::getCatalogInfo (int n)
return InfoItem ();
}
-// kdDebug(0) << TQString("Trad %1").arg(ret) << endl;
+// kdDebug(0) << TQString("Trad %1").tqarg(ret) << endl;
InfoItem it ((char *) data.data, language);
//free(data.data); // Read docu for this!!!!
@@ -1000,7 +1000,7 @@ DataBaseManager::loadInfo ()
TQValueList < TQString > DataBaseManager::wordsIn (TQString string)
{
- QString
+ TQString
a;
TQValueList < TQString > words;
int
@@ -1015,7 +1015,7 @@ TQValueList < TQString > DataBaseManager::wordsIn (TQString string)
int
c = 0;
//words.setAutoDelete(true); //Not sure... check if it is en.
- QString
+ TQString
m;
for (i = 0; i < l; i++)
if (a[i].isLetterOrNumber ())
@@ -1324,7 +1324,7 @@ DataBaseManager::appendKey (TQString _key)
else
ret = *(uint32 *) key.data;
-//kdDebug(0) << TQString("Append result %1,err = %1").arg(ret).arg(err) << endl;
+//kdDebug(0) << TQString("Append result %1,err = %1").tqarg(ret).tqarg(err) << endl;
free (data.data);
@@ -1333,7 +1333,7 @@ DataBaseManager::appendKey (TQString _key)
}
-QString
+TQString
DataBaseManager::getKey (uint32 n)
{
@@ -1349,11 +1349,11 @@ DataBaseManager::getKey (uint32 n)
//Check for errors
int ret = indexDb->get (indexDb, 0, &key, &data, 0); //DB_SET_RECNO);
if (ret)
- return TQString::null;
+ return TQString();
return TQString::fromUtf8 ((char *) data.data);
-// kdDebug(0) << TQString("Trad %1").arg(ret) << endl;
+// kdDebug(0) << TQString("Trad %1").tqarg(ret) << endl;
}
@@ -1446,7 +1446,7 @@ DataBaseManager::putNewTranslation (TQString key, TQString tran, int catalog,
isThisOne = (*ittr).translation == msgstr;
// is there the catnum we are looking for?
- if ((*ittr).infoRef.find (catnum) != (*ittr).infoRef.end ())
+ if ((*ittr).infoRef.tqfind (catnum) != (*ittr).infoRef.end ())
{
found_catalog_info = true;
if (ow && !isThisOne)
diff --git a/kbabel/kbabeldict/modules/dbsearchengine/database.h b/kbabel/kbabeldict/modules/dbsearchengine/database.h
index 3e68e01d..05a09955 100644
--- a/kbabel/kbabeldict/modules/dbsearchengine/database.h
+++ b/kbabel/kbabeldict/modules/dbsearchengine/database.h
@@ -16,11 +16,11 @@
* *
* In addition, as a special exception, the copyright holders give *
* permission to link the code of this program with any edition of *
- * the Qt library by Trolltech AS, Norway (or with modified versions *
- * of Qt that use the same license as Qt), and distribute linked *
+ * the TQt library by Trolltech AS, Norway (or with modified versions *
+ * of TQt that use the same license as TQt), and distribute linked *
* combinations including the two. You must obey the GNU General *
* Public License in all respects for all of the code used other than *
- * Qt. If you modify this file, you may extend this exception to *
+ * TQt. If you modify this file, you may extend this exception to *
* your version of the file, but you are not obligated to do so. If *
* you do not wish to do so, delete this exception statement from *
* your version. *
@@ -155,10 +155,11 @@ class DataBaseItem
uint32 location;
};
-class DataBaseManager : public QObject
+class DataBaseManager : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
/*
@@ -175,7 +176,7 @@ class DataBaseManager : public QObject
*/
- DataBaseManager(TQString directory,TQString lang,TQObject *parent=0,const char *name=0);
+ DataBaseManager(TQString directory,TQString lang,TQObject *tqparent=0,const char *name=0);
~DataBaseManager();
/*
Create a new databse structure.
diff --git a/kbabel/kbabeldict/modules/dbsearchengine/dbscan.cpp b/kbabel/kbabeldict/modules/dbsearchengine/dbscan.cpp
index 0ee1ba4b..fd3ed7f1 100644
--- a/kbabel/kbabeldict/modules/dbsearchengine/dbscan.cpp
+++ b/kbabel/kbabeldict/modules/dbsearchengine/dbscan.cpp
@@ -18,11 +18,11 @@
* *
* In addition, as a special exception, the copyright holders give *
* permission to link the code of this program with any edition of *
- * the Qt library by Trolltech AS, Norway (or with modified versions *
- * of Qt that use the same license as Qt), and distribute linked *
+ * the TQt library by Trolltech AS, Norway (or with modified versions *
+ * of TQt that use the same license as TQt), and distribute linked *
* combinations including the two. You must obey the GNU General *
* Public License in all respects for all of the code used other than *
- * Qt. If you modify this file, you may extend this exception to *
+ * TQt. If you modify this file, you may extend this exception to *
* your version of the file, but you are not obligated to do so. If *
* you do not wish to do so, delete this exception statement from *
* your version. *
@@ -39,7 +39,7 @@
using namespace KBabel;
PoScanner::PoScanner(DataBaseManager *dbm,
- TQObject *parent,const char *name):TQObject(parent,name)
+ TQObject *tqparent,const char *name):TQObject(tqparent,name)
{
dm=dbm;
removeOldCatalogTranslation=false; //Check if this flag do something.
@@ -57,7 +57,7 @@ if (!called)
{ pb=true; count=0;}
called=true;
-kdDebug(0) << TQString("cat: %1, %2").arg(pathName).arg(pattern) << endl;
+kdDebug(0) << TQString("cat: %1, %2").tqarg(pathName).tqarg(pattern) << endl;
if(pb)
{emit patternStarted();
@@ -65,7 +65,7 @@ emit patternProgress(0);
}
TQDir d(pathName,pattern);
d.setMatchAllDirs(true);
- const QFileInfoList* files = d.entryInfoList();
+ const TQFileInfoList* files = d.entryInfoList();
tot=files->count();
TQPtrListIterator<TQFileInfo> it(*files);
kdDebug(0) << tot << endl;
@@ -120,7 +120,7 @@ InfoItem cinfo;
Catalog * catalog=new Catalog(this,"ScanPoCatalog");
-TQString location=fileName.right(fileName.length()-fileName.findRev("/")-1);
+TQString location=fileName.right(fileName.length()-fileName.tqfindRev("/")-1);
connect(catalog,TQT_SIGNAL(signalProgress(int)),this,TQT_SIGNAL(fileLoading(int)));
emit filename(location);
emit fileProgress(0);
@@ -128,7 +128,7 @@ emit fileLoading(0);
KURL u(fileName);
-ConversionStatus rr=catalog->openURL(u);
+ConversiontqStatus rr=catalog->openURL(u);
if(rr != OK && rr !=RECOVERED_PARSE_ERROR )
{
delete catalog;
@@ -149,7 +149,7 @@ tot=catalog->numberOfEntries();
bool fuzzy;
bool untra;
-//kdDebug(0) << TQString("Tot: %1").arg(tot) << endl;
+//kdDebug(0) << TQString("Tot: %1").tqarg(tot) << endl;
for (i=0;i<tot;i++) //Skip header = ????
{
diff --git a/kbabel/kbabeldict/modules/dbsearchengine/dbscan.h b/kbabel/kbabeldict/modules/dbsearchengine/dbscan.h
index 2390c3d1..c6212fbd 100644
--- a/kbabel/kbabeldict/modules/dbsearchengine/dbscan.h
+++ b/kbabel/kbabeldict/modules/dbsearchengine/dbscan.h
@@ -16,11 +16,11 @@
* *
* In addition, as a special exception, the copyright holders give *
* permission to link the code of this program with any edition of *
- * the Qt library by Trolltech AS, Norway (or with modified versions *
- * of Qt that use the same license as Qt), and distribute linked *
+ * the TQt library by Trolltech AS, Norway (or with modified versions *
+ * of TQt that use the same license as TQt), and distribute linked *
* combinations including the two. You must obey the GNU General *
* Public License in all respects for all of the code used other than *
- * Qt. If you modify this file, you may extend this exception to *
+ * TQt. If you modify this file, you may extend this exception to *
* your version of the file, but you are not obligated to do so. If *
* you do not wish to do so, delete this exception statement from *
* your version. *
@@ -41,13 +41,14 @@
#include <catalog.h>
#include "database.h"
-class PoScanner : public QObject
+class PoScanner : public TQObject
{
Q_OBJECT
+ TQ_OBJECT
public:
- PoScanner(DataBaseManager *dbm,TQObject *parent=0,const char *name=0);
+ PoScanner(DataBaseManager *dbm,TQObject *tqparent=0,const char *name=0);
/*
Scan a single PO file.
diff --git a/kbabel/kbabeldict/modules/dbsearchengine/dbse_factory.cpp b/kbabel/kbabeldict/modules/dbsearchengine/dbse_factory.cpp
index 86975874..599ace4c 100644
--- a/kbabel/kbabeldict/modules/dbsearchengine/dbse_factory.cpp
+++ b/kbabel/kbabeldict/modules/dbsearchengine/dbse_factory.cpp
@@ -21,8 +21,8 @@ KInstance *DbSeFactory::s_instance = 0;
KAboutData *DbSeFactory::s_about = 0;
-DbSeFactory::DbSeFactory( TQObject *parent, const char *name)
- : KLibFactory(parent,name)
+DbSeFactory::DbSeFactory( TQObject *tqparent, const char *name)
+ : KLibFactory(tqparent,name)
{
}
@@ -42,7 +42,7 @@ DbSeFactory::~DbSeFactory()
}
-TQObject *DbSeFactory::createObject( TQObject *parent, const char *name,
+TQObject *DbSeFactory::createObject( TQObject *tqparent, const char *name,
const char *classname, const TQStringList &)
{
if(TQCString(classname) != "SearchEngine")
@@ -51,7 +51,7 @@ TQObject *DbSeFactory::createObject( TQObject *parent, const char *name,
return 0;
}
- KDBSearchEngine *se = new KDBSearchEngine(parent,name);
+ KDBSearchEngine *se = new KDBSearchEngine(tqparent,name);
emit objectCreated(se);
return se;
diff --git a/kbabel/kbabeldict/modules/dbsearchengine/dbse_factory.h b/kbabel/kbabeldict/modules/dbsearchengine/dbse_factory.h
index 7ae4f20b..b146b021 100644
--- a/kbabel/kbabeldict/modules/dbsearchengine/dbse_factory.h
+++ b/kbabel/kbabeldict/modules/dbsearchengine/dbse_factory.h
@@ -8,12 +8,13 @@ class KAboutData;
class DbSeFactory : public KLibFactory
{
Q_OBJECT
+ TQ_OBJECT
public:
- DbSeFactory( TQObject *parent=0, const char *name=0);
+ DbSeFactory( TQObject *tqparent=0, const char *name=0);
~DbSeFactory();
- virtual TQObject *createObject( TQObject *parent=0, const char *name=0,
- const char *classname="TQObject",
+ virtual TQObject *createObject( TQObject *tqparent=0, const char *name=0,
+ const char *classname=TQOBJECT_OBJECT_NAME_STRING,
const TQStringList &args = TQStringList());
static KInstance *instance();
diff --git a/kbabel/kbabeldict/modules/dbsearchengine/dbseprefwidget.ui b/kbabel/kbabeldict/modules/dbsearchengine/dbseprefwidget.ui
index d18ecaef..73e15117 100644
--- a/kbabel/kbabeldict/modules/dbsearchengine/dbseprefwidget.ui
+++ b/kbabel/kbabeldict/modules/dbsearchengine/dbseprefwidget.ui
@@ -1,11 +1,11 @@
<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
<class>DBSearchEnginePref</class>
<author>Andrea Rizzi &lt;rizzi@kde.org&gt;</author>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>DBSEPrefWidget</cstring>
</property>
- <property name="geometry">
+ <property name="tqgeometry">
<rect>
<x>0</x>
<y>0</y>
@@ -23,14 +23,14 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QTabWidget" row="0" column="0">
+ <widget class="TQTabWidget" row="0" column="0">
<property name="name">
<cstring>TabWidget6</cstring>
</property>
<property name="whatsThis" stdset="0">
<string></string>
</property>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>Widget4</cstring>
</property>
@@ -47,7 +47,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QButtonGroup">
+ <widget class="TQButtonGroup">
<property name="name">
<cstring>ButtonGroup2</cstring>
</property>
@@ -64,7 +64,7 @@
<property name="spacing">
<number>6</number>
</property>
- <widget class="QRadioButton" row="0" column="0">
+ <widget class="TQRadioButton" row="0" column="0">
<property name="name">
<cstring>allRB</cstring>
</property>
@@ -77,7 +77,7 @@ according to the rules defined in tabs &lt;strong&gt; Generic &lt;/strong&gt;
and &lt;strong&gt;Match&lt;/strong&gt;</string>
</property>
</widget>
- <widget class="QRadioButton" row="1" column="0">
+ <widget class="TQRadioButton" row="1" column="0">
<property name="name">
<cstring>slistRB</cstring>
</property>
@@ -92,7 +92,7 @@ and &lt;strong&gt;Match&lt;/strong&gt;</string>
This is the best way to search because the &lt;em&gt;good keys&lt;/em&gt; list probably contains all the keys that match with your query. However, it is smaller than the whole database.</string>
</property>
</widget>
- <widget class="QRadioButton" row="2" column="0">
+ <widget class="TQRadioButton" row="2" column="0">
<property name="name">
<cstring>rlistRB</cstring>
</property>
@@ -105,7 +105,7 @@ This is the best way to search because the &lt;em&gt;good keys&lt;/em&gt; list p
</widget>
</grid>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>caseSensitiveCB</cstring>
</property>
@@ -116,7 +116,7 @@ This is the best way to search because the &lt;em&gt;good keys&lt;/em&gt; list p
<string>&lt;qml&gt;If it is checked the search will be case sensitive. It is ignored if you use &lt;em&gt;Return the list of "good keys"&lt;/em&gt; search mode.</string>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>normalizeCB</cstring>
</property>
@@ -131,7 +131,7 @@ This is the best way to search because the &lt;em&gt;good keys&lt;/em&gt; list p
It also substitutes groups of more than one space character with only one space character.</string>
</property>
</widget>
- <widget class="QCheckBox">
+ <widget class="TQCheckBox">
<property name="name">
<cstring>removeContextCB</cstring>
</property>
@@ -145,7 +145,7 @@ It also substitutes groups of more than one space character with only one space
<string>Remove, if exists, the _:comment</string>
</property>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
<cstring>Layout11</cstring>
</property>
@@ -159,7 +159,7 @@ It also substitutes groups of more than one space character with only one space
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>TextLabel3</cstring>
</property>
@@ -179,7 +179,7 @@ It also substitutes groups of more than one space character with only one space
<verstretch>0</verstretch>
</sizepolicy>
</property>
- <property name="minimumSize">
+ <property name="tqminimumSize">
<size>
<width>0</width>
<height>20</height>
@@ -201,7 +201,7 @@ It also substitutes groups of more than one space character with only one space
</spacer>
</vbox>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>Widget5</cstring>
</property>
@@ -218,7 +218,7 @@ It also substitutes groups of more than one space character with only one space
<property name="spacing">
<number>6</number>
</property>
- <widget class="QButtonGroup">
+ <widget class="TQButtonGroup">
<property name="name">
<cstring>ButtonGroup1</cstring>
</property>
@@ -245,7 +245,7 @@ It also substitutes groups of more than one space character with only one space
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
@@ -262,14 +262,14 @@ It also substitutes groups of more than one space character with only one space
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QCheckBox" row="2" column="1">
+ <widget class="TQCheckBox" row="2" column="1">
<property name="name">
<cstring>containedCB</cstring>
</property>
@@ -280,18 +280,18 @@ It also substitutes groups of more than one space character with only one space
<string>Match if query is contained in database string</string>
</property>
</widget>
- <widget class="QCheckBox" row="3" column="1">
+ <widget class="TQCheckBox" row="3" column="1">
<property name="name">
<cstring>containsCB</cstring>
</property>
<property name="text">
- <string>Query contains</string>
+ <string>Query tqcontains</string>
</property>
<property name="whatsThis" stdset="0">
<string>Match if query contains the database string</string>
</property>
</widget>
- <widget class="QRadioButton" row="0" column="0" rowspan="1" colspan="2">
+ <widget class="TQRadioButton" row="0" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>normalTextRB</cstring>
</property>
@@ -305,7 +305,7 @@ It also substitutes groups of more than one space character with only one space
<string>Consider the search string as normal text.</string>
</property>
</widget>
- <widget class="QCheckBox" row="1" column="1">
+ <widget class="TQCheckBox" row="1" column="1">
<property name="name">
<cstring>equalCB</cstring>
</property>
@@ -332,14 +332,14 @@ It also substitutes groups of more than one space character with only one space
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QRadioButton" row="4" column="0" rowspan="1" colspan="2">
+ <widget class="TQRadioButton" row="4" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>RegExpRB</cstring>
</property>
@@ -352,7 +352,7 @@ It also substitutes groups of more than one space character with only one space
</widget>
</grid>
</widget>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>GroupBox3</cstring>
</property>
@@ -384,14 +384,14 @@ If you search for &lt;em&gt;My name is Andrea&lt;/em&gt; and you have activated
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QCheckBox" row="0" column="0" rowspan="1" colspan="3">
+ <widget class="TQCheckBox" row="0" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>oneWordSubCB</cstring>
</property>
@@ -415,14 +415,14 @@ If you search for &lt;em&gt;My name is Andrea&lt;/em&gt; and you have activated
<property name="sizeType">
<enum>Fixed</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
- <widget class="QLabel" row="1" column="1">
+ <widget class="TQLabel" row="1" column="1">
<property name="name">
<cstring>TextLabel1</cstring>
</property>
@@ -430,7 +430,7 @@ If you search for &lt;em&gt;My name is Andrea&lt;/em&gt; and you have activated
<string>Max number of words in the query:</string>
</property>
</widget>
- <widget class="QSpinBox" row="3" column="2">
+ <widget class="TQSpinBox" row="3" column="2">
<property name="name">
<cstring>twoWordSubSB</cstring>
</property>
@@ -444,7 +444,7 @@ If you search for &lt;em&gt;My name is Andrea&lt;/em&gt; and you have activated
<number>10</number>
</property>
</widget>
- <widget class="QCheckBox" row="2" column="0" rowspan="1" colspan="2">
+ <widget class="TQCheckBox" row="2" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>twoWordSubCB</cstring>
</property>
@@ -458,7 +458,7 @@ If you search for &lt;em&gt;My name is Andrea&lt;/em&gt; and you have activated
<bool>true</bool>
</property>
</widget>
- <widget class="QLabel" row="3" column="1">
+ <widget class="TQLabel" row="3" column="1">
<property name="name">
<cstring>TextLabel2</cstring>
</property>
@@ -466,7 +466,7 @@ If you search for &lt;em&gt;My name is Andrea&lt;/em&gt; and you have activated
<string>Max number of words in the query:</string>
</property>
</widget>
- <widget class="QLayoutWidget" row="5" column="0" rowspan="1" colspan="3">
+ <widget class="TQLayoutWidget" row="5" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>Layout7</cstring>
</property>
@@ -480,14 +480,14 @@ If you search for &lt;em&gt;My name is Andrea&lt;/em&gt; and you have activated
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>TextLabel5_3</cstring>
</property>
<property name="text">
<string>[A-Za-z0-9_%</string>
</property>
- <property name="alignment">
+ <property name="tqalignment">
<set>AlignVCenter|AlignRight</set>
</property>
<property name="hAlign" stdset="0">
@@ -498,7 +498,7 @@ If you search for &lt;em&gt;My name is Andrea&lt;/em&gt; and you have activated
<cstring>regExpLE</cstring>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>TextLabel6_2</cstring>
</property>
@@ -508,7 +508,7 @@ If you search for &lt;em&gt;My name is Andrea&lt;/em&gt; and you have activated
</widget>
</hbox>
</widget>
- <widget class="QLabel" row="4" column="0" rowspan="1" colspan="3">
+ <widget class="TQLabel" row="4" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>TextLabel4</cstring>
</property>
@@ -516,7 +516,7 @@ If you search for &lt;em&gt;My name is Andrea&lt;/em&gt; and you have activated
<string>Local characters for regular expressions:</string>
</property>
</widget>
- <widget class="QSpinBox" row="1" column="2">
+ <widget class="TQSpinBox" row="1" column="2">
<property name="name">
<cstring>oneWordSubSB</cstring>
</property>
@@ -545,7 +545,7 @@ If you search for &lt;em&gt;My name is Andrea&lt;/em&gt; and you have activated
</spacer>
</vbox>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>Widget6</cstring>
</property>
@@ -562,7 +562,7 @@ If you search for &lt;em&gt;My name is Andrea&lt;/em&gt; and you have activated
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLabel" row="0" column="0" rowspan="1" colspan="3">
+ <widget class="TQLabel" row="0" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>TextLabel7_2</cstring>
</property>
@@ -575,7 +575,7 @@ If you search for &lt;em&gt;My name is Andrea&lt;/em&gt; and you have activated
<cstring>dirInput</cstring>
</property>
</widget>
- <widget class="QCheckBox" row="2" column="0" rowspan="1" colspan="3">
+ <widget class="TQCheckBox" row="2" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>autoAddCB_2</cstring>
</property>
@@ -592,7 +592,7 @@ If you search for &lt;em&gt;My name is Andrea&lt;/em&gt; and you have activated
<string>Automatically add an entry to the database if a new translation is notified by someone (may be kbabel)</string>
</property>
</widget>
- <widget class="QLayoutWidget" row="3" column="0" rowspan="1" colspan="3">
+ <widget class="TQLayoutWidget" row="3" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>Layout3</cstring>
</property>
@@ -606,7 +606,7 @@ If you search for &lt;em&gt;My name is Andrea&lt;/em&gt; and you have activated
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>TextLabel1_4</cstring>
</property>
@@ -614,7 +614,7 @@ If you search for &lt;em&gt;My name is Andrea&lt;/em&gt; and you have activated
<string>Auto added entry author:</string>
</property>
</widget>
- <widget class="QLineEdit">
+ <widget class="TQLineEdit">
<property name="name">
<cstring>authorLE</cstring>
</property>
@@ -624,7 +624,7 @@ If you search for &lt;em&gt;My name is Andrea&lt;/em&gt; and you have activated
</widget>
</hbox>
</widget>
- <widget class="QPushButton" row="4" column="0" rowspan="1" colspan="3">
+ <widget class="TQPushButton" row="4" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>scanFilePB</cstring>
</property>
@@ -632,7 +632,7 @@ If you search for &lt;em&gt;My name is Andrea&lt;/em&gt; and you have activated
<string>Scan Single PO File...</string>
</property>
</widget>
- <widget class="QPushButton" row="5" column="0" rowspan="1" colspan="3">
+ <widget class="TQPushButton" row="5" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>scanPB_2</cstring>
</property>
@@ -640,7 +640,7 @@ If you search for &lt;em&gt;My name is Andrea&lt;/em&gt; and you have activated
<string>Scan Folder...</string>
</property>
</widget>
- <widget class="QPushButton" row="6" column="0" rowspan="1" colspan="3">
+ <widget class="TQPushButton" row="6" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>scanrecPB</cstring>
</property>
@@ -648,7 +648,7 @@ If you search for &lt;em&gt;My name is Andrea&lt;/em&gt; and you have activated
<string>Scan Folder &amp;&amp; Subfolders...</string>
</property>
</widget>
- <widget class="QLayoutWidget" row="8" column="0" rowspan="1" colspan="3">
+ <widget class="TQLayoutWidget" row="8" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>Layout5</cstring>
</property>
@@ -662,7 +662,7 @@ If you search for &lt;em&gt;My name is Andrea&lt;/em&gt; and you have activated
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>filenameLB</cstring>
</property>
@@ -670,7 +670,7 @@ If you search for &lt;em&gt;My name is Andrea&lt;/em&gt; and you have activated
<string>Scanning file:</string>
</property>
</widget>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>entriesLB</cstring>
</property>
@@ -680,7 +680,7 @@ If you search for &lt;em&gt;My name is Andrea&lt;/em&gt; and you have activated
</widget>
</vbox>
</widget>
- <widget class="QLayoutWidget" row="9" column="0" rowspan="1" colspan="3">
+ <widget class="TQLayoutWidget" row="9" column="0" rowspan="1" colspan="3">
<property name="name">
<cstring>Layout4</cstring>
</property>
@@ -694,7 +694,7 @@ If you search for &lt;em&gt;My name is Andrea&lt;/em&gt; and you have activated
<property name="spacing">
<number>6</number>
</property>
- <widget class="QProgressBar" row="2" column="1">
+ <widget class="TQProgressBar" row="2" column="1">
<property name="name">
<cstring>processPB</cstring>
</property>
@@ -711,7 +711,7 @@ If you search for &lt;em&gt;My name is Andrea&lt;/em&gt; and you have activated
<bool>false</bool>
</property>
</widget>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>TextLabel1_3</cstring>
</property>
@@ -719,7 +719,7 @@ If you search for &lt;em&gt;My name is Andrea&lt;/em&gt; and you have activated
<string>Total progress:</string>
</property>
</widget>
- <widget class="QLabel" row="2" column="0">
+ <widget class="TQLabel" row="2" column="0">
<property name="name">
<cstring>TextLabel3_3</cstring>
</property>
@@ -727,7 +727,7 @@ If you search for &lt;em&gt;My name is Andrea&lt;/em&gt; and you have activated
<string>Processing file:</string>
</property>
</widget>
- <widget class="QProgressBar" row="0" column="1">
+ <widget class="TQProgressBar" row="0" column="1">
<property name="name">
<cstring>totalPB</cstring>
</property>
@@ -741,7 +741,7 @@ If you search for &lt;em&gt;My name is Andrea&lt;/em&gt; and you have activated
<bool>true</bool>
</property>
</widget>
- <widget class="QProgressBar" row="1" column="1">
+ <widget class="TQProgressBar" row="1" column="1">
<property name="name">
<cstring>loadingPB</cstring>
</property>
@@ -755,7 +755,7 @@ If you search for &lt;em&gt;My name is Andrea&lt;/em&gt; and you have activated
<bool>true</bool>
</property>
</widget>
- <widget class="QLabel" row="1" column="0">
+ <widget class="TQLabel" row="1" column="0">
<property name="name">
<cstring>TextLabel2_3</cstring>
</property>
@@ -765,7 +765,7 @@ If you search for &lt;em&gt;My name is Andrea&lt;/em&gt; and you have activated
</widget>
</grid>
</widget>
- <widget class="QPushButton" row="10" column="2">
+ <widget class="TQPushButton" row="10" column="2">
<property name="name">
<cstring>exportPB</cstring>
</property>
@@ -776,7 +776,7 @@ If you search for &lt;em&gt;My name is Andrea&lt;/em&gt; and you have activated
<string>Export...</string>
</property>
</widget>
- <widget class="QPushButton" row="10" column="0">
+ <widget class="TQPushButton" row="10" column="0">
<property name="name">
<cstring>statPB</cstring>
</property>
@@ -787,7 +787,7 @@ If you search for &lt;em&gt;My name is Andrea&lt;/em&gt; and you have activated
<string>Statistics</string>
</property>
</widget>
- <widget class="QPushButton" row="10" column="1">
+ <widget class="TQPushButton" row="10" column="1">
<property name="name">
<cstring>repeatPB</cstring>
</property>
@@ -797,7 +797,7 @@ If you search for &lt;em&gt;My name is Andrea&lt;/em&gt; and you have activated
</widget>
</grid>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
@@ -814,7 +814,7 @@ If you search for &lt;em&gt;My name is Andrea&lt;/em&gt; and you have activated
<property name="spacing">
<number>6</number>
</property>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>GroupBox4</cstring>
</property>
@@ -838,7 +838,7 @@ Finally you can set the maximum number of entries in the list.</string>
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLabel" row="2" column="0" rowspan="1" colspan="2">
+ <widget class="TQLabel" row="2" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>TextLabel3_2</cstring>
</property>
@@ -849,7 +849,7 @@ Finally you can set the maximum number of entries in the list.</string>
<enum>RichText</enum>
</property>
</widget>
- <widget class="QSlider" row="1" column="0">
+ <widget class="TQSlider" row="1" column="0">
<property name="name">
<cstring>thresholdSL</cstring>
</property>
@@ -863,7 +863,7 @@ Finally you can set the maximum number of entries in the list.</string>
<enum>Horizontal</enum>
</property>
</widget>
- <widget class="QSpinBox" row="1" column="1">
+ <widget class="TQSpinBox" row="1" column="1">
<property name="name">
<cstring>SpinBox5</cstring>
</property>
@@ -877,7 +877,7 @@ Finally you can set the maximum number of entries in the list.</string>
<number>50</number>
</property>
</widget>
- <widget class="QLabel" row="0" column="0" rowspan="1" colspan="2">
+ <widget class="TQLabel" row="0" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>TextLabel2_2</cstring>
</property>
@@ -885,7 +885,7 @@ Finally you can set the maximum number of entries in the list.</string>
<string>Minimum number of query words in the key (%):</string>
</property>
</widget>
- <widget class="QSpinBox" row="4" column="1">
+ <widget class="TQSpinBox" row="4" column="1">
<property name="name">
<cstring>maxSB</cstring>
</property>
@@ -896,7 +896,7 @@ Finally you can set the maximum number of entries in the list.</string>
<number>30</number>
</property>
</widget>
- <widget class="QSpinBox" row="3" column="1">
+ <widget class="TQSpinBox" row="3" column="1">
<property name="name">
<cstring>SpinBox6</cstring>
</property>
@@ -910,7 +910,7 @@ Finally you can set the maximum number of entries in the list.</string>
<number>50</number>
</property>
</widget>
- <widget class="QLabel" row="4" column="0">
+ <widget class="TQLabel" row="4" column="0">
<property name="name">
<cstring>TextLabel4_2</cstring>
</property>
@@ -918,7 +918,7 @@ Finally you can set the maximum number of entries in the list.</string>
<string>Max list length:</string>
</property>
</widget>
- <widget class="QSlider" row="3" column="0">
+ <widget class="TQSlider" row="3" column="0">
<property name="name">
<cstring>thresholdOrigSL</cstring>
</property>
@@ -934,7 +934,7 @@ Finally you can set the maximum number of entries in the list.</string>
</widget>
</grid>
</widget>
- <widget class="QGroupBox">
+ <widget class="TQGroupBox">
<property name="name">
<cstring>GroupBox3_2</cstring>
</property>
@@ -951,7 +951,7 @@ Finally you can set the maximum number of entries in the list.</string>
<property name="spacing">
<number>6</number>
</property>
- <widget class="QLabel" row="0" column="0">
+ <widget class="TQLabel" row="0" column="0">
<property name="name">
<cstring>TextLabel1_2</cstring>
</property>
@@ -959,7 +959,7 @@ Finally you can set the maximum number of entries in the list.</string>
<string>Discard words more frequent than:</string>
</property>
</widget>
- <widget class="QSpinBox" row="0" column="1">
+ <widget class="TQSpinBox" row="0" column="1">
<property name="name">
<cstring>freqSB</cstring>
</property>
@@ -976,7 +976,7 @@ Finally you can set the maximum number of entries in the list.</string>
<number>100</number>
</property>
</widget>
- <widget class="QCheckBox" row="1" column="0" rowspan="1" colspan="2">
+ <widget class="TQCheckBox" row="1" column="0" rowspan="1" colspan="2">
<property name="name">
<cstring>nothingCB</cstring>
</property>
@@ -1032,5 +1032,5 @@ Finally you can set the maximum number of entries in the list.</string>
<include location="local" impldecl="in declaration">klocale.h</include>
<include location="global" impldecl="in declaration">kseparator.h</include>
</includes>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
diff --git a/kbabel/kbabeldict/modules/dbsearchengine/makemsgdb.C b/kbabel/kbabeldict/modules/dbsearchengine/makemsgdb.C
index a83d947b..74a09037 100644
--- a/kbabel/kbabeldict/modules/dbsearchengine/makemsgdb.C
+++ b/kbabel/kbabeldict/modules/dbsearchengine/makemsgdb.C
@@ -116,9 +116,9 @@ nmax++;
normalizestr(a);
// printf("#%s#\n",a);
-// while (st.find("#~")==0)
+// while (st.tqfind("#~")==0)
// st = st.right(st.length()-2);
-// while (st.find(" ")==0)
+// while (st.tqfind(" ")==0)
// st = st.right(st.length()-1);
if(isAMsgId) nextIsFuzzy=false;
diff --git a/kbabel/kbabeldict/modules/dbsearchengine/preferenceswidget.cpp b/kbabel/kbabeldict/modules/dbsearchengine/preferenceswidget.cpp
index 562f0835..c81a8562 100644
--- a/kbabel/kbabeldict/modules/dbsearchengine/preferenceswidget.cpp
+++ b/kbabel/kbabeldict/modules/dbsearchengine/preferenceswidget.cpp
@@ -14,18 +14,18 @@
#include "dbseprefwidget.h"
#include "preferenceswidget.h"
-PreferencesWidget::PreferencesWidget(TQWidget *parent, const char* name)
- : PrefWidget(parent,name)
+PreferencesWidget::PreferencesWidget(TQWidget *tqparent, const char* name)
+ : PrefWidget(tqparent,name)
{
- TQVBoxLayout *layout = new TQVBoxLayout(this);
+ TQVBoxLayout *tqlayout = new TQVBoxLayout(this);
// TQLabel *label = new TQLabel(i18n("Settings for KDE database search engine"),this);
-// layout->addWidget(label);
+// tqlayout->addWidget(label);
dbpw = new DBSearchEnginePref(this);
dbpw->dirInput->setMode(KFile::Directory | KFile::LocalOnly);
- layout->addWidget(dbpw);
- resize(TQSize(200,200).expandedTo(minimumSizeHint()));
+ tqlayout->addWidget(dbpw);
+ resize(TQSize(200,200).expandedTo(tqminimumSizeHint()));
// connect(dbpw->browseTB_3,TQT_SIGNAL(clicked()),TQT_SLOT(browse1()));
@@ -99,12 +99,12 @@ TQString defaultDir;
void PreferencesWidget::setName(TQString n)
{
-dbpw->filenameLB->setText(i18n("Scanning file: %1").arg(n));
+dbpw->filenameLB->setText(i18n("Scanning file: %1").tqarg(n));
}
void PreferencesWidget::setEntries(int i)
{
-dbpw->entriesLB->setText(i18n("Entries added: %1").arg(i));
+dbpw->entriesLB->setText(i18n("Entries added: %1").tqarg(i));
}
diff --git a/kbabel/kbabeldict/modules/dbsearchengine/preferenceswidget.h b/kbabel/kbabeldict/modules/dbsearchengine/preferenceswidget.h
index 5cd1fed8..134c60bd 100644
--- a/kbabel/kbabeldict/modules/dbsearchengine/preferenceswidget.h
+++ b/kbabel/kbabeldict/modules/dbsearchengine/preferenceswidget.h
@@ -7,9 +7,10 @@
class PreferencesWidget : public PrefWidget
{
Q_OBJECT
+ TQ_OBJECT
public:
- PreferencesWidget(TQWidget *parent=0, const char* name=0);
+ PreferencesWidget(TQWidget *tqparent=0, const char* name=0);
virtual ~PreferencesWidget();
virtual void apply();