Exactly the same way. That's standard C++. It's the bitwise OR operator.
QGL::SampleBuffer will have a single bit set to one, and all the rest zero. Likewise QGL::DepthBuffer. When you bitwise OR them, you get a new number with both those bits set to one, and all the rest zero. Each bit represents something being turned on or off.