Feed Advanced Search

Jul 8 2019

davidre updated the diff for D22121: [Image Wallpaper Slideshow] Allow setting of different sorting orders.

Don't start if we are in config mode

Jul 8 2019, 9:13 AM · Plasma
davidre updated the diff for D22121: [Image Wallpaper Slideshow] Allow setting of different sorting orders.

Disable selecting the wallpaper in slideshow configuration

Jul 8 2019, 8:50 AM · Plasma
davidre added a comment to D22256: [Image Wallpaper Slideshow] Allow setting of different sorting orders POC.

I guess one drawback is that you have to reindex all the files when the sort mode is changed.

Jul 8 2019, 8:18 AM · Plasma

Jul 7 2019

davidre added a comment to D22121: [Image Wallpaper Slideshow] Allow setting of different sorting orders.

Nate's crash is due to data not code.

for (int i = 0; i < m_packages.size(); i++) {
    QString package = m_packages[i].path();
    if (package.at(package.length() - 1) == QChar::fromLatin1('/')) {   <--- you know you crash on this line

we're calling .at(length -1) unconditionally

For an empty string our index will be -1.

This hints towards an insertion bug rather than saying we should just add a guard here.

Jul 7 2019, 4:20 PM · Plasma

Jul 6 2019

davidre added inline comments to D22121: [Image Wallpaper Slideshow] Allow setting of different sorting orders.
Jul 6 2019, 7:12 PM · Plasma
davidre added a comment to D22209: [effects/screenshot] Disable screenshot to file on Wayland.

Yes, I briefly thought about something like a whitelist myself. But of course having an idea and realizing it are two different things. And this solution would probably also come with its own difficulties. But it would be awesome if we could do something similar.

Jul 6 2019, 7:30 AM · KWin

Jul 4 2019

davidre added a comment to D22121: [Image Wallpaper Slideshow] Allow setting of different sorting orders.

I still get the same crash. :(

Jul 4 2019, 8:34 PM · Plasma
davidre updated the diff for D22121: [Image Wallpaper Slideshow] Allow setting of different sorting orders.
  • Sort case insensitive
Jul 4 2019, 9:34 AM · Plasma
davidre updated the diff for D22121: [Image Wallpaper Slideshow] Allow setting of different sorting orders.

I couldm't crash it by clicking apply but noticed some type errors because the proxymodel
din't have all the functionality of the underlying model.

Jul 4 2019, 9:24 AM · Plasma
davidre added a comment to D22121: [Image Wallpaper Slideshow] Allow setting of different sorting orders.

Weird. I can't get it to crash at all but I will look at and think about it.

Jul 4 2019, 7:45 AM · Plasma

Jul 3 2019

davidre updated the diff for D22121: [Image Wallpaper Slideshow] Allow setting of different sorting orders.
  • Bool is now other way around
Jul 3 2019, 3:24 PM · Plasma
davidre updated the diff for D22121: [Image Wallpaper Slideshow] Allow setting of different sorting orders.
  • Don't invalidate if we are in the config view and the mode is set to random
Jul 3 2019, 3:01 PM · Plasma
davidre updated the diff for D22234: Change the screenshot button to cancel during the timeout.
  • Use the same condition
Jul 3 2019, 2:50 PM · Spectacle
davidre updated the diff for D22234: Change the screenshot button to cancel during the timeout.
  • remove unused includes
  • Use an enum
Jul 3 2019, 2:36 PM · Spectacle
davidre added inline comments to D22234: Change the screenshot button to cancel during the timeout.
Jul 3 2019, 2:11 PM · Spectacle
davidre added inline comments to D22234: Change the screenshot button to cancel during the timeout.
Jul 3 2019, 2:07 PM · Spectacle
davidre updated the diff for D22234: Change the screenshot button to cancel during the timeout.
  • restore window title
Jul 3 2019, 1:42 PM · Spectacle
davidre added inline comments to D22234: Change the screenshot button to cancel during the timeout.
Jul 3 2019, 1:28 PM · Spectacle
davidre updated the diff for D22234: Change the screenshot button to cancel during the timeout.
  • minor comments
Jul 3 2019, 1:28 PM · Spectacle
davidre added inline comments to D22234: Change the screenshot button to cancel during the timeout.
Jul 3 2019, 11:58 AM · Spectacle
davidre added inline comments to D21651: Count down the seconds until a screenshot is taken in the window title.
Jul 3 2019, 11:41 AM · Spectacle
davidre added inline comments to D21651: Count down the seconds until a screenshot is taken in the window title.
Jul 3 2019, 11:32 AM · Spectacle
davidre requested review of D22234: Change the screenshot button to cancel during the timeout.
Jul 3 2019, 10:18 AM · Spectacle
davidre added inline comments to D22148: Fix on click not working.
Jul 3 2019, 9:03 AM · Spectacle

Jul 2 2019

davidre committed R166:c51dc6fdfb78: Count down the seconds until a screenshot is taken in the window title (authored by felixernst).
Count down the seconds until a screenshot is taken in the window title
Jul 2 2019, 8:54 PM
davidre closed D21651: Count down the seconds until a screenshot is taken in the window title.
Jul 2 2019, 8:54 PM · Spectacle
davidre added a comment to D21651: Count down the seconds until a screenshot is taken in the window title.

I never did this before, but let's try it.

Jul 2 2019, 8:28 PM · Spectacle

Jul 1 2019

davidre abandoned D22033: Remove confirmation overlay from screenshotFullscreen.

I understand and accept your points

Jul 1 2019, 9:46 AM · KWin
davidre added a comment to D22033: Remove confirmation overlay from screenshotFullscreen.

But there are ways to circumvent this. For example if I were a malicious program I could just call the variant that doesn't take a file descriptor and saves to /tmp and then read the file from there.

Jul 1 2019, 9:36 AM · KWin
davidre accepted D21651: Count down the seconds until a screenshot is taken in the window title.

Yes

Jul 1 2019, 9:18 AM · Spectacle
davidre added a comment to D22074: Add image annotation via libKImageAnnotator.

Same when trying to build spectacle with libkimageannotator. I guess I'm doing something wrong?

Jul 1 2019, 8:34 AM · Spectacle
davidre added a comment to D22074: Add image annotation via libKImageAnnotator.

Hmm I can only get libkimageannotator to build when kcolorpicker is installed to /usr/local not into my prefix. Otherwise cmake finds it but the headers aren't found during the build. Maybe we would have to invest time into bringing it's cmake files up to par?

Jul 1 2019, 8:29 AM · Spectacle
davidre added a comment to D22148: Fix on click not working.

It works for me.

Why don't we support timeouts on Wayland? Is there anything fundamental blocking it?

Jul 1 2019, 7:56 AM · Spectacle

Jun 30 2019

davidre added a comment to D22121: [Image Wallpaper Slideshow] Allow setting of different sorting orders.

Ah I forgot a word there.
I wanted to say don't change the current order if the sort order is switched to random. And when opened and the current mode is random whatever.
Displaying the order for the other modes is quite good I think.

Jun 30 2019, 6:00 PM · Plasma
davidre added a comment to D22121: [Image Wallpaper Slideshow] Allow setting of different sorting orders.

That fixed my crash, yay!

I see a UX issues with the Random mode though: since the list re-sorts itself randomly, it becomes harder to locale any given wallpaper in there (say, for the purposes of unchecking it). Also, when you scroll all the way to the bottom and then back up to the top, the order has changed to a new random order. While you're scrolling, the delegates are visible changing before your eyes. It's all a bit odd.

I wonder if in the Random mode, we should just keep the view sorted alphabetically?

Jun 30 2019, 4:21 PM · Plasma
davidre added a comment to D21651: Count down the seconds until a screenshot is taken in the window title.

I would agree with that but the UI only allows for integer values as a timeout right now.

You can type in non-integer values

Jun 30 2019, 8:09 AM · Spectacle

Jun 29 2019

davidre accepted D21651: Count down the seconds until a screenshot is taken in the window title.

Looks good to me. I have just one more idea.
When you were to configure 4.5 seconds it would show 5 for half a second then 4.
Maybe we could something like min(int(timeout), ceil(...)).
@felixernst What do you think?

Jun 29 2019, 10:37 PM · Spectacle
davidre added a comment to D22033: Remove confirmation overlay from screenshotFullscreen.
In D22033#488123, @zzag wrote:

It seems like that's intentional

This allows to pick a point on the screen which we need to screenshot the screen under the mouse cursor and in future for color picking.

f9f7b84cb4361522c8fef7a32187df1751bc0860

Jun 29 2019, 1:57 PM · KWin
davidre updated the diff for D22121: [Image Wallpaper Slideshow] Allow setting of different sorting orders.
  • add my copyright
Jun 29 2019, 9:59 AM · Plasma
davidre updated the diff for D22121: [Image Wallpaper Slideshow] Allow setting of different sorting orders.
  • String changes and remove debug statement
Jun 29 2019, 9:53 AM · Plasma
davidre updated the diff for D22121: [Image Wallpaper Slideshow] Allow setting of different sorting orders.

Sort only if a sortmode has been specified

Jun 29 2019, 9:49 AM · Plasma
davidre added inline comments to D22148: Fix on click not working.
Jun 29 2019, 6:36 AM · Spectacle

Jun 28 2019

davidre requested review of D22148: Fix on click not working.
Jun 28 2019, 7:22 PM · Spectacle
davidre updated the summary of D22121: [Image Wallpaper Slideshow] Allow setting of different sorting orders.
Jun 28 2019, 6:47 PM · Plasma
davidre added inline comments to D21651: Count down the seconds until a screenshot is taken in the window title.
Jun 28 2019, 2:03 PM · Spectacle
davidre accepted D22130: Fix container detachment warning.
Jun 28 2019, 8:32 AM · Spectacle
davidre accepted D22129: Use QString() instead of empty QSL.
Jun 28 2019, 8:28 AM · Spectacle
davidre accepted D22131: Use references in for loops.
Jun 28 2019, 8:26 AM · Spectacle

Jun 27 2019

filipf awarded D22121: [Image Wallpaper Slideshow] Allow setting of different sorting orders a Love token.
Jun 27 2019, 4:02 PM · Plasma
davidre committed R166:3dd84c1c8a80: Use full URL in message widget link when a file is saved (authored by davidre).
Use full URL in message widget link when a file is saved
Jun 27 2019, 1:21 PM
davidre closed D22120: Use full URL in message widget link when a file is saved.
Jun 27 2019, 1:21 PM · Spectacle
davidre added a reviewer for D22121: [Image Wallpaper Slideshow] Allow setting of different sorting orders: Plasma.
Jun 27 2019, 1:08 PM · Plasma
davidre requested review of D22121: [Image Wallpaper Slideshow] Allow setting of different sorting orders.
Jun 27 2019, 1:05 PM · Plasma
davidre requested review of D22120: Use full URL in message widget link when a file is saved.
Jun 27 2019, 1:00 PM · Spectacle
davidre committed R166:4fb409bfb12d: Fix counting up placeholder (%Nd) (authored by davidre).
Fix counting up placeholder (%Nd)
Jun 27 2019, 12:42 PM
davidre closed D22113: Fix counting up placeholder (%Nd).
Jun 27 2019, 12:42 PM · Spectacle
davidre added a comment to D22113: Fix counting up placeholder (%Nd).

ExortManager::defaultSaveLocation() is used in formatFilename() where the QString is used to create a QDir from it. In formatFilename() the placeholders are replaced by the respective values. For doing the counting of filenames we check if their are already files in the directory we save to that look like the current filename format. Because toString() includes the protocol this didn't work. If you set your filename template to image%1d.png and press save twice these are the resulting filenames:

  • Without this patch: image1.png, image1-1.png (Because the lookup didn't work and to avoid overwriting a file a "-1" is appended)
  • WIth this patch image1.png, image2.png
Jun 27 2019, 12:39 PM · Spectacle
davidre requested review of D22113: Fix counting up placeholder (%Nd).
Jun 27 2019, 8:16 AM · Spectacle

Jun 25 2019

davidre updated subscribers of D21651: Count down the seconds until a screenshot is taken in the window title.
Jun 25 2019, 10:16 PM · Spectacle
davidre added a comment to D21651: Count down the seconds until a screenshot is taken in the window title.

Friendly ping my change is now pushed

Jun 25 2019, 10:33 AM · Spectacle

Jun 24 2019

davidre awarded D22074: Add image annotation via libKImageAnnotator a Party Time token.
Jun 24 2019, 3:37 PM · Spectacle
adrianchavesfernandez awarded D21638: Display delay in the taskmanager a Love token.
Jun 24 2019, 7:43 AM · Spectacle

Jun 23 2019

davidre accepted D22040: Port foreach to range-based for.
Jun 23 2019, 12:42 PM · Spectacle
davidre accepted D22042: Don't show an error if the user cancels sharing.
Jun 23 2019, 12:40 PM · Spectacle
davidre accepted D22038: Force using QStringliteral and disallow implicit string to url cast.
Jun 23 2019, 12:13 PM · Spectacle
davidre requested review of D22033: Remove confirmation overlay from screenshotFullscreen.
Jun 23 2019, 11:20 AM · KWin
davidre accepted D22031: Add context object to connect/timer.
Jun 23 2019, 11:19 AM · Spectacle
davidre accepted D22030: Use constFirst().
Jun 23 2019, 11:05 AM · Spectacle
davidre accepted D22029: Fix some clazy warnings.
Jun 23 2019, 11:00 AM · Spectacle
davidre committed R166:844678fd9236: Fix copy paste error (authored by davidre).
Fix copy paste error
Jun 23 2019, 9:27 AM
davidre added a comment to D19310: Port to KGlobalAccel.

No problem! I noticed 2 other things:

  • All shortcuts for "Spectacle" in "Application Launchers" section appear twice.

If you don't delete the spectacle.khotkeys inside /usr/share/khotkeys/ (depends on your distro) I think you would have entries inside both KDE Daemon and Spectacle categories.
But it could also be related because GlobalAccel can't map the actions to the desktop file.

  • Starting "Capture Rectangular Region" using the assigned shortcut does perform the action, but capturing the screenshot silently saves the file and exits. Before, it used to give a notification.

I will have a look, there was a recent refactor that changed how that mode workes maybe that broke. But anyways it shouldn't be to hard to fix.

Are these potentially related? I can do a git bisect at a later time.

Thanks again for your time.

Jun 23 2019, 8:43 AM · Spectacle
davidre added a comment to D19310: Port to KGlobalAccel.

Looks like a copy-paste bug.

Jun 23 2019, 7:28 AM · Spectacle

Jun 22 2019

davidre committed R166:707390381fd0: Enable setting of shortcut for taking a screenshot of only the current screen (authored by davidre).
Enable setting of shortcut for taking a screenshot of only the current screen
Jun 22 2019, 6:07 PM
davidre closed D22008: Enable setting of shortcut for taking a screenshot of only the current screen.
Jun 22 2019, 6:07 PM · Spectacle
davidre updated the summary of D22008: Enable setting of shortcut for taking a screenshot of only the current screen.
Jun 22 2019, 6:07 PM · Spectacle
davidre requested review of D22008: Enable setting of shortcut for taking a screenshot of only the current screen.
Jun 22 2019, 5:44 PM · Spectacle
davidre committed R120:edd534e22085: [Klipper] Always restore the last clipbboard item (authored by davidre).
[Klipper] Always restore the last clipbboard item
Jun 22 2019, 4:44 PM
davidre committed R120:3bd6ac34ed74: [Klipper] Always restore the last clipbboard item (authored by davidre).
[Klipper] Always restore the last clipbboard item
Jun 22 2019, 4:43 PM
davidre removed a watcher for Spectacle: davidre.
Jun 22 2019, 4:20 PM
davidre added a member for Spectacle: davidre.
Jun 22 2019, 4:20 PM
davidre added parent tasks for T11132: Revisit Panel highlight effects : T10891: Breeze theme evolution, T11124: Unify highlight effect style.
Jun 22 2019, 3:11 PM · VDG
davidre added a subtask for T11124: Unify highlight effect style: T11132: Revisit Panel highlight effects .
Jun 22 2019, 3:11 PM · Plasma, Breeze, Goal: Consistency, VDG
davidre added a subtask for T10891: Breeze theme evolution: T11132: Revisit Panel highlight effects .
Jun 22 2019, 3:11 PM · Plasma, VDG, Breeze
davidre created T11132: Revisit Panel highlight effects .
Jun 22 2019, 3:10 PM · VDG
davidre added a comment to T11124: Unify highlight effect style.

What about the systray? Quick hack:

Jun 22 2019, 2:25 PM · Plasma, Breeze, Goal: Consistency, VDG
davidre requested review of D21993: [Klipper] Always restore the last clipbboard item.
Jun 22 2019, 11:36 AM · Plasma
davidre committed R169:43eb5fae5784: Set SwipeListItem implicitHeight to be the maximum of content and actions (authored by davidre).
Set SwipeListItem implicitHeight to be the maximum of content and actions
Jun 22 2019, 10:21 AM
davidre closed D21981: Set SwipeListItem implicitHeight to be the maximum of content and actions.
Jun 22 2019, 10:21 AM · Kirigami
This is a test notification, sent at Sat, Jun 22, 11:45.
Jun 22 2019, 9:45 AM
This is a test notification, sent at Sat, Jun 22, 11:45.
Jun 22 2019, 9:45 AM
davidre updated the test plan for D21981: Set SwipeListItem implicitHeight to be the maximum of content and actions.
Jun 22 2019, 8:38 AM · Kirigami
davidre requested review of D21981: Set SwipeListItem implicitHeight to be the maximum of content and actions.
Jun 22 2019, 8:34 AM · Kirigami

Jun 21 2019

davidre closed T10519: Port to KGlobalAccel as Resolved.
Jun 21 2019, 5:21 PM · Spectacle
davidre closed D21638: Display delay in the taskmanager.
Jun 21 2019, 4:46 PM · Spectacle
davidre committed R166:da42ea07b373: Display delay in the taskmanager (authored by davidre).
Display delay in the taskmanager
Jun 21 2019, 4:46 PM
davidre committed R166:1d568009f73f: Port to KGlobalAccel (authored by davidre).
Port to KGlobalAccel
Jun 21 2019, 3:41 PM
davidre closed D19310: Port to KGlobalAccel.
Jun 21 2019, 3:41 PM · Spectacle
davidre committed R166:ab896620463b: Grab the Keyboard on the first user click (authored by davidre).
Grab the Keyboard on the first user click
Jun 21 2019, 2:35 PM
davidre closed D21964: Grab the Keyboard on the first user click.
Jun 21 2019, 2:35 PM · Spectacle
davidre updated the summary of D21638: Display delay in the taskmanager.
Jun 21 2019, 2:11 PM · Spectacle