Skip to content
  • Dan Leinir Turthra Jensen's avatar
    Rework UploadDialog, add QML version, and a new ProvidersModel · c51ebaf8
    Dan Leinir Turthra Jensen authored
    Since there are no longer any services available that actually provide the upload functionality used by UploadDialog, and because that functionality is essentially conceptually broken (the method used is highly susceptible to being employed as a spam vector), any replacement system would not use the existing methodology anyway, and consequently we might as well replace the dialog with something that is actually helpful and useful. This patch, then, replaces the old dialog with a QML based one (so we can implement it there when the time comes, and end up with full functionality in both locations rather than duplicating functionality).
    
    This introduces a few new things, such as a ProvidersModel which can be used to display information about providers the Engine is aware of, in a fashion that is reasonably pleasant. It also introduces a new component to KNewStuffQuick, the UploadPage, which is a Kirigami.ScrollablePage which shows the user how to add content on each provider (with specific attention to make the KDE Store instructions explicit). It further changes the old KNS3::UploadDialog so that it uses the QtQuick version instead, which is intended to be transparent to the API users. Finally, it introduces a default-enabled Upload... action to NewStuff.Page, which helps us expose users to the ability to add their own stuff if they've got anything hot and new to show the world.
    c51ebaf8