61
74
shortcutListDialog.setObjectName('shortcutListDialog')
62
75
shortcutListDialog.setWindowIcon(build_icon(u':/icon/openlp-logo.svg'))
63
76
shortcutListDialog.resize(500, 438)
64
self.shortcut_list_layout = QtGui.QVBoxLayout(shortcutListDialog)
77
self.shortcut_list_layout = QtWidgets.QVBoxLayout(shortcutListDialog)
65
78
self.shortcut_list_layout.setObjectName('shortcut_list_layout')
66
self.description_label = QtGui.QLabel(shortcutListDialog)
79
self.description_label = QtWidgets.QLabel(shortcutListDialog)
67
80
self.description_label.setObjectName('description_label')
68
81
self.description_label.setWordWrap(True)
69
82
self.shortcut_list_layout.addWidget(self.description_label)
70
self.tree_widget = QtGui.QTreeWidget(shortcutListDialog)
83
self.tree_widget = ShortcutTreeWidget(shortcutListDialog)
71
84
self.tree_widget.setObjectName('tree_widget')
72
85
self.tree_widget.setAlternatingRowColors(True)
73
86
self.tree_widget.setColumnCount(3)
74
87
self.tree_widget.setColumnWidth(0, 250)
75
88
self.shortcut_list_layout.addWidget(self.tree_widget)
76
self.details_layout = QtGui.QGridLayout()
89
self.details_layout = QtWidgets.QGridLayout()
77
90
self.details_layout.setObjectName('details_layout')
78
91
self.details_layout.setContentsMargins(-1, 0, -1, -1)
79
self.default_radio_button = QtGui.QRadioButton(shortcutListDialog)
92
self.default_radio_button = QtWidgets.QRadioButton(shortcutListDialog)
80
93
self.default_radio_button.setObjectName('default_radio_button')
81
94
self.default_radio_button.setChecked(True)
82
95
self.details_layout.addWidget(self.default_radio_button, 0, 0, 1, 1)
83
self.custom_radio_button = QtGui.QRadioButton(shortcutListDialog)
96
self.custom_radio_button = QtWidgets.QRadioButton(shortcutListDialog)
84
97
self.custom_radio_button.setObjectName('custom_radio_button')
85
98
self.details_layout.addWidget(self.custom_radio_button, 1, 0, 1, 1)
86
self.primary_layout = QtGui.QHBoxLayout()
99
self.primary_layout = QtWidgets.QHBoxLayout()
87
100
self.primary_layout.setObjectName('primary_layout')
88
101
self.primary_push_button = CaptureShortcutButton(shortcutListDialog)
89
102
self.primary_push_button.setObjectName('primary_push_button')
90
103
self.primary_push_button.setMinimumSize(QtCore.QSize(84, 0))
91
104
self.primary_push_button.setIcon(build_icon(':/system/system_configure_shortcuts.png'))
92
105
self.primary_layout.addWidget(self.primary_push_button)
93
self.clear_primary_button = QtGui.QToolButton(shortcutListDialog)
106
self.clear_primary_button = QtWidgets.QToolButton(shortcutListDialog)
94
107
self.clear_primary_button.setObjectName('clear_primary_button')
95
108
self.clear_primary_button.setMinimumSize(QtCore.QSize(0, 16))
96
109
self.clear_primary_button.setIcon(build_icon(':/system/clear_shortcut.png'))
97
110
self.primary_layout.addWidget(self.clear_primary_button)
98
111
self.details_layout.addLayout(self.primary_layout, 1, 1, 1, 1)
99
self.alternate_layout = QtGui.QHBoxLayout()
112
self.alternate_layout = QtWidgets.QHBoxLayout()
100
113
self.alternate_layout.setObjectName('alternate_layout')
101
114
self.alternate_push_button = CaptureShortcutButton(shortcutListDialog)
102
115
self.alternate_push_button.setObjectName('alternate_push_button')
103
116
self.alternate_push_button.setIcon(build_icon(':/system/system_configure_shortcuts.png'))
104
117
self.alternate_layout.addWidget(self.alternate_push_button)
105
self.clear_alternate_button = QtGui.QToolButton(shortcutListDialog)
118
self.clear_alternate_button = QtWidgets.QToolButton(shortcutListDialog)
106
119
self.clear_alternate_button.setObjectName('clear_alternate_button')
107
120
self.clear_alternate_button.setIcon(build_icon(':/system/clear_shortcut.png'))
108
121
self.alternate_layout.addWidget(self.clear_alternate_button)
109
122
self.details_layout.addLayout(self.alternate_layout, 1, 2, 1, 1)
110
self.primary_label = QtGui.QLabel(shortcutListDialog)
123
self.primary_label = QtWidgets.QLabel(shortcutListDialog)
111
124
self.primary_label.setObjectName('primary_label')
112
125
self.details_layout.addWidget(self.primary_label, 0, 1, 1, 1)
113
self.alternate_label = QtGui.QLabel(shortcutListDialog)
126
self.alternate_label = QtWidgets.QLabel(shortcutListDialog)
114
127
self.alternate_label.setObjectName('alternate_label')
115
128
self.details_layout.addWidget(self.alternate_label, 0, 2, 1, 1)
116
129
self.shortcut_list_layout.addLayout(self.details_layout)