[TASK] Add tab for task #6.
This commit is contained in:
parent
94475095cf
commit
102a38e5ae
|
@ -1091,6 +1091,24 @@ void ImageViewer::generateControlPanels() {
|
||||||
|
|
||||||
tabWidget->addTab(task_tab5_widget, "Task #5");
|
tabWidget->addTab(task_tab5_widget, "Task #5");
|
||||||
|
|
||||||
|
|
||||||
|
// Tab for sixth task
|
||||||
|
task_tab6_widget = new QWidget();
|
||||||
|
task_tab6_vboxlayout = new QVBoxLayout();
|
||||||
|
task_tab6_widget->setLayout(task_tab6_vboxlayout);
|
||||||
|
task_tab6_scrollwidget = new QWidget();
|
||||||
|
task_tab6_scrollarea = new QScrollArea();
|
||||||
|
task_tab6_scrollarea->setWidgetResizable(true);
|
||||||
|
task_tab6_scrollarea->setWidget(task_tab6_scrollwidget);
|
||||||
|
task_tab6_vboxlayout->addWidget(task_tab6_scrollarea);
|
||||||
|
task_tab6_scrolllayout = new QVBoxLayout();
|
||||||
|
task_tab6_scrolllayout->setSizeConstraint(QLayout::SetMaximumSize);
|
||||||
|
task_tab6_scrollwidget->setLayout(task_tab6_scrolllayout);
|
||||||
|
|
||||||
|
task_tab6_scrolllayout->addWidget(new QLabel("Task #6 and stuff"));
|
||||||
|
|
||||||
|
tabWidget->addTab(task_tab6_widget, "Task #6");
|
||||||
|
|
||||||
//Show it
|
//Show it
|
||||||
tabWidget->show();
|
tabWidget->show();
|
||||||
|
|
||||||
|
|
|
@ -160,6 +160,13 @@ class ImageViewer : public QMainWindow {
|
||||||
QDoubleSpinBox* usm_gauss_width;
|
QDoubleSpinBox* usm_gauss_width;
|
||||||
QDoubleSpinBox* usm_gauss_sigma;
|
QDoubleSpinBox* usm_gauss_sigma;
|
||||||
|
|
||||||
|
// Sixth task tabWidget
|
||||||
|
QWidget* task_tab6_widget;
|
||||||
|
QVBoxLayout* task_tab6_vboxlayout;
|
||||||
|
QWidget* task_tab6_scrollwidget;
|
||||||
|
QScrollArea* task_tab6_scrollarea;
|
||||||
|
QVBoxLayout* task_tab6_scrolllayout;
|
||||||
|
|
||||||
// "My" space for storing data/results
|
// "My" space for storing data/results
|
||||||
LazyImage* original;
|
LazyImage* original;
|
||||||
LazyImage* working_copy;
|
LazyImage* working_copy;
|
||||||
|
|
Loading…
Reference in New Issue