From 9528e67dae43aa5771b8c98d84564f514ed50bac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Mon, 7 Feb 2011 22:59:34 +0100 Subject: Tweaked code style of event filter in login window. diff --git a/COPYING b/COPYING index 424e70b..b5e0c92 100644 --- a/COPYING +++ b/COPYING @@ -824,6 +824,7 @@ Swift contains some code contributed under the BSD License, under the following --- START OF BSD LICENSE Copyright (c) 2011, Arnt Gulbrandsen +Copyright (c) 2011, Thilo Cestonaro All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: diff --git a/Swift/QtUI/QtLoginWindow.cpp b/Swift/QtUI/QtLoginWindow.cpp index d028253..a3e52dc 100644 --- a/Swift/QtUI/QtLoginWindow.cpp +++ b/Swift/QtUI/QtLoginWindow.cpp @@ -191,13 +191,12 @@ QtLoginWindow::QtLoginWindow(UIEventStream* uiEventStream) : QMainWindow() { bool QtLoginWindow::eventFilter(QObject *obj, QEvent *event) { if (obj == username_->view() && event->type() == QEvent::KeyPress) { - QKeyEvent *keyEvent = static_cast(event); - if(keyEvent->key() == Qt::Key_Delete || Qt::Key_Backspace) { - QMessageBox::information(this, "Delete this login data?", "Remove the save login data regarding the jid: " + username_->view()->currentIndex().data().toString()); + QKeyEvent *keyEvent = static_cast(event); + if (keyEvent->key() == Qt::Key_Delete || keyEvent->key() == Qt::Key_Backspace) { + QMessageBox::information(this, "Remove profile", "Remove the profile '" + username_->view()->currentIndex().data().toString() + "'?"); return true; } } - // standard event processing return QObject::eventFilter(obj, event); } -- cgit v0.10.2-6-g49f6