diff options
Diffstat (limited to 'src/frontend/display/bthtmlreaddisplay.cpp')
-rw-r--r-- | src/frontend/display/bthtmlreaddisplay.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/frontend/display/bthtmlreaddisplay.cpp b/src/frontend/display/bthtmlreaddisplay.cpp index 1842178..7b303e7 100644 --- a/src/frontend/display/bthtmlreaddisplay.cpp +++ b/src/frontend/display/bthtmlreaddisplay.cpp @@ -2,7 +2,7 @@ * * This file is part of BibleTime's source code, http://www.bibletime.info/. * -* Copyright 1999-2011 by the BibleTime developers. +* Copyright 1999-2014 by the BibleTime developers. * The BibleTime source code is licensed under the GNU General Public License version 2.0. * **********/ @@ -14,8 +14,10 @@ #include <QString> #include "backend/keys/cswordkey.h" #include "backend/managers/referencemanager.h" +#include "bibletime.h" #include "frontend/cdragdrop.h" #include "frontend/cinfodisplay.h" +#include "frontend/cmdiarea.h" #include "frontend/display/bthtmljsobject.h" #include "frontend/displaywindow/cdisplaywindow.h" #include "frontend/displaywindow/cdisplaywindowfactory.h" @@ -25,8 +27,6 @@ using namespace InfoDisplay; -void showBtHtmlFindText(CMDIArea*); - static QString javascript; // Initialized from file bthtml.js BtHtmlReadDisplay::BtHtmlReadDisplay(CReadWindow* readWindow, QWidget* parentWidget) @@ -266,8 +266,8 @@ void BtHtmlReadDisplay::setLemma(const QString& lemma) { // Open the Find text dialog void BtHtmlReadDisplay::openFindTextDialog() { - CMDIArea* mdiArea = parentWindow()->mdi(); - showBtHtmlFindText(mdiArea); + BibleTime* bibleTime = parentWindow()->mdi()->bibleTimeWindow(); + bibleTime->openFindWidget(); } // Send "completed" signal when the text is finished loading into the viewer |