mirror of
https://github.com/tnodir/fort
synced 2024-11-15 08:25:20 +00:00
UI: MyFort: About: Show release text in scroll area
This commit is contained in:
parent
a08ff344ab
commit
2473be1763
@ -51,17 +51,19 @@ void AboutPage::setupNewVersionBox()
|
||||
m_labelRelease->setWordWrap(true);
|
||||
m_labelRelease->setOpenExternalLinks(true);
|
||||
|
||||
m_labelArea = ControlUtil::wrapToScrollArea(m_labelRelease);
|
||||
m_labelArea->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::MinimumExpanding);
|
||||
|
||||
// Buttons
|
||||
auto buttonsLayout = setupButtonsLayout();
|
||||
|
||||
auto layout = new QVBoxLayout();
|
||||
layout->setSpacing(10);
|
||||
|
||||
layout->addWidget(m_labelRelease);
|
||||
layout->addWidget(m_labelArea);
|
||||
layout->addLayout(buttonsLayout);
|
||||
|
||||
m_gbNewVersion = new QGroupBox();
|
||||
m_gbNewVersion->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Preferred);
|
||||
m_gbNewVersion->setMinimumWidth(380);
|
||||
m_gbNewVersion->setLayout(layout);
|
||||
}
|
||||
@ -94,7 +96,7 @@ void AboutPage::setupNewVersionUpdate()
|
||||
auto updateChecker = taskManager()->taskInfoUpdateChecker();
|
||||
m_isNewVersion = updateChecker->isNewVersion();
|
||||
|
||||
m_labelRelease->setVisible(m_isNewVersion);
|
||||
m_labelArea->setVisible(m_isNewVersion);
|
||||
m_labelRelease->setText(updateChecker->releaseText());
|
||||
|
||||
m_btDownload->setVisible(m_isNewVersion);
|
||||
|
@ -26,6 +26,7 @@ private:
|
||||
|
||||
QGroupBox *m_gbNewVersion = nullptr;
|
||||
QLabel *m_labelRelease = nullptr;
|
||||
QWidget *m_labelArea = nullptr;
|
||||
QToolButton *m_btDownload = nullptr;
|
||||
QToolButton *m_btCheckUpdate = nullptr;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user