From: vsv Date: Fri, 15 Aug 2014 07:22:22 +0000 (+0400) Subject: Set default values X-Git-Tag: V_0.4.4~105^2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=26ecbf6f996526f658d20cc6dad13e3d90a8492d;p=modules%2Fshaper.git Set default values --- diff --git a/src/XGUI/XGUI_MainMenu.cpp b/src/XGUI/XGUI_MainMenu.cpp index 273e248df..a1e85d7f0 100644 --- a/src/XGUI/XGUI_MainMenu.cpp +++ b/src/XGUI/XGUI_MainMenu.cpp @@ -121,7 +121,7 @@ QList XGUI_MainMenu::features() const int XGUI_MainMenu::menuItemSize() const { int DEFAULT_ITEM_SIZE = XGUI_Preferences::resourceMgr()->integerValue( - XGUI_Preferences::MENU_SECTION, "item_size"); + XGUI_Preferences::MENU_SECTION, "item_size", 25); return DEFAULT_ITEM_SIZE; } @@ -136,7 +136,7 @@ int XGUI_MainMenu::menuHeight() const int XGUI_MainMenu::menuItemRowsCount() const { int DEFAULT_ITEM_ROWS_COUNT = XGUI_Preferences::resourceMgr()->integerValue( - XGUI_Preferences::MENU_SECTION, "rows_number"); + XGUI_Preferences::MENU_SECTION, "rows_number", 3); return DEFAULT_ITEM_ROWS_COUNT; }