mirror of
https://github.com/huderlem/porymap.git
synced 2026-09-16 21:05:47 -05:00
@@ -16,6 +16,10 @@ NoScrollComboBox::NoScrollComboBox(QWidget *parent)
|
||||
setEditable(true);// can set to false manually when using
|
||||
this->completer()->setCompletionMode(QCompleter::PopupCompletion);
|
||||
this->completer()->setFilterMode(Qt::MatchContains);
|
||||
|
||||
QRegularExpression re("[A-Za-z_0-9]+");
|
||||
QValidator *validator = new QRegularExpressionValidator(re);
|
||||
this->setValidator(validator);
|
||||
}
|
||||
|
||||
void NoScrollComboBox::wheelEvent(QWheelEvent *event)
|
||||
|
||||
Reference in New Issue
Block a user