porymap/include/ui/eventcombobox.h
GriffinR 827116f409
Some checks are pending
Build Porymap / build-linux (, 5.14.2) (push) Waiting to run
Build Porymap / build-linux (, 6.8.*) (push) Waiting to run
Build Porymap / build-linux (minimal, 5.14.2) (push) Waiting to run
Build Porymap / build-macos (macos-15-intel) (push) Waiting to run
Build Porymap / build-macos (macos-latest) (push) Waiting to run
Build Porymap / build-static-windows (push) Waiting to run
Allow event panel to be shrunk to a smaller width before collapsing
2026-03-05 18:46:25 -05:00

23 lines
581 B
C++

#ifndef EVENTCOMBOBOX_H
#define EVENTCOMBOBOX_H
#include "noscrollwidgets.h"
#include <QRegularExpression>
class EventComboBox : public NoScrollComboBox
{
Q_OBJECT
public:
explicit EventComboBox(QWidget *parent = nullptr) : NoScrollComboBox(parent) {
// Make speed a priority when loading comboboxes.
// Set combo boxes to smallest reasonable size.
setSizeAdjustPolicy(QComboBox::AdjustToMinimumContentsLengthWithIcon);
// In general, event combo boxes are always editable.
setEditable(true);
}
};
#endif // EVENTCOMBOBOX_H