mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 20:50:34 +01:00
Revert r5449 and disable r5452 momentary : Load time from elements is
very slow git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5461 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -417,7 +417,7 @@ static QAction *createCheckableAction(const QIcon &icon, const QString &text,
|
||||
QObject *receiver, const char *slot,
|
||||
QObject *parent = nullptr)
|
||||
{
|
||||
auto *result = new QAction(parent);
|
||||
QAction *result = new QAction(parent);
|
||||
result->setIcon(icon);
|
||||
result->setText(text);
|
||||
result->setCheckable(true);
|
||||
@@ -471,7 +471,7 @@ RichTextEditorToolBar::RichTextEditorToolBar(RichTextEditor *editor,
|
||||
|
||||
// Left, center, right and justified alignment buttons
|
||||
|
||||
auto *alignment_group = new QActionGroup(this);
|
||||
QActionGroup *alignment_group = new QActionGroup(this);
|
||||
connect(alignment_group, SIGNAL(triggered(QAction*)),
|
||||
SLOT(alignmentActionTriggered(QAction*)));
|
||||
|
||||
@@ -767,12 +767,12 @@ RichTextEditorDialog::RichTextEditorDialog(QWidget *parent) :
|
||||
tool_bar->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Minimum);
|
||||
|
||||
QWidget *rich_edit = new QWidget;
|
||||
auto *rich_edit_layout = new QVBoxLayout(rich_edit);
|
||||
QVBoxLayout *rich_edit_layout = new QVBoxLayout(rich_edit);
|
||||
rich_edit_layout->addWidget(tool_bar);
|
||||
rich_edit_layout->addWidget(m_editor);
|
||||
|
||||
QWidget *plain_edit = new QWidget;
|
||||
auto *plain_edit_layout = new QVBoxLayout(plain_edit);
|
||||
QVBoxLayout *plain_edit_layout = new QVBoxLayout(plain_edit);
|
||||
plain_edit_layout->addWidget(m_text_edit);
|
||||
|
||||
m_tab_widget->setTabPosition(QTabWidget::South);
|
||||
@@ -789,7 +789,7 @@ RichTextEditorDialog::RichTextEditorDialog(QWidget *parent) :
|
||||
connect(buttonBox, SIGNAL(accepted()), this, SLOT(on_buttonBox_accepted()));
|
||||
connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject()));
|
||||
|
||||
auto *layout = new QVBoxLayout(this);
|
||||
QVBoxLayout *layout = new QVBoxLayout(this);
|
||||
layout->addWidget(m_tab_widget);
|
||||
layout->addWidget(buttonBox);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user