1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
Description: Fix logging
Enable build warning logs
Enable run-time logging
Log palette changes at info level
Show full package version in the 'About' window
Author: Peter Blackman <peter@pblackman.plus.com>
Last-Update: 2021-01-15
Index: b/src/paletteeditor.cpp
===================================================================
--- a/src/paletteeditor.cpp
+++ b/src/paletteeditor.cpp
@@ -452,6 +452,8 @@
void PaletteEditor::paletteIndexChangedAction(const QModelIndex& idx)
{
if (!idx.isValid()) return;
+ logInfo("PaletteEditor::loadPalette : Row %d", idx.row());
+
loadPalette(idx.row());
setPaletteView();
emit paletteChanged();
@@ -501,7 +503,7 @@
{
if (hasUGR)
{
- logFine("PaletteEditor::selectGradientAction : UGR %d", idx.row());
+ logInfo("PaletteEditor::selectGradientAction : UGR %d", idx.row());
setPalette(ugrList[idx.row()].pa);
emit paletteChanged();
emit undoStateSignal();
@@ -509,7 +511,7 @@
else
{
QFileInfo file = m_browseFileList.at(idx.row());
- logFine("PaletteEditor::selectGradientAction : selecting %d", idx.row());
+ logInfo("PaletteEditor::selectGradientAction : selecting %d", idx.row());
if ((file.suffix() == "ggr" && loadGIMPGradient(file, p))
|| (file.suffix() == "cpt" && loadCPTGradient(file, p)))
{
Index: b/qosmic.pro
===================================================================
--- a/qosmic.pro
+++ b/qosmic.pro
@@ -69,7 +69,7 @@
################################################################################
## qosmic app version
-VERSION = 1.6.0
+VERSION = "$(DEB_VERSION) $(FLAM3_VERSION)"
################################################################################
## Check for correct package versions
@@ -91,6 +91,7 @@
QT += widgets
RESOURCES = qosmic.qrc
INCLUDEPATH += src
+DEFINES += LOGGING
## packagers may define ROOT for install sandboxes
#ROOT = /tmp
@@ -129,9 +130,7 @@
}
CONFIG(debug, debug|release) {
- ## enable more verbose logging
message(Building debug version)
- DEFINES += LOGGING
}
FORMS += \
|