commit 193e3847583e802e427e158b9fd9212f9169dde0
parent 1e2277bf1ff790c0f2d5e80b3ec4ec9a573fd7d2
Author: ThomasV <thomasv@gitorious>
Date: Sat, 14 Jun 2014 12:25:47 +0200
fix: qrtextedit constructor
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gui/qt/qrtextedit.py b/gui/qt/qrtextedit.py
@@ -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; }")