"""
Contains the quick reference widget
"""
from pyqode.qt import QtWidgets
from .forms import quick_ref_ui

class QuickRefWidget(QtWidgets.QWidget):
    def __init__(self, parent=None):
        super(QuickRefWidget, self).__init__(parent)
        self.ui = quick_ref_ui.Ui_Form()
        self.ui.setupUi(self)

@@ -37,16 +37,26 @@
 get%0A%22%22%22%0A
+import re%0A
 from pyq
@@ -314,8 +314,508 @@
 i(self)%0A
+        self._fix_default_font_size()%0A%0A    def _fix_default_font_size(self):%0A        # remove fixed font size to allow the user to zoom in/out using%0A        # Ctrl+Mouse Wheel%0A        # Note: Zooming into HTML documents only works if the font-size is not%0A        # set to a fixed size.%0A        # (source: http://qt-project.org/doc/qt-5/qtextedit.html)%0A        html = self.ui.textEditQuickRef.toHtml()%0A        html = re.sub('font-size:%5Cd+pt;', '', html)%0A        self.ui.textEditQuickRef.setHtml(html)%0A

Allow the user to zoom in/out the quick reference text using Ctrl+Mouse Wheel