处理UI布局
This commit is contained in:
parent
27701be2e3
commit
e0193b223d
Binary file not shown.
@ -61,3 +61,37 @@
|
||||
20 248 7626194102965162 F:/SourceCode/ctai/build/ctai_autogen/mocs_compilation.cpp da3870ebc94b983e
|
||||
249 25955 7626194105249164 CMakeFiles/ctai.dir/src/ctai_history_textedit.cpp.obj 9afc647ddec3b160
|
||||
25955 37664 7626194362300410 F:/SourceCode/ctai/release/ctai.exe bbede5bc6dd5d74a
|
||||
25 332 7626195845381462 ctai_autogen/timestamp da3870ebc94b983e
|
||||
25 332 7626195845381462 ctai_autogen/mocs_compilation.cpp da3870ebc94b983e
|
||||
25 332 7626195845381462 F:/SourceCode/ctai/build/ctai_autogen/timestamp da3870ebc94b983e
|
||||
25 332 7626195845381462 F:/SourceCode/ctai/build/ctai_autogen/mocs_compilation.cpp da3870ebc94b983e
|
||||
333 24406 7626195848472234 CMakeFiles/ctai.dir/src/ctai_history_textedit.cpp.obj 9afc647ddec3b160
|
||||
24407 35470 7626196089201657 F:/SourceCode/ctai/release/ctai.exe bbede5bc6dd5d74a
|
||||
19 261 7626197710645491 ctai_autogen/timestamp da3870ebc94b983e
|
||||
19 261 7626197710645491 ctai_autogen/mocs_compilation.cpp da3870ebc94b983e
|
||||
19 261 7626197710645491 F:/SourceCode/ctai/build/ctai_autogen/timestamp da3870ebc94b983e
|
||||
19 261 7626197710645491 F:/SourceCode/ctai/build/ctai_autogen/mocs_compilation.cpp da3870ebc94b983e
|
||||
262 24690 7626197713057224 CMakeFiles/ctai.dir/src/ctai_history_widget.cpp.obj ff767b1a439cfa8f
|
||||
24690 36444 7626197957340072 F:/SourceCode/ctai/release/ctai.exe bbede5bc6dd5d74a
|
||||
27 261 7626200242100532 ctai_autogen/timestamp da3870ebc94b983e
|
||||
27 261 7626200242100532 ctai_autogen/mocs_compilation.cpp da3870ebc94b983e
|
||||
27 261 7626200242100532 F:/SourceCode/ctai/build/ctai_autogen/timestamp da3870ebc94b983e
|
||||
27 261 7626200242100532 F:/SourceCode/ctai/build/ctai_autogen/mocs_compilation.cpp da3870ebc94b983e
|
||||
262 28132 7626200244446836 CMakeFiles/ctai.dir/src/ctai_session_widget.cpp.obj 44a14cc778bf0b
|
||||
28132 38903 7626200523158962 F:/SourceCode/ctai/release/ctai.exe bbede5bc6dd5d74a
|
||||
28 295 7626200891527320 ctai_autogen/timestamp da3870ebc94b983e
|
||||
28 295 7626200891527320 ctai_autogen/mocs_compilation.cpp da3870ebc94b983e
|
||||
28 295 7626200891527320 F:/SourceCode/ctai/build/ctai_autogen/timestamp da3870ebc94b983e
|
||||
28 295 7626200891527320 F:/SourceCode/ctai/build/ctai_autogen/mocs_compilation.cpp da3870ebc94b983e
|
||||
295 27882 7626200894196636 CMakeFiles/ctai.dir/src/ctai_session_widget.cpp.obj 44a14cc778bf0b
|
||||
27882 38536 7626201170063288 F:/SourceCode/ctai/release/ctai.exe bbede5bc6dd5d74a
|
||||
20 303 7626201505143085 ctai_autogen/timestamp da3870ebc94b983e
|
||||
20 303 7626201505143085 ctai_autogen/mocs_compilation.cpp da3870ebc94b983e
|
||||
20 303 7626201505143085 F:/SourceCode/ctai/build/ctai_autogen/timestamp da3870ebc94b983e
|
||||
20 303 7626201505143085 F:/SourceCode/ctai/build/ctai_autogen/mocs_compilation.cpp da3870ebc94b983e
|
||||
29 255 7626201586709218 ctai_autogen/timestamp da3870ebc94b983e
|
||||
29 255 7626201586709218 ctai_autogen/mocs_compilation.cpp da3870ebc94b983e
|
||||
29 255 7626201586709218 F:/SourceCode/ctai/build/ctai_autogen/timestamp da3870ebc94b983e
|
||||
29 255 7626201586709218 F:/SourceCode/ctai/build/ctai_autogen/mocs_compilation.cpp da3870ebc94b983e
|
||||
255 31485 7626201588964278 CMakeFiles/ctai.dir/src/ctai_session_widget.cpp.obj 44a14cc778bf0b
|
||||
31486 43016 7626201901263707 F:/SourceCode/ctai/release/ctai.exe bbede5bc6dd5d74a
|
||||
|
||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
BIN
release/ctai.exe
BIN
release/ctai.exe
Binary file not shown.
@ -71,8 +71,6 @@ void ctai_history_textedit::init_layout(msg_type msg_type_mode)
|
||||
m_msg_history->setAcceptRichText(true);
|
||||
m_msg_history->setLineWrapMode(QTextEdit::WidgetWidth);
|
||||
m_msg_history->setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
|
||||
// 启用ViewportAttribute以优化渲染
|
||||
m_msg_history->viewport()->setAttribute(Qt::WA_OpaquePaintEvent);
|
||||
// 添加性能优化设置
|
||||
m_msg_history->setUndoRedoEnabled(false); // 禁用撤销重做
|
||||
m_msg_history->setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::TextSelectableByKeyboard);
|
||||
|
||||
@ -93,7 +93,7 @@ void ctai_history_widget::on_widget_height_changed()
|
||||
int row = currentRow();
|
||||
if (row >= 0 && row < rowCount()) {
|
||||
int currentHeight = rowHeight(row);
|
||||
setRowHeight(row, currentHeight + 32);
|
||||
setRowHeight(row, currentHeight + 100);
|
||||
resizeRowToContents(row);
|
||||
}
|
||||
scrollToBottom();
|
||||
|
||||
@ -74,7 +74,7 @@ void ctai_session_widget::init_layout()
|
||||
// 窗口主布局
|
||||
splitter->addWidget(m_table_widget);
|
||||
splitter->addWidget(m_info_widget);
|
||||
splitter->setSizes({200, 600});
|
||||
splitter->setSizes({80, 920});
|
||||
m_session_layout->addWidget(splitter);
|
||||
m_session_layout->setContentsMargins(0, 0, 0, 0);
|
||||
setLayout(m_session_layout);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user