Files
SceneSwitcher/src/utils/filter-combo-box.hpp
WarmUpTill b833dd4576 Export FilterComboBox widget symbols
To be used for Twitch action
2023-08-26 17:32:36 +02:00

30 lines
645 B
C++

#pragma once
#include "export-symbol-helper.hpp"
#include <QComboBox>
namespace advss {
// Helper class which enables user to filter possible selections by typing
class ADVSS_EXPORT FilterComboBox : public QComboBox {
Q_OBJECT
public:
FilterComboBox(QWidget *parent = nullptr,
const QString &placehodler = "");
static void SetFilterBehaviourEnabled(bool);
protected:
void focusOutEvent(QFocusEvent *event) override;
private slots:
void CompleterHighlightChanged(const QModelIndex &);
void TextChagned(const QString &);
private:
int _lastCompleterHighlightRow = -1;
static bool _filteringEnabled;
};
} // namespace advss