1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 17:47:37 +00:00
transmission/qt/FilterBarComboBox.h
Charles Kerr fa6df52d58
chore: remove unused methods (#1207)
* chore: remove unused methods in qt client

* chore: remove unused libtransmission methods

* chore: remove unused gtk methods

* chore: remove more unused libtransmission methods

* chore: remove more unused code found by @reardonia
2020-05-11 17:20:46 -05:00

38 lines
694 B
C++

/*
* This file Copyright (C) 2010-2015 Mnemosyne LLC
*
* It may be used under the GNU GPL versions 2 or 3
* or any future license endorsed by Mnemosyne LLC.
*
*/
#pragma once
#include <QComboBox>
class FilterBarComboBox : public QComboBox
{
Q_OBJECT
public:
enum
{
CountRole = Qt::UserRole + 1,
CountStringRole,
UserRole
};
public:
FilterBarComboBox(QWidget* parent = nullptr);
// QWidget
QSize minimumSizeHint() const override;
QSize sizeHint() const override;
protected:
// QWidget
void paintEvent(QPaintEvent* e) override;
private:
QSize calculateSize(QSize const& textSize, QSize const& countSize) const;
};