added: - history in combobox\n - settings in application
This commit is contained in:
+21
-4
@@ -8,6 +8,7 @@
|
||||
#include "downloadfile.h"
|
||||
#include <QProgressDialog>
|
||||
#include <QSettings>
|
||||
#include <vector>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
namespace Ui { class MainWindow; }
|
||||
@@ -32,6 +33,17 @@ class Downloading
|
||||
int pid = 0;
|
||||
};
|
||||
|
||||
class About
|
||||
{
|
||||
public:
|
||||
QString title = "RsyncUI";
|
||||
QString author = "Daniel TARTAVEL-JEANNOT";
|
||||
QString licence = "GPL_V3";
|
||||
QString description = "Client for rsync server";
|
||||
QString email = "dtux@free.fr";
|
||||
QString git = "https://git.labolyon.fr/dtux/RsyncUI/issues";
|
||||
};
|
||||
|
||||
class MainWindow : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -58,6 +70,9 @@ class MainWindow : public QMainWindow
|
||||
Downloading downloading;
|
||||
downloadFile downloadO;
|
||||
QSettings settings;
|
||||
About about;
|
||||
|
||||
std::vector <QString> serversList;
|
||||
|
||||
private slots:
|
||||
void on_khistorycombobox_returnPressed();
|
||||
@@ -66,10 +81,6 @@ class MainWindow : public QMainWindow
|
||||
|
||||
void on_portEdit_returnPressed();
|
||||
|
||||
void on_treeWidget_itemClicked(QTreeWidgetItem *item, int column);
|
||||
|
||||
void on_treeWidget_customContextMenuRequested();
|
||||
|
||||
void on_actionDownload_triggered();
|
||||
|
||||
void on_listWidget_clicked(const QModelIndex &index);
|
||||
@@ -82,6 +93,12 @@ class MainWindow : public QMainWindow
|
||||
|
||||
void on_listDownload_itemClicked(QListWidgetItem *item);
|
||||
|
||||
void on_actionAbout_triggered();
|
||||
|
||||
void on_actionAbout_Qt_triggered();
|
||||
|
||||
void on_khistorycombobox_currentIndexChanged(int i);
|
||||
|
||||
signals:
|
||||
void stopDownloading(int);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user