Feed Advanced Search

Mar 29 2018

markg requested changes to D11768: Add Desktop and Downloads to the default list of Places.

I don't know why, but i already have this by default in my Dolphin... (ArchLinux user here, i don't think they add it explicitly as they try to stay as true to upstream as possible).
So, err, don't know why.

Mar 29 2018, 4:32 PM · Frameworks

Mar 28 2018

markg accepted D11481: [KItemListView] Check if KItemListStyleOption actually changed before emitting a change.

It makes sense to me now. Thank you for elaborating on the timer.

Mar 28 2018, 3:35 PM

Mar 25 2018

markg resigned from D11204: Support NTFS hidden files.

Thanks !

Do you have a contributor account for pushing the commit, or do you need someone else to do it?

Mar 25 2018, 8:31 PM · Frameworks
markg added inline comments to D11204: Support NTFS hidden files.
Mar 25 2018, 4:53 PM · Frameworks

Mar 23 2018

markg added a comment to D11204: Support NTFS hidden files.

Ping.

Mar 23 2018, 12:06 PM · Frameworks
markg added a reviewer for D11204: Support NTFS hidden files: dfaure.
Mar 23 2018, 12:06 PM · Frameworks

Mar 19 2018

markg added a comment to D11481: [KItemListView] Check if KItemListStyleOption actually changed before emitting a change.

I wonder if the fix is really fixing an issue here or just masking it?
You're not setting the style if it's already set. That indicates something somewhere tries to set it when it was already set and that something should not do that.

Mar 19 2018, 1:04 PM

Mar 16 2018

markg accepted D10804: Show "Empty Trash" button inside trash directory.
Mar 16 2018, 1:17 PM · Dolphin

Mar 15 2018

markg added a comment to D11245: infopanel: Add choice of date display formats.

There's more to consider. With D10803 coming up tooltips may be overwhelmed with info when they continue to follow the settings in baloofileinformationrc. In the long run we'll probably need separate settings for tooltips and infopanel. baloo-widgets has to offer that option of course. (I'm willing to adapt it)

Mar 15 2018, 4:24 PM · KDE Applications, Dolphin
markg added a comment to D11354: Add vi-mode.

OK, the main problem from your comments is that it's enabled by default. I followed the example of Okular with it's hjkl keys for movements (those keys are enabled by default, you can test it).

But it's not a big deal, I can make it an option that's disabled by default.

@mmustac OK, it indeed breaks select-as-you-type feature. As a workaround, it's possible to use / to invoke a filter panel.

I'm also not sure if this would be accepted. Not every feature request should be implemented.
Things like this would be perfectly suited for a plugin, too bad Dolphin has no plugin support ;)

Kate and Okular have a plugin system, although they have vi-mode builtin. What's wrong with having a functionality what's disabled by default?

I'm also not even sure how much sense this makes conceptually. vi is a text editor; Dolphin is a file manager. The concepts don't really mesh very well.

From a vi user perspective, vi-mode make sense in any application. See those two lists.
As for file managers, look at ranger. It's one of the most popular console file managers.

So, will you accept this if I make it optional and disabled by default?

Mar 15 2018, 4:11 PM
markg requested changes to D11354: Add vi-mode.

-1 as is.
It's not a "mode" as you currently implemented it. It's a "always on" thingy.
It should be behind a switch somewhere and off by default.

Mar 15 2018, 2:26 PM
markg accepted D10804: Show "Empty Trash" button inside trash directory.

@elvisangelaccio do you have more for this?

Mar 15 2018, 11:55 AM · Dolphin

Mar 14 2018

markg added a comment to D11245: infopanel: Add choice of date display formats.

I think having it in the context menu makes enough sense; the toggle for the preview is already there, so there's already precedent for having the Information Panel's UI be controlled via context menu. +1.

@broulik and I seem to think that it should be in the settings, not under the RMB.
To be fair, i'm trusting your judgement so i'm fine either way, but i'm "leaning" towards in the settings as well.

