mirror of
https://github.com/Palm1r/QodeAssist.git
synced 2025-07-14 02:54:48 -04:00
chore: Update plugin to QtCreator 15.0.1
* fix: Additional check qtc version * build: Upgrade plugin to QtC 15.0.1 * chore: Upgrade plugin version to 0.4.8
This commit is contained in:
4
.github/workflows/build_cmake.yml
vendored
4
.github/workflows/build_cmake.yml
vendored
@ -13,8 +13,8 @@ on:
|
|||||||
env:
|
env:
|
||||||
PLUGIN_NAME: QodeAssist
|
PLUGIN_NAME: QodeAssist
|
||||||
QT_VERSION: 6.8.1
|
QT_VERSION: 6.8.1
|
||||||
QT_CREATOR_VERSION: 15.0.0
|
QT_CREATOR_VERSION: 15.0.1
|
||||||
QT_CREATOR_VERSION_INTERNAL: 15.0.0
|
QT_CREATOR_VERSION_INTERNAL: 15.0.1
|
||||||
MACOS_DEPLOYMENT_TARGET: "11.0"
|
MACOS_DEPLOYMENT_TARGET: "11.0"
|
||||||
CMAKE_VERSION: "3.29.6"
|
CMAKE_VERSION: "3.29.6"
|
||||||
NINJA_VERSION: "1.12.1"
|
NINJA_VERSION: "1.12.1"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"Id" : "qodeassist",
|
"Id" : "qodeassist",
|
||||||
"Name" : "QodeAssist",
|
"Name" : "QodeAssist",
|
||||||
"Version" : "0.4.7",
|
"Version" : "0.4.8",
|
||||||
"Vendor" : "Petr Mironychev",
|
"Vendor" : "Petr Mironychev",
|
||||||
"VendorId" : "petrmironychev",
|
"VendorId" : "petrmironychev",
|
||||||
"Copyright" : "(C) ${IDE_COPYRIGHT_YEAR} Petr Mironychev, (C) ${IDE_COPYRIGHT_YEAR} The Qt Company Ltd",
|
"Copyright" : "(C) ${IDE_COPYRIGHT_YEAR} Petr Mironychev, (C) ${IDE_COPYRIGHT_YEAR} The Qt Company Ltd",
|
||||||
|
@ -155,7 +155,9 @@ private:
|
|||||||
|
|
||||||
void handleUpdateCheckResult(const PluginUpdater::UpdateInfo &info)
|
void handleUpdateCheckResult(const PluginUpdater::UpdateInfo &info)
|
||||||
{
|
{
|
||||||
if (!info.isUpdateAvailable)
|
if (!info.isUpdateAvailable
|
||||||
|
|| QVersionNumber::fromString(info.currentIdeVersion)
|
||||||
|
> QVersionNumber::fromString(info.targetIdeVersion))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (m_statusWidget)
|
if (m_statusWidget)
|
||||||
|
@ -60,6 +60,12 @@ UpdateDialog::UpdateDialog(QWidget *parent)
|
|||||||
m_versionLabel->setAlignment(Qt::AlignCenter);
|
m_versionLabel->setAlignment(Qt::AlignCenter);
|
||||||
m_layout->addWidget(m_versionLabel);
|
m_layout->addWidget(m_versionLabel);
|
||||||
|
|
||||||
|
m_releaseLink = new QLabel(this);
|
||||||
|
m_releaseLink->setOpenExternalLinks(true);
|
||||||
|
m_releaseLink->setTextFormat(Qt::RichText);
|
||||||
|
m_releaseLink->setAlignment(Qt::AlignCenter);
|
||||||
|
m_layout->addWidget(m_releaseLink);
|
||||||
|
|
||||||
if (!m_changelogLabel) {
|
if (!m_changelogLabel) {
|
||||||
m_changelogLabel = new QLabel(tr("Release Notes:"), this);
|
m_changelogLabel = new QLabel(tr("Release Notes:"), this);
|
||||||
m_layout->addWidget(m_changelogLabel);
|
m_layout->addWidget(m_changelogLabel);
|
||||||
@ -104,6 +110,10 @@ void UpdateDialog::checkForUpdatesAndShow(QWidget *parent)
|
|||||||
|
|
||||||
void UpdateDialog::handleUpdateInfo(const PluginUpdater::UpdateInfo &info)
|
void UpdateDialog::handleUpdateInfo(const PluginUpdater::UpdateInfo &info)
|
||||||
{
|
{
|
||||||
|
m_releaseLink->setText(
|
||||||
|
tr("<a href='https://github.com/Palm1r/QodeAssist/releases'>You can also download "
|
||||||
|
"from GitHub Releases</a>"));
|
||||||
|
|
||||||
if (info.incompatibleIdeVersion) {
|
if (info.incompatibleIdeVersion) {
|
||||||
m_titleLabel->setText(tr("Incompatible Qt Creator Version"));
|
m_titleLabel->setText(tr("Incompatible Qt Creator Version"));
|
||||||
m_versionLabel->setText(tr("This update requires Qt Creator %1, current is %2.\n"
|
m_versionLabel->setText(tr("This update requires Qt Creator %1, current is %2.\n"
|
||||||
|
@ -52,6 +52,7 @@ private:
|
|||||||
QVBoxLayout *m_layout;
|
QVBoxLayout *m_layout;
|
||||||
QLabel *m_titleLabel;
|
QLabel *m_titleLabel;
|
||||||
QLabel *m_versionLabel;
|
QLabel *m_versionLabel;
|
||||||
|
QLabel *m_releaseLink;
|
||||||
QLabel *m_changelogLabel{nullptr};
|
QLabel *m_changelogLabel{nullptr};
|
||||||
QTextEdit *m_changelogText{nullptr};
|
QTextEdit *m_changelogText{nullptr};
|
||||||
QProgressBar *m_progress;
|
QProgressBar *m_progress;
|
||||||
|
Reference in New Issue
Block a user