Commit Graph

121 Commits

Author SHA1 Message Date
Craig Drummond
31b8a6d9b9 Revert "Revert "Merge pull request #1727 from jprjr/fix-deprecated-warnings""
This reverts commit be9c1e74e0.
2021-07-29 12:00:04 +01:00
Craig Drummond
be9c1e74e0 Revert "Merge pull request #1727 from jprjr/fix-deprecated-warnings"
This reverts commit cb18837d11, reversing
changes made to b296cf7113.
2021-07-28 19:44:57 +01:00
John Regan
a20997aee4 utils: move minSize to above windows.h (windows.h defines min/max as macros) 2021-07-20 14:08:53 -04:00
John Regan
0037676553 fix deprecation: QSet::fromList, use a listToSet template 2021-07-20 08:40:24 -04:00
fenuks
8afd749743 Make cantata configuration wizard usable on smaller screens 2021-02-17 15:10:58 +01:00
Craig Drummond
11bb7571c9 Update (c) year 2021-01-01 10:06:43 +00:00
Thomas Uhle
c89d3f76b3 Query Qt whether system tray is available if not (Unity flavored) GNOME
- Since 2017, Unity is yet a special Ubuntu flavor of GNOME. That is why
  system tray support with QSystemTrayIcon is only provided if the Ayatana
  Indicator application or the GNOME Shell extension AppIndicator or
  something similar that implements org.kde.StatusNotifierWatcher is
  installed and running. Hence, Unity should be treated the same as plain
  GNOME.
- Although Qt prefers to internally use QDBusTrayIcon for QSystemTrayIcon,
  there is also a fallback implementation using XCB if Qt has X11 support
  and org.kde.StatusNotifierWatcher is not registered on D-Bus. There are
  settings with some desktop environments where none of these mechanisms
  are available. So it is not safe to assume QSystemTrayIcon is working if
  Utils::currentDe() returns Utils::Other. Perhaps the only way then is to
  simply rely on QSystemTrayIcon::isSystemTrayAvailable().
2020-06-08 12:00:09 +02:00
Thomas Uhle
a6da2401c5 Align path construction in Utils::systemDir() and Utils::helper()
Always handle the construction of the path in the same way no matter which OS
Cantata is built for, and only then pass the complete path to Utils::fixPath().
2020-04-08 14:11:01 +02:00
Craig Drummond
d7b3965b9b Update (c) year 2020-01-01 11:51:13 +00:00
Craig Drummond
1d0ee7cf98 Sanitise hash usage
Closes #1549
2019-11-04 16:05:32 +00:00
Craig Drummond
cb9efe205f Update (c) year 2019-09-15 15:56:58 +01:00
Craig Drummond
48fd4942d7 Apply 'Single Tracks' tweak to play queue items
Issue #1471
2019-03-20 17:01:18 +00:00
Craig Drummond
09df75d3bd Fix saving, and reading back, https:// as MPD music folder.
Closes #1444
2019-01-30 17:47:42 +00:00
Craig Drummond
6390b4c6e8 Allow .jpeg as extension from cover dialog.
Closes #1368
2018-09-12 19:48:41 +01:00
Craig Drummond
bddf1b86a2 No need to differentiate between GNOME and Ubuntu GNOME 2018-05-21 17:28:10 +01:00
Craig Drummond
1db2b4a02a Build all apps into same folder, to allow dev versions to run without
install
2018-05-16 17:01:49 +01:00
Craig Drummond
d1bdc63c15 Fix http: check 2018-05-03 19:31:20 +01:00
padertux
4f26eb686e Refactor code to use C++11 nullptr 2018-01-08 23:01:25 +01:00
Craig Drummond
2139d3dbb8 Update (c) year 2018-01-01 10:11:39 +00:00
Craig Drummond
6e100a5ef5 Use for(var: list) and not foreach(var, list) 2017-11-27 22:36:53 +00:00
Craig Drummond
148fe919bb Only disable system tray support if org.kde.StatusNotifierWatcher is not
registered when running under Gnome.

