Gravatar

gravatardownloadpixmapdialog.cpp
1/*
2 SPDX-FileCopyrightText: 2015-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#include "gravatardownloadpixmapdialog.h"
8using namespace Qt::Literals::StringLiterals;
9
10#include "gravatardownloadpixmapwidget.h"
11#include <QDialogButtonBox>
12#include <QVBoxLayout>
13
14using namespace Gravatar;
15
16GravatarDownloadPixmapDialog::GravatarDownloadPixmapDialog(QWidget *parent)
17 : QDialog(parent)
18{
19 auto mainLayout = new QVBoxLayout(this);
20 mGravatarDownloadPixmapWidget = new Gravatar::GravatarDownloadPixmapWidget(this);
21 mGravatarDownloadPixmapWidget->setObjectName("gravatarwidget"_L1);
22 mainLayout->addWidget(mGravatarDownloadPixmapWidget);
24 buttonBox->setObjectName("buttonbox"_L1);
25 connect(buttonBox, &QDialogButtonBox::accepted, this, &GravatarDownloadPixmapDialog::slotAccepted);
27 mainLayout->addWidget(buttonBox);
28}
29
30GravatarDownloadPixmapDialog::~GravatarDownloadPixmapDialog() = default;
31
32void GravatarDownloadPixmapDialog::slotAccepted()
33{
34 accept();
35}
36
37QPixmap GravatarDownloadPixmapDialog::gravatarPixmap() const
38{
39 return mGravatarDownloadPixmapWidget->gravatarPixmap();
40}
41
42#include "moc_gravatardownloadpixmapdialog.cpp"
virtual void accept()
virtual void reject()
QFuture< ArgsType< Signal > > connect(Sender *sender, Signal signal)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:39:41 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.