This commit is contained in:
Kovid Goyal 2008-03-11 07:55:06 +00:00
parent f435e0a25f
commit e312c4a60e
3 changed files with 7 additions and 3 deletions

View File

@ -283,7 +283,7 @@ p, li { white-space: pre-wrap; }
<item>
<widget class="QLabel" name="label_8" >
<property name="text" >
<string>For help with writing advanced news profiles, please visit &lt;a href="https://libprs500.kovidgoyal.net/wiki/UserProfiles">UserProfiles&lt;/a></string>
<string>For help with writing advanced news profiles, please visit &lt;a href="https://__appname__.kovidgoyal.net/wiki/UserProfiles">UserProfiles&lt;/a></string>
</property>
<property name="wordWrap" >
<bool>true</bool>

View File

@ -17,7 +17,7 @@
</sizepolicy>
</property>
<property name="windowTitle" >
<string>libprs500</string>
<string>__appname__</string>
</property>
<property name="windowIcon" >
<iconset resource="images.qrc" >:/library</iconset>
@ -105,7 +105,7 @@
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
p, li { white-space: pre-wrap; }
&lt;/style>&lt;/head>&lt;body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;">
&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">For help visit &lt;a href="http://libprs500.kovidgoyal.net/user_manual">&lt;span style=" text-decoration: underline; color:#0000ff;">libprs500.kovidgoyal.net&lt;/span>&lt;/a>&lt;br />&lt;br />&lt;span style=" font-weight:600;">libprs500&lt;/span>: %1 by &lt;span style=" font-weight:600;">Kovid Goyal&lt;/span> %2&lt;br />%3&lt;/p>&lt;/body>&lt;/html></string>
&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">For help visit &lt;a href="http://__appname__.kovidgoyal.net/user_manual">&lt;span style=" text-decoration: underline; color:#0000ff;">__appname__.kovidgoyal.net&lt;/span>&lt;/a>&lt;br />&lt;br />&lt;span style=" font-weight:600;">__appname__&lt;/span>: %1 by &lt;span style=" font-weight:600;">Kovid Goyal&lt;/span> %2&lt;br />%3&lt;/p>&lt;/body>&lt;/html></string>
</property>
<property name="textFormat" >
<enum>Qt::RichText</enum>

View File

@ -22,6 +22,9 @@ from functools import partial
from PyQt4.uic import compileUi
check_call = partial(subprocess.check_call, shell=True)
sys.path.insert(1, os.path.abspath('..%s..'%os.sep))
from libprs500 import __appname__
def find_forms():
forms = []
@ -43,6 +46,7 @@ def build_forms(forms):
buf = cStringIO.StringIO()
compileUi(form, buf)
dat = buf.getvalue()
dat = dat.replace('__appname__', __appname__)
dat = dat.replace('import images_rc', 'from libprs500.gui2 import images_rc')
dat = dat.replace('from library import', 'from libprs500.gui2.library import')
dat = dat.replace('from widgets import', 'from libprs500.gui2.widgets import')