Compare commits

...

3 Commits

Author SHA1 Message Date
681a79a672 some fixes 2025-11-28 22:18:37 +03:00
88bcc7f2e9 OSM map tile provider change default to https 2025-10-08 16:56:01 +03:00
04d9cf6edf .clang-format 2025-09-21 21:08:26 +03:00
4 changed files with 6 additions and 3 deletions

View File

@@ -135,7 +135,7 @@ JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: false KeepEmptyLinesAtTheStartOfBlocks: false
LambdaBodyIndentation: Signature LambdaBodyIndentation: Signature
MacroBlockBegin: "PRIVATE_DEFINITION_START|STATIC_INITIALIZER_BEGIN" MacroBlockBegin: "PRIVATE_DEFINITION_START|STATIC_INITIALIZER_BEGIN"
MacroBlockEnd: "PRIVATE_DEFINITION_END|PRIVATE_DEFINITION_FINISH|STATIC_INITIALIZER_END" MacroBlockEnd: "PRIVATE_DEFINITION_END|PRIVATE_DEFINITION_END_NO_INITIALIZE|STATIC_INITIALIZER_END"
MaxEmptyLinesToKeep: 2 MaxEmptyLinesToKeep: 2
NamespaceIndentation: None NamespaceIndentation: None
ObjCBinPackProtocolList: Auto ObjCBinPackProtocolList: Auto

View File

@@ -182,6 +182,7 @@ void GraphicAnalysis::updateGraphic(int index) {
void GraphicAnalysis::updateAllGraphic() { void GraphicAnalysis::updateAllGraphic() {
for (int i = 0; i < graphicsCount(); ++i) for (int i = 0; i < graphicsCount(); ++i)
updateGraphic(i); updateGraphic(i);
updateGraphics();
} }
@@ -261,11 +262,13 @@ void GraphicAnalysis::addPoint(const QPointF & p, int graphic, bool update_) {
void GraphicAnalysis::setGraphicTransformFunction(std::function<QPolygonF(const QPolygonF &)> f) { void GraphicAnalysis::setGraphicTransformFunction(std::function<QPolygonF(const QPolygonF &)> f) {
tf_gr = f; tf_gr = f;
updateAllGraphic();
} }
void GraphicAnalysis::setSpectrumTransformFunction(std::function<QPolygonF(const QPolygonF &)> f) { void GraphicAnalysis::setSpectrumTransformFunction(std::function<QPolygonF(const QPolygonF &)> f) {
tf_fft = f; tf_fft = f;
updateAllGraphic();
} }

View File

@@ -8,7 +8,7 @@
MapViewTileProvider_OSM::MapViewTileProvider_OSM() { MapViewTileProvider_OSM::MapViewTileProvider_OSM() {
nam = new QNetworkAccessManager(); nam = new QNetworkAccessManager();
PIValueTree p; PIValueTree p;
p.addChild(PIValueTree("url", "http://tile.openstreetmap.org")); p.addChild(PIValueTree("url", "https://tile.openstreetmap.org"));
initParameters(p); initParameters(p);
} }

View File

@@ -608,7 +608,7 @@ void PIValueTreeEdit::applyVariantEdit(PIVariantEdit * ve, const PIValueTree & v
ve->setAttributes(attributesWithRO(vt.attributes())); ve->setAttributes(attributesWithRO(vt.attributes()));
ve->setValue(vt.value()); ve->setValue(vt.value());
ve->setFullEditMode(is_full_edit); ve->setFullEditMode(is_full_edit);
ve->setToolTip(PI2QString(vt.attribute(PIValueTree::Attribute::toolTip).toString())); ve->setToolTip(PIVariantEditorBase::vtTr(vt.attribute(PIValueTree::Attribute::toolTip).toString()));
} }