summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Liu <net147@gmail.com>2013-04-10 22:28:11 +1000
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-04-19 12:03:36 +0200
commitca0e350183903ebe9d665ebab1028b3510982967 (patch)
treed5a7141017048c08a360784971483960d8fc35ef
parent526eaeea09c0c48cea60d39be40aed782961883c (diff)
QMessageBox/Win: Include detailed text using Ctrl+C to copy
Task-number: QTBUG-21150 Change-Id: I14c214e9f96892f0da4369e7253e363b7313c252 Reviewed-by: Kai Koehne <kai.koehne@digia.com> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
-rw-r--r--src/widgets/dialogs/qmessagebox.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/widgets/dialogs/qmessagebox.cpp b/src/widgets/dialogs/qmessagebox.cpp
index e08b321289..833320da16 100644
--- a/src/widgets/dialogs/qmessagebox.cpp
+++ b/src/widgets/dialogs/qmessagebox.cpp
@@ -1412,7 +1412,10 @@ void QMessageBox::keyPressEvent(QKeyEvent *e)
buttonTexts += buttons[i]->text() + QLatin1String(" ");
}
textToCopy += buttonTexts + separator;
-
+#ifndef QT_NO_TEXTEDIT
+ if (d->detailsText)
+ textToCopy += d->detailsText->text() + separator;
+#endif
QApplication::clipboard()->setText(textToCopy);
return;
}