aboutsummaryrefslogtreecommitdiff
path: root/plainqt
diff options
context:
space:
mode:
authorBernd Lamecker <bernd.lamecker@basyskom.de>2010-07-22 14:29:21 +0200
committerMike FABIAN <mike.fabian@basyskom.de>2010-07-22 14:48:15 +0200
commit9e6447a2334a899da61daea6f0212c11338ffacf (patch)
tree0d28c57730c83b0af9b14ad52839dfa288d6246d /plainqt
parenta18b9b87160a70caffa76f05f42bf43280679cb8 (diff)
Changes: fixes crash when drawing lineedits
RevBy: Mike FABIAN
Diffstat (limited to 'plainqt')
-rw-r--r--plainqt/style/qtmaemo6style.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plainqt/style/qtmaemo6style.cpp b/plainqt/style/qtmaemo6style.cpp
index 78709122..54c6b93b 100644
--- a/plainqt/style/qtmaemo6style.cpp
+++ b/plainqt/style/qtmaemo6style.cpp
@@ -1207,7 +1207,7 @@ void QtMaemo6Style::drawPrimitive(PrimitiveElement element,
break;
case PE_PanelLineEdit: {
- if (qobject_cast<QAbstractSpinBox *>(widget->parent()))
+ if (widget && qobject_cast<QAbstractSpinBox *>(widget->parent()))
break;
if (const QStyleOptionFrame *panel = qstyleoption_cast<const QStyleOptionFrame *>(option)) {
@@ -2236,9 +2236,9 @@ QRect QtMaemo6Style::subControlRect(ComplexControl control,
return QtMaemo6TestStyle::subControlRect(control, option, subControl, widget);
}
-QRect QtMaemo6Style::subElementRect(SubElement element,
- const QStyleOption* option,
- const QWidget* widget) const
+QRect QtMaemo6Style::subElementRect(SubElement element,
+ const QStyleOption* option,
+ const QWidget* widget) const
{
QRect retRect = QtMaemo6TestStyle::subElementRect(element, option, widget);
switch(element) {