Upgrade to Qt 6.10.3, refactor AppState for LibraryModel integration, add ChunkMeasurer tests, and update CI/docker configurations.

This commit is contained in:
Agel committed 2026-04-03 13:55:28 +02:00
1 parent 0303107fa2
commit a31b20534a
53 files changed
+2095 -880

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
#ifndef CHUNKMEASURER_H
#define CHUNKMEASURER_H
#include "IChunkMeasurer.h"
#include "IImageLoader.h"
#include <memory>
class ChunkMeasurer : public IChunkMeasurer {
public:
explicit ChunkMeasurer(std::unique_ptr<IImageLoader> imageLoader = nullptr,
int fontSize = 16, qreal lineSpacing = 1.6);
QVector<int> measure(const QStringList &chunks, qreal textWidth) override;
private:
std::unique_ptr<IImageLoader> m_imageLoader;
int m_fontSize;
qreal m_lineSpacing;
};
#endif