code cleaning
This commit is contained in:
parent
8df2a651a3
commit
0a1aa6c4fd
@ -47,10 +47,6 @@ MainWindow::MainWindow(QWidget *parent)
|
||||
// init about window
|
||||
AboutW.setupUi(&aboutDialog);
|
||||
|
||||
//init login dialog
|
||||
loginD.setupUi(&loginDialog);
|
||||
loginD.loginEdit->setFocus();
|
||||
|
||||
// text of About
|
||||
QString aboutText = tr("<h2>Client for rsync server</h2>") +
|
||||
"<b>" + tr("Version") + ": " + this->about.version + "</b><br>" +
|
||||
@ -774,7 +770,6 @@ bool MainWindow::getUserPassword(Connexion * object)
|
||||
if (logins.count() != 1)
|
||||
{
|
||||
//choose login in case of multiples logins
|
||||
loginD.loginEdit->setHistoryItems(logins);
|
||||
login = QInputDialog::getItem(this,
|
||||
"RsincUI",
|
||||
tr("Select the user you want to connect with or enter a new one"),
|
||||
|
@ -5,7 +5,6 @@
|
||||
#include "ui_mainwindow.h"
|
||||
#include "ui_configuration.h"
|
||||
#include "ui_about.h"
|
||||
#include "ui_login.h"
|
||||
#include "downloadfile.h"
|
||||
#include "tools.h"
|
||||
#include <QMainWindow>
|
||||
@ -46,7 +45,6 @@
|
||||
#include <QMenu>
|
||||
#include <QTranslator>
|
||||
#include <QInputDialog>
|
||||
#include <QSignalSpy>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
namespace Ui { class MainWindow; }
|
||||
@ -117,8 +115,6 @@ class MainWindow : public QMainWindow
|
||||
Ui::Configuration config;
|
||||
QDialog aboutDialog;
|
||||
Ui::windowAbout AboutW;
|
||||
QDialog loginDialog;
|
||||
Ui::LoginDialog loginD;
|
||||
std::vector <QString> serversList;
|
||||
QSystemTrayIcon * trayIcon;
|
||||
QString icon = "/usr/share/icons/RsyncUI.png";
|
||||
|
Loading…
Reference in New Issue
Block a user