mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-18 19:06:10 +00:00
Improve RegistersWidget grid UI
This commit is contained in:
parent
489b89dc7c
commit
035aa52cca
@ -17,6 +17,7 @@ RegistersWidget::RegistersWidget(MainWindow *main, QAction *action) :
|
||||
|
||||
// setup register layout
|
||||
registerLayout->setVerticalSpacing(0);
|
||||
registerLayout->setAlignment(Qt::AlignLeft | Qt::AlignTop) ;
|
||||
ui->verticalLayout->addLayout(registerLayout);
|
||||
|
||||
refreshDeferrer = createRefreshDeferrer([this]() {
|
||||
@ -68,7 +69,7 @@ void RegistersWidget::setRegisterGrid()
|
||||
registerLabel->setMaximumWidth(60);
|
||||
registerLabel->setStyleSheet("font-weight: bold; font-family: mono;");
|
||||
registerEditValue = new QLineEdit;
|
||||
registerEditValue->setFixedWidth(140);
|
||||
registerEditValue->setMaximumWidth(140);
|
||||
registerEditValue->setFont(Config()->getFont());
|
||||
registerLabel->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||
connect(registerLabel, &QWidget::customContextMenuRequested, this, [this, registerEditValue, registerLabel](QPoint p){
|
||||
|
Loading…
Reference in New Issue
Block a user