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 {
29 ImageRole = Qt::UserRole + 1
30 };
31 void initialize();
32 void addImageFormat(const QString &format, const QString &mimetype);
33 QListWidget *const mListWidget;
34};
35
36class ImageScalingSelectFormat : public QWidget
37{
39public:
40 explicit ImageScalingSelectFormat(QWidget *parent);
41 ~ImageScalingSelectFormat() override;
42
43 void setFormat(const QString &format);
44 [[nodiscard]] QString format() const;
45
47 void textChanged(const QString &);
48
49private:
50 void slotSelectFormat();
51 QLineEdit *const mFormat;
52 QPushButton *const mSelectFormat;
53};
54}
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
UserRole
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.