修改源地址
This commit is contained in:
parent
addc82cbb2
commit
325a43535f
@ -39,7 +39,7 @@ signals:
|
||||
|
||||
|
||||
private:
|
||||
QString url = "http://127.0.0.1:8000/information.json";
|
||||
QString url = "http://info.kernel.gxde.gfdgdxi.top/information.json";
|
||||
QJsonArray listData;
|
||||
};
|
||||
|
||||
|
||||
@ -5,6 +5,7 @@
|
||||
#include "kernelinformation.h"
|
||||
|
||||
#include <QStandardItemModel>
|
||||
#include <qdesktopservices.h>
|
||||
|
||||
MainWindow::MainWindow(QWidget *parent)
|
||||
: QMainWindow(parent)
|
||||
@ -71,3 +72,15 @@ void MainWindow::on_actionAbout_triggered()
|
||||
aboutWindow->show();
|
||||
}
|
||||
|
||||
|
||||
void MainWindow::on_actionGitee_triggered()
|
||||
{
|
||||
QDesktopServices::openUrl(QUrl("https://gitee.com/GXDE-OS/gxde-kernel-manager"));
|
||||
}
|
||||
|
||||
|
||||
void MainWindow::on_actionGithub_triggered()
|
||||
{
|
||||
QDesktopServices::openUrl(QUrl("https://github.com/GXDE-OS/gxde-kernel-manager"));
|
||||
}
|
||||
|
||||
|
||||
@ -26,6 +26,10 @@ private slots:
|
||||
|
||||
void on_actionAbout_triggered();
|
||||
|
||||
void on_actionGitee_triggered();
|
||||
|
||||
void on_actionGithub_triggered();
|
||||
|
||||
private:
|
||||
Ui::MainWindow *ui;
|
||||
KernelInformation *kernelInformation;
|
||||
|
||||
@ -94,6 +94,9 @@
|
||||
<property name="title">
|
||||
<string>Help</string>
|
||||
</property>
|
||||
<addaction name="actionGitee"/>
|
||||
<addaction name="actionGithub"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionAbout"/>
|
||||
</widget>
|
||||
<addaction name="menuProgram"/>
|
||||
@ -110,6 +113,16 @@
|
||||
<string>About</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionGitee">
|
||||
<property name="text">
|
||||
<string>Gitee</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionGithub">
|
||||
<property name="text">
|
||||
<string>Github</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="Resource.qrc"/>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user