Commit a4aacfc6 authored by LEFEBVREJP email's avatar LEFEBVREJP email
Browse files

Fixing some formatting in plot.cc and exposing context menu access.

parent 031bc95b
......@@ -398,20 +398,34 @@ void Plot::initContextMenu()
auto saveJpg = mSaveAsContextMenu->addAction( "JPG" );
// connect signals/slots
connect( actionPlotOption, SIGNAL( triggered() ),
this, SLOT( showPlotOptionsDialog() ) );
connect( mActionFitGraphs, SIGNAL( triggered() ),
this, SLOT( fitGraphs() ) );
connect( mActionRemove, SIGNAL( triggered() ),
this, SLOT( removeSelected() ) );
connect( mActionRemoveAll, SIGNAL( triggered() ),
this, SLOT( removeAll() ) );
connect( savePdf, SIGNAL( triggered() ),
this, SLOT( saveAsPdf() ) );
connect( savePng, SIGNAL( triggered() ),
this, SLOT( saveAsPng() ) );
connect( saveJpg, SIGNAL( triggered() ),
this, SLOT( saveAsJpg() ) );
connect( actionPlotOption
, SIGNAL(triggered())
, this
, SLOT(showPlotOptionsDialog()));
connect( mActionFitGraphs
, SIGNAL(triggered())
, this
, SLOT(fitGraphs()));
connect( mActionRemove
, SIGNAL(triggered())
, this
, SLOT(removeSelected()));
connect( mActionRemoveAll
, SIGNAL(triggered())
, this
, SLOT(removeAll()));
connect( savePdf
, SIGNAL(triggered())
, this
, SLOT(saveAsPdf()));
connect( savePng
, SIGNAL(triggered())
, this
, SLOT(saveAsPng()));
connect( saveJpg
, SIGNAL(triggered())
, this
, SLOT(saveAsJpg()));
}
void Plot::initPlot()
......
......@@ -218,9 +218,9 @@ public slots:
*/
void fitGraphs();
protected:
QMenu * contextMenu()const{return mContextMenu;}
QMenu * saveAsContextMenu()const{return mSaveAsContextMenu;}
public:
QMenu * contextMenu() const{return mContextMenu;}
QMenu * saveAsContextMenu() const{return mSaveAsContextMenu;}
private slots:
void legendDoubleClick( QCPLegend *legend, QCPAbstractLegendItem *item );
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment