[arch-commits] Commit in deepin-file-manager/repos (8 files)
Felix Yan
felixonmars at archlinux.org
Thu Jun 8 13:22:29 UTC 2017
Date: Thursday, June 8, 2017 @ 13:22:28
Author: felixonmars
Revision: 235436
archrelease: copy trunk to community-testing-i686, community-testing-x86_64
Added:
deepin-file-manager/repos/community-testing-i686/PKGBUILD
(from rev 235435, deepin-file-manager/trunk/PKGBUILD)
deepin-file-manager/repos/community-testing-i686/qt5.9.patch
(from rev 235435, deepin-file-manager/trunk/qt5.9.patch)
deepin-file-manager/repos/community-testing-x86_64/PKGBUILD
(from rev 235435, deepin-file-manager/trunk/PKGBUILD)
deepin-file-manager/repos/community-testing-x86_64/qt5.9.patch
(from rev 235435, deepin-file-manager/trunk/qt5.9.patch)
Deleted:
deepin-file-manager/repos/community-testing-i686/PKGBUILD
deepin-file-manager/repos/community-testing-i686/qt5.9.patch
deepin-file-manager/repos/community-testing-x86_64/PKGBUILD
deepin-file-manager/repos/community-testing-x86_64/qt5.9.patch
--------------------------------------+
/PKGBUILD | 82 ++++++++++++++
/qt5.9.patch | 182 +++++++++++++++++++++++++++++++++
community-testing-i686/PKGBUILD | 45 --------
community-testing-i686/qt5.9.patch | 91 ----------------
community-testing-x86_64/PKGBUILD | 45 --------
community-testing-x86_64/qt5.9.patch | 91 ----------------
6 files changed, 264 insertions(+), 272 deletions(-)
Deleted: community-testing-i686/PKGBUILD
===================================================================
--- community-testing-i686/PKGBUILD 2017-06-08 13:22:00 UTC (rev 235435)
+++ community-testing-i686/PKGBUILD 2017-06-08 13:22:28 UTC (rev 235436)
@@ -1,45 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Josip Ponjavic <josipponjavic at gmail dot com>
-# Contributor: Xu Fasheng <fasheng.xu[AT]gmail.com>
-
-pkgname=deepin-file-manager
-pkgver=4.1.5.20170607
-_commit=d6ed53941fa0734eb3176f4016b1a5c1a8cc8e9f
-pkgrel=2
-epoch=1
-pkgdesc='Deepin File Manager'
-arch=('i686' 'x86_64')
-url="https://github.com/linuxdeepin/dde-file-manager"
-license=('GPL3')
-depends=('deepin-tool-kit' 'gtk2' 'gsettings-qt' 'libsecret' 'qt5-svg' 'file' 'polkit-qt5'
- 'deepin-shortcut-viewer' 'poppler' 'ffmpegthumbnailer' 'deepin-manual'
- 'deepin-qt-dbus-factory' 'treefrog-framework')
-optdepends=('deepin-terminal: for "Open in terminal"'
- 'file-roller: for "Compress" and "Extract"')
-makedepends=('qt5-tools' 'deepin-dock' 'deepin-gettext-tools')
-groups=('deepin')
-provides=('deepin-desktop')
-conflicts=('deepin-desktop')
-replaces=('deepin-desktop')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/dde-file-manager/archive/$_commit.tar.gz"
- qt5.9.patch)
-sha512sums=('e59ef1b9ed730a0b2bb6ef3a7d0834db39d27a39d2224cdee6f0121b7014c485b0e8d651b59c0e0eeb51f4c6a49950ad658f84daeba618658c834f57fa5151ab'
- '1cc25323ffa057654cc64720dfa9bcd4a0532a49c2ab29bc2d5c80c1dc063fd17cd2ea6b7de5cdd55599baf1bcff3e56fb08be19240d217ff949a6e6e8e2cae4')
-
-prepare() {
- mv dde-file-manager-* dde-file-manager-$pkgver
- cd dde-file-manager-$pkgver
- # patch -p1 -i ../qt5.9.patch
-}
-
-build() {
- cd dde-file-manager-$pkgver
- qmake-qt5 PREFIX=/usr QMAKE_CFLAGS_ISYSTEM=
- make
-}
-
-package() {
- cd dde-file-manager-$pkgver
- make INSTALL_ROOT="$pkgdir" install
-}
Copied: deepin-file-manager/repos/community-testing-i686/PKGBUILD (from rev 235435, deepin-file-manager/trunk/PKGBUILD)
===================================================================
--- community-testing-i686/PKGBUILD (rev 0)
+++ community-testing-i686/PKGBUILD 2017-06-08 13:22:28 UTC (rev 235436)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Josip Ponjavic <josipponjavic at gmail dot com>
+# Contributor: Xu Fasheng <fasheng.xu[AT]gmail.com>
+
+pkgname=deepin-file-manager
+pkgver=4.1.5.20170608
+_commit=b35b34db87cfa65b7dc0c78653f7ebb347143c86
+pkgrel=1
+epoch=1
+pkgdesc='Deepin File Manager'
+arch=('i686' 'x86_64')
+url="https://github.com/linuxdeepin/dde-file-manager"
+license=('GPL3')
+depends=('deepin-tool-kit' 'gtk2' 'gsettings-qt' 'libsecret' 'qt5-svg' 'file' 'polkit-qt5'
+ 'deepin-shortcut-viewer' 'poppler' 'ffmpegthumbnailer' 'deepin-manual'
+ 'deepin-qt-dbus-factory' 'treefrog-framework')
+optdepends=('deepin-terminal: for "Open in terminal"'
+ 'file-roller: for "Compress" and "Extract"')
+makedepends=('qt5-tools' 'deepin-dock' 'deepin-gettext-tools')
+groups=('deepin')
+provides=('deepin-desktop')
+conflicts=('deepin-desktop')
+replaces=('deepin-desktop')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/dde-file-manager/archive/$_commit.tar.gz")
+sha512sums=('b1aa3ed492012dc3e3533f681ea0709f95d625cce64f8c388374a1b962eaba51fff41726f4b2bc9750b21f55cac22bfb214d7ccaa7ca69f3677a9867a8bf847d')
+
+prepare() {
+ mv dde-file-manager-* dde-file-manager-$pkgver
+}
+
+build() {
+ cd dde-file-manager-$pkgver
+ qmake-qt5 PREFIX=/usr QMAKE_CFLAGS_ISYSTEM=
+ make
+}
+
+package() {
+ cd dde-file-manager-$pkgver
+ make INSTALL_ROOT="$pkgdir" install
+}
Deleted: community-testing-i686/qt5.9.patch
===================================================================
--- community-testing-i686/qt5.9.patch 2017-06-08 13:22:00 UTC (rev 235435)
+++ community-testing-i686/qt5.9.patch 2017-06-08 13:22:28 UTC (rev 235436)
@@ -1,91 +0,0 @@
-commit 39c7135a4d972d5f412b3288e4100851361d507c
-Author: Felix Yan <felixonmars at archlinux.org>
-Date: Fri Jun 2 16:44:39 2017 +0800
-
- Fix compatibility with Qt 5.9
-
- QFlags only works on Enums since Qt 5.9. This should not break old Qt
- versions.
-
- Change-Id: I80326bf39d5ebe8c20db19aac8ad8beaa3af7371
-
-diff --git a/dde-desktop/model/dfileselectionmodel.cpp b/dde-desktop/model/dfileselectionmodel.cpp
-index 296e0342..af588ddb 100644
---- a/dde-desktop/model/dfileselectionmodel.cpp
-+++ b/dde-desktop/model/dfileselectionmodel.cpp
-@@ -18,7 +18,7 @@ DFileSelectionModel::DFileSelectionModel(QAbstractItemModel *model, QObject *par
-
- bool DFileSelectionModel::isSelected(const QModelIndex &index) const
- {
-- if (m_currentCommand != QFlags<QItemSelectionModel::SelectionFlags>(Current|Rows|ClearAndSelect))
-+ if (m_currentCommand != QItemSelectionModel::SelectionFlags(Current|Rows|ClearAndSelect))
- return QItemSelectionModel::isSelected(index);
-
- for (const QItemSelectionRange &range : m_selection) {
-@@ -31,7 +31,7 @@ bool DFileSelectionModel::isSelected(const QModelIndex &index) const
-
- int DFileSelectionModel::selectedCount() const
- {
-- if (m_currentCommand != QFlags<QItemSelectionModel::SelectionFlags>(Current|Rows|ClearAndSelect))
-+ if (m_currentCommand != QItemSelectionModel::SelectionFlags(Current|Rows|ClearAndSelect))
- return selectedIndexes().count();
-
- return m_lastSelectedIndex.row() - m_firstSelectedIndex.row() + 1;
-@@ -40,7 +40,7 @@ int DFileSelectionModel::selectedCount() const
- QModelIndexList DFileSelectionModel::selectedIndexes() const
- {
- if (m_selectedList.isEmpty()) {
-- if (m_currentCommand != QFlags<QItemSelectionModel::SelectionFlags>(Current|Rows|ClearAndSelect)) {
-+ if (m_currentCommand != QItemSelectionModel::SelectionFlags(Current|Rows|ClearAndSelect)) {
- m_selectedList = QItemSelectionModel::selectedIndexes();
- } else {
- for (const QItemSelectionRange &range : m_selection) {
-@@ -57,7 +57,7 @@ void DFileSelectionModel::select(const QItemSelection &selection, QItemSelection
- if (!command.testFlag(NoUpdate))
- m_selectedList.clear();
-
-- if (command != QFlags<QItemSelectionModel::SelectionFlags>(Current|Rows|ClearAndSelect)) {
-+ if (command != QItemSelectionModel::SelectionFlags(Current|Rows|ClearAndSelect)) {
- if (m_timer.isActive()) {
- m_timer.stop();
- updateSelecteds();
-diff --git a/dde-file-manager-lib/models/dfileselectionmodel.cpp b/dde-file-manager-lib/models/dfileselectionmodel.cpp
-index a61f3844..8650f66d 100644
---- a/dde-file-manager-lib/models/dfileselectionmodel.cpp
-+++ b/dde-file-manager-lib/models/dfileselectionmodel.cpp
-@@ -20,7 +20,7 @@ DFileSelectionModel::DFileSelectionModel(QAbstractItemModel *model, QObject *par
-
- bool DFileSelectionModel::isSelected(const QModelIndex &index) const
- {
-- if (m_currentCommand != QFlags<QItemSelectionModel::SelectionFlags>(Current|Rows|ClearAndSelect))
-+ if (m_currentCommand != QItemSelectionModel::SelectionFlags(Current|Rows|ClearAndSelect))
- return QItemSelectionModel::isSelected(index);
-
- for (const QItemSelectionRange &range : m_selection) {
-@@ -35,7 +35,7 @@ bool DFileSelectionModel::isSelected(const QModelIndex &index) const
-
- int DFileSelectionModel::selectedCount() const
- {
-- if (m_currentCommand != QFlags<QItemSelectionModel::SelectionFlags>(Current|Rows|ClearAndSelect))
-+ if (m_currentCommand != QItemSelectionModel::SelectionFlags(Current|Rows|ClearAndSelect))
- return selectedIndexes().count();
-
- return m_lastSelectedIndex.row() - m_firstSelectedIndex.row() + 1;
-@@ -44,7 +44,7 @@ int DFileSelectionModel::selectedCount() const
- QModelIndexList DFileSelectionModel::selectedIndexes() const
- {
- if (m_selectedList.isEmpty()) {
-- if (m_currentCommand != QFlags<QItemSelectionModel::SelectionFlags>(Current|Rows|ClearAndSelect)) {
-+ if (m_currentCommand != QItemSelectionModel::SelectionFlags(Current|Rows|ClearAndSelect)) {
- m_selectedList = QItemSelectionModel::selectedIndexes();
- } else {
- for (const QItemSelectionRange &range : m_selection) {
-@@ -61,7 +61,7 @@ void DFileSelectionModel::select(const QItemSelection &selection, QItemSelection
- if (!command.testFlag(NoUpdate))
- m_selectedList.clear();
-
-- if (command != QFlags<QItemSelectionModel::SelectionFlags>(Current|Rows|ClearAndSelect)) {
-+ if (command != QItemSelectionModel::SelectionFlags(Current|Rows|ClearAndSelect)) {
- if (m_timer.isActive()) {
- m_timer.stop();
- updateSelecteds();
Copied: deepin-file-manager/repos/community-testing-i686/qt5.9.patch (from rev 235435, deepin-file-manager/trunk/qt5.9.patch)
===================================================================
--- community-testing-i686/qt5.9.patch (rev 0)
+++ community-testing-i686/qt5.9.patch 2017-06-08 13:22:28 UTC (rev 235436)
@@ -0,0 +1,91 @@
+commit 39c7135a4d972d5f412b3288e4100851361d507c
+Author: Felix Yan <felixonmars at archlinux.org>
+Date: Fri Jun 2 16:44:39 2017 +0800
+
+ Fix compatibility with Qt 5.9
+
+ QFlags only works on Enums since Qt 5.9. This should not break old Qt
+ versions.
+
+ Change-Id: I80326bf39d5ebe8c20db19aac8ad8beaa3af7371
+
+diff --git a/dde-desktop/model/dfileselectionmodel.cpp b/dde-desktop/model/dfileselectionmodel.cpp
+index 296e0342..af588ddb 100644
+--- a/dde-desktop/model/dfileselectionmodel.cpp
++++ b/dde-desktop/model/dfileselectionmodel.cpp
+@@ -18,7 +18,7 @@ DFileSelectionModel::DFileSelectionModel(QAbstractItemModel *model, QObject *par
+
+ bool DFileSelectionModel::isSelected(const QModelIndex &index) const
+ {
+- if (m_currentCommand != QFlags<QItemSelectionModel::SelectionFlags>(Current|Rows|ClearAndSelect))
++ if (m_currentCommand != QItemSelectionModel::SelectionFlags(Current|Rows|ClearAndSelect))
+ return QItemSelectionModel::isSelected(index);
+
+ for (const QItemSelectionRange &range : m_selection) {
+@@ -31,7 +31,7 @@ bool DFileSelectionModel::isSelected(const QModelIndex &index) const
+
+ int DFileSelectionModel::selectedCount() const
+ {
+- if (m_currentCommand != QFlags<QItemSelectionModel::SelectionFlags>(Current|Rows|ClearAndSelect))
++ if (m_currentCommand != QItemSelectionModel::SelectionFlags(Current|Rows|ClearAndSelect))
+ return selectedIndexes().count();
+
+ return m_lastSelectedIndex.row() - m_firstSelectedIndex.row() + 1;
+@@ -40,7 +40,7 @@ int DFileSelectionModel::selectedCount() const
+ QModelIndexList DFileSelectionModel::selectedIndexes() const
+ {
+ if (m_selectedList.isEmpty()) {
+- if (m_currentCommand != QFlags<QItemSelectionModel::SelectionFlags>(Current|Rows|ClearAndSelect)) {
++ if (m_currentCommand != QItemSelectionModel::SelectionFlags(Current|Rows|ClearAndSelect)) {
+ m_selectedList = QItemSelectionModel::selectedIndexes();
+ } else {
+ for (const QItemSelectionRange &range : m_selection) {
+@@ -57,7 +57,7 @@ void DFileSelectionModel::select(const QItemSelection &selection, QItemSelection
+ if (!command.testFlag(NoUpdate))
+ m_selectedList.clear();
+
+- if (command != QFlags<QItemSelectionModel::SelectionFlags>(Current|Rows|ClearAndSelect)) {
++ if (command != QItemSelectionModel::SelectionFlags(Current|Rows|ClearAndSelect)) {
+ if (m_timer.isActive()) {
+ m_timer.stop();
+ updateSelecteds();
+diff --git a/dde-file-manager-lib/models/dfileselectionmodel.cpp b/dde-file-manager-lib/models/dfileselectionmodel.cpp
+index a61f3844..8650f66d 100644
+--- a/dde-file-manager-lib/models/dfileselectionmodel.cpp
++++ b/dde-file-manager-lib/models/dfileselectionmodel.cpp
+@@ -20,7 +20,7 @@ DFileSelectionModel::DFileSelectionModel(QAbstractItemModel *model, QObject *par
+
+ bool DFileSelectionModel::isSelected(const QModelIndex &index) const
+ {
+- if (m_currentCommand != QFlags<QItemSelectionModel::SelectionFlags>(Current|Rows|ClearAndSelect))
++ if (m_currentCommand != QItemSelectionModel::SelectionFlags(Current|Rows|ClearAndSelect))
+ return QItemSelectionModel::isSelected(index);
+
+ for (const QItemSelectionRange &range : m_selection) {
+@@ -35,7 +35,7 @@ bool DFileSelectionModel::isSelected(const QModelIndex &index) const
+
+ int DFileSelectionModel::selectedCount() const
+ {
+- if (m_currentCommand != QFlags<QItemSelectionModel::SelectionFlags>(Current|Rows|ClearAndSelect))
++ if (m_currentCommand != QItemSelectionModel::SelectionFlags(Current|Rows|ClearAndSelect))
+ return selectedIndexes().count();
+
+ return m_lastSelectedIndex.row() - m_firstSelectedIndex.row() + 1;
+@@ -44,7 +44,7 @@ int DFileSelectionModel::selectedCount() const
+ QModelIndexList DFileSelectionModel::selectedIndexes() const
+ {
+ if (m_selectedList.isEmpty()) {
+- if (m_currentCommand != QFlags<QItemSelectionModel::SelectionFlags>(Current|Rows|ClearAndSelect)) {
++ if (m_currentCommand != QItemSelectionModel::SelectionFlags(Current|Rows|ClearAndSelect)) {
+ m_selectedList = QItemSelectionModel::selectedIndexes();
+ } else {
+ for (const QItemSelectionRange &range : m_selection) {
+@@ -61,7 +61,7 @@ void DFileSelectionModel::select(const QItemSelection &selection, QItemSelection
+ if (!command.testFlag(NoUpdate))
+ m_selectedList.clear();
+
+- if (command != QFlags<QItemSelectionModel::SelectionFlags>(Current|Rows|ClearAndSelect)) {
++ if (command != QItemSelectionModel::SelectionFlags(Current|Rows|ClearAndSelect)) {
+ if (m_timer.isActive()) {
+ m_timer.stop();
+ updateSelecteds();
Deleted: community-testing-x86_64/PKGBUILD
===================================================================
--- community-testing-x86_64/PKGBUILD 2017-06-08 13:22:00 UTC (rev 235435)
+++ community-testing-x86_64/PKGBUILD 2017-06-08 13:22:28 UTC (rev 235436)
@@ -1,45 +0,0 @@
-# $Id$
-# Maintainer: Felix Yan <felixonmars at archlinux.org>
-# Contributor: Josip Ponjavic <josipponjavic at gmail dot com>
-# Contributor: Xu Fasheng <fasheng.xu[AT]gmail.com>
-
-pkgname=deepin-file-manager
-pkgver=4.1.5.20170607
-_commit=d6ed53941fa0734eb3176f4016b1a5c1a8cc8e9f
-pkgrel=2
-epoch=1
-pkgdesc='Deepin File Manager'
-arch=('i686' 'x86_64')
-url="https://github.com/linuxdeepin/dde-file-manager"
-license=('GPL3')
-depends=('deepin-tool-kit' 'gtk2' 'gsettings-qt' 'libsecret' 'qt5-svg' 'file' 'polkit-qt5'
- 'deepin-shortcut-viewer' 'poppler' 'ffmpegthumbnailer' 'deepin-manual'
- 'deepin-qt-dbus-factory' 'treefrog-framework')
-optdepends=('deepin-terminal: for "Open in terminal"'
- 'file-roller: for "Compress" and "Extract"')
-makedepends=('qt5-tools' 'deepin-dock' 'deepin-gettext-tools')
-groups=('deepin')
-provides=('deepin-desktop')
-conflicts=('deepin-desktop')
-replaces=('deepin-desktop')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/dde-file-manager/archive/$_commit.tar.gz"
- qt5.9.patch)
-sha512sums=('e59ef1b9ed730a0b2bb6ef3a7d0834db39d27a39d2224cdee6f0121b7014c485b0e8d651b59c0e0eeb51f4c6a49950ad658f84daeba618658c834f57fa5151ab'
- '1cc25323ffa057654cc64720dfa9bcd4a0532a49c2ab29bc2d5c80c1dc063fd17cd2ea6b7de5cdd55599baf1bcff3e56fb08be19240d217ff949a6e6e8e2cae4')
-
-prepare() {
- mv dde-file-manager-* dde-file-manager-$pkgver
- cd dde-file-manager-$pkgver
- # patch -p1 -i ../qt5.9.patch
-}
-
-build() {
- cd dde-file-manager-$pkgver
- qmake-qt5 PREFIX=/usr QMAKE_CFLAGS_ISYSTEM=
- make
-}
-
-package() {
- cd dde-file-manager-$pkgver
- make INSTALL_ROOT="$pkgdir" install
-}
Copied: deepin-file-manager/repos/community-testing-x86_64/PKGBUILD (from rev 235435, deepin-file-manager/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2017-06-08 13:22:28 UTC (rev 235436)
@@ -0,0 +1,41 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Josip Ponjavic <josipponjavic at gmail dot com>
+# Contributor: Xu Fasheng <fasheng.xu[AT]gmail.com>
+
+pkgname=deepin-file-manager
+pkgver=4.1.5.20170608
+_commit=b35b34db87cfa65b7dc0c78653f7ebb347143c86
+pkgrel=1
+epoch=1
+pkgdesc='Deepin File Manager'
+arch=('i686' 'x86_64')
+url="https://github.com/linuxdeepin/dde-file-manager"
+license=('GPL3')
+depends=('deepin-tool-kit' 'gtk2' 'gsettings-qt' 'libsecret' 'qt5-svg' 'file' 'polkit-qt5'
+ 'deepin-shortcut-viewer' 'poppler' 'ffmpegthumbnailer' 'deepin-manual'
+ 'deepin-qt-dbus-factory' 'treefrog-framework')
+optdepends=('deepin-terminal: for "Open in terminal"'
+ 'file-roller: for "Compress" and "Extract"')
+makedepends=('qt5-tools' 'deepin-dock' 'deepin-gettext-tools')
+groups=('deepin')
+provides=('deepin-desktop')
+conflicts=('deepin-desktop')
+replaces=('deepin-desktop')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/linuxdeepin/dde-file-manager/archive/$_commit.tar.gz")
+sha512sums=('b1aa3ed492012dc3e3533f681ea0709f95d625cce64f8c388374a1b962eaba51fff41726f4b2bc9750b21f55cac22bfb214d7ccaa7ca69f3677a9867a8bf847d')
+
+prepare() {
+ mv dde-file-manager-* dde-file-manager-$pkgver
+}
+
+build() {
+ cd dde-file-manager-$pkgver
+ qmake-qt5 PREFIX=/usr QMAKE_CFLAGS_ISYSTEM=
+ make
+}
+
+package() {
+ cd dde-file-manager-$pkgver
+ make INSTALL_ROOT="$pkgdir" install
+}
Deleted: community-testing-x86_64/qt5.9.patch
===================================================================
--- community-testing-x86_64/qt5.9.patch 2017-06-08 13:22:00 UTC (rev 235435)
+++ community-testing-x86_64/qt5.9.patch 2017-06-08 13:22:28 UTC (rev 235436)
@@ -1,91 +0,0 @@
-commit 39c7135a4d972d5f412b3288e4100851361d507c
-Author: Felix Yan <felixonmars at archlinux.org>
-Date: Fri Jun 2 16:44:39 2017 +0800
-
- Fix compatibility with Qt 5.9
-
- QFlags only works on Enums since Qt 5.9. This should not break old Qt
- versions.
-
- Change-Id: I80326bf39d5ebe8c20db19aac8ad8beaa3af7371
-
-diff --git a/dde-desktop/model/dfileselectionmodel.cpp b/dde-desktop/model/dfileselectionmodel.cpp
-index 296e0342..af588ddb 100644
---- a/dde-desktop/model/dfileselectionmodel.cpp
-+++ b/dde-desktop/model/dfileselectionmodel.cpp
-@@ -18,7 +18,7 @@ DFileSelectionModel::DFileSelectionModel(QAbstractItemModel *model, QObject *par
-
- bool DFileSelectionModel::isSelected(const QModelIndex &index) const
- {
-- if (m_currentCommand != QFlags<QItemSelectionModel::SelectionFlags>(Current|Rows|ClearAndSelect))
-+ if (m_currentCommand != QItemSelectionModel::SelectionFlags(Current|Rows|ClearAndSelect))
- return QItemSelectionModel::isSelected(index);
-
- for (const QItemSelectionRange &range : m_selection) {
-@@ -31,7 +31,7 @@ bool DFileSelectionModel::isSelected(const QModelIndex &index) const
-
- int DFileSelectionModel::selectedCount() const
- {
-- if (m_currentCommand != QFlags<QItemSelectionModel::SelectionFlags>(Current|Rows|ClearAndSelect))
-+ if (m_currentCommand != QItemSelectionModel::SelectionFlags(Current|Rows|ClearAndSelect))
- return selectedIndexes().count();
-
- return m_lastSelectedIndex.row() - m_firstSelectedIndex.row() + 1;
-@@ -40,7 +40,7 @@ int DFileSelectionModel::selectedCount() const
- QModelIndexList DFileSelectionModel::selectedIndexes() const
- {
- if (m_selectedList.isEmpty()) {
-- if (m_currentCommand != QFlags<QItemSelectionModel::SelectionFlags>(Current|Rows|ClearAndSelect)) {
-+ if (m_currentCommand != QItemSelectionModel::SelectionFlags(Current|Rows|ClearAndSelect)) {
- m_selectedList = QItemSelectionModel::selectedIndexes();
- } else {
- for (const QItemSelectionRange &range : m_selection) {
-@@ -57,7 +57,7 @@ void DFileSelectionModel::select(const QItemSelection &selection, QItemSelection
- if (!command.testFlag(NoUpdate))
- m_selectedList.clear();
-
-- if (command != QFlags<QItemSelectionModel::SelectionFlags>(Current|Rows|ClearAndSelect)) {
-+ if (command != QItemSelectionModel::SelectionFlags(Current|Rows|ClearAndSelect)) {
- if (m_timer.isActive()) {
- m_timer.stop();
- updateSelecteds();
-diff --git a/dde-file-manager-lib/models/dfileselectionmodel.cpp b/dde-file-manager-lib/models/dfileselectionmodel.cpp
-index a61f3844..8650f66d 100644
---- a/dde-file-manager-lib/models/dfileselectionmodel.cpp
-+++ b/dde-file-manager-lib/models/dfileselectionmodel.cpp
-@@ -20,7 +20,7 @@ DFileSelectionModel::DFileSelectionModel(QAbstractItemModel *model, QObject *par
-
- bool DFileSelectionModel::isSelected(const QModelIndex &index) const
- {
-- if (m_currentCommand != QFlags<QItemSelectionModel::SelectionFlags>(Current|Rows|ClearAndSelect))
-+ if (m_currentCommand != QItemSelectionModel::SelectionFlags(Current|Rows|ClearAndSelect))
- return QItemSelectionModel::isSelected(index);
-
- for (const QItemSelectionRange &range : m_selection) {
-@@ -35,7 +35,7 @@ bool DFileSelectionModel::isSelected(const QModelIndex &index) const
-
- int DFileSelectionModel::selectedCount() const
- {
-- if (m_currentCommand != QFlags<QItemSelectionModel::SelectionFlags>(Current|Rows|ClearAndSelect))
-+ if (m_currentCommand != QItemSelectionModel::SelectionFlags(Current|Rows|ClearAndSelect))
- return selectedIndexes().count();
-
- return m_lastSelectedIndex.row() - m_firstSelectedIndex.row() + 1;
-@@ -44,7 +44,7 @@ int DFileSelectionModel::selectedCount() const
- QModelIndexList DFileSelectionModel::selectedIndexes() const
- {
- if (m_selectedList.isEmpty()) {
-- if (m_currentCommand != QFlags<QItemSelectionModel::SelectionFlags>(Current|Rows|ClearAndSelect)) {
-+ if (m_currentCommand != QItemSelectionModel::SelectionFlags(Current|Rows|ClearAndSelect)) {
- m_selectedList = QItemSelectionModel::selectedIndexes();
- } else {
- for (const QItemSelectionRange &range : m_selection) {
-@@ -61,7 +61,7 @@ void DFileSelectionModel::select(const QItemSelection &selection, QItemSelection
- if (!command.testFlag(NoUpdate))
- m_selectedList.clear();
-
-- if (command != QFlags<QItemSelectionModel::SelectionFlags>(Current|Rows|ClearAndSelect)) {
-+ if (command != QItemSelectionModel::SelectionFlags(Current|Rows|ClearAndSelect)) {
- if (m_timer.isActive()) {
- m_timer.stop();
- updateSelecteds();
Copied: deepin-file-manager/repos/community-testing-x86_64/qt5.9.patch (from rev 235435, deepin-file-manager/trunk/qt5.9.patch)
===================================================================
--- community-testing-x86_64/qt5.9.patch (rev 0)
+++ community-testing-x86_64/qt5.9.patch 2017-06-08 13:22:28 UTC (rev 235436)
@@ -0,0 +1,91 @@
+commit 39c7135a4d972d5f412b3288e4100851361d507c
+Author: Felix Yan <felixonmars at archlinux.org>
+Date: Fri Jun 2 16:44:39 2017 +0800
+
+ Fix compatibility with Qt 5.9
+
+ QFlags only works on Enums since Qt 5.9. This should not break old Qt
+ versions.
+
+ Change-Id: I80326bf39d5ebe8c20db19aac8ad8beaa3af7371
+
+diff --git a/dde-desktop/model/dfileselectionmodel.cpp b/dde-desktop/model/dfileselectionmodel.cpp
+index 296e0342..af588ddb 100644
+--- a/dde-desktop/model/dfileselectionmodel.cpp
++++ b/dde-desktop/model/dfileselectionmodel.cpp
+@@ -18,7 +18,7 @@ DFileSelectionModel::DFileSelectionModel(QAbstractItemModel *model, QObject *par
+
+ bool DFileSelectionModel::isSelected(const QModelIndex &index) const
+ {
+- if (m_currentCommand != QFlags<QItemSelectionModel::SelectionFlags>(Current|Rows|ClearAndSelect))
++ if (m_currentCommand != QItemSelectionModel::SelectionFlags(Current|Rows|ClearAndSelect))
+ return QItemSelectionModel::isSelected(index);
+
+ for (const QItemSelectionRange &range : m_selection) {
+@@ -31,7 +31,7 @@ bool DFileSelectionModel::isSelected(const QModelIndex &index) const
+
+ int DFileSelectionModel::selectedCount() const
+ {
+- if (m_currentCommand != QFlags<QItemSelectionModel::SelectionFlags>(Current|Rows|ClearAndSelect))
++ if (m_currentCommand != QItemSelectionModel::SelectionFlags(Current|Rows|ClearAndSelect))
+ return selectedIndexes().count();
+
+ return m_lastSelectedIndex.row() - m_firstSelectedIndex.row() + 1;
+@@ -40,7 +40,7 @@ int DFileSelectionModel::selectedCount() const
+ QModelIndexList DFileSelectionModel::selectedIndexes() const
+ {
+ if (m_selectedList.isEmpty()) {
+- if (m_currentCommand != QFlags<QItemSelectionModel::SelectionFlags>(Current|Rows|ClearAndSelect)) {
++ if (m_currentCommand != QItemSelectionModel::SelectionFlags(Current|Rows|ClearAndSelect)) {
+ m_selectedList = QItemSelectionModel::selectedIndexes();
+ } else {
+ for (const QItemSelectionRange &range : m_selection) {
+@@ -57,7 +57,7 @@ void DFileSelectionModel::select(const QItemSelection &selection, QItemSelection
+ if (!command.testFlag(NoUpdate))
+ m_selectedList.clear();
+
+- if (command != QFlags<QItemSelectionModel::SelectionFlags>(Current|Rows|ClearAndSelect)) {
++ if (command != QItemSelectionModel::SelectionFlags(Current|Rows|ClearAndSelect)) {
+ if (m_timer.isActive()) {
+ m_timer.stop();
+ updateSelecteds();
+diff --git a/dde-file-manager-lib/models/dfileselectionmodel.cpp b/dde-file-manager-lib/models/dfileselectionmodel.cpp
+index a61f3844..8650f66d 100644
+--- a/dde-file-manager-lib/models/dfileselectionmodel.cpp
++++ b/dde-file-manager-lib/models/dfileselectionmodel.cpp
+@@ -20,7 +20,7 @@ DFileSelectionModel::DFileSelectionModel(QAbstractItemModel *model, QObject *par
+
+ bool DFileSelectionModel::isSelected(const QModelIndex &index) const
+ {
+- if (m_currentCommand != QFlags<QItemSelectionModel::SelectionFlags>(Current|Rows|ClearAndSelect))
++ if (m_currentCommand != QItemSelectionModel::SelectionFlags(Current|Rows|ClearAndSelect))
+ return QItemSelectionModel::isSelected(index);
+
+ for (const QItemSelectionRange &range : m_selection) {
+@@ -35,7 +35,7 @@ bool DFileSelectionModel::isSelected(const QModelIndex &index) const
+
+ int DFileSelectionModel::selectedCount() const
+ {
+- if (m_currentCommand != QFlags<QItemSelectionModel::SelectionFlags>(Current|Rows|ClearAndSelect))
++ if (m_currentCommand != QItemSelectionModel::SelectionFlags(Current|Rows|ClearAndSelect))
+ return selectedIndexes().count();
+
+ return m_lastSelectedIndex.row() - m_firstSelectedIndex.row() + 1;
+@@ -44,7 +44,7 @@ int DFileSelectionModel::selectedCount() const
+ QModelIndexList DFileSelectionModel::selectedIndexes() const
+ {
+ if (m_selectedList.isEmpty()) {
+- if (m_currentCommand != QFlags<QItemSelectionModel::SelectionFlags>(Current|Rows|ClearAndSelect)) {
++ if (m_currentCommand != QItemSelectionModel::SelectionFlags(Current|Rows|ClearAndSelect)) {
+ m_selectedList = QItemSelectionModel::selectedIndexes();
+ } else {
+ for (const QItemSelectionRange &range : m_selection) {
+@@ -61,7 +61,7 @@ void DFileSelectionModel::select(const QItemSelection &selection, QItemSelection
+ if (!command.testFlag(NoUpdate))
+ m_selectedList.clear();
+
+- if (command != QFlags<QItemSelectionModel::SelectionFlags>(Current|Rows|ClearAndSelect)) {
++ if (command != QItemSelectionModel::SelectionFlags(Current|Rows|ClearAndSelect)) {
+ if (m_timer.isActive()) {
+ m_timer.stop();
+ updateSelecteds();
More information about the arch-commits
mailing list