diff options
Diffstat (limited to 'bibletime/frontend/searchdialog/csearchresultview.cpp')
-rw-r--r-- | bibletime/frontend/searchdialog/csearchresultview.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/bibletime/frontend/searchdialog/csearchresultview.cpp b/bibletime/frontend/searchdialog/csearchresultview.cpp index 1e9dd38..5f319ca 100644 --- a/bibletime/frontend/searchdialog/csearchresultview.cpp +++ b/bibletime/frontend/searchdialog/csearchresultview.cpp @@ -29,7 +29,7 @@ namespace Search { namespace Result { CSearchResultView::CSearchResultView(TQWidget* parent, const char* name) : - KListView(parent, name), m_module(0) { + TDEListView(parent, name), m_module(0) { initView(); initConnections(); } @@ -43,30 +43,30 @@ void CSearchResultView::initView() { setSorting(-1); setDragEnabled(true); - setSelectionModeExt(KListView::Extended); + setSelectionModeExt(TDEListView::Extended); //setup the popup menu - m_popup = new KPopupMenu(this); + m_popup = new TDEPopupMenu(this); - m_actions.copyMenu = new KActionMenu(i18n("Copy..."), CResMgr::searchdialog::result::foundItems::copyMenu::icon, TQT_TQOBJECT(m_popup)); + m_actions.copyMenu = new TDEActionMenu(i18n("Copy..."), CResMgr::searchdialog::result::foundItems::copyMenu::icon, TQT_TQOBJECT(m_popup)); m_actions.copyMenu->setDelayed(false); - m_actions.copy.result = new KAction(i18n("Reference only"), KShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(copyItems()), TQT_TQOBJECT(this)); + m_actions.copy.result = new TDEAction(i18n("Reference only"), TDEShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(copyItems()), TQT_TQOBJECT(this)); m_actions.copyMenu->insert(m_actions.copy.result); - m_actions.copy.resultWithText = new KAction(i18n("Reference with text"), KShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(copyItemsWithText()), TQT_TQOBJECT(this)); + m_actions.copy.resultWithText = new TDEAction(i18n("Reference with text"), TDEShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(copyItemsWithText()), TQT_TQOBJECT(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::foundItems::saveMenu::icon, TQT_TQOBJECT(m_popup)); + m_actions.saveMenu = new TDEActionMenu(i18n("Save..."),CResMgr::searchdialog::result::foundItems::saveMenu::icon, TQT_TQOBJECT(m_popup)); m_actions.saveMenu->setDelayed( false ); - m_actions.save.result = new KAction(i18n("Reference only"), KShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(saveItems()), TQT_TQOBJECT(this)); + m_actions.save.result = new TDEAction(i18n("Reference only"), TDEShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(saveItems()), TQT_TQOBJECT(this)); m_actions.saveMenu->insert(m_actions.save.result); - m_actions.save.resultWithText = new KAction(i18n("Reference with text"), KShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(saveItemsWithText()), TQT_TQOBJECT(this)); + m_actions.save.resultWithText = new TDEAction(i18n("Reference with text"), TDEShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(saveItemsWithText()), TQT_TQOBJECT(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::foundItems::printMenu::icon, TQT_TQOBJECT(m_popup)); + m_actions.printMenu = new TDEActionMenu(i18n("Print..."),CResMgr::searchdialog::result::foundItems::printMenu::icon, TQT_TQOBJECT(m_popup)); m_actions.printMenu->setDelayed(false); - m_actions.print.result = new KAction(i18n("Reference with text"), KShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(printItems()), TQT_TQOBJECT(this)); + m_actions.print.result = new TDEAction(i18n("Reference with text"), TDEShortcut(0), TQT_TQOBJECT(this), TQT_SLOT(printItems()), TQT_TQOBJECT(this)); m_actions.printMenu->insert(m_actions.print.result); m_actions.printMenu->plug(m_popup); } @@ -78,8 +78,8 @@ void CSearchResultView::initConnections() { 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&))); + connect(this, TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)), + this, TQT_SLOT(showPopup(TDEListView*, TQListViewItem*, const TQPoint&))); } /** Setups the list with the given module. */ @@ -101,9 +101,9 @@ void CSearchResultView::setupTree(CSwordModuleInfo* m) { setUpdatesEnabled(false); TQListViewItem* oldItem = 0; - KListViewItem* item = 0; + TDEListViewItem* item = 0; for (int index = 0; index < count; index++) { - item = new KListViewItem(this, oldItem); + item = new TDEListViewItem(this, oldItem); item->setText(0, TQString::fromUtf8(result.GetElement(index)->getText())); oldItem = item; @@ -129,11 +129,11 @@ void CSearchResultView::setupStrongsTree(CSwordModuleInfo* m, TQStringList* vLis setUpdatesEnabled(false); - KListViewItem* oldItem = 0; - KListViewItem* item = 0; + TDEListViewItem* oldItem = 0; + TDEListViewItem* item = 0; for ( TQStringList::Iterator it = vList->begin(); it != vList->end(); ++it ) { - item = new KListViewItem(this, oldItem); + item = new TDEListViewItem(this, oldItem); item->setText(0, (*it)); oldItem = item; @@ -153,7 +153,7 @@ void CSearchResultView::executed(TQListViewItem* item) { } /** Reimplementation to show the popup menu. */ -void CSearchResultView::showPopup(KListView*, TQListViewItem*, const TQPoint& point) { +void CSearchResultView::showPopup(TDEListView*, TQListViewItem*, const TQPoint& point) { m_popup->exec(point); } |