Improved label readability, handled non critical exception about filtering without a loaded DB

This commit is contained in:
Marco Dalla Tiezza
2024-06-12 23:16:48 +02:00
parent dde223d2ac
commit 79891899ce
4 changed files with 87 additions and 78 deletions

View File

@@ -5,6 +5,11 @@
## [Unreleased]
### Changed
- Improved readability of labels for filter ranges for frequency, bandwidth, and ACF
### Fixed
- Added a database load check to avoid (non critical) exceptions when applying filters without having loaded a database.
## [4.0.3] - 2024-06-10

View File

@@ -6061,11 +6061,11 @@ md\xd1\xff\xf8\x87Tm\x86\xc3\x86\x83\xaa\xc1\xb9\xbe\
\x9eg\xd0\xd8\xb9D\xdbq\xef\xc3\xd4\x09\xf6\x5c\x96!\
\xe6}\x18z\xe9\x9f\xcb\xf1\x10u\x0e\xcb\x13\xc7j\xff\
\xf7c\x7f\xbf\x01\x0fJ\x0a\x01\
\x00\x00\x08\xf2\
\x00\x00\x08\xf4\
\x00\
\x00[@x\xda\xed\x5cms\xdb6\x12\xfe\xde\x99\xfe\
\x07\x9c>TR\x95j\x9cd\xe6fN\xbd|\xb0\x95\
S\xd2\x99\xf8\xae\xad=\xb9\x0f\x1eO\x87\xa2`\x09\x0d\
\x00[\xc4x\xda\xed\x5cms\xdb6\x12\xfe\xde\x99\xfe\
\x07\x9c>TR\x95j\x9cd\xa63\xa7^>\xd8\xca\
)\xb9\x99\xf8\xae\xad=\xb9\x0f\x1eO\x87\xa2`\x09\x0d\
D\xb0$h\xc7\xc9\xf8\xbf\x1f\x00\xbe\x01$\xdeDI\
\xb5}%\x93I,p\xb1X\xec\xb3\xc0\xee\x03RF\
\xdb\x98$\x14\xfcB\x7f\xc9P\xf8\xe9\xdbo\x90\xf2y\
@@ -6095,7 +6095,7 @@ W1<c}\x9c\x18r\xa1&\x86y\xc7C`(\
\x9d\x08p\x05\xa5wJ\x87\xf3\xb6\xce\xfen(\x9c\xd8\
\x14\xca\xde\x0d\xc2\x9b'\xe4\xd7s\xb2\xcap\xc0\xf7J\
\xab{\xb7\x95\xd8\x07\x94\xf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c\x94\xccK!\xfd\xb9\xf8\xc5L#\x14\xad\xe0\xe7\x17\
`P\x98<x\x01J>\xfc\x8c\xc8\xa7T+{?\
\xff\xe0{`\xc31\x87(\xb7\xfaD\xde!\x91\x97\xdf\
_\xe9\xd3x\xc74\xfe\xa1\xf5\xa5\xa2>\x89\x1f )\
\xef\x1ao}\x12\x7f\xeeI\xbc\xf9\xbb\x5c\x9eT\x0a\xaf\
\x8c\xeb\x13\xb8\x9c\xc0\xdd\x9b_\x9f\xbe\x8f\x9a\xbe\xcb\xef\
l\xf6\xe9\xbbc\xfa\x9e\xb7\xbeH\xdb\xa7\xef>}\xf7\
\xe9{\xe7\xf4\xdd\xfc\x15kO*}W\xc6\xf5\xe9[\
N\xdf\xee\xcdo\x9f\xf4\xdd\xf8\x91\xfd\xc7\xfe\xfe\x0f\xbb\
\x19\xc3\xed\
\x00\x00\x06\x9d\
\x00\
\x00\x22\xbbx\xda\xe5Y]o\xdb6\x14}/\xd0\xff\
@@ -7293,19 +7293,19 @@ qt_resource_struct = b"\
\x00\x00\x01\x8f\xff^8P\
\x00\x00\x03<\x00\x01\x00\x00\x00\x01\x00\x01>\xe2\
\x00\x00\x01\x8f\xff^8P\
\x00\x00\x05\xa8\x00\x00\x00\x00\x00\x01\x00\x01\x9f\xdd\
\x00\x00\x05\xa8\x00\x00\x00\x00\x00\x01\x00\x01\x9f\xdf\
\x00\x00\x01\x8f\xff^8P\
\x00\x00\x03r\x00\x01\x00\x00\x00\x01\x00\x01I\x0c\
\x00\x00\x01\x8f\xff^8_\
\x00\x00\x05\x86\x00\x00\x00\x00\x00\x01\x00\x01\x99D\
\x00\x00\x05\x86\x00\x00\x00\x00\x00\x01\x00\x01\x99F\
\x00\x00\x01\x90\x03\xb0\x82B\
\x00\x00\x03X\x00\x02\x00\x00\x00\x04\x00\x00\x00+\
\x00\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x04\xc4\x00\x01\x00\x00\x00\x01\x00\x01v\x14\
\x00\x00\x01\x8f\xff^8P\
\x00\x00\x05d\x00\x01\x00\x00\x00\x01\x00\x01\x8f(\
\x00\x00\x01\x90\x0eD\xa3A\
\x00\x00\x05d\x00\x01\x00\x00\x00\x01\x00\x01\x8f*\
\x00\x00\x01\x90\x01\x93J\xb0\
\x00\x00\x04\xe6\x00\x01\x00\x00\x00\x01\x00\x01\x7f\x0a\
\x00\x00\x04\xe6\x00\x01\x00\x00\x00\x01\x00\x01\x7f\x0c\
\x00\x00\x01\x8f\xff^8P\
\x00\x00\x04H\x00\x01\x00\x00\x00\x01\x00\x01a\xfc\
\x00\x00\x01\x8f\xff^8P\
@@ -7313,17 +7313,17 @@ qt_resource_struct = b"\
\x00\x00\x01\x8f\xff^8P\
\x00\x00\x04\x9e\x00\x01\x00\x00\x00\x01\x00\x01s\xe6\
\x00\x00\x01\x8f\xff^8P\
\x00\x00\x05@\x00\x01\x00\x00\x00\x01\x00\x01\x8a\xd4\
\x00\x00\x05@\x00\x01\x00\x00\x00\x01\x00\x01\x8a\xd6\
\x00\x00\x01\x8f\xff^8P\
\x00\x00\x05\x06\x00\x00\x00\x00\x00\x01\x00\x01\x85\xab\
\x00\x00\x05\x06\x00\x00\x00\x00\x00\x01\x00\x01\x85\xad\
\x00\x00\x01\x8f\xff^8P\
\x00\x00\x05\xdc\x00\x01\x00\x00\x00\x01\x00\x01\xa8\x90\
\x00\x00\x05\xdc\x00\x01\x00\x00\x00\x01\x00\x01\xa8\x92\
\x00\x00\x01\x8f\xff^8_\
\x00\x00\x06$\x00\x01\x00\x00\x00\x01\x00\x01\xae\xd5\
\x00\x00\x06$\x00\x01\x00\x00\x00\x01\x00\x01\xae\xd7\
\x00\x00\x01\x8f\xff^8_\
\x00\x00\x05\xc0\x00\x01\x00\x00\x00\x01\x00\x01\xa5\x8d\
\x00\x00\x05\xc0\x00\x01\x00\x00\x00\x01\x00\x01\xa5\x8f\
\x00\x00\x01\x8f\xff^8_\
\x00\x00\x06\x00\x00\x01\x00\x00\x00\x01\x00\x01\xabS\
\x00\x00\x06\x00\x00\x01\x00\x00\x00\x01\x00\x01\xabU\
\x00\x00\x01\x8f\xff^8_\
"

View File

@@ -168,6 +168,7 @@ class UIArtemis(QObject):
the details to generate a search query
"""
filter_status = filter_status.toVariant()
if self.loaded_db is not None:
if filter_status != {}:
filter_query = generate_filter_query(filter_status)
self.loaded_db.select_by_filter(filter_query)

View File

@@ -301,11 +301,12 @@ Page {
Label {
id: summaryFreq
Layout.fillWidth: true
Layout.fillHeight: true
color: Material.color(Material.Green)
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
Layout.fillWidth: true
Layout.fillHeight: true
font.pointSize: 16
}
}
}
@@ -390,11 +391,12 @@ Page {
}
Label {
id: summaryBand
Layout.fillWidth: true
Layout.fillHeight: true
color: Material.color(Material.Green)
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
Layout.fillWidth: true
Layout.fillHeight: true
font.pointSize: 16
}
}
}
@@ -465,11 +467,12 @@ Page {
}
Label {
id: summaryACF
Layout.fillWidth: true
Layout.fillHeight: true
color: Material.color(Material.Green)
horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter
Layout.fillWidth: true
Layout.fillHeight: true
font.pointSize: 16
}
}
}