Skip to content

Commit

Permalink
Add footer and close button to decay chain and decay-through windows …
Browse files Browse the repository at this point in the history
…created through reference photo peaks "more info" link.
  • Loading branch information
wcjohns committed Apr 8, 2023
1 parent 4e69f07 commit ecdad4e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/DecayChainChart.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,9 @@ pair<AuxWindow *, DecayChainChart *>
(Wt::WFlags<AuxWindowProperties>( AuxWindowProperties::DisableCollapse )
| AuxWindowProperties::EnableResize) );

WPushButton *close = window->addCloseButtonToFooter();
close->clicked().connect( boost::bind( &AuxWindow::hide, window ) );

WGridLayout *layout = window->stretcher();
layout->addWidget( chart, 0, 0 );
layout->setContentsMargins( 0, 0, 0, 0 );
Expand Down

0 comments on commit ecdad4e

Please sign in to comment.