更新遥控器画面
This commit is contained in:
@@ -22,11 +22,10 @@ P12_NetworkPage::P12_NetworkPage(QWidget *parent) :
|
||||
ui->setupUi(this);
|
||||
WinInit();
|
||||
ui->MainWidget->setCurrentIndex(0);
|
||||
gPageIndexStr = "P12.00";
|
||||
mCsvConfig[0].FileName = "./ProgramConfig/UI_IO扩展页面1_配置.csv";
|
||||
mCsvConfig[1].FileName = "./ProgramConfig/UI_IO扩展页面2_配置.csv";
|
||||
mCsvConfig[2].FileName = "./ProgramConfig/UI_IO扩展页面3_配置.csv";
|
||||
|
||||
gPageIndexStr12 = "P12.00";
|
||||
TableViewInit(ui->TableWidget_PLC_1,&mCsvConfig[0]);
|
||||
TableViewInit(ui->TableWidget_PLC_2,&mCsvConfig[1]);
|
||||
TableViewInit(ui->TableWidget_PLC_3,&mCsvConfig[2]);
|
||||
@@ -171,7 +170,7 @@ void P12_NetworkPage::UIRefresh_Page8(){}
|
||||
void P12_NetworkPage::UIRefresh_Page9(){}
|
||||
void P12_NetworkPage::UIRefreshTimeOut()
|
||||
{
|
||||
if(this->isHidden())
|
||||
if(!gPageIndexStr.contains("P12"))
|
||||
return;
|
||||
switch (ui->MainWidget->currentIndex()) {
|
||||
case 0:UIRefresh_Page0();break;
|
||||
@@ -206,6 +205,7 @@ void P12_NetworkPage::on_MainWidget_currentChanged(int arg1)
|
||||
void P12_NetworkPage::slideToIndex(int newIndex, QString PageName)
|
||||
{
|
||||
gPageIndexStr = PageName;
|
||||
gPageIndexStr12 = PageName;
|
||||
int direction =0;
|
||||
uint8_t OldIndex = ui->MainWidget->currentIndex();
|
||||
if (newIndex == OldIndex) return;
|
||||
|
||||
Reference in New Issue
Block a user