Initial commit (project based on widgets)

This commit is contained in:
Yury Shuvakin
2022-08-01 21:53:36 +03:00
parent d9396cdc2f
commit 14a7aa699f
411 changed files with 95119 additions and 0 deletions

35
hoverablecombobox.h Normal file
View File

@@ -0,0 +1,35 @@
#ifndef HOVERABLECOMBOBOX_H
#define HOVERABLECOMBOBOX_H
#include <QObject>
#include <QWidget>
#include <QComboBox>
class HoverableComboBox : public QComboBox
{
Q_OBJECT
public:
HoverableComboBox(QWidget *parent = nullptr);
~HoverableComboBox() override;
protected:
void hidePopup() override
{
QComboBox::hidePopup();
emit closed();
}
void showPopup() override
{
QComboBox::showPopup();
emit opened();
}
signals:
void opened();
void closed();
};
//HoverableComboBox(QObject *parent) : QComboBox (parent) { }
#endif // HOVERABLECOMBOBOX_H