1
0
forked from BRT/arc
arc/views/widget/common/CollapsibleSection.h
slava 27ce69d094 Refactor account handling and add TutorialWindow feature
Removed redundant "numbers" field from Account model and database queries to simplify account structure. Introduced a TutorialWindow class for displaying application tutorials, integrated into the main window, and updated file paths accordingly. Improved string handling and logic in Payment routines and enhanced overall UI structure.
2025-05-23 19:25:02 +07:00

29 lines
570 B
C++

#pragma once
#include <QWidget>
#include <QToolButton>
#include <QTextBrowser>
class CollapsibleSection final : public QWidget {
Q_OBJECT
public:
explicit CollapsibleSection(
const QString &title,
const QString &markdownContent,
QWidget *parent = nullptr,
bool expanded = false
);
private slots:
void onToggled(bool checked) const;
private:
QToolButton *m_toggleButton;
QTextBrowser *m_contentBrowser;
void updateContentHeight() const;
bool eventFilter(QObject *watched, QEvent *event) override;
};