Commits

Arne Babenhauserheide  committed d2b9b3a

shorter edit description (long text obsoleted by the buttons).

  • Participants
  • Parent commits 7391bc8

Comments (0)

Files changed (1)

 Flattr me? :)""")
         self.flattr_html = QWebView()
         # I use the flattr button from Wikimedia commons to avoid data retention hassles. TODO: ship our own flattr button to avoid the web access. 
-        self.flattr_html.setHtml("""<html><head><title>flattr me</title></head><body><table><tr><td style="text-align: right">If you like<br />
-        pyRad</td><td><a href="http://flattr.com/thing/58752/pyRad-a-wheel-type-command-interface-for-KDE" target="_blank">
-<img src="http://upload.wikimedia.org/wikipedia/commons/4/49/Flattr_Button.png" alt="Flattr this" title="Flattr this" border="0" /></a></td><td>Why don’t you <br />
-flattr me? :)</td></tr>
-<tr><td colspan=3><a href="http://draketo.de/light/english/pyrad">http://draketo.de/light/english/pyrad</a></td></tr></table></body></html>""")
-        self.lay.addWidget(self.flattr_html)
+        self.flattr_html.setHtml("""<a href="http://flattr.com/thing/58752/pyRad-a-wheel-type-command-interface-for-KDE">
+<img src="http://upload.wikimedia.org/wikipedia/commons/4/49/Flattr_Button.png" alt="Flattr this" title="Flattr this" border="0" /></a></body></html>""")
+        self.flattr_html.sizeHint = (50, 20)
+        self.flattr_layout.addWidget(self.flattr_left)
+        self.flattr_layout.addWidget(self.flattr_html)
+        self.flattr_layout.addWidget(self.flattr_right)
+        self.lay.addLayout(self.flattr_layout)
 
 class ConfigEditor(KDialog):
     """edit the base config"""
         self.lay = QGridLayout()
         self.setLayout(self.lay)
         # Now add a description text
-        self.description = QLabel("Edit the icon (KDE progam name) and the action (commandline input). To delete the item, just delete the action line (set to empty).")
+        self.description = QLabel("Edit the icon (KDE progam name) and the action (commandline input)..")
         self.lay.addWidget(self.description, 0, 0, 1, 3)
         # Then add a text field with name        
         self.icon_label = QLabel("Icon:", self)