Added another test case to the menu trigger test that could reproduce the last

problem of BMenuItem::SetTrigger() that got fixed in r22476 (see bug #1506 for
the details).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22477 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2007-10-07 17:22:30 +00:00
parent f1be468272
commit b21fc3c730

View File

@ -29,10 +29,10 @@ Window::Window()
: BWindow(BRect(100, 100, 400, 400), "Menu Trigger Test",
B_TITLED_WINDOW, B_ASYNCHRONOUS_CONTROLS)
{
BMenuBar *bar = new BMenuBar(BRect(0, 0, 10, 10), "menuBar");
BMenuBar* bar = new BMenuBar(BRect(0, 0, 10, 10), "menuBar");
AddChild(bar);
BMenu *menu = new BMenu("File");
BMenu* menu = new BMenu("File");
menu->AddItem(new BMenuItem("Bart", NULL));
menu->AddItem(new BMenuItem("bart", NULL));
menu->AddItem(new BMenuItem("bart", NULL));
@ -51,7 +51,12 @@ Window::Window()
menu->AddItem(new BMenuItem("3 a", NULL));
menu->AddItem(new BMenuItem("3 aöa", NULL));
bar->AddItem(menu);
menu = new BMenu("Extra");
BMenuItem* item = new BMenuItem("\xe3\x81\x82 haiku", NULL);
item->SetTrigger('h');
menu->AddItem(item);
bar->AddItem(menu);
}
Window::~Window()