Pimcommon

whatsnewwidget.h
1/*
2 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8#include "pimcommon_private_export.h"
9#include "whatsnewcomboboxwidget.h"
10#include "whatsnewinfo.h"
11#include <QWidget>
12class QTextBrowser;
13namespace PimCommon
14{
15class PIMCOMMON_TESTS_EXPORT WhatsNewWidget : public QWidget
16{
17 Q_OBJECT
18public:
19 explicit WhatsNewWidget(const QList<PimCommon::WhatsNewInfo> &infos, QWidget *parent = nullptr);
20 ~WhatsNewWidget() override;
21
22 void updateInformations();
23
24private:
25 [[nodiscard]] PIMCOMMON_NO_EXPORT int currentVersion() const;
26 [[nodiscard]] PIMCOMMON_NO_EXPORT QString generateStartEndHtml(const QString &str) const;
27 [[nodiscard]] PIMCOMMON_NO_EXPORT QString importantChangeStr() const;
28 [[nodiscard]] PIMCOMMON_NO_EXPORT QString featuresChangeStr() const;
29 [[nodiscard]] PIMCOMMON_NO_EXPORT QString bugFixingChangeStr() const;
30 PIMCOMMON_NO_EXPORT void slotVersionChanged(int i);
31 [[nodiscard]] PIMCOMMON_NO_EXPORT QString createVersionInformation(const WhatsNewInfo &info);
32 [[nodiscard]] PIMCOMMON_NO_EXPORT QString generateVersionHeader(int type) const;
33 PIMCOMMON_NO_EXPORT void fillComboBox();
34
35 const QList<WhatsNewInfo> mWhatsNewInfo;
36 QTextBrowser *const mLabelInfo;
37 WhatsNewComboBoxWidget *const mWhatsNewComboBoxWidget;
38};
39}
folderdialogacltab.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:39:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.