// For license of this file, see <project-root-folder>/LICENSE.md.

#ifndef CLOSEBUTTON_H
#define CLOSEBUTTON_H

#include <QToolButton>

class RSSGUARD_DLLSPEC PlainToolButton : public QToolButton {
    Q_OBJECT

  public:
    explicit PlainToolButton(QWidget* parent = nullptr);

    // Padding changers.
    int padding() const;
    void setPadding(int padding);

  public slots:
    void setChecked(bool checked);
    void reactOnActionChange(QAction* action);
    void reactOnSenderActionChange();

  protected:
    void paintEvent(QPaintEvent* e);

  private:
    int m_padding;
};

#endif // CLOSEBUTTON_H
