Skip to content

Commit

Permalink
QT 6
Browse files Browse the repository at this point in the history
  • Loading branch information
Consti10 committed Feb 27, 2024
1 parent d8aede9 commit f669df1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions app/telemetry/tutil/geodesi_helper.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include "geodesi_helper.h"

extern "C" {
#include "lib/geographiclib-c-2.0/src/geodesic.h"
//#include "geodesic.h"
//#include "lib/geographiclib-c-2.0/src/geodesic.h"
#include "geodesic.h"
}

double distance_between(double lat1, double lon1, double lat2, double lon2){
Expand Down
9 changes: 3 additions & 6 deletions qml/ui/configpopup/connect/PaneConnectionMode.qml
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,6 @@ Rectangle{
TextField {
Layout.alignment: Qt.AlignCenter
id: textFieldip
// TODO QT 6
//validator: RegExpValidator {
// regExp: /^((?:[0-1]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])\.){0,3}(?:[0-1]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])$/
//}
validator: RegularExpressionValidator{
regularExpression: /^((?:[0-1]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])\.){0,3}(?:[0-1]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])$/
}
Expand All @@ -250,10 +246,11 @@ Rectangle{
Layout.alignment: Qt.AlignCenter
text: "SAVE"
onClicked: {
if(!_mavlinkTelemetry.change_manual_tcp_ip(textFieldip.text)){
const text=textFieldip.text;
if(!_mavlinkTelemetry.change_manual_tcp_ip(text)){
_qopenhd.show_toast("Please enter a valid ip");
}else{
settings.qopenhd_mavlink_connection_manual_tcp_ip=textFieldip.text
settings.qopenhd_mavlink_connection_manual_tcp_ip=text;
}
}
}
Expand Down

0 comments on commit f669df1

Please sign in to comment.