summaryrefslogtreecommitdiff
path: root/src/urlbar.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2008-11-27 16:45:38 +0100
committerAndrea Diamantini <adjam7@gmail.com>2008-11-27 16:45:38 +0100
commitd4ee1b6a519d342109cd2cda52d30ea776065e11 (patch)
treefa868af1da3ed5b2858d157981bf343044dfbf15 /src/urlbar.cpp
parent1st implementation of new (K)urlbar. (diff)
downloadrekonq-d4ee1b6a519d342109cd2cda52d30ea776065e11.tar.xz
New step forwad in the street from QAction to KAction..
Diffstat (limited to 'src/urlbar.cpp')
-rw-r--r--src/urlbar.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/urlbar.cpp b/src/urlbar.cpp
index e7ce461a..16783313 100644
--- a/src/urlbar.cpp
+++ b/src/urlbar.cpp
@@ -81,18 +81,18 @@ void UrlBar::setWebView(WebView *webView)
void UrlBar::paintEvent(QPaintEvent *event)
{
QPainter p(this);
- QStyleOptionFrameV2 *optionPanel;
+ QStyleOptionFrameV2 optionPanel;
- optionPanel->initFrom(this);
- optionPanel->rect = contentsRect();
- optionPanel->lineWidth = style()->pixelMetric(QStyle::PM_DefaultFrameWidth, optionPanel, this);
- optionPanel->midLineWidth = 0;
- optionPanel->state |= QStyle::State_Sunken;
+ optionPanel.initFrom(this);
+ optionPanel.rect = contentsRect();
+ optionPanel.lineWidth = style()->pixelMetric(QStyle::PM_DefaultFrameWidth, &optionPanel, this);
+ optionPanel.midLineWidth = 0;
+ optionPanel.state |= QStyle::State_Sunken;
if (m_lineEdit->isReadOnly())
- optionPanel->state |= QStyle::State_ReadOnly;
- optionPanel->features = QStyleOptionFrameV2::None;
+ optionPanel.state |= QStyle::State_ReadOnly;
+ optionPanel.features = QStyleOptionFrameV2::None;
- style()->drawPrimitive(QStyle::PE_PanelLineEdit, optionPanel, &p, (QWidget *) this);
+ style()->drawPrimitive(QStyle::PE_PanelLineEdit, &optionPanel, &p, (QWidget *) this);
}
void UrlBar::focusOutEvent(QFocusEvent *event)