Use name for URL display. Window sizes.
This commit is contained in:
parent
725b2c66d3
commit
55e3b7c7e0
@ -163,19 +163,19 @@ class SeriesSelectionWindow(QtWidgets.QDialog):
|
||||
|
||||
# Display talker logo and set url
|
||||
self.lblSourceName.setText(
|
||||
f'Data Source: <a href="{talker_api.static_options.website}">{talker_api.static_options.website}</a>'
|
||||
f'Data Source: <a href="{talker_api.static_options.website}">{talker_api.source_details.name}</a>'
|
||||
)
|
||||
|
||||
self.imageSourceWidget = CoverImageWidget(
|
||||
self.lblSourceLogo,
|
||||
self.imageSourceLogo,
|
||||
CoverImageWidget.URLMode,
|
||||
options.runtime_config.user_cache_dir,
|
||||
talker_api,
|
||||
False,
|
||||
)
|
||||
gridlayoutSourceLogo = QtWidgets.QGridLayout(self.lblSourceLogo)
|
||||
gridlayoutSourceLogo = QtWidgets.QGridLayout(self.imageSourceLogo)
|
||||
gridlayoutSourceLogo.addWidget(self.imageSourceWidget)
|
||||
gridlayoutSourceLogo.setContentsMargins(0, 0, 0, 0)
|
||||
gridlayoutSourceLogo.setContentsMargins(0, 2, 0, 0)
|
||||
self.imageSourceWidget.set_url(talker_api.source_details.logo)
|
||||
|
||||
# Set the minimum row height to the default.
|
||||
|
@ -67,13 +67,28 @@
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="lblSourceName">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>300</width>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Data Source:</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLabel" name="lblSourceLogo">
|
||||
<widget class="QWidget" name="imageSourceLogo" native="true">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>300</width>
|
||||
@ -83,15 +98,9 @@
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>300</width>
|
||||
<height>100</height>
|
||||
<height>16777215</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="midLineWidth">
|
||||
<number>0</number>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 17 KiB |
Loading…
Reference in New Issue
Block a user