Coding style clean up

This commit is contained in:
Christophe Dumez
2012-02-20 19:56:07 +02:00
parent 00b4ad6ec8
commit f3448125c3
40 changed files with 227 additions and 228 deletions

View File

@@ -44,7 +44,7 @@ class trackerLogin : public QDialog, private Ui::authentication{
QTorrentHandle h;
public:
trackerLogin(QWidget *parent, QTorrentHandle h): QDialog(parent), h(h){
trackerLogin(QWidget *parent, QTorrentHandle h): QDialog(parent), h(h) {
setupUi(this);
setAttribute(Qt::WA_DeleteOnClose);
login_logo->setPixmap(QPixmap(QString::fromUtf8(":/Icons/oxygen/encrypted.png")));
@@ -53,19 +53,19 @@ class trackerLogin : public QDialog, private Ui::authentication{
show();
}
~trackerLogin(){}
~trackerLogin() {}
signals:
void trackerLoginCancelled(QPair<QTorrentHandle,QString> tracker);
public slots:
void on_loginButton_clicked(){
void on_loginButton_clicked() {
// login
h.set_tracker_login(lineUsername->text(), linePasswd->text());
close();
}
void on_cancelButton_clicked(){
void on_cancelButton_clicked() {
// Emit a signal to GUI to stop asking for authentication
emit trackerLoginCancelled(QPair<QTorrentHandle,QString>(h, h.current_tracker()));
close();