自定义内存分配池
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user