- 17 Jul, 2018 1 commit
-
-
David Edmundson authored
Summary: Breeze has if (!(widget->testAttribute(Qt::WA_WState_Created) || widget->internalWinId())) KWindowSystem::blur(widget->winId(), ...) which makes sense as the style should not be creating surfaces in polish and I don't want to remove it. This is problematic with QMenu::polish which has a subtle behavioural change compared to QMenu::exec in that it calls ensurePolish before creating the surface. Plasma::ContainmentInterface accidentally has this workaround already for parent window setting. BUG: 395262 Test Plan: Right clicked on desktop icon Looked amazing Reviewers: #plasma, hein Reviewed By: #plasma, hein Subscribers: hein, plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D14174
-
- 12 Jul, 2018 1 commit
-
-
Kai Uwe Broulik authored
Check for one already running before spawning a new one. Also move the check for the isDirCache in one place. Differential Revision: https://phabricator.kde.org/D14077
-
- 13 Jun, 2018 1 commit
-
-
Eike Hein authored
Summary: Now matches Dolphin behavior. BUG:395155 Reviewers: broulik, davidedmundson, mart Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D13508
-
- 03 Jun, 2018 1 commit
-
-
Eike Hein authored
Summary: The Task Manager applet previously set a task's launcher URL as generic URL MIME data of drags initiated from it. This made everything that's willing to handle an URL drop a drop target for drags from the Task Manager, which resulted e.g. in users accidentally dropping .desktop files into chat apps that would immediately send them as a message. In truth, the utility of drags initiated from the Task Manager is mostly confined to the shell: Adding apps to the desktop, to the panel, to launcher menus (we don't have this currently but should add it), and so on. It's therefore appropriate to use a special internal MIME type for this payload instead of one as generic as text/url. We already use special internal MIME types to shuttle around window ids (for drops onto pagers, to assign tasks to different virtual desktops or activities) and filter out drops onto the Task Manager applet itself. This patch makes the necessary changes in the Task Manager and in the Folder View containment, which needs special care due to its complex drop handling. A seperate patch will augment ContainmentInterface::processMimeData to take care of the Desktop and Panel containments (while compatible with the Folder View change). This is an implementation of an idea by David Edmundson posted in D13162. Reviewers: davidedmundson, Zren Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D13274
-
- 25 Apr, 2018 1 commit
-
-
Kai Uwe Broulik authored
This makes it consistent with Dolphin which, when cd'ing into a folder on desktop:/ actually opens /home/foo/Desktop/path (the target URL set by the KIO) Differential Revision: https://phabricator.kde.org/D5234
-
- 24 Apr, 2018 1 commit
-
-
Kai Uwe Broulik authored
Also remove the "reload" action as the "refresh" action is being used in both cases and setup by usedByContainment CCBUG: 392730 Differential Revision: https://phabricator.kde.org/D11955
-
- 05 Apr, 2018 3 commits
-
-
Kai Uwe Broulik authored
Ensures the keyboard shortcut is visible in the menu CCBUG: 392730 Differential Revision: https://phabricator.kde.org/D11947
-
Kai Uwe Broulik authored
Avoids triple lookup (contains → value → remove) take() removes the item from the list and returns it. It returns nullptr for non-existing items which is perfectly fine to call delete on. Differential Revision: https://phabricator.kde.org/D11946
-
Kai Uwe Broulik authored
Previously this was only done for files inside Trash. Now also the context menu of a Trash link has correct state. BUG: 392738 FIXED-IN: 5.12.5 Differential Revision: https://phabricator.kde.org/D11944
-
- 08 Mar, 2018 1 commit
-
-
Andras Mantia authored
Reviewers: #plasma, mwolff, broulik, hein Reviewed By: #plasma, mwolff, hein Subscribers: ervin, mlaurent, plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D9325 (cherry picked from commit de0e1bc1)
-
- 28 Feb, 2018 1 commit
-
-
Andras Mantia authored
Summary: If screen 1 & 2 was showing file://home/user/foo and file://home/user/foo/bar was moved from one screen to another, it was not detected as a drop between shared views and the Copy/Move/Link menu was shown. Reviewers: #plasma, hein, mwolff Reviewed By: #plasma, hein Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D10729
-
- 19 Feb, 2018 1 commit
-
-
Andras Mantia authored
Summary: When enabled, it matches the pre 5.12 behavior. There is no GUI for it yet. Reviewers: #plasma, hein Reviewed By: #plasma, hein Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D10408
-
- 05 Feb, 2018 2 commits
-
-
Eike Hein authored
Summary: This patch does two things: * Instead of giving the KAbstractViewAdapter the actual icon size, we overprovision by giving it the size times two. This is because while we're deriving the grid view cell size from the icon size setting, it's not the actual size the thumbnails will be displayed at. Our IconItem is sized to almost fill the cell, and for image sources with non-square aspect ratios IconItem doesn't scale to the next icon size. * We set IconItem to do smooth scaling. While this results in lovely visual fidelity, I the performance impact is a concern. We're requesting twice as large thumbnails now, and we're doing more scaling work. However, thumbnail generation is async and doesn't slow down listing. There's also the possibility IconItem::smooth could have general performance impact unless things are smart enough not to scale when not necessary, which is hopefully the case. BUG:376848 Reviewers: #plasma Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D10223
-
Kai Uwe Broulik authored
This is what Dolphin does. The shortcut is hardcoded here and also common on other platforms. BUG: 389862 FIXED-IN: 5.13.0 Differential Revision: https://phabricator.kde.org/D10316
-
- 04 Feb, 2018 1 commit
-
-
Friedrich W. H. Kossebau authored
-
- 02 Feb, 2018 1 commit
-
-
Friedrich W. H. Kossebau authored
-
- 26 Jan, 2018 1 commit
-
-
Andras Mantia authored
Reviewers: #plasma, mwolff, broulik, hein Reviewed By: #plasma, mwolff, hein Subscribers: ervin, mlaurent, plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D9325
-
- 16 Jan, 2018 1 commit
-
-
Kai Uwe Broulik authored
Send the actual URL (e.g. desktop:/foo) to KIO and let it figure it out. Otherwise KDirNotify emits a change for the backing file:///home/foo/Desktop URL and KDirLister cannot relate the two and doesn't notice a deletion immediately. Since we don't offer "Move to Trash" for non-local files anyway, this should be safe. While at it, check for whether files can be moved before offering Trash and whether files can be deleted before offering Delete (Dolphin does that). I can split that into a separate commit, if you prefer. CHANGELOG: Fixed long delay when deleting (moving to trash) files on the desktop Differential Revision: https://phabricator.kde.org/D9914
-
- 22 Dec, 2017 1 commit
-
-
Andras Mantia authored
Summary: There is no need to pass a ScreenMapper pointer around, as it is always the same, it is a singleton. Reviewers: #plasma, mwolff, hein Reviewed By: mwolff Subscribers: mlaurent, broulik, plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D9323
-
- 14 Dec, 2017 1 commit
-
-
Andras Mantia authored
Summary: When a secondary screen is removed, the items from there are moved to the first screen. If the screen is plugged back, the items are moved back. This patch does not move back the items on screen reconnect if meantime they were manually moved around on the first screen. Reviewers: #plasma, hein, mwolff Reviewed By: #plasma, hein Subscribers: ngraham, plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D9313
-
- 13 Dec, 2017 2 commits
-
-
Andras Mantia authored
Reviewers: #plasma, broulik, hein, mwolff Reviewed By: #plasma, hein Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D9311
-
Andras Mantia authored
Summary: Patch by Kai Uwe Broulik Reviewers: #plasma, hein, mwolff, broulik Reviewed By: #plasma, hein Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D9307
-
- 03 Dec, 2017 1 commit
-
-
Eike Hein authored
Summary: This saves four calls to `invalidateFilter()` during startup with default config. With non-default config it will save various calls to `invalidate()` and `invalidateFilter()` more. Test Plan: Tests pass with adjustments. Reviewers: #plasma, broulik Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D9122
-
- 28 Nov, 2017 3 commits
-
-
Milian Wolff authored
Reviewers: mwolff, #plasma, hein Reviewed By: mwolff, #plasma, hein Subscribers: broulik, plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D8850
-
Milian Wolff authored
Summary: Remember the drop event target position and move the items once they become available. This requires us to allow moving while no drag image is being shown. Otherwise, we listen to the copy job signals, which gets created by the drop job. This allows us to map target filenames in their final form, i.e. after the user potentially renamed the files to handle conflicts, to some desired visual position. To stay on the safe side, we also periodically cleanup the mapping after an idle timeout of 10s. This ensures we don't grow the mapping with stale items. This is required to handle errors in the file lister, or situations like overwriting an existing file which would not trigger a rowAdded signal. Reviewers: hein, amantia Reviewed By: hein, amantia Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D8598
-
Andras Mantia authored
Summary: When using multiple screen with a Folder View as a desktop containment, we need to make sure a file belongs only to one screen. The patch adds support for this by: 1) Introducing a ScreenMapper object shared acrossed all Folder Views 2) FolderModel registers the screen it resides on if used as a containment 3) FolderModel filters out items not on the current screen (if used as a containment) 4) FolderModel adds mapping for the newly appeared files. The new files will go to the registered screen having the smallest id. This also means by default all files appear on the screen with the smallest id. 5) url/screen mapping is stored in the configuration of each folder view applet. This means duplication of the information, and although they should be in sync unless manually modified, the logic is that the last view's mapping option is used. 6) When removing a screen, the list of items from the removed screen is stored and items get moved to the first screen 7) When a screen is added back, the items are moved back there based on the above list So far missing: - correct handling of D&D between folderviews on different screens - forgetting the saved position from a removed screen if the items are reorganized on the primary (visible) screen Depends on D8566 Depends on D8567 Reviewers: #plasma, ervin, mlaurent, dvratil, hein, aacid, apol, mwolff Reviewed By: #plasma, hein, mwolff Subscribers: anthonyfieroni, ngraham, mwolff, davidedmundson, broulik, mart, plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D8493
-
- 15 Nov, 2017 1 commit
-
-
Milian Wolff authored
Differential Revision: https://phabricator.kde.org/D8597
-
- 01 Nov, 2017 1 commit
-
-
David Edmundson authored
Summary: When copying from Ark to the desktop we make a blocking DBus call, freezing the entire UI. We don't do anything with the reply, so lets not bother waiting for it. Test Plan: Ran Q_DBUS_BLOCKING_CALL_MAIN_THREAD_WARNING_MS=0 plasmashell Copied something from ark to the desktop. Still had the file, but didn't block Reviewers: #plasma Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D8601
-
- 30 Oct, 2017 1 commit
-
-
Laurent Montel authored
Reviewers: hein Reviewed By: hein Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D8515
-
- 27 Oct, 2017 1 commit
-
-
Laurent Montel authored
Test Plan: compile Reviewers: hein, broulik Reviewed By: broulik Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D8514
-
- 26 Oct, 2017 2 commits
-
-
Laurent Montel authored
Reviewers: hein Reviewed By: hein Subscribers: broulik, plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D8476
-
Laurent Montel authored
Summary: Remove extra ';' Use override everywhere as we already use it in some part of code Fix potential crash when we delete a pointer Test Plan: build/using :) Reviewers: hein Reviewed By: hein Subscribers: broulik, ngraham, plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D8473
-
- 25 Oct, 2017 3 commits
-
-
Laurent Montel authored
Reviewers: hein, broulik Reviewed By: broulik Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D8478
-
Laurent Montel authored
Reviewers: hein, broulik Reviewed By: broulik Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D8477
-
Laurent Montel authored
Test Plan: compile/test Reviewers: hein, broulik Reviewed By: broulik Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D8474
-
- 14 Sep, 2017 1 commit
-
-
Kai Uwe Broulik authored
SetSupportedDragActions is deprecated and doesn't seem to work. This fixes modifier shortcuts for dragging, e.g. dragging with Ctrl+Shift to create a link. BUG: 382797 FIXED-IN: 5.11.0 Differential Revision: https://phabricator.kde.org/D7798
-
- 30 Aug, 2017 1 commit
-
-
Kai Uwe Broulik authored
This allows to use bindings for properties like plasmoid.busy Differential Revision: https://phabricator.kde.org/D7598
-
- 26 Aug, 2017 1 commit
-
-
David Edmundson authored
Summary: At first glance this looks faster, as we skip KIO for a simple stat(), but as the result isn't cached we do file lookups on every single mouse move. This also has the side effect of not blocking Plasma when stat-ing a file on a disconnected remote drive. CCBUG: 379994 Test Plan: Created two .desktop files one pointing to a dir, another to a file. One had the arrow to expand the folder, the other did not. Reviewers: #plasma Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D7535
-
- 04 Jun, 2017 1 commit
-
-
Kai Uwe Broulik authored
By the time we leave the method, the QMimeData is deleted by the DragArea's drop event being destroyed leading to a crash. CHANGELOG: Fixed crash when dropping files on desktop with KDeclarative from KDE Frameworks 5.35 BUG: 380806 FIXED-IN: 5.10.1 Differential Revision: https://phabricator.kde.org/D6088
-
- 29 Mar, 2017 1 commit
-
-
Kai Uwe Broulik authored
The former is deprecated and just returns uiDelegate() inside anyway. Differential Revision: https://phabricator.kde.org/D5236
-