实现策略配置功能

This commit is contained in:
lixiaoyuan
2025-08-28 18:42:37 +08:00
parent 8f6c83147b
commit dda905cda0
47 changed files with 1311 additions and 863 deletions

View File

@@ -114,10 +114,10 @@ void QUI::combox(QComboBox& comb, QWidget* parent, int x, int y, int w, int h, s
}
}
void QUI::lineedit(QLineEdit& lineEdit, QWidget* parent, int x, int y, int w, int h)
void QUI::lineedit(QLineEdit& edit, QWidget* parent, int x, int y, int w, int h)
{
lineEdit.setParent(parent);
lineEdit.setGeometry(x, y, w, h);
edit.setParent(parent);
edit.setGeometry(x, y, w, h);
}
void QUI::setBackground(QWidget* w, std::string name, QColor color, std::string border)
@@ -742,7 +742,7 @@ void TableBase::setOperate(std::vector<std::string> vecOperate, std::function<vo
}
}
void TableBase::setRowData(int row, std::vector<std::string> vd)
void TableBase::setRow(int row, std::vector<std::string> vd)
{
int rowCount = widget_->rowCount();
if (row >= rowCount)

View File

@@ -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& lineEdit, QWidget* parent, int x, int y, int w, int h);
static void lineedit(QLineEdit& edit, 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;");
};
@@ -170,7 +170,7 @@ public:
void setOperate(std::vector<std::string> vecOperate, std::function<void(int, std::string)> cb);
void setRowData(int row, std::vector<std::string> vd);
void setRow(int row, std::vector<std::string> vd);
void clear();