Gravatar

gravatardownloadpixmapwidget.h
1/*
2 SPDX-FileCopyrightText: 2015-2025 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "gravatar_export.h"
10#include <QWidget>
11class QLabel;
12class QLineEdit;
13class QPushButton;
14class QCheckBox;
15namespace Gravatar
16{
18
19/** Avatar download widget. */
20class GRAVATAR_EXPORT GravatarDownloadPixmapWidget : public QWidget
21{
23public:
24 explicit GravatarDownloadPixmapWidget(QWidget *parent = nullptr);
25 ~GravatarDownloadPixmapWidget() override;
26
27 [[nodiscard]] QPixmap gravatarPixmap() const;
28
29private:
30 GRAVATAR_NO_EXPORT void slotSearchButton();
31
32 GRAVATAR_NO_EXPORT void slotTextChanged(const QString &text);
33 GRAVATAR_NO_EXPORT void slotResolvUrlFinish(Gravatar::GravatarResolvUrlJob *job);
34 QPixmap mGravatarPixmap;
35 QLabel *mResultLabel = nullptr;
36 QLineEdit *mLineEdit = nullptr;
37 QPushButton *mGetPixmapButton = nullptr;
38 QCheckBox *mUseLibravatar = nullptr;
39 QCheckBox *mFallbackGravatar = nullptr;
40};
41}
Q_OBJECTQ_OBJECT
QObject * parent() const const
QWidget(QWidget *parent, Qt::WindowFlags f)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:57:16 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.