diff options
Diffstat (limited to 'bibletime/frontend/keychooser/cbooktreechooser.cpp')
-rw-r--r-- | bibletime/frontend/keychooser/cbooktreechooser.cpp | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/bibletime/frontend/keychooser/cbooktreechooser.cpp b/bibletime/frontend/keychooser/cbooktreechooser.cpp index 33e95fa..e15fbc2 100644 --- a/bibletime/frontend/keychooser/cbooktreechooser.cpp +++ b/bibletime/frontend/keychooser/cbooktreechooser.cpp @@ -15,17 +15,17 @@ #include "frontend/cbtconfig.h" //Qt includes -#include <qlayout.h> -#include <qheader.h> -#include <qlistview.h> -#include <qcursor.h> +#include <tqlayout.h> +#include <tqheader.h> +#include <tqlistview.h> +#include <tqcursor.h> //KDE includes #include <kapplication.h> //////////// -CBookTreeChooser::TreeItem::TreeItem(QListViewItem* parent, QListViewItem* after, CSwordTreeKey* key, const QString keyName) +CBookTreeChooser::TreeItem::TreeItem(TQListViewItem* parent, TQListViewItem* after, CSwordTreeKey* key, const TQString keyName) : KListViewItem(parent, after), m_key(key), m_keyName(keyName) { @@ -33,13 +33,13 @@ m_keyName(keyName) { const unsigned long offset = m_key->getOffset(); m_key->key(m_keyName); - //setText(0, QString::fromLocal8Bit(m_key->getLocalName()) ); + //setText(0, TQString::fromLocal8Bit(m_key->getLocalName()) ); setText(0, m_key->getLocalNameUnicode() ); m_key->setOffset( offset ); }; -CBookTreeChooser::TreeItem::TreeItem(QListViewItem* parent,CSwordTreeKey* key, const QString keyName) +CBookTreeChooser::TreeItem::TreeItem(TQListViewItem* parent,CSwordTreeKey* key, const TQString keyName) : KListViewItem(parent), m_key(key), m_keyName(keyName) { @@ -47,13 +47,13 @@ m_keyName(keyName) { const unsigned int offset = m_key->getOffset(); m_key->key(m_keyName); - //setText(0, QString::fromLocal8Bit(m_key->getLocalName()) ); + //setText(0, TQString::fromLocal8Bit(m_key->getLocalName()) ); setText(0, m_key->getLocalNameUnicode() ); m_key->setOffset( offset ); }; -CBookTreeChooser::TreeItem::TreeItem(QListView* view, QListViewItem* after,CSwordTreeKey* key, const QString keyName) +CBookTreeChooser::TreeItem::TreeItem(TQListView* view, TQListViewItem* after,CSwordTreeKey* key, const TQString keyName) : KListViewItem(view,after), m_key(key), m_keyName(keyName) { @@ -61,13 +61,13 @@ m_keyName(keyName) { const unsigned int offset = m_key->getOffset(); m_key->key(m_keyName); - //setText(0, QString::fromLocal8Bit(m_key->getLocalName()) ); + //setText(0, TQString::fromLocal8Bit(m_key->getLocalName()) ); setText(0, m_key->getLocalNameUnicode() ); m_key->setOffset( offset ); }; -const QString& CBookTreeChooser::TreeItem::key() const { +const TQString& CBookTreeChooser::TreeItem::key() const { return m_keyName; }; @@ -93,7 +93,7 @@ void CBookTreeChooser::TreeItem::createChilds() { if (m_key->hasChildren()) { m_key->firstChild(); //go to the first child - QListViewItem* oldItem = 0; + TQListViewItem* oldItem = 0; do { if (oldItem) { @@ -124,7 +124,7 @@ void CBookTreeChooser::TreeItem::setOpen(bool o) { ////////////////////////////////// -CBookTreeChooser::CBookTreeChooser(ListCSwordModuleInfo modules, CSwordKey *key, QWidget *parent, const char *name) +CBookTreeChooser::CBookTreeChooser(ListCSwordModuleInfo modules, CSwordKey *key, TQWidget *parent, const char *name) : CKeyChooser(modules, key, parent,name), m_key( dynamic_cast<CSwordTreeKey*>(key) ) { setModules(modules, false); @@ -135,7 +135,7 @@ m_key( dynamic_cast<CSwordTreeKey*>(key) ) { } //now setup the keychooser widgets - QHBoxLayout* layout = new QHBoxLayout(this); + TQHBoxLayout* layout = new TQHBoxLayout(this); m_treeView = new KListView(this); layout->addWidget(m_treeView); @@ -144,7 +144,7 @@ m_key( dynamic_cast<CSwordTreeKey*>(key) ) { m_treeView->setSorting(-1); m_treeView->setRootIsDecorated(true); m_treeView->setFullWidth(true); - connect(m_treeView, SIGNAL(executed(QListViewItem*)), SLOT(itemActivated(QListViewItem*))); + connect(m_treeView, TQT_SIGNAL(executed(TQListViewItem*)), TQT_SLOT(itemActivated(TQListViewItem*))); setKey(key); adjustFont(); @@ -163,19 +163,19 @@ void CBookTreeChooser::setKey(CSwordKey* newKey, const bool emitSignal) { m_key = dynamic_cast<CSwordTreeKey*>(newKey); } - const QString key = m_key->key(); + const TQString key = m_key->key(); - QStringList siblings; + TQStringList siblings; if (m_key && !key.isEmpty()) { - siblings = QStringList::split("/",key,false); + siblings = TQStringList::split("/",key,false); } //find the right listview item const int count = siblings.count(); int index = 0; - QString currentSibling = siblings[index]; + TQString currentSibling = siblings[index]; - QListViewItem* child = m_treeView->firstChild(); + TQListViewItem* child = m_treeView->firstChild(); while( child && index < count ) { if (child->text(0) == currentSibling) { //found a parent of our item //found right entry? @@ -229,7 +229,7 @@ void CBookTreeChooser::setModules(const ListCSwordModuleInfo& modules, const boo // m_treeView->clear(); // - // const QString oldKey = m_key->key(); + // const TQString oldKey = m_key->key(); // m_key->root(); // m_key->firstChild(); // setupTree(0,0,m_key); @@ -264,7 +264,7 @@ void CBookTreeChooser::refreshContent() { } /** No descriptions */ -void CBookTreeChooser::itemActivated( QListViewItem* item ) { +void CBookTreeChooser::itemActivated( TQListViewItem* item ) { TreeItem* i = dynamic_cast<TreeItem*>(item); if (!i) { return; @@ -304,7 +304,7 @@ void CBookTreeChooser::setupTree() { m_key->root(); if (m_key->hasChildren()) { - QListViewItem* item = 0; + TQListViewItem* item = 0; m_key->firstChild(); do { |