Says this is a Public method.
QDialogButtonBox (StandardButtons buttons, Qt::Orientation orientation=Qt::Horizontal, QWidget *parent=nullptr)
It should only require buttons and return a horizontal non-parented QDialogButtonBox. When one tries to use it this way
Code: Select all
QDialogButtonBox::StandardButtons btns = QDialogButtonBox::Cancel | QDialogButtonBox::Save;
QDialogButtonBox *btnBox = new QDialogButtonBox( btns );
Code: Select all
280 | QDialogButtonBox *btnBox = new QDialogButtonBox( btns );
| ^
In file included from /usr/lib/cs_lib/include/QtGui/QDialogButtonBox:1,
from /home/roland/sf_projects/reddiamond/src/dialoggeneralsettings.cpp:28:
/usr/lib/cs_lib/include/QtGui/qdialogbuttonbox.h:104:4: note: candidate: ‘QDialogButtonBox::QDialogButtonBox(const QDialogButtonBox&)’ <deleted>
104 | QDialogButtonBox(const QDialogButtonBox &) = delete;
| ^~~~~~~~~~~~~~~~
/usr/lib/cs_lib/include/QtGui/qdialogbuttonbox.h:101:4: note: candidate: ‘QDialogButtonBox::QDialogButtonBox(QDialogButtonBox::StandardButtons, Qt::Orientation, QWidget*)’
101 | QDialogButtonBox(StandardButtons buttons, Qt::Orientation orientation = Qt::Horizontal,
| ^~~~~~~~~~~~~~~~
/usr/lib/cs_lib/include/QtGui/qdialogbuttonbox.h:100:13: note: candidate: ‘QDialogButtonBox::QDialogButtonBox(QDialogButtonBox::StandardButtons, QWidget*)’
100 | explicit QDialogButtonBox(StandardButtons buttons, QWidget *parent = nullptr);
| ^~~~~~~~~~~~~~~~