mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 03:25:16 +00:00
register_editor_dialog: Improve selection
This commit is contained in:
parent
9bd4426225
commit
3f44ecb77a
1 changed files with 9 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
|||
#include <QHBoxLayout>
|
||||
#include <QPushButton>
|
||||
#include <QMessageBox>
|
||||
#include <QCompleter>
|
||||
#include <charconv>
|
||||
|
||||
#include "util/v128.hpp"
|
||||
|
@ -81,6 +82,14 @@ register_editor_dialog::register_editor_dialog(QWidget *parent, CPUDisAsm* _disa
|
|||
button_cancel->setFixedWidth(80);
|
||||
|
||||
m_register_combo = new QComboBox(this);
|
||||
m_register_combo->setMaxVisibleItems(20);
|
||||
m_register_combo->setEditable(true);
|
||||
m_register_combo->setInsertPolicy(QComboBox::NoInsert);
|
||||
m_register_combo->lineEdit()->setPlaceholderText(tr("Search a register"));
|
||||
m_register_combo->completer()->setCompletionMode(QCompleter::PopupCompletion);
|
||||
m_register_combo->completer()->setMaxVisibleItems(20);
|
||||
m_register_combo->completer()->setFilterMode(Qt::MatchContains);
|
||||
|
||||
m_value_line = new QLineEdit(this);
|
||||
m_value_line->setFixedWidth(200);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue