📄 pwdprompt.ui.h
字号:
/****************************************************************************** ui.h extension file, included from the uic-generated form implementation.**** If you want to add, delete, or rename functions or slots, use** Qt Designer to update this file, preserving your code.**** You should not define a constructor or destructor in this file.** Instead, write your code in functions called init() and destroy().** These will automatically be called by the form's constructor and** destructor.*****************************************************************************/void pwdPrompt::setDisplay(char *data, int len){ char *eapMeth = NULL; char *chalTxt = NULL; // The format of the data will be [EAP method][\0](Challenge Text)(\0) eapMeth = data; if ((strlen(eapMeth)+1) != (unsigned int)len) { chalTxt = (char *)&data[strlen(eapMeth)+2]; } eapMethod->setText(QString(eapMeth)); challengeTxt->setText(QString(chalTxt));}void pwdPrompt::setPwd(char **pwd){ mypwd = pwd;}void pwdPrompt::pwdOkay(){ printf("Password is %s\n", pwdEdit->text().ascii()); (*mypwd) = strdup(pwdEdit->text().ascii()); printf("Closing\n"); close(); return;}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -