diff options
Diffstat (limited to 'bibletime/frontend/keychooser/clexiconkeychooser.cpp')
-rw-r--r-- | bibletime/frontend/keychooser/clexiconkeychooser.cpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/bibletime/frontend/keychooser/clexiconkeychooser.cpp b/bibletime/frontend/keychooser/clexiconkeychooser.cpp index ff55602..2a507ac 100644 --- a/bibletime/frontend/keychooser/clexiconkeychooser.cpp +++ b/bibletime/frontend/keychooser/clexiconkeychooser.cpp @@ -24,22 +24,22 @@ #include <map> //Qt includes -#include <qcombobox.h> -#include <qlayout.h> -#include <qlistbox.h> +#include <tqcombobox.h> +#include <tqlayout.h> +#include <tqlistbox.h> //KDE includes #include <klocale.h> -CLexiconKeyChooser::CLexiconKeyChooser(ListCSwordModuleInfo modules, CSwordKey *key, QWidget *parent, const char *name ) +CLexiconKeyChooser::CLexiconKeyChooser(ListCSwordModuleInfo modules, CSwordKey *key, TQWidget *parent, const char *name ) : CKeyChooser(modules, key, parent, name), m_key(dynamic_cast<CSwordLDKey*>(key)) { setModules(modules, false); //we use a layout because the key chooser should be resized to full size - m_layout = new QHBoxLayout(this, QBoxLayout::LeftToRight); - m_layout->setResizeMode(QLayout::FreeResize); + m_layout = new TQHBoxLayout(this, TQBoxLayout::LeftToRight); + m_layout->setResizeMode(TQLayout::FreeResize); m_widget = new CKeyChooserWidget(0, false, this); @@ -56,8 +56,8 @@ m_key(dynamic_cast<CSwordLDKey*>(key)) { m_layout->addWidget(m_widget,0,Qt::AlignLeft); - connect(m_widget,SIGNAL(changed(int)),SLOT(activated(int))); - connect(m_widget,SIGNAL(focusOut(int)),SLOT(activated(int))); + connect(m_widget,TQT_SIGNAL(changed(int)),TQT_SLOT(activated(int))); + connect(m_widget,TQT_SIGNAL(focusOut(int)),TQT_SLOT(activated(int))); setModules(modules, true); setKey(key); @@ -74,7 +74,7 @@ void CLexiconKeyChooser::setKey(CSwordKey* key) { } // qWarning("setKey start"); - QString newKey = m_key->key(); + TQString newKey = m_key->key(); const int index = m_widget->comboBox()->listBox()->index(m_widget->comboBox()->listBox()->findItem( newKey )); m_widget->comboBox()->setCurrentItem(index); @@ -84,7 +84,7 @@ void CLexiconKeyChooser::setKey(CSwordKey* key) { void CLexiconKeyChooser::activated(int index) { // qWarning("activated"); - const QString text = m_widget->comboBox()->text(index); + const TQString text = m_widget->comboBox()->text(index); // To prevent from eternal loop, because activated() is emitted again if (m_key && m_key->key() != text) { @@ -94,7 +94,7 @@ void CLexiconKeyChooser::activated(int index) { // qWarning("activated end"); } -inline const bool my_cmpEntries(const QString& a, const QString& b) { +inline const bool my_cmpEntries(const TQString& a, const TQString& b) { return a < b; }; @@ -105,19 +105,19 @@ void CLexiconKeyChooser::refreshContent() { // qWarning("resetted"); } else { - typedef std::multimap<unsigned int, QStringList*> EntryMap; + typedef std::multimap<unsigned int, TQStringList*> EntryMap; EntryMap entryMap; - QStringList* entries = 0; + TQStringList* entries = 0; for (m_modules.first(); m_modules.current(); m_modules.next()) { entries = m_modules.current()->entries(); entryMap.insert( std::make_pair(entries->count(), entries) ); } - QStringList goodEntries; //The string list which contains the entries which are available in all modules + TQStringList goodEntries; //The string list which contains the entries which are available in all modules EntryMap::iterator it = entryMap.begin(); //iterator to go thoigh all selected modules - QStringList refEntries = *(it->second); //copy the items for the first time - QStringList* cmpEntries = ( ++it )->second; //list for comparision, starts with the second module in the map + TQStringList refEntries = *(it->second); //copy the items for the first time + TQStringList* cmpEntries = ( ++it )->second; //list for comparision, starts with the second module in the map while(it != entryMap.end()) { std::set_intersection( |