If we go down that path, I would argue that it makes sense to relocate the [ ] preview checkbox that's currently in the context menu to that window as well for consistency's sake. I'd be fine with it as long as we do that to maintain consistency.

Mar 14 2018, 10:28 PM · KDE Applications, Dolphin
markg requested changes to D10804: Show "Empty Trash" button inside trash directory.

I did a clean rebuild as well, now it works.
Just one more question about a change i don't get.

Mar 14 2018, 10:25 PM · Dolphin
markg requested changes to D11245: infopanel: Add choice of date display formats.

I think having it in the context menu makes enough sense; the toggle for the preview is already there, so there's already precedent for having the Information Panel's UI be controlled via context menu. +1.

Mar 14 2018, 10:18 PM · KDE Applications, Dolphin
markg requested changes to D11204: Support NTFS hidden files.
Mar 14 2018, 4:20 PM · Frameworks
markg updated subscribers of D11204: Support NTFS hidden files.

@dfaure I've been looking over the file.cpp and file_unix.cpp code a bit and i'm rather surprised that UDS_HIDDEN isn't being set at all here. Which makes me wonder, why is the hidden logic missing and how is it working now?
I don't know for the "why", i'm hoping you can share some insight on this?
I do know for the "how"; "KFileItem::isHidden()" is taking care of that. It checks the first character for a dot and returns true if it does (thus hidden for any app that uses KFileItem).

Mar 14 2018, 4:20 PM · Frameworks

Mar 12 2018

markg added a comment to D11245: infopanel: Add choice of date display formats.

Why directly in the RMB menu?
It's not like users will often do that (i think).
Is there a reason for it not to be in the settings for that panel?

Mar 12 2018, 11:21 AM · KDE Applications, Dolphin

Mar 11 2018

markg added a comment to D10804: Show "Empty Trash" button inside trash directory.

@rominf if i restore from within the trash (trash is empty after restoring), the trash icon in the places menu and the "Empty Trash" button both stay active.
Could you take a look at that?

It works for me. Can you check it again (I rebased this on master).

Mar 11 2018, 6:26 PM · Dolphin
markg added a comment to D10804: Show "Empty Trash" button inside trash directory.

@rominf if i restore from within the trash (trash is empty after restoring), the trash icon in the places menu and the "Empty Trash" button both stay active.
Could you take a look at that?

Mar 11 2018, 5:38 PM · Dolphin
markg requested changes to D10832: Replace all enum to enum class.

Large review!
I was going to give a ship it till i compile tested it. It failed!
You can find the output here: https://p.sc2.nl/HJDBOJmtM

Mar 11 2018, 5:33 PM · Dolphin
markg requested changes to D10804: Show "Empty Trash" button inside trash directory.

No time to test in-depth right now, but UI-wise I like it now, so +1.

(Still even after a very brief test run, something is still off, not sure which Diff this belongs to: Restore everything, button is still enabled while it should be disabled as the trash is empty now.)

Mar 11 2018, 5:15 PM · Dolphin
markg accepted D11216: Update trash icon after restore operation.

+1, finally :)
Nice job, @rominf!

Mar 11 2018, 4:47 PM
markg requested changes to D10804: Show "Empty Trash" button inside trash directory.

I just tried it, works neatly.
It also looks kinda fancy (even though it was not my first choice of having it next to the urlbar, it looks nice)

Mar 11 2018, 4:45 PM · Dolphin
markg added a comment to D11012: Add Trash (empty, isEmpty, emptinessChanged).

@elvisangelaccio with your suggestions the generic methods are basically handled like if it were a namespace.
The only reason for the class to exist now is because of the signal in there.

Mar 11 2018, 2:38 PM
markg accepted D11012: Add Trash (empty, isEmpty, emptinessChanged).

