KPimTextEdit

inserttablewidget.h
1/*
2 SPDX-FileCopyrightText: 2014-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 <QWidget>
11
12#include <QTextLength>
13
14namespace KPIMTextEdit
15{
16class InsertTableWidget : public QWidget
17{
19public:
20 explicit InsertTableWidget(QWidget *parent = nullptr);
21 ~InsertTableWidget() override;
22 [[nodiscard]] int columns() const;
23 [[nodiscard]] int rows() const;
24 [[nodiscard]] int border() const;
25
26 void setColumns(int col);
27 void setRows(int rows);
28 void setBorder(int border);
29
30 [[nodiscard]] QTextLength::Type typeOfLength() const;
31 void setTypeOfLength(QTextLength::Type type);
32
33 [[nodiscard]] int length() const;
34 void setLength(int);
35
36private:
37 void slotTypeOfLengthChanged(int);
38 class InsertTableWidgetPrivate;
39 std::unique_ptr<InsertTableWidgetPrivate> const d;
40};
41}
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 18 2024 12:18:49 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.