Pimcommon

checknewversiondialog.cpp
1/*
2 SPDX-FileCopyrightText: 2025 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#include "checknewversiondialog.h"
8#include "checknewversionwidget.h"
9#include <KLocalizedString>
10#include <QDialogButtonBox>
11#include <QVBoxLayout>
12using namespace PimCommon;
13CheckNewVersionDialog::CheckNewVersionDialog(QWidget *parent)
14 : QDialog(parent)
15 , mVerifyNewVersionWidget(new CheckNewVersionWidget(this))
16{
17 setWindowTitle(i18nc("@title:window", "Check New Version"));
18
19 auto mainLayout = new QVBoxLayout(this);
20 mainLayout->setObjectName(QStringLiteral("mainLayout"));
21
22 mVerifyNewVersionWidget->setObjectName(QStringLiteral("mVerifyNewVersionWidget"));
23 mainLayout->addWidget(mVerifyNewVersionWidget);
24
25 auto buttonBox = new QDialogButtonBox(QDialogButtonBox::Close, this);
26 buttonBox->setObjectName(QStringLiteral("buttonBox"));
27 mainLayout->addWidget(buttonBox);
29 resize(300, 200);
30}
31
32CheckNewVersionDialog::~CheckNewVersionDialog() = default;
33
34void CheckNewVersionDialog::checkNewVersion()
35{
36 mVerifyNewVersionWidget->checkNewVersion();
37}
38
39void CheckNewVersionDialog::setUrl(const QUrl &url)
40{
41 mVerifyNewVersionWidget->setUrl(url);
42}
43
44#include "moc_checknewversiondialog.cpp"
QString i18nc(const char *context, const char *text, const TYPE &arg...)
folderdialogacltab.h
virtual void reject()
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:47:24 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.