Commit
Fixes Slicer issue: http://www.na-mic.org/Bug/view.php?id=1349 http://www.na-mic.org/Bug/view.php?id=2537
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,7 +110,8 @@ class CTK_CORE_EXPORT ctkErrorLogModel : public QSortFilterProxyModel | |
ThreadIdColumn, | ||
LogLevelColumn, | ||
OriginColumn, | ||
DescriptionColumn | ||
DescriptionColumn, | ||
InvalidColumn // Add new columnId before this line | ||
This comment has been minimized.
Sorry, something went wrong. |
||
}; | ||
|
||
enum ItemDataRole{ | ||
|
@@ -156,9 +157,6 @@ class CTK_CORE_EXPORT ctkErrorLogModel : public QSortFilterProxyModel | |
/// \sa TerminalOutput | ||
void setTerminalOutputs(const TerminalOutputs& terminalOutput); | ||
|
||
/// Remove all message from model | ||
void clear(); | ||
|
||
ctkErrorLogLevel::LogLevels logLevelFilter()const; | ||
|
||
void filterEntry(const ctkErrorLogLevel::LogLevels& logLevel = ctkErrorLogLevel::Unknown, bool disableFilter = false); | ||
|
@@ -169,13 +167,26 @@ class CTK_CORE_EXPORT ctkErrorLogModel : public QSortFilterProxyModel | |
bool asynchronousLogging()const; | ||
void setAsynchronousLogging(bool value); | ||
|
||
QVariant logEntry(int column, int index, int role = Qt::DisplayRole) const; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
finetjul
|
||
|
||
Q_INVOKABLE QString logEntryDescription(int index) const; | ||
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
Q_INVOKABLE int logEntryCount() const; | ||
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
public Q_SLOTS: | ||
|
||
/// Remove all message from model | ||
void clear(); | ||
|
||
void addEntry(const QDateTime& currentDateTime, const QString& threadId, | ||
ctkErrorLogLevel::LogLevel logLevel, const QString& origin, const QString& text); | ||
|
||
Q_SIGNALS: | ||
void logLevelFilterChanged(); | ||
|
||
/// \sa addEntry() | ||
void entryAdded(ctkErrorLogLevel::LogLevel logLevel); | ||
|
||
protected: | ||
QScopedPointer<ctkErrorLogModelPrivate> d_ptr; | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,6 +65,13 @@ protected Q_SLOTS: | |
|
||
void onSelectionChanged(const QItemSelection & selected, const QItemSelection & deselected); | ||
|
||
Q_SIGNALS: | ||
|
||
void windowActivationChanged(bool); | ||
This comment has been minimized.
Sorry, something went wrong.
finetjul
|
||
|
||
protected: | ||
void changeEvent(QEvent * event); | ||
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
protected: | ||
QScopedPointer<ctkErrorLogWidgetPrivate> d_ptr; | ||
|
||
|
rename into ColumnCount ? or MaxColumn = DescriptionColumn ?