自定义内存分配池

This commit is contained in:
2026-07-29 18:08:57 +08:00
parent 5a3511bb58
commit d943d82554
122 changed files with 3602 additions and 1215 deletions
@@ -21,11 +21,11 @@ Frame_Less_Widget::Frame_Less_Widget(QWidget* parent) : QWidget(parent) {
bottom_margin = 16;
right_margin = 16;
left_margin = 16;
shapes.append({Qt::SizeFDiagCursor, Qt::SizeVerCursor, Qt::SizeBDiagCursor,
Qt::SizeHorCursor, Qt::ArrowCursor, Qt::SizeHorCursor,
Qt::SizeBDiagCursor, Qt::SizeVerCursor, Qt::SizeFDiagCursor,
Qt::ArrowCursor});
change_sizes.append({[this]() {
shapes = {Qt::SizeFDiagCursor, Qt::SizeVerCursor, Qt::SizeBDiagCursor,
Qt::SizeHorCursor, Qt::ArrowCursor, Qt::SizeHorCursor,
Qt::SizeBDiagCursor, Qt::SizeVerCursor, Qt::SizeFDiagCursor,
Qt::ArrowCursor};
change_sizes = {[this]() {
// R11
setGeometry(start_x + dx, start_y + dy, qMax(start_w - dx, get_min_width()), qMax(start_h - dy, get_min_height()));
},
@@ -62,7 +62,7 @@ Frame_Less_Widget::Frame_Less_Widget(QWidget* parent) : QWidget(parent) {
},
[]() {
// null
}});
}};
}
int Frame_Less_Widget::get_min_width() {
return 0;