频率统计图属性 yxzpdialog修改文件编码

This commit is contained in:
crqiqi77 2026-03-31 16:24:45 +08:00
parent 00ba45c4d9
commit 3685398d01
4 changed files with 17 additions and 8 deletions

View File

@ -2282,7 +2282,11 @@ void PropertyWidget::SlotPropertyChanged( QtProperty *pProperty, const QVariant
m_item->setFont(newFont);
}
}
else if(m_strCurrentProperty == PL_OBJECT_PROPERTY) // 频率统计图
{
CommonPropertyChanged(pProperty, variant);
changedPlObjectProperty(m_propertyData[pProperty], variant);
}
@ -4106,9 +4110,14 @@ void PropertyWidget::initPlObjectProperty(FormInfo *formInfo)
_CreateVariantPropertyItem("分类", "自定义2", formInfo->m_strAliasName, QVariant::String);
}
void PropertyWidget::changedPlObjectProperty(QString strProName, QVariant val)
void PropertyWidget::changedPlObjectProperty(QString strProperty, QVariant varVal)
{
if ("名称" == strProperty)
{
QFont newFont = varVal.value<QFont>();
m_formInfo->m_curveNameFont = newFont;
this->m_formInfo->repaint();
}
}
void PropertyWidget::changedDepthProperty(QString strProperty, QVariant varVal)

View File

@ -52,7 +52,7 @@
#define CORE_PHYSICS_ITEM_PROPERTY "CORE_PHYSICS_ITEM_PROPERTY" // 岩心分析item
#define Depth_Property "Depth_Property" // 深度
#define PL_OBJECT_PROPERTY "PL_OBJECT_PROPERTY" // 深度
#define PL_OBJECT_PROPERTY "PL_OBJECT_PROPERTY" // 频率统计图
#define SwallCore_Property "SwallCore_Property" //井壁取心
#define SwallCoreItem_Property "SwallCoreItem_Property" //井壁取心item

View File

@ -1,4 +1,4 @@
#include "YxzpDialog.h"
#include "YxzpDialog.h"
YxzpDialog::YxzpDialog(QWidget *parent)
: QDialog(parent)

View File

@ -1,4 +1,4 @@
#ifndef YXZPDIALOG_H
#ifndef YXZPDIALOG_H
#define YXZPDIALOG_H
// 岩心照片 自定义 dialog
#include <QDialog>
@ -8,10 +8,10 @@
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QFileDialog>
#include <QPixmap>
#pragma execution_character_set("utf-8")
class YxzpDialog : public QDialog
{
Q_OBJECT