gui: fixed gain plot size

This commit is contained in:
2019-07-18 10:20:33 +02:00
parent 3ef8b392db
commit 058e16b872
8 changed files with 64 additions and 23 deletions

View File

@ -26,6 +26,9 @@ class qCloneWidget : public QMainWindow, private Ui::ClonePlotObject {
private slots:
void SavePlot();
protected:
void resizeEvent(QResizeEvent *event);
private:
void SetupWidgetWindow(QString title);
void DisplayStats(bool enable, QString min, QString max, QString sum);

View File

@ -22,6 +22,7 @@ class qDefs : public QWidget {
qDefs(){};
static const int Q_FONT_SIZE=9;
static const int DATA_GAIN_PLOT_RATIO=5;
static void DisplayExceptions(std::string emsg, std::string src) {
try {

View File

@ -8,6 +8,7 @@ class SlsQt1DPlot;
class SlsQtH1D;
class SlsQt2DPlot;
class qCloneWidget;
class QResizeEvent;
#include <QFutureWatcher>
@ -53,6 +54,9 @@ class qDrawPlot : public QWidget, private Ui::PlotObject {
void ClonePlot();
void SavePlot();
protected:
void resizeEvent(QResizeEvent *event);
private slots:
void SetSaveFileName(QString val);
void AcquireFinished();