mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Fix indentation code
This commit is contained in:
@@ -50,7 +50,7 @@ class PolygonEditor : public ElementItemEditor
|
||||
void on_m_add_point_action_triggered();
|
||||
void on_m_remove_point_action_triggered();
|
||||
|
||||
private:
|
||||
private:
|
||||
/*!
|
||||
* \brief setUpChangeConnections
|
||||
* Setup the connection from the line(s) to the widget, to update it when the line(s) are changed (moved ...)
|
||||
@@ -58,7 +58,7 @@ private:
|
||||
void setUpChangeConnections();
|
||||
void disconnectChangeConnections();
|
||||
|
||||
private:
|
||||
private:
|
||||
Ui::PolygonEditor *ui;
|
||||
StyleEditor *m_style = nullptr;
|
||||
PartPolygon *m_part = nullptr;
|
||||
|
||||
@@ -179,25 +179,25 @@ namespace qdesigner_internal {
|
||||
class RichTextEditor : public QTextEdit
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
public:
|
||||
RichTextEditor(QWidget *parent = nullptr);
|
||||
void setDefaultFont(QFont font);
|
||||
|
||||
QToolBar *createToolBar(QWidget *parent = nullptr);
|
||||
bool simplifyRichText() const { return m_simplifyRichText; }
|
||||
|
||||
public slots:
|
||||
public slots:
|
||||
void setFontBold(bool b);
|
||||
void setFontPointSize(double);
|
||||
void setText(const QString &text);
|
||||
void setSimplifyRichText(bool v);
|
||||
QString text(Qt::TextFormat format) const;
|
||||
|
||||
signals:
|
||||
signals:
|
||||
void stateChanged();
|
||||
void simplifyRichTextChanged(bool);
|
||||
|
||||
private:
|
||||
private:
|
||||
bool m_simplifyRichText;
|
||||
};
|
||||
|
||||
@@ -205,16 +205,16 @@ class AddLinkDialog : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
public:
|
||||
AddLinkDialog(RichTextEditor *editor, QWidget *parent = nullptr);
|
||||
~AddLinkDialog() override;
|
||||
|
||||
int showDialog();
|
||||
|
||||
public slots:
|
||||
public slots:
|
||||
void accept() override;
|
||||
|
||||
private:
|
||||
private:
|
||||
RichTextEditor *m_editor;
|
||||
Ui::AddLinkDialog *m_ui;
|
||||
};
|
||||
@@ -274,14 +274,14 @@ class HtmlTextEdit : public QTextEdit
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
public:
|
||||
HtmlTextEdit(QWidget *parent = nullptr)
|
||||
: QTextEdit(parent)
|
||||
{}
|
||||
|
||||
void contextMenuEvent(QContextMenuEvent *event) override;
|
||||
|
||||
private slots:
|
||||
private slots:
|
||||
void actionTriggered(QAction *action);
|
||||
};
|
||||
|
||||
@@ -327,19 +327,19 @@ class ColorAction : public QAction
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
public:
|
||||
ColorAction(QObject *parent);
|
||||
|
||||
const QColor& color() const { return m_color; }
|
||||
void setColor(const QColor &color);
|
||||
|
||||
signals:
|
||||
signals:
|
||||
void colorChanged(const QColor &color);
|
||||
|
||||
private slots:
|
||||
private slots:
|
||||
void chooseColor();
|
||||
|
||||
private:
|
||||
private:
|
||||
QColor m_color;
|
||||
};
|
||||
|
||||
@@ -377,14 +377,14 @@ void ColorAction::chooseColor()
|
||||
class RichTextEditorToolBar : public QToolBar
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
public:
|
||||
RichTextEditorToolBar(RichTextEditor *editor,
|
||||
QWidget *parent = nullptr);
|
||||
|
||||
public slots:
|
||||
public slots:
|
||||
void updateActions();
|
||||
|
||||
private slots:
|
||||
private slots:
|
||||
void alignmentActionTriggered(QAction *action);
|
||||
void sizeInputActivated(const QString &size);
|
||||
void colorChanged(const QColor &color);
|
||||
@@ -394,7 +394,7 @@ private slots:
|
||||
void insertImage();
|
||||
|
||||
|
||||
private:
|
||||
private:
|
||||
QAction *m_bold_action;
|
||||
QAction *m_italic_action;
|
||||
QAction *m_underline_action;
|
||||
|
||||
@@ -131,9 +131,9 @@ int BOMExportDialog::exec()
|
||||
{
|
||||
//save in csv file
|
||||
QString file_name = tr("nomenclature_") + QString(m_project ->title() + ".csv");
|
||||
// if (!file_name.endsWith(".csv")) {
|
||||
// file_name += ".csv";
|
||||
// }
|
||||
// if (!file_name.endsWith(".csv")) {
|
||||
// file_name += ".csv";
|
||||
// }
|
||||
QString file_path = QFileDialog::getSaveFileName(this, tr("Enregister sous... "), file_name, tr("Fichiers csv (*.csv)"));
|
||||
QFile file(file_path);
|
||||
if (!file_path.isEmpty())
|
||||
|
||||
Reference in New Issue
Block a user