File indexing completed on 2024-12-08 04:34:38
0001 /* 0002 SPDX-FileCopyrightText: 2023-2024 Laurent Montel <montel.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 #include "libruqolawidgets_private_export.h" 0009 #include "whatsnewcomboboxwidget.h" 0010 #include <KLazyLocalizedString> 0011 #include <QWidget> 0012 class QTextEdit; 0013 class LIBRUQOLAWIDGETS_TESTS_EXPORT WhatsNewWidget : public QWidget 0014 { 0015 Q_OBJECT 0016 public: 0017 explicit WhatsNewWidget(QWidget *parent = nullptr); 0018 ~WhatsNewWidget() override; 0019 [[nodiscard]] static QString newFeaturesMD5(); 0020 0021 void updateInformations(); 0022 0023 private: 0024 [[nodiscard]] LIBRUQOLAWIDGETS_NO_EXPORT QString generateVersionHeader(WhatsNewComboBoxWidget::VersionType type) const; 0025 [[nodiscard]] LIBRUQOLAWIDGETS_NO_EXPORT QString createVersionInformationsV2_0() const; 0026 [[nodiscard]] LIBRUQOLAWIDGETS_NO_EXPORT QString createVersionInformationsV2_1() const; 0027 [[nodiscard]] LIBRUQOLAWIDGETS_NO_EXPORT WhatsNewComboBoxWidget::VersionType currentVersion() const; 0028 [[nodiscard]] LIBRUQOLAWIDGETS_NO_EXPORT QString generateStartEndHtml(const QString &str) const; 0029 LIBRUQOLAWIDGETS_NO_EXPORT void slotVersionChanged(WhatsNewComboBoxWidget::VersionType type); 0030 QTextEdit *const mLabelInfo; 0031 WhatsNewComboBoxWidget *const mWhatsNewComboBoxWidget; 0032 };