[TASK] Prepare fourth task tab.

This commit is contained in:
Jan Philipp Timme 2015-11-27 12:51:48 +01:00
parent e37bc42143
commit d1ea7d200f
2 changed files with 26 additions and 0 deletions

View File

@ -672,6 +672,25 @@ void ImageViewer::generateControlPanels() {
tabWidget->addTab(task_tab3_widget, "Task #3");
// Tab for fourth task
task_tab4_widget = new QWidget();
task_tab4_vboxlayout = new QVBoxLayout();
task_tab4_widget->setLayout(task_tab4_vboxlayout);
task_tab4_scrollwidget = new QWidget();
task_tab4_scrollarea = new QScrollArea();
task_tab4_scrollarea->setWidgetResizable(true);
task_tab4_scrollarea->setWidget(task_tab4_scrollwidget);
task_tab4_vboxlayout->addWidget(task_tab4_scrollarea);
task_tab4_scrolllayout = new QVBoxLayout();
task_tab4_scrolllayout->setSizeConstraint(QLayout::SetMaximumSize);
task_tab4_scrollwidget->setLayout(task_tab4_scrolllayout);
tabWidget->addTab(task_tab4_widget, "Task #4");
//Show it
tabWidget->show();

View File

@ -124,6 +124,13 @@ class ImageViewer : public QMainWindow {
QPushButton* partial_linear_histogramm_adaption;
QPushButton* succeeding_histogramm_adaption;
// Fourth task tabWidget
QWidget* task_tab4_widget;
QVBoxLayout* task_tab4_vboxlayout;
QWidget* task_tab4_scrollwidget;
QScrollArea* task_tab4_scrollarea;
QVBoxLayout* task_tab4_scrolllayout;
// "My" space for storing data/results
LazyImage* original;
LazyImage* working_copy;