fix: layout issue (progress bar not horizontally centralized) in qt6.4.5

This commit is contained in:
2026-01-15 05:27:57 +01:00
parent d7843bc37e
commit c952ce17e2
4 changed files with 12 additions and 14 deletions
+5 -3
View File
@@ -1,14 +1,16 @@
/*
* @Author: Uyanide pywang0608@foxmail.com
* @Date: 2025-08-07 00:32:25
* @LastEditTime: 2025-08-07 21:14:09
* @LastEditTime: 2026-01-15 05:23:55
* @Description: LoadingIndicator implementation.
*/
#include "loading_indicator.h"
LoadingIndicator::LoadingIndicator(QWidget* parent) : QWidget(parent),
ui(new Ui::LoadingIndicator) {
LoadingIndicator::LoadingIndicator(int barMinimumWidth, QWidget* parent)
: QWidget(parent),
ui(new Ui::LoadingIndicator) {
ui->setupUi(this);
ui->progressBar->setMinimumWidth(barMinimumWidth);
}
LoadingIndicator::~LoadingIndicator() {