From 0673264cdc167342acd2ae2cfdf1c802e4f7eeb2 Mon Sep 17 00:00:00 2001 From: Sanych Date: Fri, 15 Dec 2023 21:29:46 +0300 Subject: [PATCH] External variables priority --- limereport/databrowser/lrdatabrowser.cpp | 2 +- limereport/databrowser/lrdatabrowser.ui | 324 +++++++++++------------ 2 files changed, 163 insertions(+), 163 deletions(-) diff --git a/limereport/databrowser/lrdatabrowser.cpp b/limereport/databrowser/lrdatabrowser.cpp index b91605f..0ac9efb 100644 --- a/limereport/databrowser/lrdatabrowser.cpp +++ b/limereport/databrowser/lrdatabrowser.cpp @@ -198,9 +198,9 @@ void DataBrowser::updateVariablesTree() systemVariables->setIcon(0,QIcon(":/report/images/folder")); QTreeWidgetItem *externalVariables = new QTreeWidgetItem(QStringList(tr("External variables")),DataBrowserTree::Category); externalVariables->setIcon(0,QIcon(":/report/images/folder")); + ui->variablesTree->addTopLevelItem(externalVariables); ui->variablesTree->addTopLevelItem(reportVariables); ui->variablesTree->addTopLevelItem(systemVariables); - ui->variablesTree->addTopLevelItem(externalVariables); foreach(QString variableName,m_report->dataManager()->variableNames()){ QStringList values; diff --git a/limereport/databrowser/lrdatabrowser.ui b/limereport/databrowser/lrdatabrowser.ui index 2b60383..5d48986 100644 --- a/limereport/databrowser/lrdatabrowser.ui +++ b/limereport/databrowser/lrdatabrowser.ui @@ -35,8 +35,169 @@ QTabWidget::South - 0 + 1 + + + Variables + + + + 2 + + + 2 + + + 2 + + + 2 + + + + + 2 + + + + + Add new variable + + + ... + + + + :/databrowser/images/value_add:/databrowser/images/value_add + + + + 16 + 16 + + + + QToolButton::DelayedPopup + + + true + + + + + + + false + + + Edit variable + + + ... + + + + :/databrowser/images/value_edit:/databrowser/images/value_edit + + + + 16 + 16 + + + + true + + + + + + + false + + + Delete variable + + + ... + + + + :/databrowser/images/value_delete:/databrowser/images/value_delete + + + + 16 + 16 + + + + true + + + + + + + false + + + Grab variable + + + ... + + + + :/databrowser/images/varToReport:/databrowser/images/varToReport + + + true + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + true + + + QAbstractItemView::DragOnly + + + true + + + 1 + + + false + + + + 1 + + + + + + Datasources @@ -329,167 +490,6 @@ - - - Variables - - - - 2 - - - 2 - - - 2 - - - 2 - - - - - 2 - - - - - Add new variable - - - ... - - - - :/databrowser/images/value_add:/databrowser/images/value_add - - - - 16 - 16 - - - - QToolButton::DelayedPopup - - - true - - - - - - - false - - - Edit variable - - - ... - - - - :/databrowser/images/value_edit:/databrowser/images/value_edit - - - - 16 - 16 - - - - true - - - - - - - false - - - Delete variable - - - ... - - - - :/databrowser/images/value_delete:/databrowser/images/value_delete - - - - 16 - 16 - - - - true - - - - - - - false - - - Grab variable - - - ... - - - - :/databrowser/images/varToReport:/databrowser/images/varToReport - - - true - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - true - - - QAbstractItemView::DragOnly - - - true - - - 1 - - - false - - - - 1 - - - - - -