Please do the next patch in a way that we can actually see what's happening, that's for D11216. I'd recommend following what @rkflx said for followup patches.

Mar 11 2018, 12:45 PM

Mar 10 2018

markg resigned from D10232: Include a pixel more in the dirty area.
Mar 10 2018, 9:15 PM · Konsole, Plasma
markg added a comment to D11012: Add Trash (empty, isEmpty, emptinessChanged).

I think it gets complicated now.
This patch and D11216 are now both not correct anymore (they are both the same, both do too much).

Mar 10 2018, 9:02 PM
markg requested changes to D11204: Support NTFS hidden files.

-2 in my opinion.
KFileItem should know nothing about NTFS.

Mar 10 2018, 3:24 PM · Frameworks
markg accepted D10995: Fix some compile warnings.

As Plasma itself depends on Qt 5.9, having Qt 5.8 in here as minimum is perfectly fine :)
It looks OK to me. Push it.

Mar 10 2018, 3:03 PM
markg added a comment to D11012: Add Trash (empty, isEmpty, emptinessChanged).

I think that's about it though. I have no further requests, the code looks OK to me (i did not test it).

Uh oh, testing is sometimes kinda important ;)

After this last comment it's a +1 from me.

Note that you can "resign" if you don't want to "accept" after "requesting changes", so arc land won't block.

I do prefer if someone else also gives a +1 before you push it. @rkflx perhaps?

Sorry, I'm currently not available for in-depth code review in Dolphin, only some random UI comments in-between…

Mar 10 2018, 2:58 PM
markg added a comment to D11012: Add Trash (empty, isEmpty, emptinessChanged).

or @elvisangelaccio

Mar 10 2018, 2:49 PM
markg requested changes to D11012: Add Trash (empty, isEmpty, emptinessChanged).

I think that's about it though. I have no further requests, the code looks OK to me (i did not test it).
After this last comment it's a +1 from me.
I do prefer if someone else also gives a +1 before you push it. @rkflx perhaps?

Mar 10 2018, 2:49 PM
markg requested changes to D11012: Add Trash (empty, isEmpty, emptinessChanged).
Mar 10 2018, 2:31 PM

Mar 5 2018

markg added a comment to D10446: Add KLanguageName.

Isn't this better suited for KCoreAddons?

Mar 5 2018, 11:30 AM · Frameworks
markg added inline comments to D10995: Fix some compile warnings.
Mar 5 2018, 9:14 AM
markg added a comment to D10832: Replace all enum to enum class.

What about this diff? Will this be accepted if I revert all enums that require static_cast?

Mar 5 2018, 8:58 AM · Dolphin
markg requested changes to D11012: Add Trash (empty, isEmpty, emptinessChanged).
Mar 5 2018, 8:55 AM
markg requested changes to D10804: Show "Empty Trash" button inside trash directory.

As you now also have D11012, please clean this commit up.
This one should only add the button now (and handle it), not add the class with it's helpers.

Mar 5 2018, 8:47 AM · Dolphin
markg added inline comments to D11012: Add Trash (empty, isEmpty, emptinessChanged).
Mar 5 2018, 8:45 AM

Mar 4 2018

markg accepted D10985: Remove unused #include.

Now it makes more sense.
Careful with arc ;)

Mar 4 2018, 3:04 PM
markg requested changes to D10985: Remove unused #include.

-1 this is totally unrelated. For future reference, i see new functions being added (setFocus and hasFocus and the addition of an action.

Mar 4 2018, 12:43 PM
markg requested changes to D10995: Fix some compile warnings.

Could you not do this please?
The revision i reviewed was a lot different then the one that's up now. You even fix different things compared to what i first saw.
This should have been a new review i think, not an update.

Mar 4 2018, 12:40 PM
markg added a comment to D10742: get rid of the raw KFileItem pointers in KCoreDirListerCache.

Can someone explain to me how switching from pointers to values is making anything faster, or is a first step towards making anything faster? This step in itself can only make things slower due to more "copying" (refcount updating).

Mar 4 2018, 12:30 PM · Frameworks

Mar 3 2018

markg accepted D10995: Fix some compile warnings.
Mar 3 2018, 9:41 PM
markg updated subscribers of D10985: Remove unused #include.

Can somebody land it for me? I have some problems:

$ arc land
Landing current branch 'remove-unused-includes'.
 TARGET  Landing onto "master", the default target under git.
 REMOTE  Using remote "origin", the default remote under git.
 FETCH  Fetching origin/master...
Usage Exception: There are no commits on "remove-unused-includes" which are not already present on the target.

Can somebody land it for me? I have some problems:

$ arc land
Landing current branch 'remove-unused-includes'.
 TARGET  Landing onto "master", the default target under git.
 REMOTE  Using remote "origin", the default remote under git.
 FETCH  Fetching origin/master...
Usage Exception: There are no commits on "remove-unused-includes" which are not already present on the target.

It looks like you already pushed it? https://cgit.kde.org/dolphin.git/commit/?id=848abc5922167a467bb73107ee6b72e9af3c8317

Exactly what i was going to type :)

Well. I don't know how did that happen. Maybe I was unconscious.

In other words, how to close this diff?

Mar 3 2018, 4:16 PM
markg added a comment to D10985: Remove unused #include.

Can somebody land it for me? I have some problems:

$ arc land
Landing current branch 'remove-unused-includes'.
 TARGET  Landing onto "master", the default target under git.
 REMOTE  Using remote "origin", the default remote under git.
 FETCH  Fetching origin/master...
Usage Exception: There are no commits on "remove-unused-includes" which are not already present on the target.
Mar 3 2018, 4:09 PM
markg resigned from D10960: Ask for confirmation when Closing Dolphin windows with a terminal panel running a program.
Mar 3 2018, 2:26 PM · Dolphin
markg added a comment to D10990: Add "Show Target" into symlink context menu and file menu.

I'm not so sure if this is a feature worth having.
Dolphin also works under windows, it doesn't know symlinks (something like it, yes, but it's not a symlink as it is under linux).

Also, is it worth exposing that technical detail (symlink is quite technical) to the user?
Is a good solid reason for having this? Or would this just satisfy a edge case used by very few people (if ever)?

Suppose I have file A and symlink B -> A. I want to copy file A to the FAT formatted flash drive using symlink B. I get an error because FAT doesn't support symlinks. Ooops... Leaked abstraction.

Mar 3 2018, 2:13 PM
markg added a comment to D10990: Add "Show Target" into symlink context menu and file menu.

I'm not so sure if this is a feature worth having.
Dolphin also works under windows, it doesn't know symlinks (something like it, yes, but it's not a symlink as it is under linux).

Mar 3 2018, 1:59 PM
markg accepted D10985: Remove unused #include.
Mar 3 2018, 1:53 PM
markg accepted D10985: Remove unused #include.

This is really great! Nobody every cleans up unused includes because it's tedious i suppose.
But having this done is just awesome, good work!

Mar 3 2018, 12:29 PM
markg accepted D10986: Modernize the syntax of shortcuts.

Ha, funny. I didn't even know there was an old syntax for this. I've always used the + syntax.
I ran it and it seems to be working just fine (just tested a few shortcuts, not all).

Mar 3 2018, 12:18 PM
markg added a comment to T5970: NaturalSorting option needs a place in system settings.

I've updated the description. I'm not entirely sure if this is how i should update it (never played with phabricator tasks before). Everything i added is obviously after the "Addition by @markg".
And added @ngraham for input :)

Mar 3 2018, 12:06 PM · Dolphin, Frameworks
markg updated the task description for T5970: NaturalSorting option needs a place in system settings.
Mar 3 2018, 12:03 PM · Dolphin, Frameworks
markg requested changes to D10960: Ask for confirmation when Closing Dolphin windows with a terminal panel running a program.
Mar 3 2018, 12:55 AM · Dolphin
markg accepted D10968: Add an option to confirm trash emptying into settings.

