summaryrefslogtreecommitdiff
path: root/src/tabpreviewpopup.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tabpreviewpopup.cpp')
-rw-r--r--src/tabpreviewpopup.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/tabpreviewpopup.cpp b/src/tabpreviewpopup.cpp
index 3d1bc5a6..f6ede995 100644
--- a/src/tabpreviewpopup.cpp
+++ b/src/tabpreviewpopup.cpp
@@ -41,10 +41,10 @@
#include <QPoint>
-TabPreviewPopup::TabPreviewPopup(WebTab* tab,QWidget* parent)
- : KPassivePopup(parent),
- m_thumbnail(new QLabel(this)),
- m_url(new QLabel(this))
+TabPreviewPopup::TabPreviewPopup(WebTab* tab, QWidget* parent)
+ : KPassivePopup(parent),
+ m_thumbnail(new QLabel(this)),
+ m_url(new QLabel(this))
{
m_thumbnail->setAlignment(Qt::AlignHCenter);
m_url->setAlignment(Qt::AlignHCenter);
@@ -95,14 +95,14 @@ void TabPreviewPopup::setUrl(const QString& text)
void TabPreviewPopup::setFixedSize(int w, int h)
{
- KPassivePopup::setFixedSize(w,h);
- m_url->setText(m_url->fontMetrics().elidedText(m_url->text(),Qt::ElideMiddle,this->width() - this->borderRadius));
+ KPassivePopup::setFixedSize(w, h);
+ m_url->setText(m_url->fontMetrics().elidedText(m_url->text(), Qt::ElideMiddle, this->width() - this->borderRadius));
QPixmap pixmap(size());
QPainter painter(&pixmap);
painter.setRenderHint(QPainter::Antialiasing);
painter.fillRect(pixmap.rect(), Qt::red);
painter.setBrush(QBrush(Qt::black));
- painter.drawRoundRect(borderSpacing,borderSpacing,pixmap.width()-borderSpacing*2,pixmap.height()-borderSpacing*2, borderRadius, borderRadius);
+ painter.drawRoundRect(borderSpacing, borderSpacing, pixmap.width() - borderSpacing * 2, pixmap.height() - borderSpacing * 2, borderRadius, borderRadius);
setMask(pixmap.createMaskFromColor(Qt::red));
} \ No newline at end of file