fix: qrtextedit constructor
authorThomasV <thomasv@gitorious>
Sat, 14 Jun 2014 10:25:47 +0000 (12:25 +0200)
committerThomasV <thomasv@gitorious>
Sat, 14 Jun 2014 10:25:47 +0000 (12:25 +0200)
gui/qt/qrtextedit.py

index 742b97e..d4308e4 100644 (file)
@@ -4,8 +4,8 @@ from PyQt4.QtCore import *
 
 class QRTextEdit(QTextEdit):
 
-    def __init__(self):
-        QTextEdit.__init__(self)
+    def __init__(self, text=None):
+        QTextEdit.__init__(self, text)
         self.button = QToolButton(self)
         self.button.setIcon(QIcon(":icons/qrcode.png"))
         self.button.setStyleSheet("QToolButton { border: none; padding: 0px; }")