mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 08:58:37 +00:00
uic: support <column> elements
This commit is contained in:
parent
8d07be763a
commit
6ed51553ac
@ -341,8 +341,18 @@ func generateWidget(w UiWidget, parentName string, parentClass string) (string,
|
||||
}
|
||||
|
||||
// Columns
|
||||
// TODO
|
||||
// w.Columns
|
||||
|
||||
for colNo, col := range w.Columns {
|
||||
|
||||
for _, prop := range col.Properties {
|
||||
if prop.Name == "text" {
|
||||
ret.WriteString("ui." + w.Name + ".HeaderItem().SetText(" + fmt.Sprintf("%d", colNo) + ", " + generateString(prop.StringVal, w.Class) + ")\n")
|
||||
} else {
|
||||
ret.WriteString("/* miqt-uic: no handler for column property '" + prop.Name + "' */\n")
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// Recurse children
|
||||
var (
|
||||
|
Loading…
Reference in New Issue
Block a user