mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-01-06 17:13:58 +00:00
first pass at adding logging framework
This commit is contained in:
committed by
borgmanJeremy
parent
ccbc1bfc17
commit
76ad9e5a6f
@@ -45,6 +45,10 @@
|
||||
#include <QShortcut>
|
||||
#include <QUndoView>
|
||||
#include <draggablewidgetmaker.h>
|
||||
|
||||
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_DEBUG
|
||||
#include "spdlog/spdlog.h"
|
||||
|
||||
// CaptureWidget is the main component used to capture the screen. It contains
|
||||
// an area of selection with its respective buttons.
|
||||
|
||||
@@ -799,6 +803,7 @@ void CaptureWidget::handleButtonSignal(CaptureTool::Request r)
|
||||
break;
|
||||
case CaptureTool::REQ_REDO_MODIFICATION:
|
||||
if (m_undoStack.redoText() == "Circle Counter") {
|
||||
SPDLOG_DEBUG("Redo Circle Increment.");
|
||||
this->incrementCircleCount();
|
||||
}
|
||||
m_undoStack.redo();
|
||||
@@ -869,10 +874,13 @@ void CaptureWidget::setDrawColor(const QColor& c)
|
||||
void CaptureWidget::incrementCircleCount()
|
||||
{
|
||||
m_context.circleCount++;
|
||||
SPDLOG_DEBUG("Incrementing Circle to {}.", m_context.circleCount);
|
||||
}
|
||||
|
||||
void CaptureWidget::decrementCircleCount()
|
||||
{
|
||||
|
||||
SPDLOG_DEBUG("Decrementing Circle.");
|
||||
m_context.circleCount--;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user