forked from qt-creator/qt-creator
Tracing: Add type annotations to some functions
Change-Id: Ie82a12cb74d6315ab0bcb3efa1e88038ae4ed6f3 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -38,19 +38,19 @@ ToolBar {
|
||||
signal rangeSelectChanged()
|
||||
signal lockChanged()
|
||||
|
||||
function updateLockButton(locked) {
|
||||
function updateLockButton(locked: bool) {
|
||||
lockButton.checked = !locked;
|
||||
}
|
||||
|
||||
function lockButtonChecked() {
|
||||
function lockButtonChecked(): bool {
|
||||
return lockButton.checked;
|
||||
}
|
||||
|
||||
function updateRangeButton(rangeMode) {
|
||||
function updateRangeButton(rangeMode: bool) {
|
||||
rangeButton.checked = rangeMode;
|
||||
}
|
||||
|
||||
function rangeButtonChecked() {
|
||||
function rangeButtonChecked() : bool {
|
||||
return rangeButton.checked
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user