@@ -376,7 +376,7 @@ void ModuleWidget::setupDisplayWidgets(ModuleWidgetDisplayBase* display, const Q
376376 display->setupButtons (theModule_->has_ui (), this );
377377}
378378
379- #ifdef WIN32
379+ #if defined ( WIN32)
380380 const int ModuleWidgetDisplayBase::moduleWidthThreshold = 110 ;
381381 const int ModuleWidgetDisplayBase::extraModuleWidth = 5 ;
382382 const int ModuleWidgetDisplayBase::extraWidthThreshold = 5 ;
@@ -386,7 +386,7 @@ void ModuleWidget::setupDisplayWidgets(ModuleWidgetDisplayBase* display, const Q
386386 const int ModuleWidgetDisplayBase::buttonPageFontSizeDiff = 1 ;
387387 const int ModuleWidgetDisplayBase::widgetHeightAdjust = -20 ;
388388 const int ModuleWidgetDisplayBase::widgetWidthAdjust = -10 ;
389- #else
389+ #elif defined (__APPLE__)
390390 const int ModuleWidgetDisplayBase::moduleWidthThreshold = 116 ;
391391 const int ModuleWidgetDisplayBase::extraModuleWidth = 2 ;
392392 const int ModuleWidgetDisplayBase::extraWidthThreshold = 5 ;
@@ -396,6 +396,19 @@ void ModuleWidget::setupDisplayWidgets(ModuleWidgetDisplayBase* display, const Q
396396 const int ModuleWidgetDisplayBase::buttonPageFontSizeDiff = 3 ;
397397 const int ModuleWidgetDisplayBase::widgetHeightAdjust = 1 ;
398398 const int ModuleWidgetDisplayBase::widgetWidthAdjust = -20 ;
399+ #else // Linux
400+
401+ // TODO: need a parameter for spacer between buttons and group box title
402+
403+ const int ModuleWidgetDisplayBase::moduleWidthThreshold = 110 ;
404+ const int ModuleWidgetDisplayBase::extraModuleWidth = 5 ;
405+ const int ModuleWidgetDisplayBase::extraWidthThreshold = 5 ;
406+ const int ModuleWidgetDisplayBase::smushFactor = 15 ;
407+ const int ModuleWidgetDisplayBase::titleFontSize = 8 ;
408+ const int ModuleWidgetDisplayBase::viewFontSize = 5 ;
409+ const int ModuleWidgetDisplayBase::buttonPageFontSizeDiff = 1 ;
410+ const int ModuleWidgetDisplayBase::widgetHeightAdjust = -20 ;
411+ const int ModuleWidgetDisplayBase::widgetWidthAdjust = -10 ;
399412#endif
400413
401414void ModuleWidget::resizeBasedOnModuleName (ModuleWidgetDisplayBase* display, int index)
0 commit comments