Issue #1089
2017-10-04 20:40:48 +01:00
Craig Drummond
498d62b724 nly enable system tray for Linux if org.kde.StatusNotifierWatcher DBUS
service is registered.
2017-09-08 20:25:20 +01:00
Craig Drummond
8f7865099f Disable system-tray icon code for GNOME shell (but not Ubuntu's GNOME
shell session).
2017-09-01 22:57:54 +01:00
Craig Drummond
5001c5b593 Revert "Remove Cantata's high-dpi handling code, this should be done by Qt."
This reverts commit 28df204fc4.

Issue #1077
2017-08-30 19:25:26 +01:00
Craig Drummond
e0b7550515 Remove Cantata's high-dpi handling code, this should be done by Qt.
Issue #1063
2017-08-15 23:20:18 +01:00
Craig Drummond
555737960c Fix desktop detection via XDG_CURRENT_DESKTOP - check for colon
separated values.
2017-08-15 12:34:08 +01:00
rezodlub
e8cc1ab8ef Fixes:
empty folders on MPD side (crash inserting/removing to/from model)
usage of sys/time.h changed to QTime
no unistd.h in Visual Studio
if QT was build without SSL support, there is no QSslSocket class (at least in 5.6 and 5.8)
missing strncasecmp in Visual Studio
utime.sys is actually sys/utime.h in Visual Studio
2017-06-11 15:31:35 +02:00
Craig Drummond
edba120db9 Remove touch support - does not work that well, and QtWidgets are not designed for touch 2017-04-11 17:15:21 +01:00
Craig Drummond
b63c6fbe26 Use Qt5's translation framework - ts files, not po files. 2017-04-08 10:35:31 +01:00
Craig Drummond
0a73215867 Update (c) year 2017-04-02 18:45:30 +01:00
Craig Drummond
b0b0140d98 Remove Qt4 support 2017-04-02 18:43:34 +01:00
Craig Drummond
a517bf4f17 Remove KDE4 and Ubuntu Touch support 2017-04-01 22:55:27 +01:00
Craig Drummond
126ef715f0 Fix C++11 warning 2016-10-29 18:43:34 +01:00
Craig Drummond
860a0890a9 Clamp colour of all mono icons 2016-07-22 16:37:48 +01:00
Craig Drummond
705648420a Update (c) year 2016-01-08 18:55:13 +00:00
Craig Drummond
074051e558 Correct use SHARE_INSTALL_PREFIX 2015-12-01 20:23:37 +00:00
CDrummond
0f7a1bc313 Only scale for DPI if DPI>120 2015-10-26 21:44:46 +00:00
Craig Drummond
551f49644a Fix windows build, and other, issues 2015-10-21 21:29:09 +01:00
Craig Drummond
9533f12881 Update (c) year 2015-08-13 21:12:34 +01:00
Craig Drummond
605af484f7 Initial import of *VERY* incomplete, and not fully functional Cantata
webapp. Mainly used to test SQLite backend for storing MPD db.
2015-06-01 22:57:49 +01:00
craig.p.drummond
f943592f7d CMake option to enabkle touch-friendly support. Disable by default (apart from in Windows) as it only really works under windows. 2015-04-05 20:09:16 +00:00
craig.p.drummond
2f4b901d64 Install helper apps to lib64 for 64bit linux builds 2014-12-08 14:54:05 +00:00
craig.p.drummond
830a2f62ee Show correct separators for windows builds. 2014-10-28 22:45:45 +00:00
craig.p.drummond
7680e19374 ...windows exe help location
BUG: 550
2014-10-05 07:24:09 +00:00
craig.p.drummond
ba3b8cecfe Dont display $HOME as ~ in UI 2014-10-03 15:49:55 +00:00
craig.p.drummond
228261b2d1 Fix KDE build 2014-09-25 18:45:08 +00:00
craig.p.drummond
773d2271dc Set organization name - currently 'mpd' for windows, and 'cantata' elsewhere. This is to maintain backwards compatability. 2014-09-25 18:17:46 +00:00
craig.p.drummond
1dfa244f81 Move window raising code into Utils 2014-09-24 18:23:24 +00:00
craig.p.drummond
7f41428e8b - Fix saving of file paths
- Convert home-path to/from ~ for files too
BUG: 544
2014-09-17 18:28:44 +00:00
craig.p.drummond
9b2ea337fd ~ / QDir::homePath()
BUG: 538
2014-09-12 20:40:43 +00:00