Looks fine, nice to have :)
Feel free to ship it without updating the review for that one little pointer position change.

Mar 3 2018, 12:47 AM · Dolphin

Mar 2 2018

markg added a comment to D10804: Show "Empty Trash" button inside trash directory.

Is the singleton class really needed? It imho seems a bit overkill for merely the trash status.
On the other hand, it does neatly move some trash functionality in it's own little space. But a class?..
The functions are also all self contained so it might be better suited in it's own namespace (say a TrashHelper::<youFunctions>).

Yep, a singleton is needed, though I don't like it too. I have a signal to emit. That means I have to have QObject. Nobody can emit signals from static functions, hence I need a singleton.

Mar 2 2018, 11:48 AM · Dolphin
markg added a comment to D10857: Change qSort to std::sort.

I cannot confirm that stable_sort is faster, on the contrary. http://www.davidfaure.fr/2018/qsort_performance.cpp updated, says (repeatedly)
"std::sort took: 5003 ms"
"std::stable_sort took: 7490 ms"

Maybe on specific data (the actual filenames you're testing this with), stable_sort ends up being faster, but this isn't true in general (with random data).

Mar 2 2018, 11:25 AM · Frameworks

Mar 1 2018

markg added inline comments to D10804: Show "Empty Trash" button inside trash directory.
Mar 1 2018, 10:14 PM · Dolphin
markg added a comment to D10804: Show "Empty Trash" button inside trash directory.

Is the singleton class really needed? It imho seems a bit overkill for merely the trash status.
On the other hand, it does neatly move some trash functionality in it's own little space. But a class?..
The functions are also all self contained so it might be better suited in it's own namespace (say a TrashHelper::<youFunctions>).
Also, don't forget the const correctness. All you functions are const functions (they don't change class members).

Mar 1 2018, 9:14 PM · Dolphin

Feb 28 2018

markg added a comment to D10804: Show "Empty Trash" button inside trash directory.

Maybe, but your code does not work all that reliably either. I think the best approach is to fix the bug, and then handle the trash state uniformly in Dolphin's existing code as well as your patch.

@markg Any pointers to help fixing the bug?

Feb 28 2018, 10:04 PM · Dolphin
markg accepted D10857: Change qSort to std::sort.

+1, but wait till someone else had a look as well.

Feb 28 2018, 5:51 PM · Frameworks

Feb 27 2018

markg added a comment to D10804: Show "Empty Trash" button inside trash directory.

@ngraham would it be acceptable to have a "bar" above the trash exactly as Finder shows it?
Imho it would be a bit redundant as the breadcrumb bar also shows it, but it looks a lot better.

Feb 27 2018, 5:33 PM · Dolphin
markg requested changes to D10804: Show "Empty Trash" button inside trash directory.
Feb 27 2018, 5:28 PM · Dolphin
markg added a comment to D10857: Change qSort to std::sort.

I'm not opposed to the idea, but measuring CPU usage is a rather misleading indicator. What if it takes 10 times longer, because it's progressing much more slowly? ;)

