code cleaning

This commit is contained in:
Daniel Tartavel 2023-03-08 16:09:17 +01:00
parent 8df2a651a3
commit 0a1aa6c4fd
2 changed files with 0 additions and 9 deletions

View File

@ -47,10 +47,6 @@ MainWindow::MainWindow(QWidget *parent)
// init about window // init about window
AboutW.setupUi(&aboutDialog); AboutW.setupUi(&aboutDialog);
//init login dialog
loginD.setupUi(&loginDialog);
loginD.loginEdit->setFocus();
// text of About // text of About
QString aboutText = tr("<h2>Client for rsync server</h2>") + QString aboutText = tr("<h2>Client for rsync server</h2>") +
"<b>" + tr("Version") + ": " + this->about.version + "</b><br>" + "<b>" + tr("Version") + ": " + this->about.version + "</b><br>" +
@ -774,7 +770,6 @@ bool MainWindow::getUserPassword(Connexion * object)
if (logins.count() != 1) if (logins.count() != 1)
{ {
//choose login in case of multiples logins //choose login in case of multiples logins
loginD.loginEdit->setHistoryItems(logins);
login = QInputDialog::getItem(this, login = QInputDialog::getItem(this,
"RsincUI", "RsincUI",
tr("Select the user you want to connect with or enter a new one"), tr("Select the user you want to connect with or enter a new one"),

View File

@ -5,7 +5,6 @@
#include "ui_mainwindow.h" #include "ui_mainwindow.h"
#include "ui_configuration.h" #include "ui_configuration.h"
#include "ui_about.h" #include "ui_about.h"
#include "ui_login.h"
#include "downloadfile.h" #include "downloadfile.h"
#include "tools.h" #include "tools.h"
#include <QMainWindow> #include <QMainWindow>
@ -46,7 +45,6 @@
#include <QMenu> #include <QMenu>
#include <QTranslator> #include <QTranslator>
#include <QInputDialog> #include <QInputDialog>
#include <QSignalSpy>
QT_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; } namespace Ui { class MainWindow; }
@ -117,8 +115,6 @@ class MainWindow : public QMainWindow
Ui::Configuration config; Ui::Configuration config;
QDialog aboutDialog; QDialog aboutDialog;
Ui::windowAbout AboutW; Ui::windowAbout AboutW;
QDialog loginDialog;
Ui::LoginDialog loginD;
std::vector <QString> serversList; std::vector <QString> serversList;
QSystemTrayIcon * trayIcon; QSystemTrayIcon * trayIcon;
QString icon = "/usr/share/icons/RsyncUI.png"; QString icon = "/usr/share/icons/RsyncUI.png";