From e315ff15daf26cbc70b6f2da50e6ca18081fc7c4 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Wed, 19 Sep 2012 23:22:13 +0200 Subject: Integrated spell checking for rekonq2 (lindsay's work imported) - inline spell highlighter. This requires WebKit 2.3 to work. - Addition of a suggested replacement word list to the context menu, for the word right clicked on - A standard modeless spell check dialog that works on the current editable text (or selection). Heavily cribbed from Dawit's work on kdewebkitpart. oops... also a codingstyle script round here... :) --- src/application.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/application.cpp') diff --git a/src/application.cpp b/src/application.cpp index efad91c3..6de3eea1 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -76,6 +76,7 @@ // Qt Includes #include #include +#include Application::Application() @@ -184,7 +185,7 @@ int Application::newInstance() } else { - // NOTE: just load new tabs/windows without arguments + // NOTE: just load new tabs/windows without arguments // if NOT is Session restored... if (!isSessionRestored()) { @@ -332,7 +333,7 @@ TabWindow *Application::newTabWindow() // set object name int n = m_tabWindows.count() + 1; - w->setObjectName( QL1S("win") + QString::number(n) ); + w->setObjectName(QL1S("win") + QString::number(n)); // This is used to track which window was activated most recently w->installEventFilter(this); @@ -477,7 +478,7 @@ void Application::updateConfiguration() // ? tabWindow()->changeWindowIcon(tabWindow()->mainView()->currentIndex()) // : tabWindow()->setWindowIcon(KIcon("rekonq")) // ; -// +// // hovering unfocused tabs options switch (ReKonfig::hoveringTabOption()) { @@ -632,7 +633,7 @@ void Application::createWebAppShortcut() dialog->setButtons(KDialog::Ok | KDialog::Cancel); dialog->button(KDialog::Ok)->setText(i18n("Create")); dialog->setMinimumSize(400, 50); - dialog->setWindowIcon( QIcon(IconManager::self()->iconForUrl(u).pixmap(16)) ); + dialog->setWindowIcon(QIcon(IconManager::self()->iconForUrl(u).pixmap(16))); Ui::webAppCreation wAppWidget; QWidget widget; @@ -708,7 +709,7 @@ void Application::createWebAppShortcut() wAppFile.close(); } - + } dialog->deleteLater(); -- cgit v1.2.1