Please at least measure with QElapsedTimer around the sorting (not to be committed, just to gather numbers about the actual performance of this from a user's point of view).
I'm interested in the result ;)

The results are strange. All the results are measured sorting 50.000 small files:

Both Qt are the same version from opensuse.

In an i5, why the difference is so big? recent cpu bugs?
qSort in i3
274764, 276060 (with 3 directories), 365878, 424506 (without directories)
std::sort in i3
940, 995 (with 3 directories), 2472, 2539 (without directories)

In AMD the results are closer, qSort wins
qSort in AMD
658, 726, 695, 683, 676, 666, 649, 684, 666 (without directories)
std:sort in AMD
843, 839, 878, 896, 925 (without directories)

Feb 27 2018, 12:13 PM · Frameworks

Feb 26 2018

markg added a comment to D10857: Change qSort to std::sort.

+1, also for what @apol said.

Feb 26 2018, 4:36 PM · Frameworks

Feb 25 2018

markg added a comment to D10414: Add move semantics support to KIO::UDSEntry..

I seem to be making a mess of this commit. Sorry for that.
https://p.sc2.nl/B13Etcldf with the changes.

Feb 25 2018, 8:16 PM · Frameworks
markg added a comment to D10702: Always use a job to delete files to avoid freezing process waiting on IO.

"unlink() in most of the modern filesystems is not affected by the size of the file" doesn't match my experience, I have seen konqueror/dolphin freeze for 10s while deleting a 8GB file (on a somewhat old system, no SSD). And that would actually be the reason for this patch to go in. But on the other hand, I have a hard time believing that this patch doesn't make things slower for the case of many small files, due to the communication overhead with the kioslave (and that's the reason I wrote this code in the first place).

Maybe the right solution is to use QFile::remove if the file is small, and use the kioslave if the file is big. But finding the file size in the first place takes a little bit of time too :-)

Feb 25 2018, 6:42 PM · Frameworks
markg added a comment to D10832: Replace all enum to enum class.

Thanks for the patch.

I agree we should use enum class for new code, I'm not sure it's worth porting to old enums though.
The problem is that this diff is huge and it will make git blame harder to use, for little gain.
@markg @rkflx toughts?

That said, if we really want to do it, please get rid of those static_casts where possible, they will only reduce the readability of the code.

Feb 25 2018, 2:44 PM · Dolphin

Feb 24 2018

markg added a comment to D10702: Always use a job to delete files to avoid freezing process waiting on IO.

While this might give you the expected result, it feels like a workaround.

I'm assuming the fast path is there for a reason and is really substantially faster then going through the job route.
If that is the case then the proper fix would be to make that code part async. That is obviously much more complex (otherwise it would've been done already).
Think of using std::async and a QEventLoop. Sounds difficult, right? It is :) But I've been playing with that kind of stuff lately so i'm happy to share an example that you can use as a starting point.
Here it is: https://p.sc2.nl/BygE-Oiwz

I wanted to paste it inline, but that already got quite big so a link it is.
I've added a bunch of comments in the code to explains what it's doing.
Note that the example does make a "QEventLoop", you should not do that within the if statement, but rather outside the while loop and simply call exec() and quit() every time (not making a new QEventLoop for every delete)

Lastly, please benchmark this fast pats (as it currently is) compared to your KIO version and my async version to see if the fast path really is the fast path. As we just don't know and that kinda influences which route to choose here.

Please correct if I am wrong but kio::file_delete will, in the end, calls FileProtocol::deleteRecursive(const QString &path) which works the same way using QFile::remove as before.
So I have the hypothesis that they should not be much difference in performance if any.

It could be impactful because of the KIO::file_delete call and I don't know precisely how expensive such a kio call is.
Or because they are more jobs class instanciated.
But those KIO::file_* calls are already used in a lot of cases in CopyJobPrivate::copyNextFile for instance to recursively copy files, so I know that at least in some cases it is ok.

Please correct me wherever I am wrong I am new in the KIO codebase. I am learning as I go.

The main drawback in this version of the patch currently, is that we loose progressive status update when a lot of files are being removed (slotReport was called each 300 deletion before).
And since needs to be fixed this at least.

Feb 24 2018, 4:44 PM · Frameworks

Feb 23 2018

markg accepted D10771: Save some memory allocations by using the right API.

Looks good to me.

Feb 23 2018, 8:59 PM · Frameworks

Feb 22 2018

markg added a comment to D10742: get rid of the raw KFileItem pointers in KCoreDirListerCache.

I unfortunately have no clue how to answer your questions.

Feb 22 2018, 3:25 PM · Frameworks

Feb 21 2018

markg added a comment to D10702: Always use a job to delete files to avoid freezing process waiting on IO.

While this might give you the expected result, it feels like a workaround.

Feb 21 2018, 10:28 PM · Frameworks

Feb 19 2018

markg added a comment to D10414: Add move semantics support to KIO::UDSEntry..

@bcooksley Ah, i see you just fixed this by using kiotesthelper.h (which includes kioglobal_p.h).
According to Jenkins, all is OK now :)

