mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
Remove remaining hunspell code
This commit is contained in:
parent
97ce417798
commit
e052bda768
@ -36,10 +36,6 @@
|
||||
#include "webhittestresult.h"
|
||||
#include "iconloader.h"
|
||||
|
||||
#ifdef USE_HUNSPELL
|
||||
#include "qtwebkit/spellcheck/speller.h"
|
||||
#endif
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include <QDir>
|
||||
@ -609,14 +605,6 @@ void WebView::createContextMenu(QMenu *menu, const WebHitTestResult &hitTest)
|
||||
// cppcheck-suppress variableScope
|
||||
int spellCheckActionCount = 0;
|
||||
|
||||
#ifdef USE_HUNSPELL
|
||||
// Show spellcheck menu as the first
|
||||
if (hitTest.isContentEditable() && !hitTest.isContentSelected()) {
|
||||
Speller::instance()->populateContextMenu(menu, hitTest);
|
||||
spellCheckActionCount = menu->actions().count();
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!hitTest.linkUrl().isEmpty() && hitTest.linkUrl().scheme() != QL1S("javascript")) {
|
||||
createLinkContextMenu(menu, hitTest);
|
||||
}
|
||||
@ -645,10 +633,6 @@ void WebView::createContextMenu(QMenu *menu, const WebHitTestResult &hitTest)
|
||||
act->setVisible(false);
|
||||
checkForForm(act, hitTest.pos());
|
||||
}
|
||||
|
||||
#ifdef USE_HUNSPELL
|
||||
Speller::instance()->createContextMenu(menu);
|
||||
#endif
|
||||
}
|
||||
|
||||
if (!selectedText().isEmpty()) {
|
||||
|
Loading…
Reference in New Issue
Block a user