summaryrefslogtreecommitdiff
path: root/src/plugins/git/gerrit/branchcombobox.h
blob: 1b66fb46a429214e43b020cdb2bd69dbe78ff1a6 (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
// Copyright (C) 2016 Orgad Shaneh <orgads@gmail.com>.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include <utils/filepath.h>

#include <QComboBox>

namespace Git {
namespace Internal { class GitClient; }
}

namespace Gerrit {
namespace Internal {

class BranchComboBox : public QComboBox
{
public:
    explicit BranchComboBox(QWidget *parent = nullptr);
    void init(const Utils::FilePath &repository);

private:
    Utils::FilePath m_repository;
    bool m_detached = false;
};

} // namespace Internal
} // namespace Gerrit