BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Provides event filter for ScientificPlot. More...
Public Member Functions | |
FontScalingEvent (ScientificPlot *plot, QWidget *parent) | |
Protected Member Functions | |
bool | eventFilter (QObject *obj, QEvent *event) |
Private Member Functions | |
void | backupFonts () |
Backup all fonts. More... | |
void | restoreFonts () |
void | scaleFonts (double factor) |
void | setTickLabelFont (const QFont &font) |
Private Attributes | |
QMap< QString, QFont > | m_fonts |
ScientificPlot * | m_plot |
Provides event filter for ScientificPlot.
Its goal is to make font size adjustments on resize events.
Definition at line 28 of file FontScalingEvent.h.
|
explicit |
Definition at line 26 of file FontScalingEvent.cpp.
|
private |
Backup all fonts.
Definition at line 54 of file FontScalingEvent.cpp.
References ScientificPlot::customPlot(), m_fonts, and m_plot.
Referenced by eventFilter().
|
protected |
Definition at line 31 of file FontScalingEvent.cpp.
References ASSERT, backupFonts(), m_fonts, restoreFonts(), and scaleFonts().
|
private |
Definition at line 59 of file FontScalingEvent.cpp.
References m_fonts, and setTickLabelFont().
Referenced by eventFilter().
|
private |
Definition at line 65 of file FontScalingEvent.cpp.
References m_fonts, and setTickLabelFont().
Referenced by eventFilter().
|
private |
Definition at line 72 of file FontScalingEvent.cpp.
References ColorMap::colorScale(), ScientificPlot::customPlot(), m_plot, ScientificPlot::Plot2D, and ScientificPlot::plotType().
Referenced by restoreFonts(), and scaleFonts().
|
private |
Definition at line 44 of file FontScalingEvent.h.
Referenced by backupFonts(), eventFilter(), restoreFonts(), and scaleFonts().
|
private |
Definition at line 43 of file FontScalingEvent.h.
Referenced by backupFonts(), and setTickLabelFont().