Skip to content

Commit

Permalink
Modify variables
Browse files Browse the repository at this point in the history
  • Loading branch information
lingmo-dream committed Aug 24, 2023
1 parent fd386c9 commit 276752f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/about.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ QString About::version()
return settings.value("Version").toString();
}

QString About::openCuteversion()
QString About::OpenLingmoVersion()
{
QSettings settings("/etc/OpenLingmo/OpenLingmo_version",QSettings::IniFormat);
return settings.value("Version").toString();
Expand Down Expand Up @@ -204,7 +204,7 @@ QString About::cpuInfo()

void About::openUpdator()
{
QProcess::startDetached("update", QStringList());
QProcess::startDetached("ling-updator", QStringList());
}

qlonglong About::calculateTotalRam() const
Expand Down
4 changes: 2 additions & 2 deletions src/about.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class About : public QObject
Q_OBJECT
Q_PROPERTY(bool isCuteOS READ isCuteOS CONSTANT)
Q_PROPERTY(QString version READ version CONSTANT)
Q_PROPERTY(QString openCuteversion READ openCuteversion CONSTANT)
Q_PROPERTY(QString OpenLingmoVersion READ OpenLingmoVersion CONSTANT)
Q_PROPERTY(QString debianversion READ debianversion CONSTANT)
Q_PROPERTY(QString desktopversion READ desktopversion CONSTANT)
Q_PROPERTY(QString buildtime READ buildtime CONSTANT)
Expand All @@ -34,7 +34,7 @@ class About : public QObject
bool isCuteOS();

QString version();
QString openCuteversion();
QString OpenLingmoVersion();
QString debianversion();
QString desktopversion();
QString buildtime();
Expand Down
2 changes: 1 addition & 1 deletion src/qml/About/Main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ ItemPage {

StandardItem {
key: qsTr("OpenLingmo Version")
value: about.openCuteversion
value: about.OpenLingmoVersion
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/qml/Agreement/Main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ ItemPage {
StandardItem {
key: qsTr("Software Version")

value: about.openCuteversion
value: about.OpenLingmoVersion
}

StandardItem {
Expand Down
2 changes: 1 addition & 1 deletion src/qml/Update/Main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ ItemPage {

// StandardItem {
// key: qsTr("openCute Version")
// value: about.openCuteversion
// value: about.OpenLingmoVersion
// }

StandardItem {
Expand Down

0 comments on commit 276752f

Please sign in to comment.