#ifndef WRINTINGSELECTITEM_H
#define WRINTINGSELECTITEM_H

#include <QWidget>

namespace Ui {
class WrintingSelectItem;
}

class WrintingSelectItem : public QWidget
{
    Q_OBJECT

public:
    explicit WrintingSelectItem(QWidget *parent = nullptr);
    ~WrintingSelectItem();

    // 新增：设置显示项的接口
    void setTitle(const QString &title);
    void setTip(const QString &tip);
    void setContent(const QString &title, const QString &tip);

    // 新增：获取/设置选中状态
    bool isSelected() const;
    void setSelected(bool selected);

signals:
    // 新增：选中状态变化的信号
    void selectionChanged(bool selected);

protected:
    // 新增：重写鼠标点击事件
    void mousePressEvent(QMouseEvent *event) override;

private:
    Ui::WrintingSelectItem *ui;
};

#endif // WRINTINGSELECTITEM_H
