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