[Webkit-unassigned] [Bug 43050] New: PasteboardQt.cpp compile error when defined Macro QT_NO_CLIPBOARD

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 27 08:07:51 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=43050

           Summary: PasteboardQt.cpp compile error when defined Macro
                    QT_NO_CLIPBOARD
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Platform
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: InsFocus at gmail.com


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;
}

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list