Fix handleHelpRequest.

* Make sure we only change our own urls inside that function
* QDesktopService::setUrlHandler expects the target slot to take a QUrl

Reviewed-by: ck
This commit is contained in:
kh1
2010-04-28 15:04:39 +02:00
parent b0f9b1d491
commit c908da836f
4 changed files with 23 additions and 20 deletions

View File

@@ -39,6 +39,7 @@ QT_FORWARD_DECLARE_CLASS(QHelpEngine)
QT_FORWARD_DECLARE_CLASS(QHelpEngineCore)
QT_FORWARD_DECLARE_CLASS(QString)
QT_FORWARD_DECLARE_CLASS(QStringList)
QT_FORWARD_DECLARE_CLASS(QUrl)
class BookmarkManager;
@@ -69,7 +70,7 @@ public:
static BookmarkManager& bookmarkManager();
signals:
void helpRequested(const QString &Url);
void helpRequested(const QUrl &url);
private:
static bool m_guiNeedsSetup;