Support for panel height resize.

Now, when panel height get resized, children will update their height's too. Children height is always calculated in form (parent()->h() - 10).
This commit is contained in:
Sanel Zukan
2013-01-17 23:53:11 +00:00
parent 7c4628dfa1
commit 229914358a
3 changed files with 14 additions and 14 deletions

View File

@@ -36,15 +36,15 @@
#define EDE_PANEL_MENU_AUTOUPDATE 1
#ifdef EDE_PANEL_MENU_AUTOUPDATE
#include <edelib/DirWatch.h>
# include <edelib/DirWatch.h>
EDELIB_NS_USING(DirWatch)
EDELIB_NS_USING_LIST(4, (DW_CREATE, DW_MODIFY, DW_DELETE, DW_REPORT_RENAME))
/* when menu needs to be update, after how long to do real update */
#define MENU_UPDATE_TIMEOUT 5.0
# define MENU_UPDATE_TIMEOUT 5.0
/* elapsed seconds between changes reports from DirWatch; to prevent event throttling */
#define MENU_UPDATE_DIFF 5
# define MENU_UPDATE_DIFF 5
#endif
EDELIB_NS_USING(MenuBase)