diff --git a/src/widgets/dialogs/autotests/uploadfiledialogtest.cpp b/src/widgets/dialogs/autotests/uploadfiledialogtest.cpp index dcad65e4..6fede807 100644 --- a/src/widgets/dialogs/autotests/uploadfiledialogtest.cpp +++ b/src/widgets/dialogs/autotests/uploadfiledialogtest.cpp @@ -1,29 +1,30 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include "uploadfiledialogtest.h" +#include "dialogs/uploadfiledialog.h" #include QTEST_MAIN(UploadFileDialogTest) UploadFileDialogTest::UploadFileDialogTest(QObject *parent) : QObject(parent) { } diff --git a/src/widgets/dialogs/uploadfiledialog.cpp b/src/widgets/dialogs/uploadfiledialog.cpp index 40a4a983..de467654 100644 --- a/src/widgets/dialogs/uploadfiledialog.cpp +++ b/src/widgets/dialogs/uploadfiledialog.cpp @@ -1,35 +1,41 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #include "uploadfiledialog.h" +#include "uploadfilewidget.h" #include #include #include UploadFileDialog::UploadFileDialog(QWidget *parent) : QDialog(parent) { + QVBoxLayout *mainLayout = new QVBoxLayout(this); + mainLayout->setObjectName(QStringLiteral("mainLayout")); + mUploadFileWidget = new UploadFileWidget(this); + mUploadFileWidget->setObjectName(QStringLiteral("mUploadFileWidget")); + mainLayout->addWidget(mUploadFileWidget); } UploadFileDialog::~UploadFileDialog() { } diff --git a/src/widgets/dialogs/uploadfiledialog.h b/src/widgets/dialogs/uploadfiledialog.h index dfc89bce..e5e9b726 100644 --- a/src/widgets/dialogs/uploadfiledialog.h +++ b/src/widgets/dialogs/uploadfiledialog.h @@ -1,36 +1,38 @@ /* Copyright (c) 2020 Laurent Montel This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License or ( at your option ) version 3 or, at the discretion of KDE e.V. ( which shall act as a proxy as in section 14 of the GPLv3 ), any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef UPLOADFILEDIALOG_H #define UPLOADFILEDIALOG_H #include #include "libruqolawidgets_private_export.h" - +class UploadFileWidget; class LIBRUQOLAWIDGETS_EXPORT UploadFileDialog : public QDialog { Q_OBJECT public: explicit UploadFileDialog(QWidget *parent = nullptr); ~UploadFileDialog(); +private: + UploadFileWidget *mUploadFileWidget = nullptr; }; #endif // UPLOADFILEDIALOG_H