Skip to content

Commit ecdad4e

Browse files
committed
Add footer and close button to decay chain and decay-through windows created through reference photo peaks "more info" link.
1 parent 4e69f07 commit ecdad4e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/DecayChainChart.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,9 @@ pair<AuxWindow *, DecayChainChart *>
367367
(Wt::WFlags<AuxWindowProperties>( AuxWindowProperties::DisableCollapse )
368368
| AuxWindowProperties::EnableResize) );
369369

370+
WPushButton *close = window->addCloseButtonToFooter();
371+
close->clicked().connect( boost::bind( &AuxWindow::hide, window ) );
372+
370373
WGridLayout *layout = window->stretcher();
371374
layout->addWidget( chart, 0, 0 );
372375
layout->setContentsMargins( 0, 0, 0, 0 );

0 commit comments

Comments
 (0)