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