Initial commit

This commit is contained in:
torsten committed 2026-08-13 18:33:10 +02:00
commit b7d90b9afe
16245 files changed
+3396666

No files matched your search

+44
View File
@@ -0,0 +1,44 @@
#pragma once
#include <QWidget>
#include <QVector>
class QVBoxLayout;
class FullLine;
namespace Ui {
class Content;
}
class Content : public QWidget
{
Q_OBJECT
public:
explicit Content(QWidget *parent = nullptr);
~Content();
int charCount() const;
int height() const;
public slots:
void setLineCount(int lineCount);
void setCharCount(int charCount);
void setHeight(int height);
void setCharCountAndHeight(int charCount, int height);
private:
void init();
void newLine();
void deleteLastLine();
Ui::Content *m_ui = nullptr;
int m_lineCount = 0;
int m_charCount = 0;
int m_height = 0;
QVBoxLayout *m_layout = nullptr;
QVector<FullLine*> m_lines;
};