Skip to content

FinceptTerminal is a modern finance application offering advanced market analytics, investment research, and economic data tools, designed for interactive exploration and data-driven decision-making in a user-friendly environment.

475 B
Raw Blame
#pragma once
#include <QPushButton>

namespace fincept::ui {

/// Bell button with unread badge — lives in DashboardStatusBar.
/// Connects to NotificationService::unread_count_changed to update badge.
class NotifBell : public QPushButton {
    Q_OBJECT
  public:
    explicit NotifBell(QWidget* parent = nullptr);

    void set_unread(int count);

  signals:
    void bell_clicked();

  private:
    void update_label();
    int unread_{0};
};

} // namespace fincept::ui