aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/coreplugin/find/optionspopup.h
blob: 294df86bc236e9602cabb867809e3b1cdb518794 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright (C) 2019 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0+ OR GPL-3.0 WITH Qt-GPL-exception-1.0

#pragma once

#include <coreplugin/core_global.h>

#include <utils/id.h>

#include <QWidget>

QT_BEGIN_NAMESPACE
class QCheckBox;
QT_END_NAMESPACE

namespace Core {

class CORE_EXPORT OptionsPopup : public QWidget
{
    Q_OBJECT

public:
    OptionsPopup(QWidget *parent, const QVector<Utils::Id> &commands);

protected:
    bool event(QEvent *ev) override;
    bool eventFilter(QObject *obj, QEvent *ev) override;

private:
    QCheckBox *createCheckboxForCommand(Utils::Id id);
};

} // namespace Core