summaryrefslogtreecommitdiff
path: root/src/application.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-09-19 23:22:13 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-12-10 02:48:05 +0100
commite315ff15daf26cbc70b6f2da50e6ca18081fc7c4 (patch)
tree6da0556f2c5c7efb13d8e8b03ba0092e7a5838d3 /src/application.cpp
parentImplement RekonqWindow (diff)
downloadrekonq-e315ff15daf26cbc70b6f2da50e6ca18081fc7c4.tar.xz
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... :)
Diffstat (limited to 'src/application.cpp')
-rw-r--r--src/application.cpp11
1 files changed, 6 insertions, 5 deletions
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 <QDBusInterface>
#include <QDBusReply>
+#include <QDir>
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();