From 589187ee6bbc73c5cc72f24259f794f213cc4c54 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 31 Oct 2014 07:13:17 +0100 Subject: [PATCH] Set some properties. --- qutebrowser/widgets/crash.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/qutebrowser/widgets/crash.py b/qutebrowser/widgets/crash.py index ca6e78324..eef99b939 100644 --- a/qutebrowser/widgets/crash.py +++ b/qutebrowser/widgets/crash.py @@ -69,19 +69,20 @@ class _CrashDialog(QDialog): info = QLabel("What were you doing when this crash/bug happened?") self._vbox.addWidget(info) - self._info = QTextEdit(tabChangesFocus=True) + self._info = QTextEdit(tabChangesFocus=True, acceptRichText=False) self._info.setPlaceholderText("- Opened http://www.example.com/\n" "- Switched tabs\n" "- etc...") self._vbox.addWidget(self._info, 5) contact = QLabel("How can I contact you if I need more info?") self._vbox.addWidget(contact) - self._contact = QTextEdit(tabChangesFocus=True) + self._contact = QTextEdit(tabChangesFocus=True, acceptRichText=False) self._contact.setPlaceholderText("Github username, mail or IRC") self._vbox.addWidget(self._contact, 2) self._vbox.addSpacing(15) - self._debug_log = QTextEdit(tabChangesFocus=True) + self._debug_log = QTextEdit(tabChangesFocus=True, acceptRichText=False, + lineWrapMode=QTextEdit.NoWrap) self._debug_log.hide() info = QLabel("You can edit the log below to remove sensitive " "information.", wordWrap=True) @@ -390,7 +391,8 @@ class ReportErrorDialog(QDialog): "crash@qutebrowser.org - Thanks!".format( html.escape(exc_text))) vbox.addWidget(label) - txt = QTextEdit(readOnly=True, tabChangesFocus=True) + txt = QTextEdit(readOnly=True, tabChangesFocus=True, + acceptRichText=False) txt.setText(text) txt.selectAll() vbox.addWidget(txt)