diff --git a/Desktop/components/JASP/Widgets/WelcomePage.qml b/Desktop/components/JASP/Widgets/WelcomePage.qml index 4d7e211d7c..412bb613ba 100644 --- a/Desktop/components/JASP/Widgets/WelcomePage.qml +++ b/Desktop/components/JASP/Widgets/WelcomePage.qml @@ -438,13 +438,14 @@ FocusScope bottomMargin: 4 * welcomeRoot.scaler } - MouseArea + JASPMouseAreaToolTipped { id: bugsMouseArea hoverEnabled: true onClicked: Qt.openUrlExternally(mainWindow.contactUrlBugs); anchors.fill: parent cursorShape: Qt.PointingHandCursor + toolTipText: mainWindow.contactUrlBugs } } @@ -469,13 +470,14 @@ FocusScope margins: 10 * welcomeRoot.scaler } - MouseArea + JASPMouseAreaToolTipped { id: featureMouseArea hoverEnabled: true onClicked: Qt.openUrlExternally(mainWindow.contactUrlFeatures); anchors.fill: parent cursorShape: Qt.PointingHandCursor + toolTipText: mainWindow.contactUrlFeatures } } @@ -500,13 +502,14 @@ FocusScope bottomMargin: 4 * welcomeRoot.scaler } - MouseArea + JASPMouseAreaToolTipped { id: jaspQuestionsMouseArea hoverEnabled: true - onClicked: Qt.openUrlExternally("https://forum.cogsci.nl/index.php?p=/categories/jasp-bayesfactor"); + onClicked: Qt.openUrlExternally(mainWindow.questionsUrl); anchors.fill: parent cursorShape: Qt.PointingHandCursor + toolTipText: mainWindow.questionsUrl } } @@ -530,13 +533,14 @@ FocusScope margins: 10 * welcomeRoot.scaler } - MouseArea + JASPMouseAreaToolTipped { id: jaspStatsMouseArea hoverEnabled: true onClicked: Qt.openUrlExternally("https://www.jasp-stats.org"); anchors.fill: parent cursorShape: Qt.PointingHandCursor + toolTipText: "https://www.jasp-stats.org" } } diff --git a/Desktop/mainwindow.h b/Desktop/mainwindow.h index c11c420fbf..87cc37c94a 100644 --- a/Desktop/mainwindow.h +++ b/Desktop/mainwindow.h @@ -93,7 +93,7 @@ class MainWindow : public QObject Q_PROPERTY(QString contactUrlFeatures READ contactUrlFeatures CONSTANT ) Q_PROPERTY(QString contactUrlBugs READ contactUrlBugs CONSTANT ) Q_PROPERTY(QString contactText READ contactText NOTIFY contactTextChanged ) - + Q_PROPERTY(QString questionsUrl READ questionsUrl CONSTANT ) friend class FileMenu; public: @@ -129,6 +129,7 @@ class MainWindow : public QObject const QString contactUrlFeatures() const; const QString contactUrlBugs() const; const QString contactText() const; + const QString questionsUrl() const { return "https://forum.cogsci.nl/index.php?p=/categories/jasp-bayesfactor"; } public slots: void setImageBackgroundHandler(QString value);