还是一堆bug的状态
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
#include "Base_Table_Data.h"
|
||||
#include "Table_View.h"
|
||||
#include "Widget/base/Generate_Mock_Data.h"
|
||||
namespace Psc {
|
||||
#include "third_party/Renderive/Widget/base/Generate_Mock_Data.h"
|
||||
namespace Flex_Qt {
|
||||
Base_Table_Data::Base_Table_Data() {
|
||||
parent = this;
|
||||
}
|
||||
Table_Paint_Data::Table_Paint_Data(QIcon ic, QString t) {
|
||||
renderive::Range r{155, 255};
|
||||
QColor random_color(renderive::get_data(r), renderive::get_data(r), renderive::get_data(r));
|
||||
Range r{155, 255};
|
||||
QColor random_color(get_data(r), get_data(r), get_data(r));
|
||||
background_color = random_color;
|
||||
icon = Icon2(ic);
|
||||
text.text = t;
|
||||
@@ -15,8 +15,8 @@ Table_Paint_Data::Table_Paint_Data(QIcon ic, QString t) {
|
||||
layout.items.push_back(&text);
|
||||
}
|
||||
Table_Paint_Data::Table_Paint_Data(QString t) {
|
||||
renderive::Range r{155, 255};
|
||||
QColor random_color(renderive::get_data(r), renderive::get_data(r), renderive::get_data(r));
|
||||
Range r{155, 255};
|
||||
QColor random_color(get_data(r), get_data(r), get_data(r));
|
||||
background_color = random_color;
|
||||
text.text = t;
|
||||
layout.items.push_back(&text);
|
||||
@@ -40,7 +40,7 @@ void Widget_Data::update(bool show, Table_View* view, QPainter* painter, QRect r
|
||||
auto tl = rect.topLeft() - view->get_view_rect().topLeft();
|
||||
auto br = tl + QPoint(rect.width(), rect.height());
|
||||
QRect r(tl, br);
|
||||
// qDebug() << r << "\n";
|
||||
// std::cout << r << "\n";
|
||||
if (show) {
|
||||
widget->setParent(view->container);
|
||||
widget->show();
|
||||
@@ -53,4 +53,4 @@ void Widget_Data::update(bool show, Table_View* view, QPainter* painter, QRect r
|
||||
widget->removeEventFilter(view);
|
||||
}
|
||||
}
|
||||
} // namespace Psc
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user