You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
whellvalue/tpvs17/tpMain/lpSystemConfigUI.cpp

43 lines
1.2 KiB
C++

#include "lpSystemConfigUI.h"
#include "lpGlobalConfig.h"
lpSystemConfigUI::lpSystemConfigUI(QWidget *parent)
: QWidget(parent)
{
ui.setupUi(this);
connect(ui.m_pbApply, SIGNAL(clicked()), this, SLOT(onButtonClicked()));
connect(ui.m_pbExit, SIGNAL(clicked()), this, SLOT(onButtonClicked()));
connect(ui.m_pbSetPath, SIGNAL(clicked()), this, SLOT(onButtonClicked()));
}
lpSystemConfigUI::~lpSystemConfigUI()
{
}
Q_SLOT void lpSystemConfigUI::onButtonClicked()
{
QString strObj = sender()->objectName();
if (strObj == "m_pbApply") {
}
else if (strObj == "m_pbExit") {
}
else if (strObj == "m_pbSetPath") {
}
}
void lpSystemConfigUI::showEvent(QShowEvent *event)
{
ui.checkBox_saveNGCutImg->setChecked(lpGlobalConfig::instance()->bSaveCutNGImg);//ʶ±ð
ui.checkBox_saveOKCutImg->setChecked(lpGlobalConfig::instance()->bSaveCutOKImg);//ʶ±ð
ui.checkBox_saveNGSrcImg->setChecked(lpGlobalConfig::instance()->bSaveSrcNGImg);//ʶ±ð
ui.checkBox_saveOKSrcImg->setChecked(lpGlobalConfig::instance()->bSaveSrcOKImg);//ʶ±ð
ui.checkBox_saveValue_OKSrcImg->setChecked(lpGlobalConfig::instance()->bSaveSrcOKImg_value);//¶¨Î»
ui.checkBox_saveValue_NGSrcImg->setChecked(lpGlobalConfig::instance()->bSaveSrcNGImg_value);//¶¨Î»
}