pqComboBoxStyle.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
3 #ifndef pqComboBoxStyle_h
4 #define pqComboBoxStyle_h
5 
6 #include <QProxyStyle>
7 
8 class pqComboBoxStyle : public QProxyStyle
9 {
10  Q_OBJECT
11 public:
12  explicit pqComboBoxStyle(bool showPopup);
13  ~pqComboBoxStyle() override;
14 
15  int styleHint(StyleHint hint, const QStyleOption* option, const QWidget* widget,
16  QStyleHintReturn* ret) const override;
17 
18 private:
19  bool ShowPopup = false;
20  Q_DISABLE_COPY(pqComboBoxStyle)
21 };
22 #endif
~pqComboBoxStyle() override
pqComboBoxStyle(bool showPopup)
int styleHint(StyleHint hint, const QStyleOption *option, const QWidget *widget, QStyleHintReturn *ret) const override