- corrigé bug a la saisie du serveur\n- corrigé bug si adresse serveur vide
This commit is contained in:
+35
-31
@@ -51,9 +51,9 @@ extern QMap<int, QString> rsyncErrorStrings;
|
||||
|
||||
class Connexion
|
||||
{
|
||||
public:
|
||||
int bandwidthLimit = 0;
|
||||
int bandwidthLimitUnit;
|
||||
public:
|
||||
int bandwidthLimit = 0;
|
||||
int bandwidthLimitUnit;
|
||||
int contimeout = 20;
|
||||
QString server;
|
||||
QString service;
|
||||
@@ -70,9 +70,9 @@ class Connexion
|
||||
|
||||
class Downloading
|
||||
{
|
||||
public:
|
||||
QString server;
|
||||
QString service;
|
||||
public:
|
||||
QString server;
|
||||
QString service;
|
||||
QString path;
|
||||
QString savePath;
|
||||
QString user;
|
||||
@@ -86,9 +86,9 @@ class Downloading
|
||||
|
||||
class About
|
||||
{
|
||||
public:
|
||||
QString version;
|
||||
QString author = "Daniel TARTAVEL-JEANNOT";
|
||||
public:
|
||||
QString version;
|
||||
QString author = "Daniel TARTAVEL-JEANNOT";
|
||||
QString licence = "GPL_V3";
|
||||
QString description;
|
||||
QString email = "dtux@free.fr";
|
||||
@@ -99,9 +99,9 @@ class MainWindow : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
Ui::MainWindow *ui;
|
||||
MainWindow(QWidget *parent = nullptr);
|
||||
public:
|
||||
Ui::MainWindow *ui;
|
||||
MainWindow(QWidget *parent = nullptr);
|
||||
~MainWindow();
|
||||
// passwdManager;
|
||||
QProgressDialog *progress;
|
||||
@@ -124,30 +124,30 @@ class MainWindow : public QMainWindow
|
||||
|
||||
QList<QString> UnitText
|
||||
{
|
||||
tr("B"),
|
||||
tr("KB"),
|
||||
tr("MB"),
|
||||
tr("GB"),
|
||||
tr("TB"),
|
||||
tr("PB")
|
||||
tr("B"),
|
||||
tr("KB"),
|
||||
tr("MB"),
|
||||
tr("GB"),
|
||||
tr("TB"),
|
||||
tr("PB")
|
||||
};
|
||||
QList<QChar> bwUnitChar
|
||||
{
|
||||
'K',
|
||||
'M',
|
||||
'T',
|
||||
'G',
|
||||
'P'
|
||||
'K',
|
||||
'M',
|
||||
'T',
|
||||
'G',
|
||||
'P'
|
||||
};
|
||||
|
||||
QVector<QString> downloadProcessErrorString =
|
||||
{
|
||||
tr("The process failed to start. Either the invoked program is missing, or you may have insufficient permissions or resources to invoke the program."),
|
||||
tr("The process crashed some time after starting successfully."),
|
||||
tr("The last waitFor...() function timed out. The state of QProcess is unchanged, and you can try calling waitFor...() again."),
|
||||
tr("An error occurred when attempting to write to the process. For example, the process may not be running, or it may have closed its input channel."),
|
||||
tr("An error occurred when attempting to read from the process. For example, the process may not be running."),
|
||||
tr("An unknown error occurred. This is the default return value of error().")
|
||||
tr("The process failed to start. Either the invoked program is missing, or you may have insufficient permissions or resources to invoke the program."),
|
||||
tr("The process crashed some time after starting successfully."),
|
||||
tr("The last waitFor...() function timed out. The state of QProcess is unchanged, and you can try calling waitFor...() again."),
|
||||
tr("An error occurred when attempting to write to the process. For example, the process may not be running, or it may have closed its input channel."),
|
||||
tr("An error occurred when attempting to read from the process. For example, the process may not be running."),
|
||||
tr("An unknown error occurred. This is the default return value of error().")
|
||||
};
|
||||
|
||||
void displayTree();
|
||||
@@ -175,7 +175,7 @@ class MainWindow : public QMainWindow
|
||||
void passwordStore (QString account, QString password);
|
||||
QString passwordGet (QString account);
|
||||
|
||||
private slots:
|
||||
private slots:
|
||||
|
||||
void on_listWidget_clicked();
|
||||
|
||||
@@ -223,7 +223,11 @@ class MainWindow : public QMainWindow
|
||||
|
||||
void on_khistorycombobox_currentTextChanged(const QString &arg1);
|
||||
|
||||
signals:
|
||||
void on_khistorycombobox_editTextChanged(const QString &arg1);
|
||||
|
||||
void on_return_pressed(const QString &server);
|
||||
|
||||
signals:
|
||||
void stopDownloading(QProcess *);
|
||||
void progressSignal(int);
|
||||
void speed(QString);
|
||||
|
||||
Reference in New Issue
Block a user