DanielBorgesOliveira / onedrive_tray

OneDrive system tray program
GNU General Public License v3.0
113 stars 21 forks source link

fixed compiler warnings on Qt 5.15.6 #41

Closed AndrejsK closed 1 year ago

AndrejsK commented 1 year ago

On newer versions of Qt Qt::SystemLocaleShortDate is deprecated, I replaced it with a function that builds the format string using QLocale.

As for the regex string - the compiler tried to interpret \. as a C++ character escape. I suspect the intention here was to actually match three . characters at the end of the line. To do this, you need to escape the backslashes in the C++ code.

Tested on Fedora with Qt 5.15.6, but also compiled successfully on Ubuntu 20.04 with Qt 5.12.8.