0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-11-25 00:18:06 +03:00

Define code style and format all source file using clang-format-14

except those placed in 3rdparty directories.
This commit is contained in:
Андрей Лухнов
2024-09-04 17:31:16 +03:00
parent c5b9ac265d
commit 0fca7169d3
285 changed files with 19120 additions and 17875 deletions

View File

@@ -1,19 +1,15 @@
#include "SettingDialog.h"
#include "ui_SettingDialog.h"
#include <QPrinterInfo>
SettingDialog::SettingDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::SettingDialog)
SettingDialog::SettingDialog(QWidget* parent): QDialog(parent), ui(new Ui::SettingDialog)
{
ui->setupUi(this);
initPrinters();
}
SettingDialog::~SettingDialog()
{
delete ui;
}
SettingDialog::~SettingDialog() { delete ui; }
void SettingDialog::initPrinters()
{
@@ -23,7 +19,8 @@ void SettingDialog::initPrinters()
}
}
void SettingDialog::setCertPrinterName(QString printerName){
void SettingDialog::setCertPrinterName(QString printerName)
{
ui->certPrinter->setCurrentIndex(ui->certPrinter->findText(printerName));
}
@@ -33,21 +30,10 @@ void SettingDialog::setOtherPrinterName(QString printerName)
ui->otherPrinter->setCurrentIndex(ui->otherPrinter->findText(printerName));
}
QString SettingDialog::certPrinterName(){
return ui->certPrinter->currentText();
}
QString SettingDialog::certPrinterName() { return ui->certPrinter->currentText(); }
QString SettingDialog::othenPrinterName()
{
return ui->otherPrinter->currentText();
}
QString SettingDialog::othenPrinterName() { return ui->otherPrinter->currentText(); }
bool SettingDialog::deleteLastFile(){
return ui->checkBox->isChecked();
}
void SettingDialog::setDeleteLastFile(bool value)
{
ui->checkBox->setChecked(value);
}
bool SettingDialog::deleteLastFile() { return ui->checkBox->isChecked(); }
void SettingDialog::setDeleteLastFile(bool value) { ui->checkBox->setChecked(value); }