minor adjustments for persistent article viewer
This commit is contained in:
parent
223ef3be61
commit
7197c9d0c6
@ -13,7 +13,7 @@ ItemDetails::~ItemDetails() {}
|
|||||||
|
|
||||||
void ItemDetails::loadItemDetails(RootItem* item) {
|
void ItemDetails::loadItemDetails(RootItem* item) {
|
||||||
if (item == nullptr) {
|
if (item == nullptr) {
|
||||||
m_ui.m_lblIcon->setPixmap(QPixmap(APP_ICON_PATH).scaled(128, 128));
|
m_ui.m_lblIcon->setPixmap(QPixmap(APP_ICON_PATH).scaled(16, 16));
|
||||||
m_ui.m_lblInfo->setText(QSL("<b>%1</b>").arg(QSL(APP_LONG_NAME)));
|
m_ui.m_lblInfo->setText(QSL("<b>%1</b>").arg(QSL(APP_LONG_NAME)));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -29,7 +29,7 @@ void ItemDetails::loadItemDetails(RootItem* item) {
|
|||||||
tool_tip += QL1S("<br/><br/>") + extra_tooltip.replace(QSL("\n"), QSL("<br/>"));
|
tool_tip += QL1S("<br/><br/>") + extra_tooltip.replace(QSL("\n"), QSL("<br/>"));
|
||||||
}
|
}
|
||||||
|
|
||||||
m_ui.m_lblIcon->setPixmap(item->fullIcon().pixmap({128, 128}));
|
m_ui.m_lblIcon->setPixmap(item->fullIcon().pixmap({16, 16}));
|
||||||
m_ui.m_lblInfo->setText(tool_tip);
|
m_ui.m_lblInfo->setText(tool_tip);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -41,6 +41,9 @@
|
|||||||
<property name="wordWrap">
|
<property name="wordWrap">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="textInteractionFlags">
|
||||||
|
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
|
||||||
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user