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>
This commit is contained in:
Stephen Kelly 2013-04-23 11:56:15 +02:00 committed by The Qt Project
parent a961204d28
commit 38fea4d642

View File

@ -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: