summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-08-27 16:41:35 -0500
committerDarrell Anderson <humanreadable@yahoo.com>2012-08-27 16:41:35 -0500
commit4cc563da102c5ba30ee1a97f162f721669903f66 (patch)
treee1365d3871e8c6b53d96017ddc224686bcad8f1d
parent5b20d188acd61f62a858021316630a36c696bacf (diff)
parent679d4f0bcdd20ef467ee02b366bf024779950fc2 (diff)
downloadqt3-4cc563da102c5ba30ee1a97f162f721669903f66.tar.gz
qt3-4cc563da102c5ba30ee1a97f162f721669903f66.zip
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/qt3
-rw-r--r--src/kernel/qstyle.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/kernel/qstyle.cpp b/src/kernel/qstyle.cpp
index 55aba9e..e7d3fa5 100644
--- a/src/kernel/qstyle.cpp
+++ b/src/kernel/qstyle.cpp
@@ -2422,7 +2422,7 @@ void QStyle::drawPrimitive( PrimitiveElement pe,
}
}
- QStyleControlElementData ceData = populateControlElementDataFromWidget(widget, QStyleOption());
+ QStyleControlElementData ceData = populateControlElementDataFromWidget(widget, opt);
drawPrimitive(pe, p, ceData, getControlElementFlagsForObject(widget, ceData.widgetObjectTypes, QStyleOption()), r, cg, flags, opt);
}
@@ -2485,7 +2485,7 @@ void QStyle::drawComplexControl( ComplexControl control,
}
#endif
- QStyleControlElementData ceData = populateControlElementDataFromWidget(widget, QStyleOption());
+ QStyleControlElementData ceData = populateControlElementDataFromWidget(widget, opt);
drawComplexControl(control, p, ceData, getControlElementFlagsForObject(widget, ceData.widgetObjectTypes, QStyleOption()), r, cg, flags, controls, active, opt, widget);
}
@@ -2495,7 +2495,7 @@ void QStyle::drawComplexControlMask( ComplexControl control,
const QRect &r,
const QStyleOption& opt ) const
{
- QStyleControlElementData ceData = populateControlElementDataFromWidget(widget, QStyleOption());
+ QStyleControlElementData ceData = populateControlElementDataFromWidget(widget, opt);
drawComplexControlMask(control, p, ceData, getControlElementFlagsForObject(widget, ceData.widgetObjectTypes, QStyleOption()), r, opt, widget);
}
@@ -2511,7 +2511,7 @@ QRect QStyle::querySubControlMetrics( ComplexControl control,
}
#endif
- QStyleControlElementData ceData = populateControlElementDataFromWidget(widget, QStyleOption(), false);
+ QStyleControlElementData ceData = populateControlElementDataFromWidget(widget, opt, false);
return querySubControlMetrics(control, ceData, getControlElementFlagsForObject(widget, ceData.widgetObjectTypes, QStyleOption()), sc, opt, widget);
}
@@ -2544,19 +2544,19 @@ QSize QStyle::sizeFromContents(ContentsType contents,
}
#endif
- QStyleControlElementData ceData = populateControlElementDataFromWidget(widget, QStyleOption());
+ QStyleControlElementData ceData = populateControlElementDataFromWidget(widget, opt);
return sizeFromContents(contents, ceData, getControlElementFlagsForObject(widget, ceData.widgetObjectTypes, QStyleOption()), contentsSize, opt, widget);
}
int QStyle::styleHint(StyleHint sh, const QWidget * w, const QStyleOption &so, QStyleHintReturn *shr) const
{
- QStyleControlElementData ceData = populateControlElementDataFromWidget(w, QStyleOption(), false);
+ QStyleControlElementData ceData = populateControlElementDataFromWidget(w, so, false);
return styleHint(sh, ceData, getControlElementFlagsForObject(w, ceData.widgetObjectTypes, QStyleOption(), false), so, shr, w);
}
QPixmap QStyle::stylePixmap(StylePixmap sp, const QWidget *w, const QStyleOption &so) const
{
- QStyleControlElementData ceData = populateControlElementDataFromWidget(w, QStyleOption());
+ QStyleControlElementData ceData = populateControlElementDataFromWidget(w, so);
return stylePixmap(sp, ceData, getControlElementFlagsForObject(w, ceData.widgetObjectTypes, QStyleOption()), so, w);
}