Bug 43050 - [Qt] PasteboardQt.cpp compile error when defined Macro QT_NO_CLIPBOARD
Summary: [Qt] PasteboardQt.cpp compile error when defined Macro QT_NO_CLIPBOARD
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: 528+ (Nightly build)
Hardware: All Linux
: P5 Normal
Assignee: Nobody
URL:
Keywords: EasyFix, Qt, QtTriaged
Depends on:
Blocks:
 
Reported: 2010-07-27 08:07 PDT by Ins
Modified: 2011-02-05 15:04 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ins 2010-07-27 08:07:51 PDT
When defined Macro 
    
    QT_NO_CLIPBOARD

in file :

     WebCore/platform/qt/PasteboardQt.cpp

function 

    Pasteboard::canSmartReplace 

would get a compile error

Maybe below codes can resolve it:
bool Pasteboard::canSmartReplace()
{
#ifndef QT_NO_CLIPBOARD
    if (QApplication::clipboard()->mimeData()->hasFormat((QLatin1String("application/vnd.qtwebkit.smartpaste"))))
        return true;
#endif
    return false;
}
Comment 1 Benjamin Poulain 2011-01-30 08:24:15 PST
Please follow http://trac.webkit.org/wiki/QtWebKitBugs when reporing bugs here.
Comment 2 Benjamin Poulain 2011-02-05 15:04:21 PST
This code is guarded with #ifndef QT_NO_CLIPBOARD in trunk.