GtkComboBox->VclComboBoxNumeric
Change-Id: Iba1416692a619c1f566f26da5b06ed04342057b3
This commit is contained in:
parent
ef683ad852
commit
daa654fb44
2 changed files with 5 additions and 5 deletions
|
@ -234,7 +234,7 @@
|
|||
<property name="orientation">vertical</property>
|
||||
<property name="spacing">6</property>
|
||||
<child>
|
||||
<object class="GtkComboBox" id="rotation:0.00degrees">
|
||||
<object class="VclComboBoxNumeric" id="rotation:0.00degrees">
|
||||
<property name="visible">True</property>
|
||||
<property name="can_focus">False</property>
|
||||
<property name="has_tooltip">True</property>
|
||||
|
|
|
@ -1351,14 +1351,14 @@ Window *VclBuilder::makeObject(Window *pParent, const OString &name, const OStri
|
|||
|
||||
if (!sPattern.isEmpty())
|
||||
{
|
||||
connectNumericFormatterAdjustment(id, sAdjustment);
|
||||
OString sUnit = extractUnit(sPattern);
|
||||
FieldUnit eUnit = detectMetricUnit(sUnit);
|
||||
SAL_INFO("vcl.layout", "making metric box for " << name.getStr() << " " << sUnit.getStr());
|
||||
connectNumericFormatterAdjustment(id, sAdjustment);
|
||||
MetricBox *pBox = new MetricBox(pParent, nBits|WB_BORDER);
|
||||
if (bDropdown)
|
||||
pBox->EnableAutoSize(true);
|
||||
MetricBox *pBox = new MetricBox(pParent, nBits);
|
||||
pBox->EnableAutoSize(true);
|
||||
pBox->SetUnit(eUnit);
|
||||
pBox->SetDecimalDigits(extractDecimalDigits(sPattern));
|
||||
if (eUnit == FUNIT_CUSTOM)
|
||||
pBox->SetCustomUnitText(OStringToOUString(sUnit, RTL_TEXTENCODING_UTF8));
|
||||
pWindow = pBox;
|
||||
|
|
Loading…
Reference in a new issue