FIX: finish time not display

Jira: STUDIO-8473

Change-Id: I3a1ea44cf373e8cec48444a5885624f597a32a6d
This commit is contained in:
maosheng.wei 2024-11-15 14:26:57 +08:00 committed by Lane.Wei
parent 95f24a906e
commit e060659545

View File

@ -387,6 +387,7 @@ void PrintingTaskPanel::create_panel(wxWindow* parent)
penel_text->Layout();
m_staticText_finish_time = new wxStaticText(penel_finish_time, wxID_ANY, _L("Finish Time: N/A"));
m_staticText_finish_time->Wrap(-1);
m_staticText_finish_time->SetFont(wxFont(12, wxFONTFAMILY_DEFAULT, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_NORMAL, false, wxT("HarmonyOS Sans SC")));
m_staticText_finish_time->SetForegroundColour(wxColour(146, 146, 146));
m_staticText_finish_time->SetToolTip(_L("The estimated printing time for \nmulti-color models may be inaccurate."));
@ -396,7 +397,7 @@ void PrintingTaskPanel::create_panel(wxWindow* parent)
bSizer_finish_time->Add(0, 0, 0, wxLEFT, FromDIP(20));
bSizer_finish_time->Add(m_staticText_finish_time, 0, wxALIGN_CENTER | wxALL, 0);
bSizer_finish_time->Add(m_staticText_finish_day, 0,wxLEFT | wxRIGHT , FromDIP(10));
bSizer_finish_time->Add(0, 0, 0, wxLEFT, FromDIP(20));
//bSizer_finish_time->Add(0, 0, 0, wxLEFT, FromDIP(20));
bSizer_finish_time->Add(panel_button_block, 0, wxALIGN_CENTER | wxALL, 0);
penel_finish_time->SetMaxSize(wxSize(FromDIP(600), -1));
penel_finish_time->SetSizer(bSizer_finish_time);
@ -414,7 +415,7 @@ void PrintingTaskPanel::create_panel(wxWindow* parent)
bSizer_subtask_info->Add(m_printing_stage_value, 0, wxEXPAND | wxTOP, FromDIP(5));
bSizer_subtask_info->Add(penel_bottons, 0, wxEXPAND | wxTOP, FromDIP(10));
bSizer_subtask_info->Add(m_panel_progress, 0, wxEXPAND|wxRIGHT, FromDIP(25));
bSizer_subtask_info->Add(penel_finish_time, 0, wxEXPAND, 0);
bSizer_subtask_info->Add(penel_finish_time, 0, wxEXPAND, FromDIP(10));
m_printing_sizer = new wxBoxSizer(wxHORIZONTAL);
m_printing_sizer->SetMinSize(wxSize(PAGE_MIN_WIDTH, -1));