style: refine flow dialog text selection

This commit is contained in:
linbo 2026-10-10 13:34:25 +08:00
parent d527f8ff24
commit 798ac83a8e
2 changed files with 3 additions and 2 deletions

View File

@ -216,7 +216,7 @@ QString requestFlowNodeName(QWidget *parent, const QString &title,
QObject::connect(nameEdit, &QLineEdit::returnPressed, &dialog, &QDialog::accept);
QTimer::singleShot(0, nameEdit, [nameEdit]() {
nameEdit->setFocus();
nameEdit->selectAll();
nameEdit->setCursorPosition(nameEdit->text().size());
});
const bool ok = dialog.exec() == QDialog::Accepted;
if (accepted)

View File

@ -1650,7 +1650,8 @@ QWidget#jointFlowChildContent QLineEdit {
background: #ffffff;
border: 1px solid #bfc9d4;
border-radius: 5px;
selection-background-color: #1b6ef3;
selection-background-color: #dbeafe;
selection-color: #155dcc;
}
QWidget#jointFlowChildContent QLineEdit:focus {
border: 1px solid #1b6ef3;