2
0
forked from Ivasoft/DSView

update build script

This commit is contained in:
dreamsourcelabTAI
2022-10-17 09:06:02 +08:00
parent 1379117213
commit 7bf81734d4
7 changed files with 15 additions and 12 deletions

View File

@@ -663,7 +663,13 @@ namespace pv
else if (info->datatype == SR_T_FLOAT)
_device_agent->set_config(NULL, NULL, info->key, g_variant_new_double(sessionObj[info->name].toDouble()));
else if (info->datatype == SR_T_CHAR)
_device_agent->set_config(NULL, NULL, info->key, g_variant_new_string(sessionObj[info->name].toString().toUtf8()));
{
QString v = sessionObj[info->name].toString();
if (info->key == SR_CONF_OPERATION_MODE){
}
_device_agent->set_config(NULL, NULL, info->key, g_variant_new_string(v.toUtf8()));
}
}
}

View File

@@ -79,7 +79,7 @@ DeviceOptions::DeviceOptions()
label_char = info->label_cn;
g_variant_unref(gvar_tmp);
}
const QString label(label_char);
QString label(label_char);
switch(key)
{

View File

@@ -61,7 +61,7 @@ static const struct lang_page_item lange_page_keys[] =
{STR_PAGE_MAIN, "main.json"},
{STR_PAGE_TOOLBAR, "toolbar.json"},
{STR_PAGE_MSG, "msg.json"},
{STR_PAGE_DEVICE, "device.json"},
{STR_PAGE_DSL, "DSL.json"},
};
class LangResource

View File

@@ -24,8 +24,8 @@
#define STR_PAGE_MAIN 1
#define STR_PAGE_MSG 2
#define STR_PAGE_DEVICE 3
#define STR_PAGE_TOOLBAR 4
#define STR_PAGE_TOOLBAR 3
#define STR_PAGE_DSL 100
#define IDS_TOOLBAR_MODE
#define IDS_TOOLBAR_START