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

import password echo char setting

Change-Id: I36a82a8bb915e72a191787a2e44f9bd814271ea1
üst f2734389
......@@ -156,7 +156,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
<property name="editable">False</property>
<property name="visibility">False</property>
<property name="invisible_char"></property>
<property name="invisible_char_set">True</property>
</object>
......@@ -172,7 +172,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
<property name="editable">False</property>
<property name="visibility">False</property>
<property name="invisible_char"></property>
<property name="invisible_char_set">True</property>
</object>
......@@ -252,7 +252,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
<property name="editable">False</property>
<property name="visibility">False</property>
<property name="invisible_char"></property>
<property name="invisible_char_set">True</property>
</object>
......@@ -268,7 +268,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
<property name="editable">False</property>
<property name="visibility">False</property>
<property name="invisible_char"></property>
<property name="invisible_char_set">True</property>
</object>
......
......@@ -234,6 +234,14 @@ bool Edit::set_property(const rtl::OString &rKey, const rtl::OString &rValue)
SetMaxWidthInChars(rValue.toInt32());
else if (rKey == "editable")
SetReadOnly(!toBool(rValue));
else if (rKey == "visibility")
{
WinBits nBits = GetStyle();
nBits &= ~(WB_PASSWORD);
if (!toBool(rValue))
nBits |= WB_PASSWORD;
SetStyle(nBits);
}
else
return Control::set_property(rKey, rValue);
return true;
......
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