Silence some clazy warnings in the tests and examples

This commit is contained in:
Sergio Martins
2019-06-21 13:05:28 +01:00
parent 545d77c770
commit e1ba281254
4 changed files with 13 additions and 7 deletions

View File

@@ -45,9 +45,10 @@ static MyWidget *newMyWidget()
class MyMainWindow : public MainWindow
{
Q_OBJECT
public:
MyMainWindow(MainWindowOptions options)
: MainWindow(QStringLiteral("MyMainWindow"), options)
MyMainWindow(MainWindowOptions options, QWidget *parent = nullptr)
: MainWindow(QStringLiteral("MyMainWindow"), options, parent)
{
auto menubar = menuBar();
auto fileMenu = new QMenu(QStringLiteral("File"));
@@ -137,3 +138,5 @@ int main(int argc, char **argv)
return app.exec();
}
#include <main.moc>