mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
menue.cpp/h: modify move behavior of menu window for custom position
MENU_POS_PRESET is replaced with MENU_POS_CUSTOM. This allows with methode setPos() to any position on screen without preset offset. Old behavior is untouched.
This commit is contained in:
@@ -1380,6 +1380,7 @@ int CTestMenu::showTestMenu()
|
||||
w_test.addItem(new CMenuForwarder("Shell Window Test", true, NULL, this, "shellwindow"));
|
||||
// hardware
|
||||
CMenuWidget *w_hw = new CMenuWidget("Hardware Test", NEUTRINO_ICON_INFO, width, MN_WIDGET_ID_TESTMENU_HARDWARE);
|
||||
w_hw->setPos(20, 50);
|
||||
w_test.addItem(new CMenuForwarder(w_hw->getName(), true, NULL, w_hw));
|
||||
showHWTests(w_hw);
|
||||
|
||||
|
Reference in New Issue
Block a user