D26890: QXmlInputSource is deprecated in qt5.15. Port it to QXmlStreamReader

2020-01-24 Thread Laurent Montel
mlaurent updated this revision to Diff 74348.
mlaurent added a comment.


  Trim better calling toString()

REPOSITORY
  R237 KConfig

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D26890?vs=74295=74348

BRANCH
  port_QXmlStreamReader (branched from master)

REVISION DETAIL
  https://phabricator.kde.org/D26890

AFFECTED FILES
  autotests/kconfigloadertest.cpp
  src/gui/kconfigloader.cpp
  src/gui/kconfigloaderhandler_p.h

To: mlaurent, dfaure
Cc: apol, kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns


KDE CI: Frameworks » kcoreaddons » kf5-qt5 FreeBSDQt5.13 - Build # 100 - Still Unstable!

2020-01-24 Thread CI System
BUILD UNSTABLE
 Build URL
https://build.kde.org/job/Frameworks/job/kcoreaddons/job/kf5-qt5%20FreeBSDQt5.13/100/
 Project:
kf5-qt5 FreeBSDQt5.13
 Date of build:
Sat, 25 Jan 2020 01:54:48 +
 Build duration:
2 min 0 sec and counting
   JUnit Tests
  Name: projectroot Failed: 2 test(s), Passed: 25 test(s), Skipped: 0 test(s), Total: 27 test(s)Failed: projectroot.autotests.kdirwatch_inotify_unittestFailed: projectroot.autotests.klistopenfilesjobtest_unix

D26900: Support multiple values in XDG_CURRENT_DESKTOP

2020-01-24 Thread David Faure
dfaure updated this revision to Diff 74337.
dfaure added a comment.


  use splitRef and QVector

REPOSITORY
  R309 KService

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D26900?vs=74326=74337

BRANCH
  xdg_current_deskto

REVISION DETAIL
  https://phabricator.kde.org/D26900

AFFECTED FILES
  autotests/kmimeassociationstest.cpp
  src/services/kservice.cpp

To: dfaure, apol, aacid
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns


D26903: allow programLogo property to be a QIcon, too

2020-01-24 Thread Aleix Pol Gonzalez
apol accepted this revision.
This revision is now accepted and ready to land.

REPOSITORY
  R263 KXmlGui

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D26903

To: cullmann, apol
Cc: dhaumann, kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns


D26900: Support multiple values in XDG_CURRENT_DESKTOP

2020-01-24 Thread Aleix Pol Gonzalez
apol added inline comments.

INLINE COMMENTS

> kservice.cpp:658
>  
> -QStringList 
> currentDesktops(QString::fromLatin1(qgetenv("XDG_CURRENT_DESKTOP")));
> +QStringList 
> currentDesktops(QString::fromLatin1(qgetenv("XDG_CURRENT_DESKTOP")).split(QLatin1Char(':'),
>  Qt::SkipEmptyParts));
>  if (currentDesktops.isEmpty()) {

You can use QVector here, it would save us constructing a bunch of 
strings for no reason. Maybe not in the general case of everyone having just 
the one desktop though.

REPOSITORY
  R309 KService

REVISION DETAIL
  https://phabricator.kde.org/D26900

To: dfaure, apol, aacid
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns


D25698: New query mechanism for applications: KApplicationTrader

2020-01-24 Thread David Faure
dfaure updated this revision to Diff 74335.
dfaure added a comment.


  improve unittest, let the name match more queries

REPOSITORY
  R309 KService

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D25698?vs=74334=74335

BRANCH
  kapplicationtrader

REVISION DETAIL
  https://phabricator.kde.org/D25698

AFFECTED FILES
  autotests/CMakeLists.txt
  autotests/kapplicationtradertest.cpp
  autotests/kservicetest.cpp
  src/CMakeLists.txt
  src/services/kapplicationtrader.cpp
  src/services/kapplicationtrader.h
  src/services/kmimetypetrader.cpp
  src/services/kservicefactory.cpp
  src/services/kservicefactory_p.h
  src/services/ktraderparsetree.cpp
  src/services/ktraderparsetree_p.h
  src/sycoca/ksycocaentry.h

To: dfaure, broulik, mart, vkrause, nicolasfella, aacid, davidedmundson
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns


D25698: New query mechanism for applications: KApplicationTrader

2020-01-24 Thread David Faure
dfaure updated this revision to Diff 74334.
dfaure added a comment.


  Port to erase(remove_if), add unittest for OnlyShowIn, which showed 
inconsistencies => now removed from results of both methods.

REPOSITORY
  R309 KService

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D25698?vs=74073=74334

BRANCH
  kapplicationtrader

REVISION DETAIL
  https://phabricator.kde.org/D25698

AFFECTED FILES
  autotests/CMakeLists.txt
  autotests/kapplicationtradertest.cpp
  autotests/kservicetest.cpp
  src/CMakeLists.txt
  src/services/kapplicationtrader.cpp
  src/services/kapplicationtrader.h
  src/services/kmimetypetrader.cpp
  src/services/kservicefactory.cpp
  src/services/kservicefactory_p.h
  src/services/ktraderparsetree.cpp
  src/services/ktraderparsetree_p.h
  src/sycoca/ksycocaentry.h

To: dfaure, broulik, mart, vkrause, nicolasfella, aacid, davidedmundson
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns


D25798: Deprecated allowAsDefault

2020-01-24 Thread Nathaniel Graham
ngraham added a comment.


  Thanks!

REPOSITORY
  R309 KService

REVISION DETAIL
  https://phabricator.kde.org/D25798

To: nicolasfella, #frameworks, dfaure
Cc: ngraham, kossebau, kde-frameworks-devel, LeGast00n, GB_2, michaelh, bruns


D26564: Clean kbuildsycoca4 support

2020-01-24 Thread Eike Hein
hein added a comment.


  Let's wait until branching, there's still some KDE 4 apps people use.

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D26564

To: meven, ervin, #frameworks, hein
Cc: dfaure, kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns


D26840: Correctly set underMouse() for inline notes

2020-01-24 Thread Sven Brauch
brauch added a comment.


  I'm sorry, updateView is the wrong function to call, you need updateDirty. I 
tried it out, like this it works:
  
if (e->buttons() == Qt::NoButton) {
auto noteData = inlineNoteAt(e->globalPos());
if (noteData.m_position.isValid()) {
if (!m_activeInlineNote.m_position.isValid()) {
// no active note -- focus in
tagLine(noteData.m_position);
updateDirty();
noteData.m_underMouse = true;

noteData.m_provider->inlineNoteFocusInEvent(KTextEditor::InlineNote(noteData), 
e->globalPos());
m_activeInlineNote = noteData;
} else {

noteData.m_provider->inlineNoteMouseMoveEvent(KTextEditor::InlineNote(noteData),
 e->globalPos());
}
} else if (m_activeInlineNote.m_position.isValid()) {
tagLine(m_activeInlineNote.m_position);
updateDirty();
m_activeInlineNote.m_underMouse = false;

m_activeInlineNote.m_provider->inlineNoteFocusOutEvent(KTextEditor::InlineNote(m_activeInlineNote));
m_activeInlineNote = {};
}
}

REPOSITORY
  R39 KTextEditor

BRANCH
  underMouse (branched from master)

REVISION DETAIL
  https://phabricator.kde.org/D26840

To: davidre, #ktexteditor, cullmann
Cc: brauch, cullmann, kwrite-devel, kde-frameworks-devel, rrosch, LeGast00n, 
GB_2, domson, michaelh, ngraham, bruns, demsking, sars, dhaumann


D26903: allow programLogo property to be a QIcon, too

2020-01-24 Thread Dominik Haumann
dhaumann added a comment.


  Looks good to me, and very much in line with the other `canConvert` 
statements before.

REPOSITORY
  R263 KXmlGui

REVISION DETAIL
  https://phabricator.kde.org/D26903

To: cullmann
Cc: dhaumann, kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns


D26903: allow programLogo property to be a QIcon, too

2020-01-24 Thread Christoph Cullmann
cullmann created this revision.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
cullmann requested review of this revision.

REVISION SUMMARY
  rational: QIcon allows for better passing of HiDPI aware icons to the dialog

TEST PLAN
  make && make test
  
  tried out to use an QIcon in KTextEditor, seems to work and it looks "crisp"

REPOSITORY
  R263 KXmlGui

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D26903

AFFECTED FILES
  src/kaboutapplicationdialog.cpp

To: cullmann
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns


D25798: Deprecated allowAsDefault

2020-01-24 Thread Nathaniel Graham
ngraham added a comment.


  This makes `kde-cli-tools` fail to build for me with Qt 5.14 on openSUSE 
Tumbleweed:
  
[ 43%] Linking CXX executable ../bin/kioclient5
/home/nate/kde/src/kde-cli-tools/keditfiletype/mimetypedata.cpp: In member 
function ‘QStringList MimeTypeData::getAppOffers() const’:
/home/nate/kde/src/kde-cli-tools/keditfiletype/mimetypedata.cpp:217:20: 
error: ‘class KService’ has no member named ‘allowAsDefault’
  217 | if ((*it)->allowAsDefault())
  |^~
  
  I guess we found a use case. :)

REPOSITORY
  R309 KService

REVISION DETAIL
  https://phabricator.kde.org/D25798

To: nicolasfella, #frameworks, dfaure
Cc: ngraham, kossebau, kde-frameworks-devel, LeGast00n, GB_2, michaelh, bruns


D26840: Correctly set underMouse() for inline notes

2020-01-24 Thread David Redondo
davidre added a comment.


  In D26840#599974 , @brauch wrote:
  
  > Then it seems like the line is not tagged correctly. Maybe try 
`tagLines(note.position.line(), note.position.line())`? I think the column 
being the same is not what the function being called expects.
  
  
  Hmm doesn't seem to be instantly either. But I have the feeling it's worse 
when I try to record it so it's maybe an issue on  my laptop. Would you object 
if I land this then, given this is more correct than before?

REPOSITORY
  R39 KTextEditor

BRANCH
  underMouse (branched from master)

REVISION DETAIL
  https://phabricator.kde.org/D26840

To: davidre, #ktexteditor, cullmann
Cc: brauch, cullmann, kwrite-devel, kde-frameworks-devel, rrosch, LeGast00n, 
GB_2, domson, michaelh, ngraham, bruns, demsking, sars, dhaumann


D26900: Support multiple values in XDG_CURRENT_DESKTOP

2020-01-24 Thread David Faure
dfaure created this revision.
dfaure added reviewers: apol, aacid.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
dfaure requested review of this revision.

REVISION SUMMARY
  The Desktop Entry spec says "If $XDG_CURRENT_DESKTOP is set then it contains 
a colon-separated list of strings."
  I found this bug (in a 2014 commit of mine) by simply reading this code and 
wondering why there was a QStringList.

TEST PLAN
  Unittest updated, fails without the fix

REPOSITORY
  R309 KService

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D26900

AFFECTED FILES
  autotests/kmimeassociationstest.cpp
  src/services/kservice.cpp

To: dfaure, apol, aacid
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns


KDE CI: Frameworks » kio » kf5-qt5 FreeBSDQt5.13 - Build # 281 - Still Unstable!

2020-01-24 Thread CI System
BUILD UNSTABLE
 Build URL
https://build.kde.org/job/Frameworks/job/kio/job/kf5-qt5%20FreeBSDQt5.13/281/
 Project:
kf5-qt5 FreeBSDQt5.13
 Date of build:
Fri, 24 Jan 2020 18:24:43 +
 Build duration:
6 min 25 sec and counting
   JUnit Tests
  Name: projectroot Failed: 4 test(s), Passed: 48 test(s), Skipped: 0 test(s), Total: 52 test(s)Failed: projectroot.autotests.kiocore_jobtestFailed: projectroot.autotests.kiocore_kmountpointtestFailed: projectroot.autotests.kiowidgets_kdirlistertestFailed: projectroot.autotests.kiowidgets_kdirmodeltestName: projectroot.autotests Failed: 0 test(s), Passed: 6 test(s), Skipped: 0 test(s), Total: 6 test(s)Name: projectroot.src.ioslaves.trash Failed: 0 test(s), Passed: 1 test(s), Skipped: 0 test(s), Total: 1 test(s)Name: projectroot.src.kpasswdserver Failed: 0 test(s), Passed: 1 test(s), Skipped: 0 test(s), Total: 1 test(s)

D26878: Add missing renamed event when a destination file already existed

2020-01-24 Thread Méven Car
This revision was automatically updated to reflect the committed changes.
Closed by commit R241:fe5913b1346a: Add missing renamed event when a 
destination file already existed (authored by meven).

REPOSITORY
  R241 KIO

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D26878?vs=74324=74325

REVISION DETAIL
  https://phabricator.kde.org/D26878

AFFECTED FILES
  autotests/jobtest.cpp
  autotests/jobtest.h
  autotests/kiotesthelper.h
  src/core/copyjob.cpp

To: meven, #frameworks, ervin, dfaure
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns


D26878: Add missing renamed event when a destination file already existed

2020-01-24 Thread Méven Car
meven updated this revision to Diff 74324.
meven marked 3 inline comments as done.
meven added a comment.


  Clean up + QVERIFY

REPOSITORY
  R241 KIO

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D26878?vs=74316=74324

BRANCH
  arcpatch-D26878

REVISION DETAIL
  https://phabricator.kde.org/D26878

AFFECTED FILES
  autotests/jobtest.cpp
  autotests/jobtest.h
  autotests/kiotesthelper.h
  src/core/copyjob.cpp

To: meven, #frameworks, ervin, dfaure
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns


D26876: Remove the Enum hack: finish lists with a comma, it's valid c++

2020-01-24 Thread Aleix Pol Gonzalez
apol accepted this revision.
This revision is now accepted and ready to land.

REPOSITORY
  R237 KConfig

BRANCH
  remove_enum_hack

REVISION DETAIL
  https://phabricator.kde.org/D26876

To: tcanabrava, ervin, dfaure, apol
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns


D26878: Add missing renamed event when a destination file already existed

2020-01-24 Thread David Faure
dfaure accepted this revision.
dfaure added a comment.


  Nice work! Thanks for the unittest extension.

INLINE COMMENTS

> jobtest.cpp:1731
> +
> +qDebug() << sourceFile << renamedFile;
> +QVERIFY2(job->exec(), qPrintable(job->errorString()));

Please clean up before committing

> jobtest.cpp:1740
> +
> +QFile(sourceFile).remove();
> +QDir(dest).removeRecursively();

QVERIFY(...)

> jobtest.cpp:1741
> +QFile(sourceFile).remove();
> +QDir(dest).removeRecursively();
> +}

QVERIFY(...)

REPOSITORY
  R241 KIO

BRANCH
  arcpatch-D26878

REVISION DETAIL
  https://phabricator.kde.org/D26878

To: meven, #frameworks, ervin, dfaure
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns


D26131: Braces around for, break early.

2020-01-24 Thread Tomaz Canabrava
tcanabrava added reviewers: ervin, dfaure.

REPOSITORY
  R237 KConfig

REVISION DETAIL
  https://phabricator.kde.org/D26131

To: tcanabrava, ervin, dfaure
Cc: ervin, patrickelectric, kde-frameworks-devel, LeGast00n, GB_2, michaelh, 
ngraham, bruns


D26867: New class: KConfigTypeInformation

2020-01-24 Thread Tomaz Canabrava
tcanabrava added reviewers: ervin, dfaure.

REPOSITORY
  R237 KConfig

REVISION DETAIL
  https://phabricator.kde.org/D26867

To: tcanabrava, ervin, dfaure
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns


D26876: Remove the Enum hack: finish lists with a comma, it's valid c++

2020-01-24 Thread Tomaz Canabrava
tcanabrava added reviewers: ervin, dfaure.

REPOSITORY
  R237 KConfig

REVISION DETAIL
  https://phabricator.kde.org/D26876

To: tcanabrava, ervin, dfaure
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns


D26868: Move newItem to private method in KConfigSourceGenerator

2020-01-24 Thread Tomaz Canabrava
tcanabrava added reviewers: ervin, dfaure.

REPOSITORY
  R237 KConfig

REVISION DETAIL
  https://phabricator.kde.org/D26868

To: tcanabrava, ervin, dfaure
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns


D26877: Simplify calls to whitespace() and use it in more places.

2020-01-24 Thread Tomaz Canabrava
tcanabrava added reviewers: dfaure, ervin.

REPOSITORY
  R237 KConfig

REVISION DETAIL
  https://phabricator.kde.org/D26877

To: tcanabrava, dfaure, ervin
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns


D26898: expose an id for the wallpaper

2020-01-24 Thread Marco Martin
mart updated this revision to Diff 74320.
mart added a comment.


  plasmoidId to avoid potential future clashes with QML id

REPOSITORY
  R242 Plasma Framework (Library)

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D26898?vs=74319=74320

BRANCH
  phab/wallpaperid

REVISION DETAIL
  https://phabricator.kde.org/D26898

AFFECTED FILES
  src/scriptengines/qml/plasmoid/wallpaperinterface.cpp
  src/scriptengines/qml/plasmoid/wallpaperinterface.h

To: mart, #plasma
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns


D26898: expose an id for the wallpaper

2020-01-24 Thread Marco Martin
mart created this revision.
mart added a reviewer: Plasma.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
mart requested review of this revision.

REVISION SUMMARY
  The id of the wallpaper, is really the id of the containment, as there will 
always
  be a perfect 1:1 correspondence between them

REPOSITORY
  R242 Plasma Framework (Library)

BRANCH
  phab/wallpaperid

REVISION DETAIL
  https://phabricator.kde.org/D26898

AFFECTED FILES
  src/scriptengines/qml/plasmoid/wallpaperinterface.cpp
  src/scriptengines/qml/plasmoid/wallpaperinterface.h

To: mart, #plasma
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns


D26878: Add missing renamed event when a destination file already existed

2020-01-24 Thread Méven Car
meven updated this revision to Diff 74316.
meven added a comment.


  Remove a bad unused

REPOSITORY
  R241 KIO

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D26878?vs=74311=74316

BRANCH
  arcpatch-D26878

REVISION DETAIL
  https://phabricator.kde.org/D26878

AFFECTED FILES
  autotests/jobtest.cpp
  autotests/jobtest.h
  autotests/kiotesthelper.h
  src/core/copyjob.cpp

To: meven, #frameworks, ervin, dfaure
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns


KDE CI: Frameworks » kio » kf5-qt5 FreeBSDQt5.13 - Build # 280 - Still Unstable!

2020-01-24 Thread CI System
BUILD UNSTABLE
 Build URL
https://build.kde.org/job/Frameworks/job/kio/job/kf5-qt5%20FreeBSDQt5.13/280/
 Project:
kf5-qt5 FreeBSDQt5.13
 Date of build:
Fri, 24 Jan 2020 14:33:38 +
 Build duration:
6 min 32 sec and counting
   JUnit Tests
  Name: projectroot Failed: 3 test(s), Passed: 49 test(s), Skipped: 0 test(s), Total: 52 test(s)Failed: projectroot.autotests.kiocore_kmountpointtestFailed: projectroot.autotests.kiowidgets_kdirlistertestFailed: projectroot.autotests.kiowidgets_kdirmodeltestName: projectroot.autotests Failed: 0 test(s), Passed: 6 test(s), Skipped: 0 test(s), Total: 6 test(s)Name: projectroot.src.ioslaves.trash Failed: 0 test(s), Passed: 1 test(s), Skipped: 0 test(s), Total: 1 test(s)Name: projectroot.src.kpasswdserver Failed: 0 test(s), Passed: 1 test(s), Skipped: 0 test(s), Total: 1 test(s)

D26890: QXmlInputSource is deprecated in qt5.15. Port it to QXmlStreamReader

2020-01-24 Thread Aleix Pol Gonzalez
apol added a comment.


  Looks good otherwise, this code is pretty well tested too, so I quite trust 
we aren't breaking it horribly.
  
  Trying to compile the rest of KDE Software against this patch would also be 
useful.

INLINE COMMENTS

> kconfigloader.cpp:127
>  } else if (name == QLatin1String("key")) {
> -m_key = attrs.value(i).trimmed();
> +m_key = attrs.at(i).value().toString().trimmed();
>  }

You can trim before toString, this way we save some string allocations.

REPOSITORY
  R237 KConfig

REVISION DETAIL
  https://phabricator.kde.org/D26890

To: mlaurent, dfaure
Cc: apol, kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns


D26897: Fix two warnings, missing Q_FALLTHROUGH

2020-01-24 Thread Méven Car
This revision was automatically updated to reflect the committed changes.
meven marked an inline comment as done.
Closed by commit R241:e6807dea4735: Fix two warnings, missing Q_FALLTHROUGH 
(authored by meven).

REPOSITORY
  R241 KIO

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D26897?vs=74312=74313

REVISION DETAIL
  https://phabricator.kde.org/D26897

AFFECTED FILES
  src/core/copyjob.cpp

To: meven, dfaure, #frameworks, davidedmundson
Cc: davidedmundson, kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, 
bruns


D26897: Fix two warnings, missing Q_FALLTHROUGH

2020-01-24 Thread David Edmundson
davidedmundson accepted this revision.
davidedmundson added inline comments.
This revision is now accepted and ready to land.

INLINE COMMENTS

> copyjob.cpp:1223
>  m_bAutoRenameDirs = true;
>  // fall through
> +Q_FALLTHROUGH();

The comments are somewhat redundant now

x2

REPOSITORY
  R241 KIO

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D26897

To: meven, dfaure, #frameworks, davidedmundson
Cc: davidedmundson, kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, 
bruns


D26897: Fix two warnings, missing Q_FALLTHROUGH

2020-01-24 Thread Méven Car
meven created this revision.
meven added reviewers: dfaure, Frameworks.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
meven requested review of this revision.

REPOSITORY
  R241 KIO

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D26897

AFFECTED FILES
  src/core/copyjob.cpp

To: meven, dfaure, #frameworks
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns


D26878: Add missing renamed event when a destination file already existed

2020-01-24 Thread Méven Car
meven edited the test plan for this revision.

REPOSITORY
  R241 KIO

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D26878

To: meven, #frameworks, ervin, dfaure
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns


D26878: Add missing renamed event when a destination file already existed

2020-01-24 Thread Méven Car
meven updated this revision to Diff 74311.
meven added a comment.


  Avoid touching a line

REPOSITORY
  R241 KIO

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D26878?vs=74310=74311

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D26878

AFFECTED FILES
  autotests/jobtest.cpp
  autotests/jobtest.h
  autotests/kiotesthelper.h
  src/core/copyjob.cpp

To: meven, #frameworks, ervin, dfaure
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns


D26878: Add missing renamed event when a destination file already existed

2020-01-24 Thread Méven Car
meven updated this revision to Diff 74310.
meven retitled this revision from "Add missing renamed events when a 
destination file already existed" to "Add missing renamed event when a 
destination file already existed".
meven added a comment.


  Add tests, add renamed events when autorename was selected, handle another 
case

REPOSITORY
  R241 KIO

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D26878?vs=74257=74310

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D26878

AFFECTED FILES
  autotests/jobtest.cpp
  autotests/jobtest.h
  autotests/kiotesthelper.h
  src/core/copyjob.cpp

To: meven, #frameworks, ervin, dfaure
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns


D26878: Add missing renamed events when a destination file already existed

2020-01-24 Thread Méven Car
meven retitled this revision from "Add missing renamed event when a destination 
file already existed" to "Add missing renamed events when a destination file 
already existed".

REPOSITORY
  R241 KIO

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D26878

To: meven, #frameworks, ervin, dfaure
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns


D26878: Add missing renamed event when a destination file already existed

2020-01-24 Thread Méven Car
meven retitled this revision from "Add a missing renamed event when a 
destination file already existed" to "Add missing renamed event when a 
destination file already existed".
meven edited the summary of this revision.

REPOSITORY
  R241 KIO

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D26878

To: meven, #frameworks, ervin, dfaure
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns


D25583: Quit baloo_file_extractor if DB transaction fails

2020-01-24 Thread David Edmundson
davidedmundson added a comment.


  > I will try to cook up a more complete solution over the weekend.
  
  If you can explain what you would prefer instead, I can help find time.

INLINE COMMENTS

> bruns wrote in app.cpp:119
> This is a little bit confusing, as the lmdb code uses `rc == LMDB_OK == 0`, 
> but here `0 == ERROR`.

Sure, but engine is an abstraction layer over lmdb so you don't want to leak 
those details, and for a boolean it makes sense that true == good

REPOSITORY
  R293 Baloo

REVISION DETAIL
  https://phabricator.kde.org/D25583

To: davidedmundson, bruns, ngraham
Cc: meven, kde-frameworks-devel, #baloo, hurikhan77, lots0logs, LeGast00n, 
fbampaloukas, GB_2, domson, ashaposhnikov, michaelh, astippich, spoorun, 
ngraham, bruns, abrahams


D25583: Quit baloo_file_extractor if DB transaction fails

2020-01-24 Thread Stefan Brüns
bruns added a comment.


  ... and sorry for the late answer ...

REPOSITORY
  R293 Baloo

REVISION DETAIL
  https://phabricator.kde.org/D25583

To: davidedmundson, bruns, ngraham
Cc: meven, kde-frameworks-devel, #baloo, hurikhan77, lots0logs, LeGast00n, 
fbampaloukas, GB_2, domson, ashaposhnikov, michaelh, astippich, spoorun, 
ngraham, bruns, abrahams


D25583: Quit baloo_file_extractor if DB transaction fails

2020-01-24 Thread Stefan Brüns
bruns added a comment.


  I will try to cook up a more complete solution over the weekend.

INLINE COMMENTS

> app.cpp:119
>  } else {
> -m_tr->commit();
> +bool rc = m_tr->commit();
>  delete m_tr;

This is a little bit confusing, as the lmdb code uses `rc == LMDB_OK == 0`, but 
here `0 == ERROR`.

REPOSITORY
  R293 Baloo

REVISION DETAIL
  https://phabricator.kde.org/D25583

To: davidedmundson, bruns, ngraham
Cc: meven, kde-frameworks-devel, #baloo, hurikhan77, lots0logs, LeGast00n, 
fbampaloukas, GB_2, domson, ashaposhnikov, michaelh, astippich, spoorun, 
ngraham, bruns, abrahams


D26848: Don't assume the manager and menu have the same lifetime

2020-01-24 Thread David Redondo
davidre marked 4 inline comments as done.

REPOSITORY
  R265 KConfigWidgets

REVISION DETAIL
  https://phabricator.kde.org/D26848

To: davidre, #frameworks
Cc: anthonyfieroni, broulik, kde-frameworks-devel, LeGast00n, GB_2, michaelh, 
ngraham, bruns