Feb 19 2018, 9:05 AM · Frameworks

Feb 18 2018

markg added a comment to D10414: Add move semantics support to KIO::UDSEntry..

Looks like QT_LSTAT doesn't exist on Windows - see https://git.reviewboard.kde.org/r/127727/

Feb 18 2018, 12:25 PM · Frameworks
markg added a comment to D10617: Fix "ambiguous shortcut" issue introduced with D10314.

The shortcut won't affect other apps since the file dialog its its own context. Even if the host app uses F12 for something, the file dialog will grab the key first, so there's no "ambiguous shortcut" issue.

Yes, you won't get the ambiguous shortcut dialog but it'd be a bad idea to use F12 for two different things within the same app (the file dialog is part of the app).

Feb 18 2018, 12:21 PM · Frameworks

Feb 17 2018

markg added a comment to D10414: Add move semantics support to KIO::UDSEntry..

Right, it didn't fix it... https://build.kde.org/job/Frameworks%20kio%20kf5-qt5%20WindowsMSVCQt5.9/195/console
Could someone with a windows setup (compiler and kio) compile kio and tell me what is wrong here?

Feb 17 2018, 11:19 PM · Frameworks
markg added a comment to D10414: Add move semantics support to KIO::UDSEntry..

Right, this one is my fault: https://build.kde.org/job/Frameworks%20kio%20kf5-qt5%20WindowsMSVCQt5.9/193/
Weird that QT_LSTAT is no problem on linux without including qplatformdefs.h, on windows it apparently is.
I pushed the fix: https://cgit.kde.org/kio.git/commit/?id=11051f3709cdc651a68990a9c17a69c33d5812db

Feb 17 2018, 11:09 PM · Frameworks
markg committed R241:11051f3709cd: Compile fix for windows. Include qplatformdefs.h for QT_LSTAT. (authored by markg).
Compile fix for windows. Include qplatformdefs.h for QT_LSTAT.
Feb 17 2018, 11:08 PM
markg committed R241:37d3961798ec: Add @since lines to KFileItem move constructor and assignment operator. This… (authored by markg).
Add @since lines to KFileItem move constructor and assignment operator. This…
Feb 17 2018, 10:24 PM
markg committed R241:d8414425acc5: Add move semantics support to KIO::UDSEntry. (authored by markg).
Add move semantics support to KIO::UDSEntry.
Feb 17 2018, 10:19 PM
markg closed D10414: Add move semantics support to KIO::UDSEntry..
Feb 17 2018, 10:19 PM · Frameworks
markg updated the diff for D10414: Add move semantics support to KIO::UDSEntry..

Add @since lines where for the move assignment operator and constructor.
Typo fix.

Feb 17 2018, 10:17 PM · Frameworks
markg accepted D10616: Add Ctrl+H to the list of shortcuts for "show/hide hidden files".

Fine by me.
I do wonder why it used to be in an if statement though. It would have added a nullptr if the "if (showHidden)" check failed (which would fail when it's a nullptr).

Feb 17 2018, 9:28 PM · Frameworks
markg accepted D10617: Fix "ambiguous shortcut" issue introduced with D10314.

Looks good to me.

Feb 17 2018, 9:23 PM · Frameworks

Feb 13 2018

markg abandoned D10380: Refactor KCoreDirLister(Cache) to use KFileItemListV2 where possible..

As this is a no-go, rightfully so! Abandoning it.

Feb 13 2018, 12:53 PM · Frameworks
markg added a comment to D10378: Deprecate KFileItemList and introduce KFileItemListV2.

@dfaure What's your preference here?
I do "want" to work on this, no promises though. It could take a very long while ;)

