OSDN Git Service

unify i/o error reporting in the model
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Wed, 30 Mar 2011 13:57:28 +0000 (15:57 +0200)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Mon, 18 Apr 2011 12:10:15 +0000 (14:10 +0200)
commit2be153ba371403cef0cdf891bed62012bc24bb93
tree82e3e6d996d0889df650babca7a03b08e4c4a1de
parentff456bb4b6192d0bc9d2c4136d436ed63d48a76a
unify i/o error reporting in the model

- use Utils::FileSaver
- as a side effect, don't rewrite the desktop file with the same content
  if it already exists
- pop up message boxes on errors - this is likely to be more visible
  than qWarning()s/nothing
  - this is implemented in a somewhat strange way with the model itself
    doing the gui interaction, but that seems to be the simplest
    solution given the qt class design
src/plugins/qt4projectmanager/qt-maemo/maemodeployablelistmodel.cpp
src/plugins/qt4projectmanager/qt-maemo/maemodeployablelistmodel.h
src/plugins/qt4projectmanager/qt-maemo/maemodeployconfigurationwidget.cpp