summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly@kdab.com>2013-04-23 11:56:15 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-04-23 14:07:37 +0200
commit38fea4d642c1188d2441d8fdbe147369995077ba (patch)
treea0f97da7b19968072b91060f743ce99b4fe80e80 /src
parenta961204d28a76f68953743b47199959e5978c1ef (diff)
Fix build with QT_NO_CLIPBOARD
Change-Id: I138a29e1099e691770b9e3e094a108fc8c52f8cb Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com> Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
Diffstat (limited to 'src')
-rw-r--r--src/widgets/dialogs/qmessagebox.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/widgets/dialogs/qmessagebox.cpp b/src/widgets/dialogs/qmessagebox.cpp
index 833320da16..4ec828ac83 100644
--- a/src/widgets/dialogs/qmessagebox.cpp
+++ b/src/widgets/dialogs/qmessagebox.cpp
@@ -133,10 +133,14 @@ public:
bool copy()
{
+#ifdef QT_NO_CLIPBOARD
+ return false;
+#else
if (!copyAvailable)
return false;
textEdit->copy();
return true;
+#endif
}
private slots: