##// END OF EJS Templates
Pull request fixes
Alexandre Leroux -
r251:f4bacb54bdee
parent child
Show More
@@ -46,7 +46,7 VariableModel::createVariable(const QString &name, const SqpDateTime &dateTime,
46
46
47 std::shared_ptr<Variable> VariableModel::variable(int index) const
47 std::shared_ptr<Variable> VariableModel::variable(int index) const
48 {
48 {
49 return (index >= 0 && index < impl->m_Variables.size()) ? impl->m_Variables.at(index) : nullptr;
49 return (index >= 0 && index < impl->m_Variables.size()) ? impl->m_Variables[index] : nullptr;
50 }
50 }
51
51
52 int VariableModel::columnCount(const QModelIndex &parent) const
52 int VariableModel::columnCount(const QModelIndex &parent) const
@@ -1,11 +1,14
1 #ifndef SCIQLOP_VARIABLEINSPECTORWIDGET_H
1 #ifndef SCIQLOP_VARIABLEINSPECTORWIDGET_H
2 #define SCIQLOP_VARIABLEINSPECTORWIDGET_H
2 #define SCIQLOP_VARIABLEINSPECTORWIDGET_H
3
3
4 #include <QLoggingCategory>
4 #include <QMenu>
5 #include <QMenu>
5 #include <QWidget>
6 #include <QWidget>
6
7
7 #include <memory>
8 #include <memory>
8
9
10 Q_DECLARE_LOGGING_CATEGORY(LOG_VariableInspectorWidget)
11
9 class Variable;
12 class Variable;
10
13
11 namespace Ui {
14 namespace Ui {
@@ -8,6 +8,8
8
8
9 #include <SqpApplication.h>
9 #include <SqpApplication.h>
10
10
11 Q_LOGGING_CATEGORY(LOG_VariableInspectorWidget, "VariableInspectorWidget")
12
11 VariableInspectorWidget::VariableInspectorWidget(QWidget *parent)
13 VariableInspectorWidget::VariableInspectorWidget(QWidget *parent)
12 : QWidget{parent}, ui{new Ui::VariableInspectorWidget}
14 : QWidget{parent}, ui{new Ui::VariableInspectorWidget}
13 {
15 {
@@ -47,4 +49,9 void VariableInspectorWidget::onTableMenuRequested(const QPoint &pos) noexcept
47 }
49 }
48 }
50 }
49 }
51 }
52 else {
53 qCCritical(LOG_VariableInspectorWidget())
54 << tr("Can't display menu : invalid index (%1;%2)")
55 .arg(selectedIndex.row(), selectedIndex.column());
56 }
50 }
57 }
General Comments 0
You need to be logged in to leave comments. Login now