Changeset - 557e95e17a97
[Not reviewed]
barplot
0 1 0
Hasan Yavuz Ă–ZDERYA - 8 years ago 2017-10-26 09:25:35
hy@ozderya.net
show secondary plot at minimum size initially
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/mainwindow.cpp
Show inline comments
 
@@ -485,24 +485,26 @@ void MainWindow::enableDemo(bool enabled
 
    }
 
}
 

	
 
void MainWindow::showSecondary(QWidget* wid)
 
{
 
    if (secondaryPlot != NULL)
 
    {
 
        secondaryPlot->deleteLater();
 
    }
 

	
 
    secondaryPlot = wid;
 
    ui->splitter->addWidget(wid);
 
    ui->splitter->setStretchFactor(0, 1);
 
    ui->splitter->setStretchFactor(1, 0);
 
}
 

	
 
void MainWindow::hideSecondary()
 
{
 
    if (secondaryPlot == NULL)
 
    {
 
        qFatal("Secondary plot doesn't exist!");
 
    }
 

	
 
    secondaryPlot->deleteLater();
 
    secondaryPlot = NULL;
 
}
0 comments (0 inline, 0 general)