Skip to content

Commit

Permalink
Put the animation window in a frame to get a boxed rectangle around it.
Browse files Browse the repository at this point in the history
  • Loading branch information
adeas31 committed Oct 27, 2016
1 parent 9e3b20b commit 8a07849
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion OMEdit/OMEditGUI/Animation/AnimationWindow.cpp
Expand Up @@ -123,7 +123,15 @@ AnimationWindow::AnimationWindow(PlotWindowContainer *pPlotWindowContainer)
mpAnimationToolBar->addWidget(mpPerspectiveDropDownBox);
mpAnimationToolBar->setIconSize(QSize(toolbarIconSize, toolbarIconSize));
addToolBar(Qt::TopToolBarArea,mpAnimationToolBar);
setCentralWidget(mpViewerWidget);
// Viewer layout
QGridLayout *pGridLayout = new QGridLayout;
pGridLayout->setContentsMargins(0, 0, 0, 0);
pGridLayout->addWidget(mpViewerWidget);
// add the viewer to the frame for boxed rectangle around it.
QFrame *pCentralWidgetFrame = new QFrame;
pCentralWidgetFrame->setFrameStyle(QFrame::StyledPanel);
pCentralWidgetFrame->setLayout(pGridLayout);
setCentralWidget(pCentralWidgetFrame);
//connections
connect(mpAnimationChooseFileAction, SIGNAL(triggered()),this, SLOT(chooseAnimationFileSlotFunction()));
connect(mpAnimationInitializeAction, SIGNAL(triggered()),this, SLOT(initSlotFunction()));
Expand Down

0 comments on commit 8a07849

Please sign in to comment.