summaryrefslogtreecommitdiff
path: root/src/previewselectorbar.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-07-17 16:46:24 +0200
committerAndrea Diamantini <adjam7@gmail.com>2011-07-17 16:46:24 +0200
commit82167d2422a4b6e3071dca68cf65a66e1da41ab4 (patch)
tree03c1f95a2aa60c48822a463cc3812b5c3415991e /src/previewselectorbar.cpp
parentImproving tab previews (diff)
downloadrekonq-82167d2422a4b6e3071dca68cf65a66e1da41ab4.tar.xz
A round of the "new" astyle 2.01...
Diffstat (limited to 'src/previewselectorbar.cpp')
-rw-r--r--src/previewselectorbar.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/previewselectorbar.cpp b/src/previewselectorbar.cpp
index 23d5f9e5..b242846d 100644
--- a/src/previewselectorbar.cpp
+++ b/src/previewselectorbar.cpp
@@ -55,15 +55,15 @@ PreviewSelectorBar::PreviewSelectorBar(int index, QWidget* parent)
, m_insertAction(0)
{
setMessageType(KMessageWidget::Information);
-
+
QSize sz = size();
- sz.setWidth( qobject_cast<QWidget *>(parent)->size().width() );
+ sz.setWidth(qobject_cast<QWidget *>(parent)->size().width());
resize(sz);
-
+
setCloseButtonVisible(false);
-
- setText( i18n("Please open up the webpage you want to add as favorite") );
-
+
+ setText(i18n("Please open up the webpage you want to add as favorite"));
+
m_insertAction = new QAction(KIcon("insert-image"), i18n("Set to This Page"), this);
connect(m_insertAction, SIGNAL(triggered(bool)), this, SLOT(clicked()));
addAction(m_insertAction);
@@ -73,7 +73,7 @@ PreviewSelectorBar::PreviewSelectorBar(int index, QWidget* parent)
void PreviewSelectorBar::verifyUrl()
{
- if (rApp->mainWindow()->currentTab()->page()->mainFrame()->url().scheme() != "about")
+ if(rApp->mainWindow()->currentTab()->page()->mainFrame()->url().scheme() != "about")
{
m_insertAction->setEnabled(true);
m_insertAction->setToolTip("");
@@ -106,12 +106,12 @@ void PreviewSelectorBar::clicked()
{
WebPage *page = rApp->mainWindow()->currentTab()->page();
- if (page)
+ if(page)
{
KUrl url = page->mainFrame()->url();
QStringList names = ReKonfig::previewNames();
QStringList urls = ReKonfig::previewUrls();
-
+
//cleanup the previous image from the cache (useful to refresh the snapshot)
QFile::remove(WebSnap::imagePathFromUrl(urls.at(m_previewIndex)));
page->mainFrame()->setScrollBarValue(Qt::Vertical, 0);