Bug 512258

Summary: NoticesView.qml uses Warnings enum which is not available
Product: [Plasma] plasmashell Reporter: cwo <cwo.kde>
Component: Weather widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: isma.af, kde
Priority: NOR    
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description cwo 2025-11-17 19:42:11 UTC
SUMMARY

I get lots of errors like 

qrc:/qt/qml/plasma/applet/org/kde/plasma/weather/NoticesView.qml:41: ReferenceError: Warnings is not defined

on both my computer with a master build and on stock Fedora.

I did not get these earlier, when no weather warning was in effect. The warning itself works, but there does not seem to be a color-coded icon (as the source assignment fails).

The enum is defined in warnings.h, but I'm not sure it's exported, and in any case the qml file (nor any other in the widget) does not import a qml module that would make it available.

STEPS TO REPRODUCE
1.  Have a weather warning for your location
2.  Have Weather widget enabled 

OBSERVED RESULT

runtime error in log, no icon 

EXPECTED RESULT

no runtime error, but icon

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION