Skip to content
Snippets Groups Projects
Commit 0a3cb9ee authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

inline fct

parent 348c6ad8
No related branches found
No related tags found
1 merge request!2117Merge some files concerned with font sizes; rectify '@brief' lines in file headers
......@@ -16,9 +16,8 @@
#include "Base/Util/Assert.h"
#include "GUI/Support/Util/DesignerHelper.h"
#include <QApplication>
#include <QBoxLayout>
#include <QDialog>
#include <QTreeView>
#include <QWidget>
namespace {
......
......@@ -54,7 +54,7 @@ ColorMap::ColorMap(QWidget* parent)
m_colorScale = new QCPColorScale(m_qcp);
m_colorScale->axis()->axisRect()->setMargins(QMargins(0, 0, 0, 0));
m_colorScale->axis()->axisRect()->setAutoMargins(QCP::msNone);
m_colorScale->setBarWidth(GUI::Constants::plot_colorbar_size());
m_colorScale->setBarWidth(GUI::Style::SizeOfLetterM().width());
m_colorScale->axis()->setTickLabelFont(
QFont(QFont().family(), GUI::Constants::plot_tick_label_size()));
m_qcpMap->setColorScale(m_colorScale);
......
......@@ -30,11 +30,6 @@ inline int plot_axes_label_size()
return GUI::Style::SystemPointSize();
}
inline int plot_colorbar_size()
{
return GUI::Style::SizeOfLetterM().width();
}
} // namespace GUI::Constants
#endif // BORNAGAIN_GUI_VIEW_PLOTUTIL_PLOTCONSTANTS_H
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment