remove all unneeded module listed from Niklas
This commit is contained in:
1 parent
be912de9d6
commit
92ad7d4686
895 files changed
-327561
No files matched your search
@@ -1,30 +0,0 @@
|
||||
#include "mainwindow.h"
|
||||
#include "ui_mainwindow.h"
|
||||
#include "content.h"
|
||||
|
||||
MainWindow::MainWindow(int lineCount, int charCount, int height, QWidget *parent)
|
||||
: QMainWindow(parent)
|
||||
, m_ui(new Ui::MainWindow)
|
||||
{
|
||||
m_ui->setupUi(this);
|
||||
|
||||
m_ui->sbLineCount->setValue(lineCount);
|
||||
m_ui->sbCharCount->setValue(charCount);
|
||||
m_ui->sbHeight->setValue(height);
|
||||
|
||||
Content *content = new Content(this);
|
||||
content->setCharCountAndHeight(charCount, height);
|
||||
content->setLineCount(lineCount);
|
||||
|
||||
m_ui->scrollArea->setWidget(content);
|
||||
|
||||
connect(m_ui->sbLineCount, QOverload<int>::of(&QSpinBox::valueChanged), content, &Content::setLineCount);
|
||||
connect(m_ui->sbCharCount, QOverload<int>::of(&QSpinBox::valueChanged), content, &Content::setCharCount);
|
||||
connect(m_ui->sbHeight, QOverload<int>::of(&QSpinBox::valueChanged), content, &Content::setHeight);
|
||||
connect(m_ui->pbClose, &QPushButton::clicked, this, &MainWindow::close);
|
||||
}
|
||||
|
||||
MainWindow::~MainWindow()
|
||||
{
|
||||
delete m_ui;
|
||||
}
|
||||
Reference in new issue
Block a user