~neon/kolourpaint/master

« back to all changes in this revision

Viewing changes to lgpl/generic/kpColorCollection.h

  • Committer: David Faure
  • Date: 2019-11-27 22:11:33 UTC
  • Revision ID: git-v1:007dd8f6f4559b92ca1b89d5833a25954e36f18f
Port kpColorCollection away from KIO::NetAccess

Summary:
While testing "save as" over an existing color file, I noticed
a double confirmation message box. This is because QFileDialog
already takes care of it ==> simplify the code.

Test Plan: Loading colors from submenu, saving as, saving as existing file, loading from file.

Reviewers: broulik, andreagenor, tcanabrava, vkrause

Reviewed By: vkrause

Maniphest Tasks: T11576

Differential Revision: https://phabricator.kde.org/D25480

Show diffs side-by-side

added added

removed removed

Lines of Context:
112
112
   // name() is set to an empty string.
113
113
   //
114
114
   // Added for KolourPaint.
115
 
   bool saveAs(const QUrl &url, bool showOverwritePrompt, QWidget *parent) const;
 
115
   bool saveAs(const QUrl &url, QWidget *parent) const;
116
116
 
117
117
   /**
118
118
    * Save the collection to the KDE-local store