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:
scorpio810
2018-07-30 15:24:29 +00:00
parent 52e941f0fc
commit 30bee81432
101 changed files with 514 additions and 514 deletions

View File

@@ -348,7 +348,7 @@ void ProjectView::addNewDiagram() {
if (m_project -> isReadOnly()) return;
Diagram *new_diagram = m_project -> addNewDiagram();
auto *new_diagram_view = new DiagramView(new_diagram);
DiagramView *new_diagram_view = new DiagramView(new_diagram);
addDiagram(new_diagram_view);
if (m_project -> diagrams().size() % 58 == 1 && m_project -> getFolioSheetsQuantity() != 0)
@@ -365,7 +365,7 @@ void ProjectView::addNewDiagramFolioList() {
int i = 1; //< Each new diagram is added to the end of the project.
//< We use @i to move the folio list at second position in the project
foreach (Diagram *d, m_project -> addNewDiagramFolioList()) {
auto *new_diagram_view = new DiagramView(d);
DiagramView *new_diagram_view = new DiagramView(d);
addDiagram(new_diagram_view);
showDiagram(new_diagram_view);
m_tab->tabBar()->moveTab(diagram_views().size()-1, i);
@@ -751,7 +751,7 @@ int ProjectView::cleanProject() {
#endif
clean_dialog.setWindowTitle(tr("Nettoyer le projet", "window title"));
auto *clean_dialog_layout = new QVBoxLayout();
QVBoxLayout *clean_dialog_layout = new QVBoxLayout();
clean_dialog_layout -> addWidget(clean_tbt);
clean_dialog_layout -> addWidget(clean_elements);
clean_dialog_layout -> addWidget(clean_categories);
@@ -807,7 +807,7 @@ void ProjectView::initWidgets() {
m_tab = new QTabWidget(this);
m_tab -> setMovable(true);
auto *add_new_diagram_button = new QToolButton;
QToolButton *add_new_diagram_button = new QToolButton;
add_new_diagram_button -> setDefaultAction(add_new_diagram_);
add_new_diagram_button -> setAutoRaise(true);
m_tab -> setCornerWidget(add_new_diagram_button, Qt::TopRightCorner);
@@ -824,7 +824,7 @@ void ProjectView::initWidgets() {
Initialize layout for this widget.
*/
void ProjectView::initLayout() {
auto *fallback_widget_layout_ = new QVBoxLayout(fallback_widget_);
QVBoxLayout *fallback_widget_layout_ = new QVBoxLayout(fallback_widget_);
fallback_widget_layout_ -> addWidget(fallback_label_);
layout_ = new QVBoxLayout(this);
@@ -868,7 +868,7 @@ void ProjectView::loadDiagrams()
dialog->setProgressBar(dialog->progressBarValue()+1);
}
auto *sv = new DiagramView(diagram);
DiagramView *sv = new DiagramView(diagram);
addDiagram(sv);
}