This case is actually more complicated than at first glance. The code after this statement is copy-pasted wholesale from the optionspage.cpp file, and indeed still exists there. So this is bad programming, but it worked in a pinch. Ultimately, what I want to do is call this addPlot2dCurveConfig() function from where it is right now, and I don't quite  know how to do that. The only thing I can think of seems very inelegant: making the Scopes2d class know about the UI:optionspage class.