mirror of
https://github.com/mappu/miqt.git
synced 2026-03-13 09:44:45 +08:00
miqt-uic: hack for QToolBar generated enum names
This commit is contained in:
@@ -113,6 +113,9 @@ func normalizeEnumName(s string) string {
|
||||
if strings.HasPrefix(s, `Orientation::`) { // Splitters
|
||||
s = s[13:]
|
||||
}
|
||||
if strings.HasPrefix(s, `ToolButtonStyle::`) { // QToolBar
|
||||
s = s[17:]
|
||||
}
|
||||
|
||||
return `qt.` + strings.Replace(s, `::`, `__`, -1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user