summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-09-15 12:37:14 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-09-15 12:37:14 +0200
commita25e22d7b195877666237007665ce20e1358753b (patch)
tree15739fbb10cb3fb6123c46d06be8ad4a965c9872 /src/settings.cpp
parentInitial newtab page settings implementation (diff)
downloadrekonq-a25e22d7b195877666237007665ce20e1358753b.tar.xz
Fixing state. Rekonq is not usable now, but this seems a good tech preview.
Anyway, performance is definitely a problem with this method, also loading just the first time. Looking at the other way... :)
Diffstat (limited to 'src/settings.cpp')
-rw-r--r--src/settings.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index dd61e357..9767b676 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -139,7 +139,6 @@ Private::Private(SettingsDialog *parent)
SettingsDialog::SettingsDialog(QWidget *parent)
: KConfigDialog(parent, "rekonfig", ReKonfig::self())
, d(new Private(this))
- , m_progress(0)
{
setFaceType(KPageDialog::List);
showButtonSeparator(true);
@@ -156,7 +155,6 @@ SettingsDialog::SettingsDialog(QWidget *parent)
connect(this, SIGNAL(applyClicked()), this, SLOT(saveSettings()));
connect(this, SIGNAL(okClicked()), this, SLOT(saveSettings()));
- connect(this, SIGNAL(okClicked()), this, SLOT(updateSnaps()));
setWebSettingsToolTips();
}
@@ -253,29 +251,3 @@ void SettingsDialog::setHomeToCurrentPage()
d->generalUi.kcfg_homePage->setText(webView->url().prettyUrl());
}
}
-
-
-void SettingsDialog::updateSnaps()
-{
- if(hasChanged())
- {
- QStringList urls = ReKonfig::previewUrls();
- for(int i=0; i<9; ++i)
- {
- QString fileName = QString("thumb") + QString::number(i) + QString(".png");
- WebSnap *ws = new WebSnap(urls.at(i), fileName);
- connect(ws, SIGNAL(finished()), this, SLOT(polish()));
- }
- m_progress = new KProgressDialog(this, i18n("Loading..."), i18n("Retrieving site images..."));
- m_progress->progressBar()->setRange(0,8);
- m_progress->show();
- }
-}
-
-
-void SettingsDialog::polish()
-{
- WebSnap *ws = qobject_cast<WebSnap*>(sender());
- delete ws;
- m_progress->progressBar()->setValue( m_progress->progressBar()->value() + 1);
-} \ No newline at end of file