颜色修改红绿,修复帧错误卡顿bug
This commit is contained in:
6
main.cc
6
main.cc
@@ -15,7 +15,7 @@
|
||||
#include <creeper-qt/widget/main-window.hh>
|
||||
#include <creeper-qt/layout/stacked.hh>
|
||||
#include <qfontdatabase.h>
|
||||
|
||||
#include <iostream>
|
||||
using namespace creeper;
|
||||
|
||||
namespace lnpro = linear::pro;
|
||||
@@ -29,7 +29,7 @@ auto main(int argc, char *argv[]) -> int {
|
||||
app::pro::Attribute {Qt::AA_UseHighDpiPixmaps},
|
||||
app::pro::Complete {argc, argv},
|
||||
};
|
||||
|
||||
std::cout << "========begin========" << std::endl;
|
||||
auto stack_index = std::make_shared<MutableValue<int>>();
|
||||
stack_index->set_silent(0);
|
||||
|
||||
@@ -38,6 +38,8 @@ auto main(int argc, char *argv[]) -> int {
|
||||
auto nav_component_state = NavComponentState {
|
||||
.manager = manager,
|
||||
.switch_callback = [&](int index, const auto& name) {
|
||||
|
||||
|
||||
qDebug() << "switch_callback index: " << index;
|
||||
},
|
||||
.buttons_context = {
|
||||
|
||||
Reference in New Issue
Block a user