KPimTextEdit

insertimagedialog.h
1/*
2 SPDX-FileCopyrightText: 2012-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5
6*/
7
8#pragma once
9
10#include <QDialog>
11#include <QUrl>
12
13namespace KPIMTextEdit
14{
15class InsertImageDialogPrivate;
16
17class InsertImageDialog : public QDialog
18{
20public:
21 explicit InsertImageDialog(QWidget *parent = nullptr);
22 ~InsertImageDialog() override;
23
24 [[nodiscard]] int imageWidth() const;
25 [[nodiscard]] int imageHeight() const;
26
27 void setImageWidth(int value);
28 void setImageHeight(int value);
29
30 [[nodiscard]] QUrl imageUrl() const;
31 void setImageUrl(const QUrl &url);
32
33 [[nodiscard]] bool keepOriginalSize() const;
34
35private:
36 friend class InsertImageDialogPrivate;
37 std::unique_ptr<InsertImageDialogPrivate> const d;
38};
39}
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:35:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.