summaryrefslogtreecommitdiff
path: root/src/frontend/searchdialog/btsearchresultarea.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/searchdialog/btsearchresultarea.cpp')
-rw-r--r--src/frontend/searchdialog/btsearchresultarea.cpp22
1 files changed, 10 insertions, 12 deletions
diff --git a/src/frontend/searchdialog/btsearchresultarea.cpp b/src/frontend/searchdialog/btsearchresultarea.cpp
index 623de0e..9986e26 100644
--- a/src/frontend/searchdialog/btsearchresultarea.cpp
+++ b/src/frontend/searchdialog/btsearchresultarea.cpp
@@ -33,10 +33,8 @@ namespace Search {
BtSearchResultArea::BtSearchResultArea(QWidget *parent)
: QWidget(parent) {
- qDebug() << "BtSearchResultArea::BtSearchResultArea";
initView();
initConnections();
- qDebug() << "BtSearchResultArea::BtSearchResultArea end";
}
void BtSearchResultArea::initView() {
@@ -155,11 +153,11 @@ void BtSearchResultArea::updatePreview(const QString& key) {
vk.previous(CSwordVerseKey::UseVerse);
//include Headings in display, they are indexed and searched too
- if (vk.Verse() == 1) {
- if (vk.Chapter() == 1) {
- vk.Chapter(0);
+ if (vk.getVerse() == 1) {
+ if (vk.getChapter() == 1) {
+ vk.setChapter(0);
}
- vk.Verse(0);
+ vk.setVerse(0);
}
const QString startKey = vk.key();
@@ -182,11 +180,11 @@ void BtSearchResultArea::updatePreview(const QString& key) {
((sword::VerseKey*)(module->module()->getKey()))->Headings(1); //HACK: enable headings for VerseKeys
//include Headings in display, they are indexed and searched too
- if (vk.Verse() == 1) {
- if (vk.Chapter() == 1) {
- vk.Chapter(0);
+ if (vk.getVerse() == 1) {
+ if (vk.getChapter() == 1) {
+ vk.setChapter(0);
}
- vk.Verse(0);
+ vk.setVerse(0);
}
const QString startKey = vk.key();
@@ -525,7 +523,7 @@ void BtSearchResultArea::loadDialogSettings() {
/**
* Save the settings to the resource file
*/
-void BtSearchResultArea::saveDialogSettings() {
+void BtSearchResultArea::saveDialogSettings() const {
CBTConfig::set(CBTConfig::searchMainSplitterSizes, m_mainSplitter->sizes());
CBTConfig::set(CBTConfig::searchResultSplitterSizes, m_resultListSplitter->sizes());
}
@@ -568,7 +566,7 @@ StrongsResultList::StrongsResultList(const CSwordModuleInfo *module,
progress.setValue(index);
qApp->processEvents(QEventLoop::AllEvents, 1); //1 ms only
- QString key = QString::fromUtf8(result.GetElement(index)->getText());
+ QString key = QString::fromUtf8(result.getElement(index)->getText());
QString text = CDisplayRendering().renderSingleKey(key, modules, settings);
for (int sIndex = 0;;) {
continueloop: