Fix crashes in hover control

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko 9 years ago
parent 1a83a35621
commit 66238f3a50

@ -300,11 +300,11 @@ void MandrivaStyle::updateHoverControl(const TQPoint &pos, const TQStyleControlE
if (hoverWidget->inherits("TQScrollBar"))
{
TQRect subline(querySubControlMetrics(CC_ScrollBar, ceData, elementFlags,
SC_ScrollBarSubLine, hoverWidget)),
SC_ScrollBarSubLine, TQStyleOption::Default, hoverWidget)),
addline(querySubControlMetrics(CC_ScrollBar, ceData, elementFlags,
SC_ScrollBarAddLine, hoverWidget)),
SC_ScrollBarAddLine, TQStyleOption::Default, hoverWidget)),
slider(querySubControlMetrics(CC_ScrollBar, ceData, elementFlags,
SC_ScrollBarSlider, hoverWidget));
SC_ScrollBarSlider, TQStyleOption::Default, hoverWidget));
if (subline.contains(pos))
hoverControl = HoverScrollBarSubLine;
else if (addline.contains(pos))
@ -330,9 +330,9 @@ void MandrivaStyle::updateHoverControl(const TQPoint &pos, const TQStyleControlE
return;
TQRect comboArrow(querySubControlMetrics(CC_ComboBox, ceData, elementFlags,
SC_ComboBoxArrow, hoverWidget)),
SC_ComboBoxArrow, TQStyleOption::Default, hoverWidget)),
comboEditField(querySubControlMetrics(CC_ComboBox, ceData, elementFlags,
SC_ComboBoxEditField, hoverWidget));
SC_ComboBoxEditField, TQStyleOption::Default, hoverWidget));
if (comboArrow.contains(pos))
hoverControl = HoverComboBoxArrow;

Loading…
Cancel
Save