KPimTextEdit

insertimagewidget.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#pragma once
8
9#include <QUrl>
10
11#include <QWidget>
12
13namespace KPIMTextEdit
14{
15class InsertImageWidgetPrivate;
16
17class InsertImageWidget : public QWidget
18{
20public:
21 explicit InsertImageWidget(QWidget *parent);
22 ~InsertImageWidget() override;
23
24 void setImageWidth(int value);
25 [[nodiscard]] int imageWidth() const;
26
27 void setImageHeight(int value);
28 [[nodiscard]] int imageHeight() const;
29
30 [[nodiscard]] QUrl imageUrl() const;
31 void setImageUrl(const QUrl &url);
32
33 [[nodiscard]] bool keepOriginalSize() const;
34
36 void enableButtonOk(bool enabled);
37
38private:
39 friend class InsertImageWidgetPrivate;
40 std::unique_ptr<InsertImageWidgetPrivate> const d;
41};
42}
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:18:49 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.