summaryrefslogtreecommitdiff
path: root/src/browserapplication.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-01-18 02:10:22 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-01-18 02:10:22 +0100
commit195641eb0e7972b32756e95340ebd48c21a7feaf (patch)
tree7f17e16782fb8961fd4a7d17b1bf2e7bc5d440b6 /src/browserapplication.cpp
parentSome moc adds and webview fixing.. (diff)
downloadrekonq-195641eb0e7972b32756e95340ebd48c21a7feaf.tar.xz
Partially ported rekonq to KConfigXT technology..
Perhaps ~50%..going on!!
Diffstat (limited to 'src/browserapplication.cpp')
-rw-r--r--src/browserapplication.cpp46
1 files changed, 1 insertions, 45 deletions
diff --git a/src/browserapplication.cpp b/src/browserapplication.cpp
index bb8c76b1..bbd4b8b1 100644
--- a/src/browserapplication.cpp
+++ b/src/browserapplication.cpp
@@ -127,8 +127,6 @@ void BrowserApplication::postLaunch()
}
QWebSettings::setIconDatabasePath(directory);
- loadSettings();
-
// newMainWindow() needs to be called in main() for this to happen
if (m_mainWindows.count() > 0)
{
@@ -148,36 +146,6 @@ void BrowserApplication::postLaunch()
}
-
-void BrowserApplication::loadSettings()
-{
- KConfig config("rekonqrc");
- KConfigGroup group = config.group("Appearance Settings");
-
- QWebSettings *defaultSettings = QWebSettings::globalSettings();
- QString standardFontFamily = defaultSettings->fontFamily(QWebSettings::StandardFont);
- int standardFontSize = defaultSettings->fontSize(QWebSettings::DefaultFontSize);
- QFont standardFont = QFont(standardFontFamily, standardFontSize);
- standardFont = qVariantValue<QFont>( group.readEntry( QString("standardFont"), standardFont ) );
-
- defaultSettings->setFontFamily(QWebSettings::StandardFont, standardFont.family());
- defaultSettings->setFontSize(QWebSettings::DefaultFontSize, standardFont.pointSize());
-
- QString fixedFontFamily = defaultSettings->fontFamily(QWebSettings::FixedFont);
- int fixedFontSize = defaultSettings->fontSize(QWebSettings::DefaultFixedFontSize);
- QFont fixedFont = QFont(fixedFontFamily, fixedFontSize);
- fixedFont = qVariantValue<QFont>(group.readEntry( QString("fixedFont"), fixedFont ) );
-
- defaultSettings->setFontFamily(QWebSettings::FixedFont, fixedFont.family());
- defaultSettings->setFontSize(QWebSettings::DefaultFixedFontSize, fixedFont.pointSize());
-
- defaultSettings->setAttribute(QWebSettings::JavascriptEnabled, group.readEntry( QString("enableJavascript"), true ) );
- defaultSettings->setAttribute(QWebSettings::PluginsEnabled, group.readEntry( QString("enablePlugins"), true ) );
-}
-
-
-
-
QList<MainWindow*> BrowserApplication::mainWindows()
{
clean();
@@ -190,8 +158,6 @@ QList<MainWindow*> BrowserApplication::mainWindows()
}
-
-
void BrowserApplication::clean()
{
// cleanup any deleted main windows first
@@ -311,17 +277,7 @@ void BrowserApplication::newLocalSocketConnection()
stream >> url;
if (!url.isEmpty())
{
- KConfig config("rekonqrc");
- KConfigGroup group = config.group("Global Settings");
- int openLinksIn = group.readEntry( QString("openLinksIn"), QString().toInt() );
- if (openLinksIn == 1)
- {
- newMainWindow();
- }
- else
- {
- mainWindow()->tabWidget()->newTab();
- }
+ mainWindow()->tabWidget()->newTab();
openUrl(url);
}
delete socket;