diff options
Diffstat (limited to 'bibletime/frontend/searchdialog/cmoduleresultview.cpp')
-rw-r--r-- | bibletime/frontend/searchdialog/cmoduleresultview.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/bibletime/frontend/searchdialog/cmoduleresultview.cpp b/bibletime/frontend/searchdialog/cmoduleresultview.cpp index a3e1463..5cac4ca 100644 --- a/bibletime/frontend/searchdialog/cmoduleresultview.cpp +++ b/bibletime/frontend/searchdialog/cmoduleresultview.cpp @@ -34,7 +34,7 @@ namespace Search { ************ ModuleResultList ************** ********************************************/ -CModuleResultView::CModuleResultView(QWidget* parent, const char* name) : +CModuleResultView::CModuleResultView(TQWidget* parent, const char* name) : KListView(parent, name) { initView(); initConnections(); @@ -62,23 +62,23 @@ void CModuleResultView::initView() { m_actions.copyMenu = new KActionMenu(i18n("Copy..."), CResMgr::searchdialog::result::moduleList::copyMenu::icon, m_popup); m_actions.copyMenu->setDelayed(false); - m_actions.copy.result = new KAction(i18n("Reference only"), KShortcut(0), this, SLOT(copyResult()), this); + m_actions.copy.result = new KAction(i18n("Reference only"), KShortcut(0), this, TQT_SLOT(copyResult()), this); m_actions.copyMenu->insert(m_actions.copy.result); - m_actions.copy.resultWithText = new KAction(i18n("Reference with text"), KShortcut(0), this, SLOT(copyResultWithText()), this); + m_actions.copy.resultWithText = new KAction(i18n("Reference with text"), KShortcut(0), this, TQT_SLOT(copyResultWithText()), this); m_actions.copyMenu->insert(m_actions.copy.resultWithText); m_actions.copyMenu->plug(m_popup); m_actions.saveMenu = new KActionMenu(i18n("Save..."), CResMgr::searchdialog::result::moduleList::saveMenu::icon, m_popup); m_actions.saveMenu->setDelayed( false ); - m_actions.save.result = new KAction(i18n("Reference only"), KShortcut(0), this, SLOT(saveResult()), this); + m_actions.save.result = new KAction(i18n("Reference only"), KShortcut(0), this, TQT_SLOT(saveResult()), this); m_actions.saveMenu->insert(m_actions.save.result); - m_actions.save.resultWithText = new KAction(i18n("Reference with text"), KShortcut(0), this, SLOT(saveResultWithText()), this); + m_actions.save.resultWithText = new KAction(i18n("Reference with text"), KShortcut(0), this, TQT_SLOT(saveResultWithText()), this); m_actions.saveMenu->insert(m_actions.save.resultWithText); m_actions.saveMenu->plug(m_popup); m_actions.printMenu = new KActionMenu(i18n("Print..."), CResMgr::searchdialog::result::moduleList::printMenu::icon, m_popup); m_actions.printMenu->setDelayed(false); - m_actions.print.result = new KAction(i18n("Reference with text"), KShortcut(0), this, SLOT(printResult()), this); + m_actions.print.result = new KAction(i18n("Reference with text"), KShortcut(0), this, TQT_SLOT(printResult()), this); m_actions.printMenu->insert(m_actions.print.result); @@ -87,14 +87,14 @@ void CModuleResultView::initView() { /** Initializes the connections of this widget, */ void CModuleResultView::initConnections() { - connect(this, SIGNAL(currentChanged(QListViewItem*)), - this, SLOT(executed(QListViewItem*))); - connect(this, SIGNAL(contextMenu(KListView*, QListViewItem*, const QPoint&)), - this, SLOT(showPopup(KListView*, QListViewItem*, const QPoint&))); + connect(this, TQT_SIGNAL(currentChanged(TQListViewItem*)), + this, TQT_SLOT(executed(TQListViewItem*))); + connect(this, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)), + this, TQT_SLOT(showPopup(KListView*, TQListViewItem*, const TQPoint&))); } /** Setups the tree using the given list of modules. */ -void CModuleResultView::setupTree( ListCSwordModuleInfo modules, const QString& searchedText ) { +void CModuleResultView::setupTree( ListCSwordModuleInfo modules, const TQString& searchedText ) { clear(); util::CSortListViewItem* item = 0; @@ -113,7 +113,7 @@ void CModuleResultView::setupTree( ListCSwordModuleInfo modules, const QString& // for (modules.first(); modules.current(); modules.next()) { result = (*it)->searchResult(); - item = new util::CSortListViewItem(this, (*it)->name(), QString::number(result.Count()) ); + item = new util::CSortListViewItem(this, (*it)->name(), TQString::number(result.Count()) ); item->setColumnSorting(1, util::CSortListViewItem::Number); item->setPixmap(0,CToolClass::getIconForModule(*it) ); @@ -126,7 +126,7 @@ void CModuleResultView::setupTree( ListCSwordModuleInfo modules, const QString& //---------------------------------------------------------------------- int sstIndex, sTokenIndex; // strong search text index for finding "strong:" if ((sstIndex = searchedText.find("strong:", 0)) != -1) { - QString sNumber; + TQString sNumber; //-------------------------------------------------- // get the strongs number from the search text //-------------------------------------------------- @@ -150,9 +150,9 @@ void CModuleResultView::setupTree( ListCSwordModuleInfo modules, const QString& executed(currentItem()); } -void CModuleResultView::setupStrongsResults(CSwordModuleInfo* module, QListViewItem* parent, - const QString& sNumber) { - QString lText; +void CModuleResultView::setupStrongsResults(CSwordModuleInfo* module, TQListViewItem* parent, + const TQString& sNumber) { + TQString lText; util::CSortListViewItem* item = 0; strongsResults = new StrongsResultClass(module, sNumber); @@ -160,15 +160,15 @@ void CModuleResultView::setupStrongsResults(CSwordModuleInfo* module, QListViewI for (int cnt = 0; cnt < strongsResults->Count(); ++cnt) { lText = strongsResults->keyText(cnt); - item = new util::CSortListViewItem(parent, lText, QString::number(strongsResults->keyCount(cnt))); + item = new util::CSortListViewItem(parent, lText, TQString::number(strongsResults->keyCount(cnt))); item->setColumnSorting(1, util::CSortListViewItem::Number); } } /** Is executed when an item was selected in the list. */ -void CModuleResultView::executed( QListViewItem* i ) { - QString itemText, lText; +void CModuleResultView::executed( TQListViewItem* i ) { + TQString itemText, lText; if (CSwordModuleInfo* m = CPointers::backend()->findModuleByName(i->text(0))) { emit moduleChanged(); @@ -196,7 +196,7 @@ void CModuleResultView::executed( QListViewItem* i ) { CSwordModuleInfo* const CModuleResultView::activeModule() { Q_ASSERT(currentItem()); - QListViewItem* item = currentItem(); + TQListViewItem* item = currentItem(); if (!item) { return 0; } @@ -215,7 +215,7 @@ CSwordModuleInfo* const CModuleResultView::activeModule() { } /** No descriptions */ -void CModuleResultView::showPopup(KListView*, QListViewItem*, const QPoint& point) { +void CModuleResultView::showPopup(KListView*, TQListViewItem*, const TQPoint& point) { //make sure that all entries have the correct status m_popup->exec(point); } |