diff options
author | Joerg Bornemann <joerg.bornemann@trolltech.com> | 2009-06-03 12:28:55 (GMT) |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@trolltech.com> | 2009-06-03 13:44:54 (GMT) |
commit | 11e77b1e47d527a2c4bca6c72d4597bfd8b8a1c3 (patch) | |
tree | e41a7ae1ddd8b9a0cac59b292b78291817a35286 | |
parent | 826b2ec2067e725561db2892dd432c01f1d36bc7 (diff) | |
download | Qt-11e77b1e47d527a2c4bca6c72d4597bfd8b8a1c3.zip Qt-11e77b1e47d527a2c4bca6c72d4597bfd8b8a1c3.tar.gz Qt-11e77b1e47d527a2c4bca6c72d4597bfd8b8a1c3.tar.bz2 |
use a yes/no message box for a yes/no question in http example
Using a OK/Cancel message box is weird for a yes/no question, esp. on a
Windows CE device where such a message box doesn't have real push
buttons but must be OK'ed / cancelled via system buttons in the title
bar.
Task-number: 255112
Reviewed-by: thartman
-rw-r--r-- | examples/network/http/httpwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/network/http/httpwindow.cpp b/examples/network/http/httpwindow.cpp index ebde770..7aded07 100644 --- a/examples/network/http/httpwindow.cpp +++ b/examples/network/http/httpwindow.cpp @@ -116,8 +116,8 @@ void HttpWindow::downloadFile() if (QMessageBox::question(this, tr("HTTP"), tr("There already exists a file called %1 in " "the current directory. Overwrite?").arg(fileName), - QMessageBox::Ok|QMessageBox::Cancel, QMessageBox::Cancel) - == QMessageBox::Cancel) + QMessageBox::Yes|QMessageBox::No, QMessageBox::No) + == QMessageBox::No) return; QFile::remove(fileName); } |