Kaydet (Commit) daa654fb authored tarafından Caolán McNamara's avatar Caolán McNamara

GtkComboBox->VclComboBoxNumeric

Change-Id: Iba1416692a619c1f566f26da5b06ed04342057b3
üst ef683ad8
......@@ -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;
......
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