summaryrefslogtreecommitdiff
path: root/src/frontend/displaywindow/creadwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/displaywindow/creadwindow.cpp')
-rw-r--r--src/frontend/displaywindow/creadwindow.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/frontend/displaywindow/creadwindow.cpp b/src/frontend/displaywindow/creadwindow.cpp
index 860fa72..b65cf8c 100644
--- a/src/frontend/displaywindow/creadwindow.cpp
+++ b/src/frontend/displaywindow/creadwindow.cpp
@@ -7,33 +7,31 @@
*
**********/
-//BibleTime includes
-#include "creadwindow.h"
-#include "btactioncollection.h"
+#include "frontend/displaywindow/creadwindow.h"
-#include "frontend/display/bthtmlreaddisplay.h"
-typedef BtHtmlReadDisplay HTMLREADDISPLAY;
-
-#include "backend/rendering/centrydisplay.h"
-#include "backend/rendering/cdisplayrendering.h"
+#include <QDebug>
+#include <QMdiSubWindow>
+#include <QResizeEvent>
#include "backend/keys/cswordkey.h"
#include "backend/keys/cswordversekey.h"
-
+#include "backend/rendering/cdisplayrendering.h"
+#include "backend/rendering/centrydisplay.h"
#include "frontend/cexportmanager.h"
#include "frontend/cmdiarea.h"
+#include "frontend/display/bthtmlreaddisplay.h"
+#include "frontend/displaywindow/btactioncollection.h"
#include "frontend/profile/cprofilewindow.h"
#include "frontend/searchdialog/csearchdialog.h"
-#include <QResizeEvent>
-#include <QMdiSubWindow>
-#include <QDebug>
using namespace Profile;
+typedef BtHtmlReadDisplay HTMLREADDISPLAY;
+
CReadWindow::CReadWindow(QList<CSwordModuleInfo*> modules, CMDIArea* parent)
: CDisplayWindow(modules, parent),
m_displayWidget(0) {
- qDebug("CReadWindow::CReadWindow");
+ qDebug() << "CReadWindow::CReadWindow";
// installEventFilter(this);
}
@@ -92,7 +90,7 @@ void CReadWindow::lookupSwordKey( CSwordKey* newKey ) {
key()->key(newKey->key());
}
- //next-TODO: how about options?
+ /// \todo next-TODO how about options?
Q_ASSERT(modules().first()->getDisplay());
CEntryDisplay* display = modules().first()->getDisplay();
if (display) { //do we have a display object?
@@ -106,7 +104,7 @@ void CReadWindow::lookupSwordKey( CSwordKey* newKey ) {
);
}
- setCaption( windowCaption() );
+ setWindowTitle(windowCaption());
// moving to anchor happens in slotMoveToAnchor which catches the completed() signal from KHTMLPart
@@ -114,7 +112,7 @@ void CReadWindow::lookupSwordKey( CSwordKey* newKey ) {
}
void CReadWindow::slotMoveToAnchor() {
- qDebug("CReadWindow::slotMoveToAnchor");
+ qDebug() << "CReadWindow::slotMoveToAnchor";
((CReadDisplay*)displayWidget())->moveToAnchor( Rendering::CDisplayRendering::keyToHTMLAnchor(key()->key()) );
}
@@ -195,7 +193,9 @@ void CReadWindow::openSearchStrongsDialog() {
QString searchText = QString::null;
if (displayWidget()->getCurrentNodeInfo()[CDisplay::Lemma] != QString::null) {
- searchText.append("strong:").append(displayWidget()->getCurrentNodeInfo() [CDisplay::Lemma]);
+ Q_FOREACH(QString strongNumber, displayWidget()->getCurrentNodeInfo()[CDisplay::Lemma].split("|")) {
+ searchText.append("strong:").append( strongNumber ).append(" ");
+ }
}
Search::CSearchDialog::openDialog( modules(), searchText, 0 );