Вариант 1:
MainWidget::MainWidget(QWidget *parent)
: QWidget(parent)
, m_polygon1()
, m_polygon2()
, m_some_stuff("We have very very very very very long line here")
{
// ...
}
Вариант 2:
MainWidget::MainWidget(QWidget *parent)
: QWidget(parent),
m_polygon1(),
m_polygon2(),
m_some_stuff("We have very very very very very long line here")
{
// ...
}
Вариант 3:
MainWidget::MainWidget(QWidget *parent):
QWidget(parent),
m_polygon1(),
m_polygon2(),
m_some_stuff("We have very very very very very long line here")
{
// ...
}
Или как-то иначе? Просто понял, что даже в тех проектах, где принято операторы делать в новой строке, то есть
if(isSomeLongLongLongLongLongOkGuys("We have very very long line here")
&& isOtherLongLongLongHeyThere()) {
// ...
}