Commit 8a45e18d authored by NICLAUSSE Nicolas's avatar NICLAUSSE Nicolas

2.11.1

parent 8868a7c5
# ChangeLog
## version 2.11.1 - 2019-05-21
- menubar generator use dtk-core readParameters static method
## version 2.11.0 - 2019-05-21
- menubar generator use dtk-core parameter reader
- add python converter for parameters new json file formats
......
......@@ -24,7 +24,7 @@ project(dtkWidgets)
set(${PROJECT_NAME}_VERSION_MAJOR 2)
set(${PROJECT_NAME}_VERSION_MINOR 11)
set(${PROJECT_NAME}_VERSION_PATCH 0)
set(${PROJECT_NAME}_VERSION_PATCH 1)
set(${PROJECT_NAME}_VERSION
${${PROJECT_NAME}_VERSION_MAJOR}.${${PROJECT_NAME}_VERSION_MINOR}.${${PROJECT_NAME}_VERSION_PATCH})
......
......@@ -17,7 +17,7 @@ channels:
- dtk
dependencies:
- qt >=5.9.0
- dtk-core >=2.5.0
- dtk-core >=2.5.1
- dtk-fonts >=2.1.0
- dtk-log
- dtk-themes
......
......@@ -38,14 +38,14 @@ requirements:
- {{ cdt('libxxf86vm') }} # [linux]
host:
- qt >=5.9.0
- dtk-core >=2.5.0
- dtk-core >=2.5.1
- dtk-fonts >=2.1.0
- dtk-log
- dtk-themes
run:
- qt >=5.9.0
- dtk-core >=2.5.0
- dtk-core >=2.5.1
- dtk-fonts >=2.1.0
- dtk-log
- dtk-themes
......
......@@ -20,7 +20,6 @@
#include "dtkWidgetsMenuBar.h"
#include <dtkCore/dtkCoreParameter>
#include <dtkCore/dtkCoreParameterReader>
#include <dtkFonts/dtkFontAwesome>
......@@ -90,14 +89,13 @@ dtkWidgetsParameterMenuBarGenerator::dtkWidgetsParameterMenuBarGenerator(const Q
{
QFile menu_file(menu_file_path);
dtkCoreParameterReader param_reader;
param_reader.setJsonFile(definition_file_path);
if (!param_reader.read()) {
qWarning() << Q_FUNC_INFO << "The file" << definition_file_path << "could not be read.";
d->parameters = dtk::core::readParameters(definition_file_path);
if (d->parameters.count() == 0) {
qWarning() << Q_FUNC_INFO << "The file" << definition_file_path << "could not be read: no parameter found";
return;
}
d->parameters = param_reader.parameters();
if (menu_file.open(QFile::ReadOnly)) {
QJsonParseError menu_error;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment