Qt: set empty text for menuitem which is separator. fixes #16871

git-svn-id: trunk@26536 -
This commit is contained in:
zeljko 2010-07-08 20:35:48 +00:00
parent d0a7a15d11
commit e489b279cb

View File

@ -241,7 +241,10 @@ begin
if Widget is TQtMenu then
begin
TQtMenu(Widget).setSeparator(ACaption = cLineCaption);
TQtMenu(Widget).setText(GetUtf8String(ACaption));
if ACaption = cLineCaption then
TQtMenu(Widget).setText('')
else
TQtMenu(Widget).setText(GetUtf8String(ACaption));
end;
end;