mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-28 03:09:24 +08:00
搭建PVB架构,实现前端的基础布局、菜单、表格、图示等功能
This commit is contained in:
@@ -122,7 +122,7 @@ int MyWebHandler::insertUser(QVariantMap params)
|
||||
JSgetReqParam("phone", params, fields);
|
||||
JSgetReqParam("email", params, fields);
|
||||
JSgetReqParam("is_open", params, fields);
|
||||
XLOGD() << "[cppNative] insertUser: params=" << fields.to_str();
|
||||
XLOGD() << "[cppNative] insertUser: params=" << fields.toStr();
|
||||
|
||||
bool ret = DAO::insertUser(fields);
|
||||
|
||||
|
||||
@@ -114,10 +114,10 @@ void QUI::combox(QComboBox& comb, QWidget* parent, int x, int y, int w, int h, s
|
||||
}
|
||||
}
|
||||
|
||||
void QUI::lineedit(QLineEdit& line, QWidget* parent, int x, int y, int w, int h)
|
||||
void QUI::lineedit(QLineEdit& lineEdit, QWidget* parent, int x, int y, int w, int h)
|
||||
{
|
||||
line.setParent(parent);
|
||||
line.setGeometry(x, y, w, h);
|
||||
lineEdit.setParent(parent);
|
||||
lineEdit.setGeometry(x, y, w, h);
|
||||
}
|
||||
|
||||
void QUI::setBackground(QWidget* w, std::string name, QColor color, std::string border)
|
||||
|
||||
@@ -56,7 +56,7 @@ public:
|
||||
|
||||
static void combox(QComboBox& comb, QWidget* parent, int x, int y, int w, int h, std::vector<std::string> items, std::string v="");
|
||||
|
||||
static void lineedit(QLineEdit& line, QWidget* parent, int x, int y, int w, int h);
|
||||
static void lineedit(QLineEdit& lineEdit, QWidget* parent, int x, int y, int w, int h);
|
||||
|
||||
static void setBackground(QWidget* w, std::string name, QColor color=QColor(29, 54, 102), std::string border="border-radius:5px;");
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user