Messagelib

imagescalingselectformat.h
1/*
2 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <QDialog>
10
11class QLineEdit;
12class QPushButton;
13class QListWidget;
14
15namespace MessageComposer
16{
17class ImageScalingSelectFormatDialog : public QDialog
18{
20public:
21 explicit ImageScalingSelectFormatDialog(QWidget *parent);
22 ~ImageScalingSelectFormatDialog() override;
23
24 void setFormat(const QString &format);
25 [[nodiscard]] QString format() const;
26
27private:
28 enum { ImageRole = Qt::UserRole + 1 };
29 void initialize();
30 void addImageFormat(const QString &format, const QString &mimetype);
31 QListWidget *const mListWidget;
32};
33
34class ImageScalingSelectFormat : public QWidget
35{
37public:
38 explicit ImageScalingSelectFormat(QWidget *parent);
39 ~ImageScalingSelectFormat() override;
40
41 void setFormat(const QString &format);
42 [[nodiscard]] QString format() const;
43
45 void textChanged(const QString &);
46
47private:
48 void slotSelectFormat();
49 QLineEdit *const mFormat;
50 QPushButton *const mSelectFormat;
51};
52}
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
T qobject_cast(QObject *object)
UserRole
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sun Feb 25 2024 18:37:30 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.