##// END OF EJS Templates
Add code to ensure the corner widget to be always visible
perrinel -
r156:9b62d51e0971
parent child
Show More
@@ -18,6 +18,12 VisualizationWidget::VisualizationWidget(QWidget *parent)
18 18 addTabViewButton->setCursor(Qt::ArrowCursor);
19 19 addTabViewButton->setAutoRaise(true);
20 20 ui->tabWidget->setCornerWidget(addTabViewButton, Qt::TopRightCorner);
21 auto width = ui->tabWidget->cornerWidget()->width();
22 auto height = ui->tabWidget->cornerWidget()->height();
23 addTabViewButton->setMinimumHeight(height);
24 addTabViewButton->setMinimumWidth(width);
25 ui->tabWidget->setMinimumHeight(height);
26 ui->tabWidget->setMinimumWidth(width);
21 27
22 28 auto addTabView = [&]() {
23 29 auto index = ui->tabWidget->addTab(new VisualizationTabWidget(ui->tabWidget),
General Comments 0
You need to be logged in to leave comments. Login now