Skip to content

Commit 92badcc

Browse files
committed
Fix naming: border_color -> border_style
Signed-off-by: Brianna Major <brianna.major@kitware.com>
1 parent 095b21f commit 92badcc

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

hexrdgui/masking/mask_border_style_picker.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ def __init__(self, original_color, original_style, original_width, parent=None):
2323
self.setup_connections()
2424

2525
def setup_ui(self):
26-
self.ui.border_color.setText(self.original_color)
27-
self.ui.border_color.setStyleSheet('QPushButton {background-color: %s}' % self.original_color)
26+
self.ui.border_style.setText(self.original_color)
27+
self.ui.border_style.setStyleSheet('QPushButton {background-color: %s}' % self.original_color)
2828
self.ui.border_style.setCurrentText(self.original_style)
2929
self.ui.border_size.setValue(self.original_width)
3030

@@ -33,7 +33,7 @@ def exec(self):
3333
return self.ui.exec()
3434

3535
def setup_connections(self):
36-
self.ui.border_color.clicked.connect(self.pick_color)
36+
self.ui.border_style.clicked.connect(self.pick_color)
3737
self.ui.border_style.currentIndexChanged.connect(self.update_style)
3838
self.ui.border_size.valueChanged.connect(self.update_width)
3939
self.ui.button_box.rejected.connect(self.reject)
@@ -42,8 +42,8 @@ def pick_color(self):
4242
dialog = QColorDialog(QColor(self.original_color), self.ui)
4343
if dialog.exec():
4444
self.color = dialog.selectedColor().name()
45-
self.ui.border_color.setText(self.color)
46-
self.ui.border_color.setStyleSheet('QPushButton {background-color: %s}' % self.color)
45+
self.ui.border_style.setText(self.color)
46+
self.ui.border_style.setStyleSheet('QPushButton {background-color: %s}' % self.color)
4747

4848
def update_style(self):
4949
self.style = self.ui.border_style.currentText()

hexrdgui/resources/ui/mask_border_style_picker.ui

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@
3636
<string>Color:</string>
3737
</property>
3838
<property name="buddy">
39-
<cstring>border_color</cstring>
39+
<cstring>border_style</cstring>
4040
</property>
4141
</widget>
4242
</item>
4343
<item row="0" column="1">
44-
<widget class="QPushButton" name="border_color">
44+
<widget class="QPushButton" name="border_style">
4545
<property name="text">
4646
<string/>
4747
</property>
@@ -129,7 +129,7 @@
129129
</customwidget>
130130
</customwidgets>
131131
<tabstops>
132-
<tabstop>border_color</tabstop>
132+
<tabstop>border_style</tabstop>
133133
<tabstop>border_style</tabstop>
134134
<tabstop>border_size</tabstop>
135135
</tabstops>

hexrdgui/resources/ui/mask_manager_dialog.ui

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,9 @@
190190
</widget>
191191
</item>
192192
<item>
193-
<widget class="QPushButton" name="border_color">
193+
<widget class="QPushButton" name="border_style">
194194
<property name="text">
195-
<string>Border Color</string>
195+
<string>Border Style</string>
196196
</property>
197197
</widget>
198198
</item>
@@ -245,7 +245,7 @@
245245
<tabstop>show_all_masks</tabstop>
246246
<tabstop>hide_all_boundaries</tabstop>
247247
<tabstop>show_all_boundaries</tabstop>
248-
<tabstop>border_color</tabstop>
248+
<tabstop>border_style</tabstop>
249249
<tabstop>presentation_selector</tabstop>
250250
<tabstop>export_selected</tabstop>
251251
<tabstop>remove_selected</tabstop>

0 commit comments

Comments
 (0)