From 928490d31f67b6dd81d9e39310bda27f8bcf0ceb Mon Sep 17 00:00:00 2001 From: Petr Mironychev <9195189+Palm1r@users.noreply.github.com> Date: Fri, 24 Jan 2025 01:50:56 +0100 Subject: [PATCH] fix: small style changes --- ChatView/qml/parts/BottomBar.qml | 15 +++++++++------ settings/GeneralSettings.cpp | 2 +- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/ChatView/qml/parts/BottomBar.qml b/ChatView/qml/parts/BottomBar.qml index 1040d80..8e9ddfe 100644 --- a/ChatView/qml/parts/BottomBar.qml +++ b/ChatView/qml/parts/BottomBar.qml @@ -60,12 +60,6 @@ Rectangle { text: qsTr("Stop") } - CheckBox { - id: syncOpenFilesId - - text: qsTr("Sync open files with model context") - } - QoAButton { id: attachFilesId @@ -88,6 +82,15 @@ Rectangle { text: qsTr("Link files") } + CheckBox { + id: syncOpenFilesId + + text: qsTr("Sync open files") + + ToolTip.visible: syncOpenFilesId.hovered + ToolTip.text: qsTr("Automatically synchronize currently opened files with the model context") + } + Item { Layout.fillWidth: true } diff --git a/settings/GeneralSettings.cpp b/settings/GeneralSettings.cpp index 1c26021..bd03a71 100644 --- a/settings/GeneralSettings.cpp +++ b/settings/GeneralSettings.cpp @@ -290,8 +290,8 @@ void GeneralSettings::showUrlSelectionDialog( auto cancelButton = new QPushButton(TrConstants::CANCEL); connect(cancelButton, &QPushButton::clicked, &dialog, &QDialog::reject); - dialog.buttonLayout()->addWidget(okButton); dialog.buttonLayout()->addWidget(cancelButton); + dialog.buttonLayout()->addWidget(okButton); urlList->setFocus(); dialog.exec();