File indexing completed on 2024-05-19 05:01:19
0001 #ifndef WEBENGINEPART_UTILS_H 0002 #define WEBENGINEPART_UTILS_H 0003 0004 #include <QUrl> 0005 0006 namespace Utils 0007 { 0008 0009 #define QL1S(x) QLatin1String(x) 0010 #define QL1C(x) QLatin1Char(x) 0011 0012 inline bool isBlankUrl(const QUrl& url) 0013 { 0014 return (url.isEmpty() || url.url() == QL1S("konq:blank")); 0015 } 0016 0017 inline bool isKonqUrl(const QUrl &url){ 0018 return (url.scheme()) == QL1S("konq"); 0019 } 0020 0021 } 0022 #endif // WEBENGINEPART_UTILS_H