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.
29 lines
570 B
C++
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;
|
|
};
|