BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
styleutils.cpp
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file gui2/mainwindow/styleutils.cpp
6 //! @brief Implements class CLASS?
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2020
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
17 #include <QFontMetrics>
18 #include <QSize>
19 #include <QToolBar>
20 #include <QWidget>
21 
22 namespace gui2 {
23 
25 {
26  return QSize(24, 24);
27 }
28 
30 {
31  return QSize(480, 360);
32 }
33 
35 {
36  return QSize(320, 240);
37 }
38 
40 {
42  toolbar->setIconSize(StyleUtils::ToolBarIconSize());
43  toolbar->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
44 }
45 
46 } // namespace gui2
Defines class CLASS?
DAREFLCORE_EXPORT QSize ToolBarIconSize()
Size of tolbar icons for LayerEditor, MaterialEditor and similar.
Definition: styleutils.cpp:24
DAREFLCORE_EXPORT void SetToolBarStyleTextBesides(QToolBar *toolbar)
Set common style for a toolbar.
Definition: styleutils.cpp:39
DAREFLCORE_EXPORT QSize DockMinimumSizeHint()
Hint on minimum size of docks on main reflectometry window.
Definition: styleutils.cpp:34
DAREFLCORE_EXPORT QSize DockSizeHint()
Hint on size of docks on main reflectometry window.
Definition: styleutils.cpp:29
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.
Definition: app_constants.h:20
Defines class CLASS?
void InitIconResources()
Definition: resources.h:20