summaryrefslogtreecommitdiff
path: root/vcl/unx/kde5/KDE5SalGraphics.cxx
diff options
context:
space:
mode:
authorKatarina Behrens <Katarina.Behrens@cib.de>2018-04-23 14:34:39 +0200
committerKatarina Behrens <Katarina.Behrens@cib.de>2018-06-01 10:06:26 +0200
commitd8f9af32fbaab53261e7cc09bc587ffc7a5fc447 (patch)
tree702351b042f22db592b91b6e3bd01c8f4ea523c7 /vcl/unx/kde5/KDE5SalGraphics.cxx
parentd35c64722eaf0157467d88a070302df6cbbf7df1 (diff)
Render radiobuttons natively
Change-Id: Idcc0563ec6fc788c1af135a7389a740e31e999c3
Diffstat (limited to 'vcl/unx/kde5/KDE5SalGraphics.cxx')
-rw-r--r--vcl/unx/kde5/KDE5SalGraphics.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/unx/kde5/KDE5SalGraphics.cxx b/vcl/unx/kde5/KDE5SalGraphics.cxx
index e8076ebb18f9..1556eac7c694 100644
--- a/vcl/unx/kde5/KDE5SalGraphics.cxx
+++ b/vcl/unx/kde5/KDE5SalGraphics.cxx
@@ -90,8 +90,8 @@ bool KDE5SalGraphics::IsNativeControlSupported( ControlType type, ControlPart pa
{
switch (type)
{
- /*case ControlType::Pushbutton:
- case ControlType::Radiobutton:*/
+ /*case ControlType::Pushbutton:*/
+ case ControlType::Radiobutton:
case ControlType::Checkbox:
/*case ControlType::Tooltip:
case ControlType::Progress:
@@ -544,14 +544,14 @@ bool KDE5SalGraphics::drawNativeControl( ControlType type, ControlPart part,
draw( QStyle::CC_SpinBox, &option, m_image.get(),
vclStateValue2StateFlag(nControlState, value) );
- }
+ }*/
else if (type == ControlType::Radiobutton)
{
QStyleOptionButton option;
draw( QStyle::CE_RadioButton, &option, m_image.get(),
vclStateValue2StateFlag(nControlState, value) );
}
- else if (type == ControlType::Tooltip)
+ /*else if (type == ControlType::Tooltip)
{
QStyleOption option;
draw( QStyle::PE_PanelTipLabel, &option, m_image.get(),
@@ -828,7 +828,7 @@ bool KDE5SalGraphics::getNativeControlRegion( ControlType type, ControlPart part
retVal = true;
}
break;
- }
+ }*/
case ControlType::Radiobutton:
{
const int h = QApplication::style()->pixelMetric(QStyle::PM_ExclusiveIndicatorHeight);
@@ -846,7 +846,7 @@ bool KDE5SalGraphics::getNativeControlRegion( ControlType type, ControlPart part
retVal = true;
break;
}
- case ControlType::Slider:
+ /* case ControlType::Slider:
{
const int w = QApplication::style()->pixelMetric(QStyle::PM_SliderLength);
if( part == ControlPart::ThumbHorz )