BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Functions | |
QFont | labelFont (bool bold=false) |
Returns font for labels. More... | |
int | PropertyPanelWidth () |
Returns typical width of the vertical property panel. More... | |
QString | propertyTreeStyle () |
Returns string representing the style of QTreeView intended for property editor. More... | |
QFont | sectionFont (bool bold=false) |
Returns font for sections. More... | |
void | setPropertyStyle (QTreeView *tree) |
Sets style for the tree to use in property editors. More... | |
void | setResizable (QDialog *dialog) |
Make modal dialog resizable. More... | |
QSize | SizeOfLetterM (const QWidget *widget=nullptr) |
Returns size of largest letter of default system font. More... | |
int | SystemPointSize () |
Returns size in points of default system font. More... | |
QFont GUI::Util::Style::labelFont | ( | bool | bold = false | ) |
Returns font for labels.
Definition at line 91 of file StyleUtils.cpp.
References DesignerHelper::getLabelFontSize().
int GUI::Util::Style::PropertyPanelWidth | ( | ) |
Returns typical width of the vertical property panel.
Definition at line 124 of file StyleUtils.cpp.
References SizeOfLetterM().
Referenced by JobPropertiesWidget::minimumSizeHint(), and JobPropertiesWidget::sizeHint().
QString GUI::Util::Style::propertyTreeStyle | ( | ) |
Returns string representing the style of QTreeView intended for property editor.
Definition at line 56 of file StyleUtils.cpp.
Referenced by setPropertyStyle().
QFont GUI::Util::Style::sectionFont | ( | bool | bold = false | ) |
Returns font for sections.
Definition at line 82 of file StyleUtils.cpp.
References DesignerHelper::getSectionFontSize().
void GUI::Util::Style::setPropertyStyle | ( | QTreeView * | tree | ) |
Sets style for the tree to use in property editors.
Definition at line 49 of file StyleUtils.cpp.
References propertyTreeStyle().
Referenced by SessionModelView::SessionModelView().
void GUI::Util::Style::setResizable | ( | QDialog * | dialog | ) |
Make modal dialog resizable.
Definition at line 100 of file StyleUtils.cpp.
Referenced by InstrumentLibraryEditor::InstrumentLibraryEditor(), MaterialEditorDialog::MaterialEditorDialog(), and PythonScriptWidget::PythonScriptWidget().
QSize GUI::Util::Style::SizeOfLetterM | ( | const QWidget * | widget = nullptr | ) |
Returns size of largest letter of default system font.
Definition at line 113 of file StyleUtils.cpp.
Referenced by ColorMap::initColorMap(), HistogramPlot::initGraph(), OverlayLabelWidget::paintEvent(), GUI::Constants::plot_colorbar_size(), and PropertyPanelWidth().
int GUI::Util::Style::SystemPointSize | ( | ) |
Returns size in points of default system font.
Definition at line 119 of file StyleUtils.cpp.
Referenced by DesignerHelper::getLabelFontSize(), DesignerHelper::getPortFontSize(), DesignerHelper::getPythonEditorFontSize(), DesignerHelper::getSectionFontSize(), GUI::Constants::plot_axes_label_size(), and GUI::Constants::plot_tick_label_size().