Feb 13 2018, 12:51 PM · Frameworks
markg added a comment to D10414: Add move semantics support to KIO::UDSEntry..

Ahh, will fix that when i get home.
I missed the @since lines in KFileITem as well. Is it OK if i just add them outside of phabricator? They will get an "@since 5.43" i think.

Feb 13 2018, 9:12 AM · Frameworks

Feb 12 2018

markg added a comment to D10414: Add move semantics support to KIO::UDSEntry..

I'm not afraid of the compiler generating wrong code. That is the least of my worries :)
What i am afraid of (which is why i suggested the copy test) is a wrong optimization at some point (like adding a pointer member but forgetting to properly copy it) which would break the UDSEntry.
But a test for that would probably deserves its own review independent of this.

Feb 12 2018, 10:45 PM · Frameworks
markg updated the diff for D10414: Add move semantics support to KIO::UDSEntry..

Fix a typo and replace QCOMPARE with QVERIFY for the file open check.

Feb 12 2018, 10:38 PM · Frameworks

Feb 11 2018

markg added a comment to D10437: Update file ioslave's temporary authorization list.

I just tried this:
kdesu gwenview (type root password and go to the root homefolder).
In gwenview i can now go to that folder.
In dolphin (started as user, not root) i can't get into that folder.

I don't really see what you try to fix here as it seems to be working just fine here.
Or i don't understand it.. In that case, please provide reproducible steps.

Currently file ioslave does not support reading contents of a locked(is this the right word?) folder. So no file operations are possible.

Feb 11 2018, 1:22 PM · Frameworks
markg added a comment to D10437: Update file ioslave's temporary authorization list.

I just tried this:
kdesu gwenview (type root password and go to the root homefolder).
In gwenview i can now go to that folder.
In dolphin (started as user, not root) i can't get into that folder.

Feb 11 2018, 12:58 PM · Frameworks

Feb 10 2018

markg added a comment to D10414: Add move semantics support to KIO::UDSEntry..

@dfaure i can make the test much more complete if you want.. But it's more complex thus i left it out.
I can store the UDSEntry in a QDataStream which would be backed by a QByteArray. That can be hashed!
Then i can do the same after moving operations and compare the hash. That way i would know for sure the UDSEntry objects match perfectly.

Feb 10 2018, 1:24 PM · Frameworks
markg added a comment to D10414: Add move semantics support to KIO::UDSEntry..

Seems my unittest skills have become a bit rusty over the years of basically not contributing patches to KDE ;)
Thank you for the comments, David!

Feb 10 2018, 1:14 PM · Frameworks
markg updated the diff for D10414: Add move semantics support to KIO::UDSEntry..

Update test.

Feb 10 2018, 1:12 PM · Frameworks

Feb 9 2018

markg updated the diff for D10414: Add move semantics support to KIO::UDSEntry..

Remove comment about compiler generated functions.

Feb 9 2018, 6:39 PM · Frameworks
markg added a comment to D10414: Add move semantics support to KIO::UDSEntry..

Just a note.
The fact that currently no code is structured in a way that move semantics are used is... slightly annoying ;)
No as in not when running dolphin with it and profiling it to see UDSEntry uses. There "might" be code that uses move semantics when this patch is applied, but i haven't seen it yet.

Feb 9 2018, 6:36 PM · Frameworks
markg updated the diff for D10414: Add move semantics support to KIO::UDSEntry..

Fix indentation.

Feb 9 2018, 6:32 PM · Frameworks
markg requested review of D10414: Add move semantics support to KIO::UDSEntry..
Feb 9 2018, 6:29 PM · Frameworks