Changeset - 3f00e674e822
[Not reviewed]
barplot
0 1 0
Hasan Yavuz Ă–ZDERYA - 8 years ago 2017-10-07 09:35:29
hy@ozderya.net
show barplot at minimum size
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/plotmanager.cpp
Show inline comments
 
@@ -277,24 +277,27 @@ void PlotManager::setMulti(bool enabled)
 

	
 
void PlotManager::showBarPlot(bool show)
 
{
 
    // A secondary plot can only be shown if splitter is provided.
 
    Q_ASSERT(_splitter != NULL);
 

	
 
    if (show)
 
    {
 
        Q_ASSERT(barPlot == NULL);
 

	
 
        barPlot = new BarPlot(_channelMan, _splitter);
 
        barPlot->darkBackground(darkBackgroundAction.isChecked());
 
        barPlot->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
 
        _splitter->setStretchFactor(0, 1);
 
        _splitter->setStretchFactor(1, 0);
 
    }
 
    else
 
    {
 
        Q_ASSERT(barPlot != NULL);
 

	
 
        delete barPlot;
 
        barPlot = NULL;
 
    }
 
}
 

	
 
void PlotManager::setupLayout(bool multiPlot)
 
{
0 comments (0 inline, 0 general)