fix: Let users select version number and build in About Dialog
Fixes: #7722
This commit is contained in:
parent
01d67e4614
commit
3f2bb2531a
1 changed files with 2 additions and 0 deletions
|
|
@ -48,10 +48,12 @@ AboutDialog::AboutDialog(QMainWindow *parent, std::shared_ptr<Deps> deps)
|
||||||
this->setFixedSize(this->size());
|
this->setFixedSize(this->size());
|
||||||
|
|
||||||
QString version = QString::fromStdString(deskflow::version());
|
QString version = QString::fromStdString(deskflow::version());
|
||||||
|
m_pLabelDeskflowVersion->setTextInteractionFlags(Qt::TextSelectableByMouse);
|
||||||
m_pLabelDeskflowVersion->setText(version);
|
m_pLabelDeskflowVersion->setText(version);
|
||||||
|
|
||||||
QString buildDateString = QString::fromLocal8Bit(BUILD_DATE).simplified();
|
QString buildDateString = QString::fromLocal8Bit(BUILD_DATE).simplified();
|
||||||
QDate buildDate = QLocale("en_US").toDate(buildDateString, "yyyy-MM-dd");
|
QDate buildDate = QLocale("en_US").toDate(buildDateString, "yyyy-MM-dd");
|
||||||
|
m_pLabelBuildDate->setTextInteractionFlags(Qt::TextSelectableByMouse);
|
||||||
m_pLabelBuildDate->setText(
|
m_pLabelBuildDate->setText(
|
||||||
buildDate.toString(QLocale::system().dateFormat(QLocale::LongFormat)));
|
buildDate.toString(QLocale::system().dateFormat(QLocale::LongFormat)));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue