BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Provides event filter for ScientificPlot. Its goal is to make font size adjustments on resize events.
Definition at line 28 of file FontScalingEvent.h.
Public Member Functions | |
FontScalingEvent (ScientificPlot *plot, QWidget *parent) | |
Protected Member Functions | |
bool | eventFilter (QObject *obj, QEvent *event) override |
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 |
|
explicit |
Definition at line 28 of file FontScalingEvent.cpp.
|
private |
Backup all fonts.
Definition at line 55 of file FontScalingEvent.cpp.
References ScientificPlot::customPlot(), m_fonts, and m_plot.
Referenced by eventFilter().
|
overrideprotected |
Definition at line 34 of file FontScalingEvent.cpp.
References backupFonts(), m_fonts, restoreFonts(), and scaleFonts().
|
private |
Definition at line 60 of file FontScalingEvent.cpp.
References m_fonts, and setTickLabelFont().
Referenced by eventFilter().
|
private |
Definition at line 66 of file FontScalingEvent.cpp.
References m_fonts, and setTickLabelFont().
Referenced by eventFilter().
|
private |
Definition at line 73 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().