| | |
| | | /****************************************************************************
|
| | | **
|
| | | ** Copyright (C) 2021 The Qt Company Ltd.
|
| | | ** Copyright (C) 2022 The Qt Company Ltd.
|
| | | ** Contact: https://www.qt.io/licensing/
|
| | | **
|
| | | ** This file is part of the Qt VS Tools.
|
| | |
| | | using System.Windows;
|
| | | using System.Windows.Controls;
|
| | | using System.Windows.Input;
|
| | | using Microsoft.VisualStudio.PlatformUI;
|
| | |
|
| | | namespace QtVsTools.QtMsBuild
|
| | | {
|
| | | public partial class QtModulesPopup : VsToolsDialogWindow
|
| | | public partial class QtModulesPopup : DialogWindow
|
| | | {
|
| | | public class Module
|
| | | {
|
| | |
| | | private void PopupListBox_KeyDown(object sender, KeyEventArgs e)
|
| | | {
|
| | | if (e.Key == Key.Enter || e.Key == Key.Space) {
|
| | | var module = PopupListBox.SelectedItem as Module;
|
| | | if (module != null && module.IsEnabled)
|
| | | if (PopupListBox.SelectedItem is Module module && module.IsEnabled)
|
| | | module.CheckBox.IsChecked = (module.CheckBox.IsChecked != true);
|
| | | }
|
| | | }
|