mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-01-30 07:07:42 +00:00
closes: #1374 . Use SPDX short-form identifiers instead of lengthy copyright header to document per-file license and copyright. This commit updates all files under src/ directory where applicable as well as org.flameshot.Flameshot.metainfo.xml.
30 lines
671 B
C++
30 lines
671 B
C++
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
// SPDX-FileCopyrightText: 2017-2019 Alejandro Sirgo Rica & Contributors
|
|
|
|
#pragma once
|
|
|
|
#include "src/widgets/capture/capturetoolbutton.h"
|
|
#include <QListWidget>
|
|
|
|
class ButtonListView : public QListWidget
|
|
{
|
|
public:
|
|
explicit ButtonListView(QWidget* parent = nullptr);
|
|
|
|
public slots:
|
|
void selectAll();
|
|
void updateComponents();
|
|
|
|
private slots:
|
|
void reverseItemCheck(QListWidgetItem*);
|
|
|
|
protected:
|
|
void initButtonList();
|
|
|
|
private:
|
|
QVector<CaptureToolButton::ButtonType> m_listButtons;
|
|
QMap<QString, CaptureToolButton::ButtonType> m_buttonTypeByName;
|
|
|
|
void updateActiveButtons(QListWidgetItem*);
|
|
};
|