[settings] add an option to sync msoffice/libreoffice tmp file

__PLEASE NOT MERGE THIS__

* add an option to sync msoffice/libreoffice tmp file
* adjust some odd-styled code
是否忽略 office 临时文件是由 seaf-daemon 决定的。QSettings 在这里不合适。

On Tue, Sep 16, 2014 at 6:42 PM, Chilledheart <notifications@github.com>
wrote:

> In src/settings-mgr.cpp:
>
> > -    settings.setValue(kHideDockIcon, hideDockIcon);
> > +    settings.setValue(kHideDockIcon, hide);
> > +    settings.endGroup();
> > +
> > +    set_seafile_dock_icon_style(hide);
> > +}
> > +
> > +bool SettingsManager::syncExtraTempFile()
> > +{
> > +    QSettings settings;
> > +    bool sync;
> > +
> > +    settings.beginGroup(kSettingsGroup);
> > +    sync = settings.value(kSyncExtraTempFile, false).toBool();
> > +    settings.endGroup();
> > +    return sync;
>
> QSettings is the obvious choice for cross platforms.
>
> I will cc you once I refine this code, thanks!
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/haiwen/seafile-client/pull/212/files#r17593940>.
>