mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-13 16:33:36 +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.
Origin commit data
------------------
Commit: 8174f094e6
Author: Thilo Graf <dbt@novatux.de>
Date: 2022-03-27 (Sun, 27 Mar 2022)
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