KPimTextEdit

tablecellformatdialog.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
12#include <QTextCharFormat>
13
14namespace KPIMTextEdit
15{
16class TableCellFormatDialog : public QDialog
17{
19public:
20 explicit TableCellFormatDialog(QWidget *parent);
21 ~TableCellFormatDialog() override;
22
23 /**
24 * @brief tableCellBackgroundColor
25 * @return background color of cell.
26 */
27 [[nodiscard]] QColor tableCellBackgroundColor() const;
28
29 /**
30 * @brief setTableCellBackgroundColor
31 * @param color set the background color of cell
32 */
33 void setTableCellBackgroundColor(const QColor &color);
34
35 /**
36 * @brief verticalAlignment
37 * @return vertical alignment for current cell.
38 */
39 [[nodiscard]] QTextCharFormat::VerticalAlignment verticalAlignment() const;
40
41 /**
42 * @brief setVerticalAlignment
43 * @param vertical vertical alignment for current cell.
44 */
45 void setVerticalAlignment(QTextCharFormat::VerticalAlignment vertical);
46
47 /**
48 * @brief useBackgroundColor
49 * @return true if we define background color. Otherwise false and allows to clear it.
50 */
51 [[nodiscard]] bool useBackgroundColor() const;
52
53private:
54 class TableCellFormatDialogPrivate;
55 std::unique_ptr<TableCellFormatDialogPrivate> const d;
56};
57}
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.