1 Star 1 Fork 5

Rocky/OctoBTT

forked from 郑永生/OctoBTT 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
mylineedit.cpp 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
郑永生 提交于 2020-05-21 11:43 . Updata
#include "mylineedit.h"
#include <QDebug>
MyLineEdit::MyLineEdit(QWidget *parent):QLineEdit(parent)
{
FUI = (QWidget*)parent;//((MainWindow*)FUI)->octonetwork.SendGCode(_GCode_Setting);
// connect(inputdialog,&InputDialog::closedialog,this,[=](QString value,bool SettingMark){
// FUI->show();
// if(SettingMark)
// {
// this->setText(value);
// }
//// inputdialog->close();
//// this->show();
// });
}
//MyLineEdit::~MyLineEdit()
//{
//// inputdialog->~InputDialog();
//// delete this;
// this->close();
//}
void MyLineEdit::mousePressEvent(QMouseEvent *event)
{
Q_UNUSED(event);
// inputdialog->setvalue("Please Input Commands","",this->text());
InputDialog *inputdialog = new InputDialog(FUI);
connect(inputdialog,&InputDialog::closedialog,this,[=](QString value,bool SettingMark){
if(SettingMark)
{
this->setText(value);
}
FUI->show();
delete sender();
});
inputdialog->setvalue("Please Input Commands","",this->text());
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
QML
1
https://gitee.com/ockyHost/OctoBTT.git
git@gitee.com:ockyHost/OctoBTT.git
ockyHost
OctoBTT
OctoBTT
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385