Skip to content

Commit

Permalink
working QLabel copy/paste by disabling parent stylesheet
Browse files Browse the repository at this point in the history
  • Loading branch information
redshiftzero committed Apr 22, 2020
1 parent 4c4bd4e commit 4903236
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion securedrop_client/gui/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1957,6 +1957,9 @@ def __init__(self, message_uuid: str, text: str, update_signal, index: int) -> N
# Add widget to layout
layout.addWidget(bubble_area)

# Make text selectable
self.message.setTextInteractionFlags(Qt.TextSelectableByMouse)

# Connect signals to slots
update_signal.connect(self._update_text)

Expand Down Expand Up @@ -3057,7 +3060,7 @@ def __init__(self, source_db_object: Source, controller: Controller):
self.current_messages = {} # type: Dict[str, QWidget]

# Set styles
self.setStyleSheet(self.CSS)
# self.setStyleSheet(self.CSS)

# Set layout
main_layout = QVBoxLayout()
Expand Down

0 comments on commit 4903236

Please sign in to comment.