mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2025-05-28 03:10:28 -04:00
Fix settings layouts
This commit is contained in:
parent
397dd33a96
commit
539a220771
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"Name" : "QodeAssist",
|
"Name" : "QodeAssist",
|
||||||
"Version" : "0.1.0",
|
"Version" : "0.1.1",
|
||||||
"CompatVersion" : "${IDE_VERSION_COMPAT}",
|
"CompatVersion" : "${IDE_VERSION_COMPAT}",
|
||||||
"Vendor" : "Petr Mironychev",
|
"Vendor" : "Petr Mironychev",
|
||||||
"Copyright" : "(C) ${IDE_COPYRIGHT_YEAR} Petr Mironychev, (C) ${IDE_COPYRIGHT_YEAR} The Qt Company Ltd",
|
"Copyright" : "(C) ${IDE_COPYRIGHT_YEAR} Petr Mironychev, (C) ${IDE_COPYRIGHT_YEAR} The Qt Company Ltd",
|
||||||
|
@ -85,8 +85,8 @@ ContextSettings::ContextSettings()
|
|||||||
setLayouter([this]() {
|
setLayouter([this]() {
|
||||||
using namespace Layouting;
|
using namespace Layouting;
|
||||||
return Column{Row{readFullFile, Stretch{1}, resetToDefaults},
|
return Column{Row{readFullFile, Stretch{1}, resetToDefaults},
|
||||||
readStringsBeforeCursor,
|
Row{readStringsBeforeCursor, Stretch{1}},
|
||||||
readStringsAfterCursor,
|
Row{readStringsAfterCursor, Stretch{1}},
|
||||||
useFilePathInContext,
|
useFilePathInContext,
|
||||||
useSpecificInstructions,
|
useSpecificInstructions,
|
||||||
specificInstractions,
|
specificInstractions,
|
||||||
|
@ -62,22 +62,20 @@ GeneralSettings::GeneralSettings()
|
|||||||
multiLineCompletion.setLabelText(Tr::tr("Enable Multiline Completion"));
|
multiLineCompletion.setLabelText(Tr::tr("Enable Multiline Completion"));
|
||||||
|
|
||||||
startSuggestionTimer.setSettingsKey(Constants::START_SUGGESTION_TIMER);
|
startSuggestionTimer.setSettingsKey(Constants::START_SUGGESTION_TIMER);
|
||||||
startSuggestionTimer.setLabelText(Tr::tr("Start Suggestion Timer:"));
|
startSuggestionTimer.setLabelText(Tr::tr("with delay(ms)"));
|
||||||
startSuggestionTimer.setRange(10, 10000);
|
startSuggestionTimer.setRange(10, 10000);
|
||||||
startSuggestionTimer.setDefaultValue(500);
|
startSuggestionTimer.setDefaultValue(500);
|
||||||
|
|
||||||
autoCompletionCharThreshold.setSettingsKey(Constants::AUTO_COMPLETION_CHAR_THRESHOLD);
|
autoCompletionCharThreshold.setSettingsKey(Constants::AUTO_COMPLETION_CHAR_THRESHOLD);
|
||||||
autoCompletionCharThreshold.setLabelText(
|
autoCompletionCharThreshold.setLabelText(Tr::tr("AI suggestion triggers after typing"));
|
||||||
Tr::tr("Character threshold for AI suggestion start:"));
|
|
||||||
autoCompletionCharThreshold.setToolTip(
|
autoCompletionCharThreshold.setToolTip(
|
||||||
Tr::tr("The number of characters that need to be typed within the typing interval "
|
Tr::tr("The number of characters that need to be typed within the typing interval "
|
||||||
"before an AI suggestion request is sent."));
|
"before an AI suggestion request is sent."));
|
||||||
autoCompletionCharThreshold.setRange(1, 10);
|
autoCompletionCharThreshold.setRange(0, 10);
|
||||||
autoCompletionCharThreshold.setDefaultValue(2);
|
autoCompletionCharThreshold.setDefaultValue(1);
|
||||||
|
|
||||||
autoCompletionTypingInterval.setSettingsKey(Constants::AUTO_COMPLETION_TYPING_INTERVAL);
|
autoCompletionTypingInterval.setSettingsKey(Constants::AUTO_COMPLETION_TYPING_INTERVAL);
|
||||||
autoCompletionTypingInterval.setLabelText(
|
autoCompletionTypingInterval.setLabelText(Tr::tr("character(s) within(ms)"));
|
||||||
Tr::tr("Typing interval for AI suggestion start(ms):"));
|
|
||||||
autoCompletionTypingInterval.setToolTip(
|
autoCompletionTypingInterval.setToolTip(
|
||||||
Tr::tr("The time window (in milliseconds) during which the character threshold "
|
Tr::tr("The time window (in milliseconds) during which the character threshold "
|
||||||
"must be met to trigger an AI suggestion request."));
|
"must be met to trigger an AI suggestion request."));
|
||||||
@ -138,10 +136,11 @@ GeneralSettings::GeneralSettings()
|
|||||||
|
|
||||||
auto rootLayout = Column{Row{enableQodeAssist, Stretch{1}, resetToDefaults},
|
auto rootLayout = Column{Row{enableQodeAssist, Stretch{1}, resetToDefaults},
|
||||||
enableAutoComplete,
|
enableAutoComplete,
|
||||||
startSuggestionTimer,
|
|
||||||
autoCompletionCharThreshold,
|
|
||||||
autoCompletionTypingInterval,
|
|
||||||
multiLineCompletion,
|
multiLineCompletion,
|
||||||
|
Row{autoCompletionCharThreshold,
|
||||||
|
autoCompletionTypingInterval,
|
||||||
|
startSuggestionTimer,
|
||||||
|
Stretch{1}},
|
||||||
Space{8},
|
Space{8},
|
||||||
enableLogging,
|
enableLogging,
|
||||||
Space{8},
|
Space{8},
|
||||||
|
Loading…
Reference in New Issue
Block a user