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

Show LibO's custom checkboxes in native fpicker

Change-Id: I9cd6b0b393024957c3dec1bd7e381db62f711a24
üst 611346f3
...@@ -153,20 +153,6 @@ QString KDE5FilePicker::getLabel(sal_Int16 controlId) const ...@@ -153,20 +153,6 @@ QString KDE5FilePicker::getLabel(sal_Int16 controlId) const
return label; return label;
}*/ }*/
/*void KDE5FilePicker::addCheckBox(sal_Int16 controlId, const QString& label, bool hidden)
{
auto resString = label;
resString.replace('~', '&');
auto widget = new QCheckBox(resString, _extraControls);
widget->setHidden(hidden);
if (!hidden)
{
_layout->addWidget(widget);
}
_customWidgets.insert(controlId, widget);
}*/
/*void KDE5FilePicker::initialize(bool saveDialog) /*void KDE5FilePicker::initialize(bool saveDialog)
{ {
//default is opening //default is opening
......
...@@ -303,6 +303,17 @@ void KDE5FilePicker::addCustomControl(sal_Int16 controlId) ...@@ -303,6 +303,17 @@ void KDE5FilePicker::addCustomControl(sal_Int16 controlId)
// the checkbox is created even for CHECKBOX_AUTOEXTENSION to simplify // the checkbox is created even for CHECKBOX_AUTOEXTENSION to simplify
// code, but the checkbox is hidden and ignored // code, but the checkbox is hidden and ignored
bool hidden = controlId == CHECKBOX_AUTOEXTENSION; bool hidden = controlId == CHECKBOX_AUTOEXTENSION;
auto resString = toQString(VclResId(resId));
resString.replace('~', '&');
auto widget = new QCheckBox(resString, _extraControls);
widget->setHidden(hidden);
if (!hidden)
{
_layout->addWidget(widget);
}
_customWidgets.insert(controlId, widget);
break; break;
} }
case PUSHBUTTON_PLAY: case PUSHBUTTON_PLAY:
......
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