Kaydet (Commit) c9dd454e authored tarafından Katarina Behrens's avatar Katarina Behrens

Render tooltips natively

with this, all widgets that used to be rendered natively with kde4
are rendered natively also in kde5

Change-Id: If814b121e928a9d743c74836f000b3230b946caf
üst dde06495
...@@ -83,7 +83,7 @@ bool KDE5SalGraphics::IsNativeControlSupported( ControlType type, ControlPart pa ...@@ -83,7 +83,7 @@ bool KDE5SalGraphics::IsNativeControlSupported( ControlType type, ControlPart pa
case ControlType::Pushbutton: case ControlType::Pushbutton:
case ControlType::Radiobutton: case ControlType::Radiobutton:
case ControlType::Checkbox: case ControlType::Checkbox:
/*case ControlType::Tooltip:*/ case ControlType::Tooltip:
case ControlType::Progress: case ControlType::Progress:
case ControlType::ListNode: case ControlType::ListNode:
return (part == ControlPart::Entire); return (part == ControlPart::Entire);
...@@ -528,12 +528,12 @@ bool KDE5SalGraphics::drawNativeControl( ControlType type, ControlPart part, ...@@ -528,12 +528,12 @@ bool KDE5SalGraphics::drawNativeControl( ControlType type, ControlPart part,
draw( QStyle::CE_RadioButton, &option, m_image.get(), draw( QStyle::CE_RadioButton, &option, m_image.get(),
vclStateValue2StateFlag(nControlState, value) ); vclStateValue2StateFlag(nControlState, value) );
} }
/*else if (type == ControlType::Tooltip) else if (type == ControlType::Tooltip)
{ {
QStyleOption option; QStyleOption option;
draw( QStyle::PE_PanelTipLabel, &option, m_image.get(), draw( QStyle::PE_PanelTipLabel, &option, m_image.get(),
vclStateValue2StateFlag(nControlState, value) ); vclStateValue2StateFlag(nControlState, value) );
}*/ }
else if (type == ControlType::Frame) else if (type == ControlType::Frame)
{ {
lcl_drawFrame( QStyle::PE_Frame, m_image.get(), lcl_drawFrame( QStyle::PE_Frame, m_image.get(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment