Merge branch 'dev' of github.com:amnezia-vpn/desktop-client into feature/qt6-libssh-support
This commit is contained in:
commit
74fbce8b96
279 changed files with 3217 additions and 14329 deletions
54
.github/workflows/deploy.yml
vendored
54
.github/workflows/deploy.yml
vendored
|
@ -20,7 +20,7 @@ jobs:
|
|||
host: 'linux'
|
||||
target: 'desktop'
|
||||
arch: 'gcc_64'
|
||||
modules: 'qtremoteobjects qt5compat'
|
||||
modules: 'qtremoteobjects qt5compat qtshadertools'
|
||||
dir: ${{ runner.temp }}
|
||||
setup-python: 'true'
|
||||
tools: 'tools_ifw'
|
||||
|
@ -46,8 +46,8 @@ jobs:
|
|||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: AmneziaVPN_Linux
|
||||
path: AmneziaVPN.bundle
|
||||
retention-days: 1
|
||||
path: deploy/AmneziaVPN_Linux_Installer
|
||||
retention-days: 3
|
||||
|
||||
# ------------------------------------------------------
|
||||
|
||||
|
@ -77,7 +77,7 @@ jobs:
|
|||
host: 'windows'
|
||||
target: 'desktop'
|
||||
arch: 'win64_msvc2019_64'
|
||||
modules: 'qtremoteobjects qt5compat'
|
||||
modules: 'qtremoteobjects qt5compat qtshadertools'
|
||||
dir: ${{ runner.temp }}
|
||||
setup-python: 'true'
|
||||
tools: 'tools_ifw'
|
||||
|
@ -102,7 +102,7 @@ jobs:
|
|||
with:
|
||||
name: AmneziaVPN_Windows
|
||||
path: AmneziaVPN_x${{ env.BUILD_ARCH }}.exe
|
||||
retention-days: 1
|
||||
retention-days: 3
|
||||
|
||||
# ------------------------------------------------------
|
||||
|
||||
|
@ -170,23 +170,15 @@ jobs:
|
|||
mkdir build-ios
|
||||
$QT_IOS_BIN/qt-cmake . -B build-ios -GXcode -DQT_HOST_PATH=$QT_MACOS_ROOT_DIR
|
||||
|
||||
- name: iOS Build/Release With Multiple Targets Action
|
||||
uses: kumarsunil0007/build-ios-action@latest
|
||||
with:
|
||||
project-path: build-ios/AmneziaVPN.xcodeproj
|
||||
p12-base64: ~/amnezia-vpn/amnezia-ios-certificates/certs/distribution/443886Q5PL.p12
|
||||
mobileprovision-base64: ~/amnezia-vpn/amnezia-ios-certificates/testprofilez.mobileprovision
|
||||
code-signing-identity: 'iOS Distribution'
|
||||
team-id: 'X7UJ388FXK'
|
||||
configuration: Release
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# - name: iOS Build/Release With Multiple Targets Action
|
||||
# uses: kumarsunil0007/build-ios-action@latest
|
||||
# with:
|
||||
# project-path: build-ios/AmneziaVPN.xcodeproj
|
||||
# p12-base64: ~/amnezia-vpn/amnezia-ios-certificates/certs/distribution/443886Q5PL.p12
|
||||
# mobileprovision-base64: ~/amnezia-vpn/amnezia-ios-certificates/testprofilez.mobileprovision
|
||||
# code-signing-identity: 'iOS Distribution'
|
||||
# team-id: 'X7UJ388FXK'
|
||||
# configuration: Release
|
||||
|
||||
# ------------------------------------------------------
|
||||
|
||||
|
@ -211,7 +203,7 @@ jobs:
|
|||
host: 'mac'
|
||||
target: 'desktop'
|
||||
arch: 'clang_64'
|
||||
modules: 'qtremoteobjects qt5compat'
|
||||
modules: 'qtremoteobjects qt5compat qtshadertools'
|
||||
dir: ${{ runner.temp }}
|
||||
setup-python: 'true'
|
||||
tools: 'tools_ifw'
|
||||
|
@ -238,7 +230,7 @@ jobs:
|
|||
with:
|
||||
name: AmneziaVPN_MacOS
|
||||
path: AmneziaVPN.dmg
|
||||
retention-days: 1
|
||||
retention-days: 3
|
||||
|
||||
# ------------------------------------------------------
|
||||
|
||||
|
@ -263,7 +255,7 @@ jobs:
|
|||
host: 'linux'
|
||||
target: 'desktop'
|
||||
arch: 'gcc_64'
|
||||
modules: 'qtremoteobjects qt5compat'
|
||||
modules: 'qtremoteobjects qt5compat qtimageformats qtshadertools'
|
||||
dir: ${{ runner.temp }}
|
||||
setup-python: 'true'
|
||||
set-env: 'true'
|
||||
|
@ -276,7 +268,7 @@ jobs:
|
|||
host: 'linux'
|
||||
target: 'android'
|
||||
arch: ${{ matrix.arch }}
|
||||
modules: 'qtremoteobjects qt5compat'
|
||||
modules: 'qtremoteobjects qt5compat qtimageformats qtshadertools'
|
||||
dir: ${{ runner.temp }}
|
||||
setup-python: 'true'
|
||||
set-env: 'true'
|
||||
|
@ -295,17 +287,19 @@ jobs:
|
|||
uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: '8'
|
||||
java-version: '11'
|
||||
|
||||
- name: 'Build project'
|
||||
run: |
|
||||
export NDK_VERSION=21d
|
||||
export ANDROID_NDK_PLATFORM=android-21
|
||||
export QT_HOST_PATH="${{ runner.temp }}/Qt/${{ env.QT_VERSION }}/gcc_64"
|
||||
export NDK_VERSION=23c
|
||||
export ANDROID_NDK_PLATFORM=android-23
|
||||
export ANDROID_NDK_HOME=${{ runner.temp }}/android-ndk-r${NDK_VERSION}
|
||||
export ANDROID_NDK_ROOT=$ANDROID_NDK_HOME
|
||||
export ANDROID_CURRENT_ARCH=${{ matrix.arch }}
|
||||
|
||||
if [ ! -f $ANDROID_NDK_ROOT/ndk-build ]; then
|
||||
wget https://dl.google.com/android/repository/android-ndk-r${NDK_VERSION}-linux-x86_64.zip -qO ${{ runner.temp }}/ndk.zip &&
|
||||
wget https://dl.google.com/android/repository/android-ndk-r${NDK_VERSION}-linux.zip -qO ${{ runner.temp }}/ndk.zip &&
|
||||
unzip -q -d ${{ runner.temp }} ${{ runner.temp }}/ndk.zip ;
|
||||
fi
|
||||
|
||||
|
|
142
.github/workflows/tag-deploy.yml
vendored
Normal file
142
.github/workflows/tag-deploy.yml
vendored
Normal file
|
@ -0,0 +1,142 @@
|
|||
name: 'Release deploy workflow'
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
# push:
|
||||
# tags:
|
||||
# - **
|
||||
|
||||
jobs:
|
||||
|
||||
Build-Android-Release:
|
||||
name: 'Build-Android-Release'
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
env:
|
||||
QT_VERSION: 6.4.1
|
||||
QIF_VERSION: 4.5
|
||||
|
||||
steps:
|
||||
- name: 'Install desktop Qt'
|
||||
uses: jurplel/install-qt-action@v3
|
||||
with:
|
||||
version: ${{ env.QT_VERSION }}
|
||||
host: 'linux'
|
||||
target: 'desktop'
|
||||
arch: 'gcc_64'
|
||||
modules: 'qtremoteobjects qt5compat qtimageformats qtshadertools'
|
||||
dir: ${{ runner.temp }}
|
||||
setup-python: 'true'
|
||||
set-env: 'true'
|
||||
extra: '--external 7z'
|
||||
|
||||
- name: 'Install android Qt x86_64'
|
||||
uses: jurplel/install-qt-action@v3
|
||||
with:
|
||||
version: ${{ env.QT_VERSION }}
|
||||
host: 'linux'
|
||||
target: 'android'
|
||||
arch: 'android_x86_64'
|
||||
modules: 'qtremoteobjects qt5compat qtimageformats qtshadertools'
|
||||
dir: ${{ runner.temp }}
|
||||
setup-python: 'true'
|
||||
set-env: 'true'
|
||||
extra: '--external 7z'
|
||||
|
||||
- name: 'Install android Qt x86'
|
||||
uses: jurplel/install-qt-action@v3
|
||||
with:
|
||||
version: ${{ env.QT_VERSION }}
|
||||
host: 'linux'
|
||||
target: 'android'
|
||||
arch: 'android_x86'
|
||||
modules: 'qtremoteobjects qt5compat qtimageformats qtshadertools'
|
||||
dir: ${{ runner.temp }}
|
||||
setup-python: 'true'
|
||||
set-env: 'true'
|
||||
extra: '--external 7z'
|
||||
|
||||
- name: 'Install android Qt arm_v7'
|
||||
uses: jurplel/install-qt-action@v3
|
||||
with:
|
||||
version: ${{ env.QT_VERSION }}
|
||||
host: 'linux'
|
||||
target: 'android'
|
||||
arch: 'android_armv7'
|
||||
modules: 'qtremoteobjects qt5compat qtimageformats qtshadertools'
|
||||
dir: ${{ runner.temp }}
|
||||
setup-python: 'true'
|
||||
set-env: 'true'
|
||||
extra: '--external 7z'
|
||||
|
||||
- name: 'Install android Qt arm_v8'
|
||||
uses: jurplel/install-qt-action@v3
|
||||
with:
|
||||
version: ${{ env.QT_VERSION }}
|
||||
host: 'linux'
|
||||
target: 'android'
|
||||
arch: 'android_arm64_v8a'
|
||||
modules: 'qtremoteobjects qt5compat qtimageformats qtshadertools'
|
||||
dir: ${{ runner.temp }}
|
||||
setup-python: 'true'
|
||||
set-env: 'true'
|
||||
extra: '--external 7z'
|
||||
|
||||
- name: 'Get sources'
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
path: main
|
||||
submodules: 'true'
|
||||
fetch-depth: 10
|
||||
|
||||
- name: 'Preparations before keystore fetching'
|
||||
run: |
|
||||
mkdir keystore
|
||||
|
||||
- name: 'Getting keystore'
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: amnezia-vpn/amnezia-android-certificates
|
||||
ssh-key: ${{ secrets.ANDROID_CERTS_SSH_PRIVATE_KEY }}
|
||||
path: keystore
|
||||
|
||||
- name: 'Setup ccache'
|
||||
uses: hendrikmuhs/ccache-action@v1.2
|
||||
|
||||
- name: 'Setup Java'
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: '11'
|
||||
|
||||
- name: 'Build project'
|
||||
run: |
|
||||
export QT_HOST_PATH="${{ runner.temp }}/Qt/${{ env.QT_VERSION }}/gcc_64"
|
||||
export NDK_VERSION=23c
|
||||
export ANDROID_NDK_PLATFORM=android-23
|
||||
export ANDROID_NDK_HOME=${{ runner.temp }}/android-ndk-r${NDK_VERSION}
|
||||
export ANDROID_NDK_ROOT=$ANDROID_NDK_HOME
|
||||
|
||||
if [ ! -f $ANDROID_NDK_ROOT/ndk-build ]; then
|
||||
wget https://dl.google.com/android/repository/android-ndk-r${NDK_VERSION}-linux.zip -qO ${{ runner.temp }}/ndk.zip &&
|
||||
unzip -q -d ${{ runner.temp }} ${{ runner.temp }}/ndk.zip ;
|
||||
fi
|
||||
|
||||
export QT_BIN_DIR=${{ runner.temp }}/Qt/${{ env.QT_VERSION }}/android_arm64_v8a/bin
|
||||
cd main
|
||||
bash deploy/build_android.sh
|
||||
|
||||
- name: 'Signing APK'
|
||||
run: |
|
||||
pwd
|
||||
|
||||
ANDROID_BUILD_TOOLS_VERSION=30.0.3
|
||||
|
||||
${ANDROID_HOME}/build-tools/${ANDROID_BUILD_TOOLS_VERSION}/zipalign -f -v 4 AmneziaVPN-release-unsigned.apk AmneziaVPN-release-aligned.apk
|
||||
${ANDROID_HOME}/build-tools/${ANDROID_BUILD_TOOLS_VERSION}/apksigner sign --out AmneziaVPN-release-signed.apk --ks keystore/debug.keystore --ks-key-alias ${{ secrets.DEBUG_ANDROID_KEYSTORE_KEY_ALIAS }} --ks-pass pass:${{secrets.DEBUG_ANDROID_KEYSTOTE_KEY_PASS }} AmneziaVPN-release-aligned.apk
|
||||
|
||||
- name: 'Upload'
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: Release APK
|
||||
path: ${{ runner.temp }}/main/AmneziaVPN-release-signed.apk
|
3
.gitmodules
vendored
3
.gitmodules
vendored
|
@ -34,3 +34,6 @@
|
|||
[submodule "deploy/amnezia-ios-certificates"]
|
||||
path = deploy/amnezia-ios-certificates
|
||||
url = https://github.com/amnezia-vpn/amnezia-ios-certificates.git
|
||||
[submodule "client/3rd/SortFilterProxyModel"]
|
||||
path = client/3rd/SortFilterProxyModel
|
||||
url = https://github.com/mitchcurtis/SortFilterProxyModel.git
|
||||
|
|
|
@ -3,6 +3,10 @@ cmake_minimum_required(VERSION 3.23.0 FATAL_ERROR)
|
|||
set(PROJECT AmneziaVPN)
|
||||
project(${PROJECT})
|
||||
|
||||
if(ANDROID)
|
||||
set(QT_ANDROID_BUILD_ALL_ABIS ON)
|
||||
endif()
|
||||
|
||||
add_subdirectory(client)
|
||||
|
||||
if(NOT IOS AND NOT ANDROID)
|
||||
|
|
|
@ -38,11 +38,13 @@ if(ANDROID)
|
|||
# We need to include qtprivate api's
|
||||
# As QAndroidBinder is not yet implemented with a public api
|
||||
set(LIBS ${LIBS} Qt6::CorePrivate)
|
||||
set(ANDROID_ABIS ANDROID_TARGET_ARCH)
|
||||
|
||||
link_directories(${CMAKE_CURRENT_LIST_DIR}/android/${ANDROID_TARGET_ARCH})
|
||||
set(HEADERS ${HEADERS} ${CMAKE_CURRENT_LIST_DIR}/android/${ANDROID_TARGET_ARCH}/botan_all.h)
|
||||
set(SOURCES ${SOURCES} ${CMAKE_CURRENT_LIST_DIR}/android/${ANDROID_TARGET_ARCH}/botan_all.cpp)
|
||||
set(abi ${CMAKE_ANDROID_ARCH_ABI})
|
||||
|
||||
include_directories(${CMAKE_CURRENT_LIST_DIR}/android/${abi})
|
||||
link_directories(${CMAKE_CURRENT_LIST_DIR}/android/${abi})
|
||||
set(HEADERS ${HEADERS} ${CMAKE_CURRENT_LIST_DIR}/android/${abi}/botan_all.h)
|
||||
set(SOURCES ${SOURCES} ${CMAKE_CURRENT_LIST_DIR}/android/${abi}/botan_all.cpp)
|
||||
endif()
|
||||
|
||||
if(IOS)
|
||||
|
@ -66,8 +68,4 @@ if(IOS)
|
|||
include_directories(${CMAKE_CURRENT_LIST_DIR}/ios/iphone)
|
||||
set(HEADERS ${HEADERS} ${CMAKE_CURRENT_LIST_DIR}/ios/iphone/botan_all.h)
|
||||
set(SOURCES ${SOURCES} ${CMAKE_CURRENT_LIST_DIR}/ios/iphone/botan_all.cpp)
|
||||
|
||||
|
||||
|
||||
|
||||
endif()
|
||||
|
|
1
client/3rd/SortFilterProxyModel
Submodule
1
client/3rd/SortFilterProxyModel
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit f2881493e42bd7b7d5b7abe804dad084dd610b71
|
77
client/3rd/SortFilterProxyModel/.gitignore
vendored
77
client/3rd/SortFilterProxyModel/.gitignore
vendored
|
@ -1,77 +0,0 @@
|
|||
# This file is used to ignore files which are generated
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
*~
|
||||
*.autosave
|
||||
*.a
|
||||
*.core
|
||||
*.moc
|
||||
*.o
|
||||
*.obj
|
||||
*.orig
|
||||
*.rej
|
||||
*.so
|
||||
*.so.*
|
||||
*_pch.h.cpp
|
||||
*_resource.rc
|
||||
*.qm
|
||||
.#*
|
||||
*.*#
|
||||
core
|
||||
!core/
|
||||
tags
|
||||
.DS_Store
|
||||
.directory
|
||||
*.debug
|
||||
Makefile*
|
||||
*.prl
|
||||
*.app
|
||||
moc_*.cpp
|
||||
ui_*.h
|
||||
qrc_*.cpp
|
||||
*.qmlc
|
||||
Thumbs.db
|
||||
*.res
|
||||
*.rc
|
||||
/.qmake.cache
|
||||
/.qmake.stash
|
||||
|
||||
# qtcreator generated files
|
||||
*.pro.user*
|
||||
|
||||
# qtcreator shadow builds
|
||||
build-SortFilterProxyModel-*
|
||||
|
||||
# xemacs temporary files
|
||||
*.flc
|
||||
|
||||
# Vim temporary files
|
||||
.*.swp
|
||||
|
||||
# Visual Studio generated files
|
||||
*.ib_pdb_index
|
||||
*.idb
|
||||
*.ilk
|
||||
*.pdb
|
||||
*.sln
|
||||
*.suo
|
||||
*.vcproj
|
||||
*vcproj.*.*.user
|
||||
*.ncb
|
||||
*.sdf
|
||||
*.opensdf
|
||||
*.vcxproj
|
||||
*vcxproj.*
|
||||
|
||||
# MinGW generated files
|
||||
*.Debug
|
||||
*.Release
|
||||
|
||||
# Python byte code
|
||||
*.pyc
|
||||
|
||||
# Binaries
|
||||
# --------
|
||||
*.dll
|
||||
*.exe
|
||||
|
|
@ -1,61 +0,0 @@
|
|||
cmake_minimum_required(VERSION 3.14)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
|
||||
find_package(Qt6 REQUIRED COMPONENTS
|
||||
Core
|
||||
Qml
|
||||
)
|
||||
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
set(CMAKE_INCLUDE_CURRENT_DIR ON) # This is to find generated *.moc and *.h files in build dir
|
||||
|
||||
add_library(SortFilterProxyModel OBJECT
|
||||
qqmlsortfilterproxymodel.cpp
|
||||
filters/filter.cpp
|
||||
filters/filtercontainer.cpp
|
||||
filters/rolefilter.cpp
|
||||
filters/valuefilter.cpp
|
||||
filters/indexfilter.cpp
|
||||
filters/regexpfilter.cpp
|
||||
filters/rangefilter.cpp
|
||||
filters/expressionfilter.cpp
|
||||
filters/filtercontainerfilter.cpp
|
||||
filters/anyoffilter.cpp
|
||||
filters/alloffilter.cpp
|
||||
filters/filtersqmltypes.cpp
|
||||
sorters/sorter.cpp
|
||||
sorters/sortercontainer.cpp
|
||||
sorters/rolesorter.cpp
|
||||
sorters/stringsorter.cpp
|
||||
sorters/expressionsorter.cpp
|
||||
sorters/sortersqmltypes.cpp
|
||||
proxyroles/proxyrole.cpp
|
||||
proxyroles/proxyrolecontainer.cpp
|
||||
proxyroles/joinrole.cpp
|
||||
proxyroles/switchrole.cpp
|
||||
proxyroles/expressionrole.cpp
|
||||
proxyroles/proxyrolesqmltypes.cpp
|
||||
proxyroles/singlerole.cpp
|
||||
proxyroles/regexprole.cpp
|
||||
sorters/filtersorter.cpp
|
||||
proxyroles/filterrole.cpp
|
||||
utils/utils.cpp
|
||||
utils/utils.h
|
||||
)
|
||||
|
||||
target_link_libraries(SortFilterProxyModel
|
||||
PRIVATE
|
||||
Qt6::Core
|
||||
Qt6::Qml
|
||||
)
|
||||
|
||||
if ((MSVC) AND (MSVC_VERSION GREATER_EQUAL 1914))
|
||||
target_compile_options(SortFilterProxyModel PUBLIC "/Zc:__cplusplus")
|
||||
endif()
|
||||
|
||||
target_include_directories(SortFilterProxyModel PUBLIC
|
||||
${CMAKE_CURRENT_LIST_DIR}
|
||||
$<TARGET_PROPERTY:Qt6::Core,INTERFACE_INCLUDE_DIRECTORIES>
|
||||
$<TARGET_PROPERTY:Qt6::Qml,INTERFACE_INCLUDE_DIRECTORIES>
|
||||
)
|
|
@ -1,8 +0,0 @@
|
|||
The MIT License (MIT)
|
||||
Copyright (c) 2016 Pierre-Yves Siret
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@ -1,126 +0,0 @@
|
|||
SortFilterProxyModel
|
||||
====================
|
||||
|
||||
SortFilterProxyModel is an implementation of `QSortFilterProxyModel` conveniently exposed for QML.
|
||||
|
||||
Install
|
||||
-------
|
||||
##### With [qpm](https://qpm.io) :
|
||||
1. `qpm install fr.grecko.sortfilterproxymodel`
|
||||
2. add `include(vendor/vendor.pri)` in your .pro if it is not already done
|
||||
3. `import SortFilterProxyModel 0.2` to use this library in your QML files
|
||||
|
||||
##### Without qpm :
|
||||
1. clone or download this repository
|
||||
2. * `qmake` add `include (<path/to/SortFilterProxyModel>/SortFilterProxyModel.pri)` in your `.pro`
|
||||
* `CMake` add $<TARGET_OBJECTS:SortFilterProxyModel> to the sources of your executable target in your cmake project
|
||||
3. `import SortFilterProxyModel 0.2` to use this library in your QML files
|
||||
|
||||
Sample Usage
|
||||
------------
|
||||
|
||||
- You can do simple filtering and sorting with SortFilterProxyModel:
|
||||
```qml
|
||||
import QtQuick 2.2
|
||||
import QtQuick.Controls 1.2
|
||||
import SortFilterProxyModel 0.2
|
||||
|
||||
ApplicationWindow {
|
||||
visible: true
|
||||
width: 640
|
||||
height: 480
|
||||
|
||||
ListModel {
|
||||
id: personModel
|
||||
ListElement {
|
||||
firstName: "Erwan"
|
||||
lastName: "Castex"
|
||||
favorite: true
|
||||
}
|
||||
// ...
|
||||
}
|
||||
|
||||
TextField {
|
||||
id: textField
|
||||
anchors { top: parent.top; left: parent.left; right: parent.right }
|
||||
height: implicitHeight
|
||||
}
|
||||
|
||||
SortFilterProxyModel {
|
||||
id: personProxyModel
|
||||
sourceModel: personModel
|
||||
filters: RegExpFilter {
|
||||
roleName: "lastName"
|
||||
pattern: textField.text
|
||||
caseSensitivity: Qt.CaseInsensitive
|
||||
}
|
||||
sorters: StringSorter { roleName: "firstName" }
|
||||
}
|
||||
|
||||
ListView {
|
||||
anchors { top: textField.bottom; bottom: parent.bottom; left: parent.left; right: parent.right }
|
||||
model: personProxyModel
|
||||
delegate: Text { text: model.firstName + " " + model.lastName}
|
||||
}
|
||||
}
|
||||
```
|
||||
Here the `ListView` will only show elements that contains the content of the `TextField` in their `lastName` role.
|
||||
|
||||
- But you can also achieve more complex filtering or sorting with multiple `filters` and `sorters`:
|
||||
```qml
|
||||
SortFilterProxyModel {
|
||||
id: personProxyModel
|
||||
sourceModel: personModel
|
||||
filters: [
|
||||
ValueFilter {
|
||||
enabled: onlyShowFavoritesCheckbox.checked
|
||||
roleName: "favorite"
|
||||
value: true
|
||||
},
|
||||
AnyOf {
|
||||
RegExpFilter {
|
||||
roleName: "lastName"
|
||||
pattern: textField.text
|
||||
caseSensitivity: Qt.CaseInsensitive
|
||||
}
|
||||
RegExpFilter {
|
||||
roleName: "firstName"
|
||||
pattern: textField.text
|
||||
caseSensitivity: Qt.CaseInsensitive
|
||||
}
|
||||
}
|
||||
]
|
||||
sorters: [
|
||||
RoleSorter { roleName: "favorite"; sortOrder: Qt.DescendingOrder },
|
||||
StringSorter { roleName: "firstName" },
|
||||
StringSorter { roleName: "lastName" }
|
||||
]
|
||||
}
|
||||
|
||||
CheckBox {
|
||||
id:onlyShowFavoritesCheckbox
|
||||
}
|
||||
```
|
||||
This will show in the corresponding `ListView` only the elements where the `firstName` or the `lastName` match the text entered in the `textField`, and if the `onlyShowFavoritesCheckbox` is checked it will aditionnally filter the elements where `favorite` is `true`.
|
||||
The favorited elements will be shown first and all the elements are sorted by `firstName` and then `lastName`.
|
||||
|
||||
Showcase Application
|
||||
--------------------
|
||||
You can find an application showcasing this library here: https://github.com/oKcerG/SFPMShowcase
|
||||
|
||||
License
|
||||
-------
|
||||
This library is licensed under the MIT License.
|
||||
|
||||
Documentation
|
||||
-------------
|
||||
This component is a subclass of [`QSortFilterProxyModel`](http://doc.qt.io/qt-5/qsortfilterproxymodel.html), to use it, you need to set the `sourceModel` property to a [`QAbstractItemModel*`](http://doc.qt.io/qt-5/qabstractitemmodel.html) with correct role names.
|
||||
This means you can use it with custom c++ models or `ListModel`, but not with JavaScript models like arrays, integers or object instances.
|
||||
|
||||
The complete documentation reference is available here: https://okcerg.github.io/SortFilterProxyModel/
|
||||
|
||||
Contributing
|
||||
------------
|
||||
Don't hesitate to open an issue about a suggestion, a bug, a lack of clarity in the documentation, etc.
|
||||
|
||||
Pull requests are also welcome, if it's a important change you should open an issue first though.
|
|
@ -1,62 +0,0 @@
|
|||
!contains( CONFIG, c\+\+1[14] ): warning("SortFilterProxyModel needs at least c++11, add CONFIG += c++11 to your .pro")
|
||||
|
||||
INCLUDEPATH += $$PWD
|
||||
|
||||
HEADERS += $$PWD/qqmlsortfilterproxymodel.h \
|
||||
$$PWD/filters/filter.h \
|
||||
$$PWD/filters/filtercontainer.h \
|
||||
$$PWD/filters/rolefilter.h \
|
||||
$$PWD/filters/valuefilter.h \
|
||||
$$PWD/filters/indexfilter.h \
|
||||
$$PWD/filters/regexpfilter.h \
|
||||
$$PWD/filters/rangefilter.h \
|
||||
$$PWD/filters/expressionfilter.h \
|
||||
$$PWD/filters/filtercontainerfilter.h \
|
||||
$$PWD/filters/anyoffilter.h \
|
||||
$$PWD/filters/alloffilter.h \
|
||||
$$PWD/sorters/sorter.h \
|
||||
$$PWD/sorters/sortercontainer.h \
|
||||
$$PWD/sorters/rolesorter.h \
|
||||
$$PWD/sorters/stringsorter.h \
|
||||
$$PWD/sorters/expressionsorter.h \
|
||||
$$PWD/proxyroles/proxyrole.h \
|
||||
$$PWD/proxyroles/proxyrolecontainer.h \
|
||||
$$PWD/proxyroles/joinrole.h \
|
||||
$$PWD/proxyroles/switchrole.h \
|
||||
$$PWD/proxyroles/expressionrole.h \
|
||||
$$PWD/proxyroles/singlerole.h \
|
||||
$$PWD/proxyroles/regexprole.h \
|
||||
$$PWD/sorters/filtersorter.h \
|
||||
$$PWD/proxyroles/filterrole.h \
|
||||
$$PWD/utils/utils.h
|
||||
|
||||
SOURCES += $$PWD/qqmlsortfilterproxymodel.cpp \
|
||||
$$PWD/filters/filter.cpp \
|
||||
$$PWD/filters/filtercontainer.cpp \
|
||||
$$PWD/filters/rolefilter.cpp \
|
||||
$$PWD/filters/valuefilter.cpp \
|
||||
$$PWD/filters/indexfilter.cpp \
|
||||
$$PWD/filters/regexpfilter.cpp \
|
||||
$$PWD/filters/rangefilter.cpp \
|
||||
$$PWD/filters/expressionfilter.cpp \
|
||||
$$PWD/filters/filtercontainerfilter.cpp \
|
||||
$$PWD/filters/anyoffilter.cpp \
|
||||
$$PWD/filters/alloffilter.cpp \
|
||||
$$PWD/filters/filtersqmltypes.cpp \
|
||||
$$PWD/sorters/sorter.cpp \
|
||||
$$PWD/sorters/sortercontainer.cpp \
|
||||
$$PWD/sorters/rolesorter.cpp \
|
||||
$$PWD/sorters/stringsorter.cpp \
|
||||
$$PWD/sorters/expressionsorter.cpp \
|
||||
$$PWD/sorters/sortersqmltypes.cpp \
|
||||
$$PWD/proxyroles/proxyrole.cpp \
|
||||
$$PWD/proxyroles/proxyrolecontainer.cpp \
|
||||
$$PWD/proxyroles/joinrole.cpp \
|
||||
$$PWD/proxyroles/switchrole.cpp \
|
||||
$$PWD/proxyroles/expressionrole.cpp \
|
||||
$$PWD/proxyroles/proxyrolesqmltypes.cpp \
|
||||
$$PWD/proxyroles/singlerole.cpp \
|
||||
$$PWD/proxyroles/regexprole.cpp \
|
||||
$$PWD/sorters/filtersorter.cpp \
|
||||
$$PWD/proxyroles/filterrole.cpp \
|
||||
$$PWD/utils/utils.cpp
|
|
@ -1,65 +0,0 @@
|
|||
import qbs
|
||||
|
||||
Group {
|
||||
name: "SortFilterProxyModel"
|
||||
prefix: path + "/"
|
||||
files: [
|
||||
"filters/alloffilter.cpp",
|
||||
"filters/alloffilter.h",
|
||||
"filters/anyoffilter.cpp",
|
||||
"filters/anyoffilter.h",
|
||||
"filters/expressionfilter.cpp",
|
||||
"filters/expressionfilter.h",
|
||||
"filters/filter.cpp",
|
||||
"filters/filter.h",
|
||||
"filters/filtercontainer.cpp",
|
||||
"filters/filtercontainer.h",
|
||||
"filters/filtercontainerfilter.cpp",
|
||||
"filters/filtercontainerfilter.h",
|
||||
"filters/filtersqmltypes.cpp",
|
||||
"filters/indexfilter.cpp",
|
||||
"filters/indexfilter.h",
|
||||
"filters/rangefilter.cpp",
|
||||
"filters/rangefilter.h",
|
||||
"filters/regexpfilter.cpp",
|
||||
"filters/regexpfilter.h",
|
||||
"filters/rolefilter.cpp",
|
||||
"filters/rolefilter.h",
|
||||
"filters/valuefilter.cpp",
|
||||
"filters/valuefilter.h",
|
||||
"proxyroles/expressionrole.cpp",
|
||||
"proxyroles/expressionrole.h",
|
||||
"proxyroles/filterrole.cpp",
|
||||
"proxyroles/filterrole.h",
|
||||
"proxyroles/joinrole.cpp",
|
||||
"proxyroles/joinrole.h",
|
||||
"proxyroles/proxyrole.cpp",
|
||||
"proxyroles/proxyrole.h",
|
||||
"proxyroles/proxyrolecontainer.cpp",
|
||||
"proxyroles/proxyrolecontainer.h",
|
||||
"proxyroles/proxyrolesqmltypes.cpp",
|
||||
"proxyroles/regexprole.cpp",
|
||||
"proxyroles/regexprole.h",
|
||||
"proxyroles/singlerole.cpp",
|
||||
"proxyroles/singlerole.h",
|
||||
"proxyroles/switchrole.cpp",
|
||||
"proxyroles/switchrole.h",
|
||||
"sorters/expressionsorter.cpp",
|
||||
"sorters/expressionsorter.h",
|
||||
"sorters/filtersorter.cpp",
|
||||
"sorters/filtersorter.h",
|
||||
"sorters/rolesorter.cpp",
|
||||
"sorters/rolesorter.h",
|
||||
"sorters/sorter.cpp",
|
||||
"sorters/sorter.h",
|
||||
"sorters/sortercontainer.cpp",
|
||||
"sorters/sortercontainer.h",
|
||||
"sorters/sortersqmltypes.cpp",
|
||||
"sorters/stringsorter.cpp",
|
||||
"sorters/stringsorter.h",
|
||||
"utils/utils.cpp",
|
||||
"utils/utils.h",
|
||||
"qqmlsortfilterproxymodel.cpp",
|
||||
"qqmlsortfilterproxymodel.h"
|
||||
]
|
||||
}
|
|
@ -1,65 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- index.qdoc -->
|
||||
<title>SortFilterProxyModel QML Module | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<h1 class="title">SortFilterProxyModel QML Module</h1>
|
||||
<span class="subtitle"></span>
|
||||
<!-- $$$index.html-description -->
|
||||
<div class="descr"> <a name="details"></a>
|
||||
<p><a href="qml-sortfilterproxymodel-sortfilterproxymodel.html">SortFilterProxyModel</a> is an implementation of QSortFilterProxyModel conveniently exposed for QML. <div class="table"><table class="annotated">
|
||||
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-sortfilterproxymodel.html">SortFilterProxyModel</a></p></td><td class="tblDescr"><p>Filters and sorts data coming from a source QAbstractItemModel</p></td></tr>
|
||||
</table></div>
|
||||
</p>
|
||||
<a name="filters"></a>
|
||||
<h2 id="filters">Filters</h2>
|
||||
<div class="table"><table class="annotated">
|
||||
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-allof.html">AllOf</a></p></td><td class="tblDescr"><p>Filter container accepting rows accepted by all its child filters</p></td></tr>
|
||||
<tr class="even topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-anyof.html">AnyOf</a></p></td><td class="tblDescr"><p>Filter container accepting rows accepted by at least one of its child filters</p></td></tr>
|
||||
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-expressionfilter.html">ExpressionFilter</a></p></td><td class="tblDescr"><p>Filters row with a custom filtering</p></td></tr>
|
||||
<tr class="even topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-filter.html">Filter</a></p></td><td class="tblDescr"><p>Base type for the SortFilterProxyModel filters</p></td></tr>
|
||||
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-indexfilter.html">IndexFilter</a></p></td><td class="tblDescr"><p>Filters rows based on their source index</p></td></tr>
|
||||
<tr class="even topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-rangefilter.html">RangeFilter</a></p></td><td class="tblDescr"><p>Filters rows between boundary values</p></td></tr>
|
||||
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-regexpfilter.html">RegExpFilter</a></p></td><td class="tblDescr"><p>Filters rows matching a regular expression</p></td></tr>
|
||||
<tr class="even topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-rolefilter.html">RoleFilter</a></p></td><td class="tblDescr"><p>Base type for filters based on a source model role</p></td></tr>
|
||||
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-valuefilter.html">ValueFilter</a></p></td><td class="tblDescr"><p>Filters rows matching exactly a value</p></td></tr>
|
||||
</table></div>
|
||||
<a name="related-attached-types"></a>
|
||||
<h3 id="related-attached-types">Related attached types</h3>
|
||||
<div class="table"><table class="annotated">
|
||||
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-filtercontainer.html">FilterContainer</a></p></td><td class="tblDescr"><p>Abstract interface for types containing Filters</p></td></tr>
|
||||
</table></div>
|
||||
<a name="sorters"></a>
|
||||
<h2 id="sorters">Sorters</h2>
|
||||
<div class="table"><table class="annotated">
|
||||
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-expressionsorter.html">ExpressionSorter</a></p></td><td class="tblDescr"><p>Sorts row with a custom javascript expression</p></td></tr>
|
||||
<tr class="even topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-filtersorter.html">FilterSorter</a></p></td><td class="tblDescr"><p>Sorts rows based on if they match filters</p></td></tr>
|
||||
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-rolesorter.html">RoleSorter</a></p></td><td class="tblDescr"><p>Sorts rows based on a source model role</p></td></tr>
|
||||
<tr class="even topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-sorter.html">Sorter</a></p></td><td class="tblDescr"><p>Base type for the SortFilterProxyModel sorters</p></td></tr>
|
||||
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-stringsorter.html">StringSorter</a></p></td><td class="tblDescr"><p>Sorts rows based on a source model string role</p></td></tr>
|
||||
</table></div>
|
||||
<a name="related-attached-types"></a>
|
||||
<h3 id="related-attached-types">Related attached types</h3>
|
||||
<div class="table"><table class="annotated">
|
||||
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-sortercontainer.html">SorterContainer</a></p></td><td class="tblDescr"><p>Abstract interface for types containing Sorters</p></td></tr>
|
||||
</table></div>
|
||||
<a name="proxyroles"></a>
|
||||
<h2 id="proxyroles">ProxyRoles</h2>
|
||||
<div class="table"><table class="annotated">
|
||||
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-expressionrole.html">ExpressionRole</a></p></td><td class="tblDescr"><p>A custom role computed from a javascript expression</p></td></tr>
|
||||
<tr class="even topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-filterrole.html">FilterRole</a></p></td><td class="tblDescr"><p>A role resolving to true for rows matching all its filters</p></td></tr>
|
||||
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-joinrole.html">JoinRole</a></p></td><td class="tblDescr"><p>Role made from concatenating other roles</p></td></tr>
|
||||
<tr class="even topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-proxyrole.html">ProxyRole</a></p></td><td class="tblDescr"><p>Base type for the SortFilterProxyModel proxy roles</p></td></tr>
|
||||
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-regexprole.html">RegExpRole</a></p></td><td class="tblDescr"><p>A ProxyRole extracting data from a source role via a regular expression</p></td></tr>
|
||||
<tr class="even topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-singlerole.html">SingleRole</a></p></td><td class="tblDescr"><p>Base type for the SortFilterProxyModel proxy roles defining a single role</p></td></tr>
|
||||
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-switchrole.html">SwitchRole</a></p></td><td class="tblDescr"><p>A role using Filter to conditionnaly compute its data</p></td></tr>
|
||||
</table></div>
|
||||
</div>
|
||||
<!-- @@@index.html -->
|
||||
</body>
|
||||
</html>
|
|
@ -1,19 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- alloffilter.cpp -->
|
||||
<title>List of All Members for AllOf | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">List of All Members for AllOf</h1>
|
||||
<p>This is the complete list of members for <a href="qml-sortfilterproxymodel-allof.html">AllOf</a>, including inherited members.</p>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-allof.html#enabled-prop">enabled</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-allof.html#inverted-prop">inverted</a></b></b> : bool</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
|
@ -1,67 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- alloffilter.cpp -->
|
||||
<title>AllOf QML Type | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar">
|
||||
<div class="toc">
|
||||
<h3><a name="toc">Contents</a></h3>
|
||||
<ul>
|
||||
<li class="level1"><a href="#properties">Properties</a></li>
|
||||
<li class="level1"><a href="#details">Detailed Description</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">AllOf QML Type</h1>
|
||||
<span class="subtitle"></span>
|
||||
<!-- $$$AllOf-brief -->
|
||||
<p>Filter container accepting rows accepted by all its child filters. <a href="#details">More...</a></p>
|
||||
<!-- @@@AllOf -->
|
||||
<div class="table"><table class="alignedsummary">
|
||||
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import SortFilterProxyModel .</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <p><a href="qml-sortfilterproxymodel-filter.html">Filter</a></p>
|
||||
</td></tr></table></div><ul>
|
||||
<li><a href="qml-sortfilterproxymodel-allof-members.html">List of all members, including inherited members</a></li>
|
||||
</ul>
|
||||
<a name="properties"></a>
|
||||
<h2 id="properties">Properties</h2>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-allof.html#enabled-prop">enabled</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-allof.html#inverted-prop">inverted</a></b></b> : bool</li>
|
||||
</ul>
|
||||
<!-- $$$AllOf-description -->
|
||||
<a name="details"></a>
|
||||
<h2 id="details">Detailed Description</h2>
|
||||
<p>The AllOf type is a <a href="qml-sortfilterproxymodel-filter.html">Filter</a> container that accepts rows if all of its contained (and enabled) filters accept them, or if it has no filter.</p>
|
||||
<p>Using it as a top level filter has the same effect as putting all its child filters as top level filters. It can however be usefull to use an AllOf filter when nested in an <a href="qml-sortfilterproxymodel-anyof.html">AnyOf</a> filter.</p>
|
||||
<p><b>See also </b><a href="qml-sortfilterproxymodel-filtercontainer.html">FilterContainer</a>.</p>
|
||||
<!-- @@@AllOf -->
|
||||
<h2>Property Documentation</h2>
|
||||
<!-- $$$enabled -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="enabled-prop"></a><span class="name">enabled</span> : <span class="type">bool</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds whether the filter is enabled. A disabled filter will accept every rows unconditionally (even if it's inverted).</p>
|
||||
<p>By default, filters are enabled.</p>
|
||||
</div></div><!-- @@@enabled -->
|
||||
<br/>
|
||||
<!-- $$$inverted -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="inverted-prop"></a><span class="name">inverted</span> : <span class="type">bool</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds whether the filter is inverted. When a filter is inverted, a row normally accepted would be rejected, and vice-versa.</p>
|
||||
<p>By default, filters are not inverted.</p>
|
||||
</div></div><!-- @@@inverted -->
|
||||
<br/>
|
||||
</body>
|
||||
</html>
|
|
@ -1,19 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- anyoffilter.cpp -->
|
||||
<title>List of All Members for AnyOf | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">List of All Members for AnyOf</h1>
|
||||
<p>This is the complete list of members for <a href="qml-sortfilterproxymodel-anyof.html">AnyOf</a>, including inherited members.</p>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-anyof.html#enabled-prop">enabled</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-anyof.html#inverted-prop">inverted</a></b></b> : bool</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
|
@ -1,86 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- anyoffilter.cpp -->
|
||||
<title>AnyOf QML Type | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar">
|
||||
<div class="toc">
|
||||
<h3><a name="toc">Contents</a></h3>
|
||||
<ul>
|
||||
<li class="level1"><a href="#properties">Properties</a></li>
|
||||
<li class="level1"><a href="#details">Detailed Description</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">AnyOf QML Type</h1>
|
||||
<span class="subtitle"></span>
|
||||
<!-- $$$AnyOf-brief -->
|
||||
<p>Filter container accepting rows accepted by at least one of its child filters. <a href="#details">More...</a></p>
|
||||
<!-- @@@AnyOf -->
|
||||
<div class="table"><table class="alignedsummary">
|
||||
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import SortFilterProxyModel .</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <p><a href="qml-sortfilterproxymodel-filter.html">Filter</a></p>
|
||||
</td></tr></table></div><ul>
|
||||
<li><a href="qml-sortfilterproxymodel-anyof-members.html">List of all members, including inherited members</a></li>
|
||||
</ul>
|
||||
<a name="properties"></a>
|
||||
<h2 id="properties">Properties</h2>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-anyof.html#enabled-prop">enabled</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-anyof.html#inverted-prop">inverted</a></b></b> : bool</li>
|
||||
</ul>
|
||||
<!-- $$$AnyOf-description -->
|
||||
<a name="details"></a>
|
||||
<h2 id="details">Detailed Description</h2>
|
||||
<p>The AnyOf type is a <a href="qml-sortfilterproxymodel-filter.html">Filter</a> container that accepts rows if any of its contained (and enabled) filters accept them.</p>
|
||||
<p>In the following example, only the rows where the <code>firstName</code> role or the <code>lastName</code> role match the text entered in the <code>nameTextField</code> will be accepted :</p>
|
||||
<pre class="cpp">TextField {
|
||||
id: nameTextField
|
||||
}
|
||||
|
||||
SortFilterProxyModel {
|
||||
sourceModel: contactModel
|
||||
filters: AnyOf {
|
||||
RegExpFilter {
|
||||
roleName: <span class="string">"lastName"</span>
|
||||
pattern: nameTextField<span class="operator">.</span>text
|
||||
caseSensitivity: <span class="type">Qt</span><span class="operator">.</span>CaseInsensitive
|
||||
}
|
||||
RegExpFilter {
|
||||
roleName: <span class="string">"firstName"</span>
|
||||
pattern: nameTextField<span class="operator">.</span>text
|
||||
caseSensitivity: <span class="type">Qt</span><span class="operator">.</span>CaseInsensitive
|
||||
}
|
||||
}
|
||||
}</pre>
|
||||
<p><b>See also </b><a href="qml-sortfilterproxymodel-filtercontainer.html">FilterContainer</a>.</p>
|
||||
<!-- @@@AnyOf -->
|
||||
<h2>Property Documentation</h2>
|
||||
<!-- $$$enabled -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="enabled-prop"></a><span class="name">enabled</span> : <span class="type">bool</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds whether the filter is enabled. A disabled filter will accept every rows unconditionally (even if it's inverted).</p>
|
||||
<p>By default, filters are enabled.</p>
|
||||
</div></div><!-- @@@enabled -->
|
||||
<br/>
|
||||
<!-- $$$inverted -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="inverted-prop"></a><span class="name">inverted</span> : <span class="type">bool</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds whether the filter is inverted. When a filter is inverted, a row normally accepted would be rejected, and vice-versa.</p>
|
||||
<p>By default, filters are not inverted.</p>
|
||||
</div></div><!-- @@@inverted -->
|
||||
<br/>
|
||||
</body>
|
||||
</html>
|
|
@ -1,20 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- expressionfilter.cpp -->
|
||||
<title>List of All Members for ExpressionFilter | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">List of All Members for ExpressionFilter</h1>
|
||||
<p>This is the complete list of members for <a href="qml-sortfilterproxymodel-expressionfilter.html">ExpressionFilter</a>, including inherited members.</p>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-expressionfilter.html#enabled-prop">enabled</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-expressionfilter.html#expression-prop">expression</a></b></b> : expression</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-expressionfilter.html#inverted-prop">inverted</a></b></b> : bool</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
|
@ -1,78 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- expressionfilter.cpp -->
|
||||
<title>ExpressionFilter QML Type | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar">
|
||||
<div class="toc">
|
||||
<h3><a name="toc">Contents</a></h3>
|
||||
<ul>
|
||||
<li class="level1"><a href="#properties">Properties</a></li>
|
||||
<li class="level1"><a href="#details">Detailed Description</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">ExpressionFilter QML Type</h1>
|
||||
<span class="subtitle"></span>
|
||||
<!-- $$$ExpressionFilter-brief -->
|
||||
<p>Filters row with a custom filtering. <a href="#details">More...</a></p>
|
||||
<!-- @@@ExpressionFilter -->
|
||||
<div class="table"><table class="alignedsummary">
|
||||
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import SortFilterProxyModel .</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <p><a href="qml-sortfilterproxymodel-filter.html">Filter</a></p>
|
||||
</td></tr></table></div><ul>
|
||||
<li><a href="qml-sortfilterproxymodel-expressionfilter-members.html">List of all members, including inherited members</a></li>
|
||||
</ul>
|
||||
<a name="properties"></a>
|
||||
<h2 id="properties">Properties</h2>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-expressionfilter.html#enabled-prop">enabled</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-expressionfilter.html#expression-prop">expression</a></b></b> : expression</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-expressionfilter.html#inverted-prop">inverted</a></b></b> : bool</li>
|
||||
</ul>
|
||||
<!-- $$$ExpressionFilter-description -->
|
||||
<a name="details"></a>
|
||||
<h2 id="details">Detailed Description</h2>
|
||||
<p>An ExpressionFilter is a <a href="qml-sortfilterproxymodel-filter.html">Filter</a> allowing to implement custom filtering based on a javascript expression.</p>
|
||||
<!-- @@@ExpressionFilter -->
|
||||
<h2>Property Documentation</h2>
|
||||
<!-- $$$enabled -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="enabled-prop"></a><span class="name">enabled</span> : <span class="type">bool</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds whether the filter is enabled. A disabled filter will accept every rows unconditionally (even if it's inverted).</p>
|
||||
<p>By default, filters are enabled.</p>
|
||||
</div></div><!-- @@@enabled -->
|
||||
<br/>
|
||||
<!-- $$$expression -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="expression-prop"></a><span class="name">expression</span> : <span class="type">expression</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>An expression to implement custom filtering, it must evaluate to a boolean. It has the same syntax has a <a href="http://doc.qt.io/qt-5/qtqml-syntax-propertybinding.html">Property Binding</a> except it will be evaluated for each of the source model's rows. Rows that have their expression evaluating to <code>true</code> will be accepted by the model. Data for each row is exposed like for a delegate of a QML View.</p>
|
||||
<p>This expression is reevaluated for a row every time its model data changes. When an external property (not <code>index</code> or in <code>model</code>) the expression depends on changes, the expression is reevaluated for every row of the source model. To capture the properties the expression depends on, the expression is first executed with invalid data and each property access is detected by the QML engine. This means that if a property is not accessed because of a conditional, it won't be captured and the expression won't be reevaluted when this property changes.</p>
|
||||
<p>A workaround to this problem is to access all the properties the expressions depends unconditionally at the beggining of the expression.</p>
|
||||
</div></div><!-- @@@expression -->
|
||||
<br/>
|
||||
<!-- $$$inverted -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="inverted-prop"></a><span class="name">inverted</span> : <span class="type">bool</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds whether the filter is inverted. When a filter is inverted, a row normally accepted would be rejected, and vice-versa.</p>
|
||||
<p>By default, filters are not inverted.</p>
|
||||
</div></div><!-- @@@inverted -->
|
||||
<br/>
|
||||
</body>
|
||||
</html>
|
|
@ -1,19 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- expressionrole.cpp -->
|
||||
<title>List of All Members for ExpressionRole | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">List of All Members for ExpressionRole</h1>
|
||||
<p>This is the complete list of members for <a href="qml-sortfilterproxymodel-expressionrole.html">ExpressionRole</a>, including inherited members.</p>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-expressionrole.html#expression-prop">expression</a></b></b> : expression</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-expressionrole.html#name-prop">name</a></b></b> : string</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
|
@ -1,73 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- expressionrole.cpp -->
|
||||
<title>ExpressionRole QML Type | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar">
|
||||
<div class="toc">
|
||||
<h3><a name="toc">Contents</a></h3>
|
||||
<ul>
|
||||
<li class="level1"><a href="#properties">Properties</a></li>
|
||||
<li class="level1"><a href="#details">Detailed Description</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">ExpressionRole QML Type</h1>
|
||||
<span class="subtitle"></span>
|
||||
<!-- $$$ExpressionRole-brief -->
|
||||
<p>A custom role computed from a javascript expression. <a href="#details">More...</a></p>
|
||||
<!-- @@@ExpressionRole -->
|
||||
<div class="table"><table class="alignedsummary">
|
||||
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import SortFilterProxyModel .</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <p><a href="qml-sortfilterproxymodel-singlerole.html">SingleRole</a></p>
|
||||
</td></tr></table></div><ul>
|
||||
<li><a href="qml-sortfilterproxymodel-expressionrole-members.html">List of all members, including inherited members</a></li>
|
||||
</ul>
|
||||
<a name="properties"></a>
|
||||
<h2 id="properties">Properties</h2>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-expressionrole.html#expression-prop">expression</a></b></b> : expression</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-expressionrole.html#name-prop">name</a></b></b> : string</li>
|
||||
</ul>
|
||||
<!-- $$$ExpressionRole-description -->
|
||||
<a name="details"></a>
|
||||
<h2 id="details">Detailed Description</h2>
|
||||
<p>An ExpressionRole is a <a href="qml-sortfilterproxymodel-proxyrole.html">ProxyRole</a> allowing to implement a custom role based on a javascript expression.</p>
|
||||
<p>In the following example, the <code>c</code> role is computed by adding the <code>a</code> role and <code>b</code> role of the model :</p>
|
||||
<pre class="cpp">SortFilterProxyModel {
|
||||
sourceModel: numberModel
|
||||
proxyRoles: ExpressionRole {
|
||||
name: <span class="string">"c"</span>
|
||||
expression: model<span class="operator">.</span>a <span class="operator">+</span> model<span class="operator">.</span>b
|
||||
}
|
||||
}</pre>
|
||||
<!-- @@@ExpressionRole -->
|
||||
<h2>Property Documentation</h2>
|
||||
<!-- $$$expression -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="expression-prop"></a><span class="name">expression</span> : <span class="type">expression</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>An expression to implement a custom role. It has the same syntax has a <a href="http://doc.qt.io/qt-5/qtqml-syntax-propertybinding.html">Property Binding</a> except it will be evaluated for each of the source model's rows. The data for this role will be the retuned valued of the expression. Data for each row is exposed like for a delegate of a QML View.</p>
|
||||
<p>This expression is reevaluated for a row every time its model data changes. When an external property (not <code>index</code> or in <code>model</code>) the expression depends on changes, the expression is reevaluated for every row of the source model. To capture the properties the expression depends on, the expression is first executed with invalid data and each property access is detected by the QML engine. This means that if a property is not accessed because of a conditional, it won't be captured and the expression won't be reevaluted when this property changes.</p>
|
||||
<p>A workaround to this problem is to access all the properties the expressions depends unconditionally at the beggining of the expression.</p>
|
||||
</div></div><!-- @@@expression -->
|
||||
<br/>
|
||||
<!-- $$$name -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="name-prop"></a><span class="name">name</span> : <span class="type">string</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the role name of the proxy role.</p>
|
||||
</div></div><!-- @@@name -->
|
||||
<br/>
|
||||
</body>
|
||||
</html>
|
|
@ -1,21 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- expressionsorter.cpp -->
|
||||
<title>List of All Members for ExpressionSorter | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">List of All Members for ExpressionSorter</h1>
|
||||
<p>This is the complete list of members for <a href="qml-sortfilterproxymodel-expressionsorter.html">ExpressionSorter</a>, including inherited members.</p>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-expressionsorter.html#enabled-prop">enabled</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-expressionsorter.html#expression-prop">expression</a></b></b> : expression</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-expressionsorter.html#priority-prop">priority</a></b></b> : int</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-expressionsorter.html#sortOrder-prop">sortOrder</a></b></b> : Qt::SortOrder</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
|
@ -1,101 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- expressionsorter.cpp -->
|
||||
<title>ExpressionSorter QML Type | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar">
|
||||
<div class="toc">
|
||||
<h3><a name="toc">Contents</a></h3>
|
||||
<ul>
|
||||
<li class="level1"><a href="#properties">Properties</a></li>
|
||||
<li class="level1"><a href="#details">Detailed Description</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">ExpressionSorter QML Type</h1>
|
||||
<span class="subtitle"></span>
|
||||
<!-- $$$ExpressionSorter-brief -->
|
||||
<p>Sorts row with a custom javascript expression. <a href="#details">More...</a></p>
|
||||
<!-- @@@ExpressionSorter -->
|
||||
<div class="table"><table class="alignedsummary">
|
||||
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import SortFilterProxyModel .</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <p><a href="qml-sortfilterproxymodel-sorter.html">Sorter</a></p>
|
||||
</td></tr></table></div><ul>
|
||||
<li><a href="qml-sortfilterproxymodel-expressionsorter-members.html">List of all members, including inherited members</a></li>
|
||||
</ul>
|
||||
<a name="properties"></a>
|
||||
<h2 id="properties">Properties</h2>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-expressionsorter.html#enabled-prop">enabled</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-expressionsorter.html#expression-prop">expression</a></b></b> : expression</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-expressionsorter.html#priority-prop">priority</a></b></b> : int</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-expressionsorter.html#sortOrder-prop">sortOrder</a></b></b> : Qt::SortOrder</li>
|
||||
</ul>
|
||||
<!-- $$$ExpressionSorter-description -->
|
||||
<a name="details"></a>
|
||||
<h2 id="details">Detailed Description</h2>
|
||||
<p>An ExpressionSorter is a <a href="qml-sortfilterproxymodel-sorter.html">Sorter</a> allowing to implement custom sorting based on a javascript expression.</p>
|
||||
<!-- @@@ExpressionSorter -->
|
||||
<h2>Property Documentation</h2>
|
||||
<!-- $$$enabled -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="enabled-prop"></a><span class="name">enabled</span> : <span class="type">bool</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds whether the sorter is enabled. A disabled sorter will not change the order of the rows.</p>
|
||||
<p>By default, sorters are enabled.</p>
|
||||
</div></div><!-- @@@enabled -->
|
||||
<br/>
|
||||
<!-- $$$expression -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="expression-prop"></a><span class="name">expression</span> : <span class="type">expression</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>An expression to implement custom sorting. It must evaluate to a bool. It has the same syntax has a <a href="http://doc.qt.io/qt-5/qtqml-syntax-propertybinding.html">Property Binding</a>, except that it will be evaluated for each of the source model's rows. Model data is accessible for both rows with the <code>modelLeft</code>, and <code>modelRight</code> properties:</p>
|
||||
<pre class="cpp">sorters: ExpressionSorter {
|
||||
expression: {
|
||||
<span class="keyword">return</span> modelLeft<span class="operator">.</span>someRole <span class="operator"><</span> modelRight<span class="operator">.</span>someRole;
|
||||
}
|
||||
}</pre>
|
||||
<p>The <code>index</code> of the row is also available through <code>modelLeft</code> and <code>modelRight</code>.</p>
|
||||
<p>The expression should return <code>true</code> if the value of the left item is less than the value of the right item, otherwise returns false.</p>
|
||||
<p>This expression is reevaluated for a row every time its model data changes. When an external property (not <code>index*</code> or in <code>model*</code>) the expression depends on changes, the expression is reevaluated for every row of the source model. To capture the properties the expression depends on, the expression is first executed with invalid data and each property access is detected by the QML engine. This means that if a property is not accessed because of a conditional, it won't be captured and the expression won't be reevaluted when this property changes.</p>
|
||||
<p>A workaround to this problem is to access all the properties the expressions depends unconditionally at the beggining of the expression.</p>
|
||||
</div></div><!-- @@@expression -->
|
||||
<br/>
|
||||
<!-- $$$priority -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="priority-prop"></a><span class="name">priority</span> : <span class="type">int</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the sort priority of this sorter. Sorters with a higher priority are applied first. In case of equal priority, Sorters are ordered by their insertion order.</p>
|
||||
<p>By default, the priority is 0.</p>
|
||||
</div></div><!-- @@@priority -->
|
||||
<br/>
|
||||
<!-- $$$sortOrder -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="sortOrder-prop"></a><span class="name">sortOrder</span> : <span class="type">Qt::SortOrder</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the sort order of this sorter.</p>
|
||||
<div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tbldscr">Description</th></tr>
|
||||
<tr><td class="topAlign"><code>Qt.AscendingOrder</code></td><td class="topAlign">The items are sorted ascending e.g. starts with 'AAA' ends with 'ZZZ' in Latin-1 locales</td></tr>
|
||||
<tr><td class="topAlign"><code>Qt.DescendingOrder</code></td><td class="topAlign">The items are sorted descending e.g. starts with 'ZZZ' ends with 'AAA' in Latin-1 locales</td></tr>
|
||||
</table></div>
|
||||
<p>By default, sorting is in ascending order.</p>
|
||||
</div></div><!-- @@@sortOrder -->
|
||||
<br/>
|
||||
</body>
|
||||
</html>
|
|
@ -1,19 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- filter.cpp -->
|
||||
<title>List of All Members for Filter | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">List of All Members for Filter</h1>
|
||||
<p>This is the complete list of members for <a href="qml-sortfilterproxymodel-filter.html">Filter</a>, including inherited members.</p>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-filter.html#enabled-prop">enabled</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-filter.html#inverted-prop">inverted</a></b></b> : bool</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
|
@ -1,65 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- filter.cpp -->
|
||||
<title>Filter QML Type | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar">
|
||||
<div class="toc">
|
||||
<h3><a name="toc">Contents</a></h3>
|
||||
<ul>
|
||||
<li class="level1"><a href="#properties">Properties</a></li>
|
||||
<li class="level1"><a href="#details">Detailed Description</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">Filter QML Type</h1>
|
||||
<span class="subtitle"></span>
|
||||
<!-- $$$Filter-brief -->
|
||||
<p>Base type for the <a href="qml-sortfilterproxymodel-sortfilterproxymodel.html">SortFilterProxyModel</a> filters. <a href="#details">More...</a></p>
|
||||
<!-- @@@Filter -->
|
||||
<div class="table"><table class="alignedsummary">
|
||||
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import SortFilterProxyModel .</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherited By:</td><td class="memItemRight bottomAlign"> <p><a href="qml-sortfilterproxymodel-allof.html">AllOf</a>, <a href="qml-sortfilterproxymodel-anyof.html">AnyOf</a>, <a href="qml-sortfilterproxymodel-expressionfilter.html">ExpressionFilter</a>, <a href="qml-sortfilterproxymodel-indexfilter.html">IndexFilter</a>, and <a href="qml-sortfilterproxymodel-rolefilter.html">RoleFilter</a></p>
|
||||
</td></tr></table></div><ul>
|
||||
<li><a href="qml-sortfilterproxymodel-filter-members.html">List of all members, including inherited members</a></li>
|
||||
</ul>
|
||||
<a name="properties"></a>
|
||||
<h2 id="properties">Properties</h2>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-filter.html#enabled-prop">enabled</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-filter.html#inverted-prop">inverted</a></b></b> : bool</li>
|
||||
</ul>
|
||||
<!-- $$$Filter-description -->
|
||||
<a name="details"></a>
|
||||
<h2 id="details">Detailed Description</h2>
|
||||
<p>The Filter type cannot be used directly in a QML file. It exists to provide a set of common properties and methods, available across all the other filter types that inherit from it. Attempting to use the Filter type directly will result in an error.</p>
|
||||
<!-- @@@Filter -->
|
||||
<h2>Property Documentation</h2>
|
||||
<!-- $$$enabled -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="enabled-prop"></a><span class="name">enabled</span> : <span class="type">bool</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds whether the filter is enabled. A disabled filter will accept every rows unconditionally (even if it's inverted).</p>
|
||||
<p>By default, filters are enabled.</p>
|
||||
</div></div><!-- @@@enabled -->
|
||||
<br/>
|
||||
<!-- $$$inverted -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="inverted-prop"></a><span class="name">inverted</span> : <span class="type">bool</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds whether the filter is inverted. When a filter is inverted, a row normally accepted would be rejected, and vice-versa.</p>
|
||||
<p>By default, filters are not inverted.</p>
|
||||
</div></div><!-- @@@inverted -->
|
||||
<br/>
|
||||
</body>
|
||||
</html>
|
|
@ -1,18 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- filtercontainer.cpp -->
|
||||
<title>List of All Members for FilterContainer | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">List of All Members for FilterContainer</h1>
|
||||
<p>This is the complete list of members for <a href="qml-sortfilterproxymodel-filtercontainer.html">FilterContainer</a>, including inherited members.</p>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-filtercontainer.html#container-attached-prop">container</a></b></b> : bool [attached]</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
|
@ -1,61 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- filtercontainer.cpp -->
|
||||
<title>FilterContainer QML Type | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar">
|
||||
<div class="toc">
|
||||
<h3><a name="toc">Contents</a></h3>
|
||||
<ul>
|
||||
<li class="level1"><a href="#attached-properties">Attached Properties</a></li>
|
||||
<li class="level1"><a href="#details">Detailed Description</a></li>
|
||||
<li class="level2"><a href="#types-implementing-this-interface">Types implementing this interface:</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">FilterContainer QML Type</h1>
|
||||
<span class="subtitle"></span>
|
||||
<!-- $$$FilterContainer-brief -->
|
||||
<p>Abstract interface for types containing <a href="qml-sortfilterproxymodel-filter.html">Filters</a>. <a href="#details">More...</a></p>
|
||||
<!-- @@@FilterContainer -->
|
||||
<div class="table"><table class="alignedsummary">
|
||||
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import SortFilterProxyModel .</td></tr></table></div><ul>
|
||||
<li><a href="qml-sortfilterproxymodel-filtercontainer-members.html">List of all members, including inherited members</a></li>
|
||||
</ul>
|
||||
<a name="attached-properties"></a>
|
||||
<h2 id="attached-properties">Attached Properties</h2>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-filtercontainer.html#container-attached-prop">container</a></b></b> : bool</li>
|
||||
</ul>
|
||||
<!-- $$$FilterContainer-description -->
|
||||
<a name="details"></a>
|
||||
<h2 id="details">Detailed Description</h2>
|
||||
<a name="types-implementing-this-interface"></a>
|
||||
<h3 id="types-implementing-this-interface">Types implementing this interface:</h3>
|
||||
<div class="table"><table class="annotated">
|
||||
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-allof.html">AllOf</a></p></td><td class="tblDescr"><p>Filter container accepting rows accepted by all its child filters</p></td></tr>
|
||||
<tr class="even topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-anyof.html">AnyOf</a></p></td><td class="tblDescr"><p>Filter container accepting rows accepted by at least one of its child filters</p></td></tr>
|
||||
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-filterrole.html">FilterRole</a></p></td><td class="tblDescr"><p>A role resolving to true for rows matching all its filters</p></td></tr>
|
||||
<tr class="even topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-filtersorter.html">FilterSorter</a></p></td><td class="tblDescr"><p>Sorts rows based on if they match filters</p></td></tr>
|
||||
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-sortfilterproxymodel.html">SortFilterProxyModel</a></p></td><td class="tblDescr"><p>Filters and sorts data coming from a source QAbstractItemModel</p></td></tr>
|
||||
<tr class="even topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-switchrole.html">SwitchRole</a></p></td><td class="tblDescr"><p>A role using Filter to conditionnaly compute its data</p></td></tr>
|
||||
</table></div>
|
||||
<!-- @@@FilterContainer -->
|
||||
<h2>Attached Property Documentation</h2>
|
||||
<!-- $$$container -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="container-attached-prop"></a><span class="name">FilterContainer.container</span> : <span class="type">bool</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This attached property allows you to include in a <a href="qml-sortfilterproxymodel-filtercontainer.html">FilterContainer</a> a <a href="qml-sortfilterproxymodel-filter.html">Filter</a> that has been instantiated outside of the <a href="qml-sortfilterproxymodel-filtercontainer.html">FilterContainer</a>, for example in an Instantiator.</p>
|
||||
</div></div><!-- @@@container -->
|
||||
<br/>
|
||||
</body>
|
||||
</html>
|
|
@ -1,19 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- filterrole.cpp -->
|
||||
<title>List of All Members for FilterRole | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">List of All Members for FilterRole</h1>
|
||||
<p>This is the complete list of members for <a href="qml-sortfilterproxymodel-filterrole.html">FilterRole</a>, including inherited members.</p>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-filterrole.html#filters-prop">filters</a></b></b> : list<Filter> [default]</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-filterrole.html#name-prop">name</a></b></b> : string</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
|
@ -1,73 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- filterrole.cpp -->
|
||||
<title>FilterRole QML Type | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar">
|
||||
<div class="toc">
|
||||
<h3><a name="toc">Contents</a></h3>
|
||||
<ul>
|
||||
<li class="level1"><a href="#properties">Properties</a></li>
|
||||
<li class="level1"><a href="#details">Detailed Description</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">FilterRole QML Type</h1>
|
||||
<span class="subtitle"></span>
|
||||
<!-- $$$FilterRole-brief -->
|
||||
<p>A role resolving to <code>true</code> for rows matching all its filters. <a href="#details">More...</a></p>
|
||||
<!-- @@@FilterRole -->
|
||||
<div class="table"><table class="alignedsummary">
|
||||
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import SortFilterProxyModel .</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <p><a href="qml-sortfilterproxymodel-singlerole.html">SingleRole</a></p>
|
||||
</td></tr></table></div><ul>
|
||||
<li><a href="qml-sortfilterproxymodel-filterrole-members.html">List of all members, including inherited members</a></li>
|
||||
</ul>
|
||||
<a name="properties"></a>
|
||||
<h2 id="properties">Properties</h2>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-filterrole.html#filters-prop">filters</a></b></b> : list<Filter></li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-filterrole.html#name-prop">name</a></b></b> : string</li>
|
||||
</ul>
|
||||
<!-- $$$FilterRole-description -->
|
||||
<a name="details"></a>
|
||||
<h2 id="details">Detailed Description</h2>
|
||||
<p>A FilterRole is a <a href="qml-sortfilterproxymodel-proxyrole.html">ProxyRole</a> that returns <code>true</code> for rows matching all its filters.</p>
|
||||
<p>In the following example, the <code>isAdult</code> role will be equal to <code>true</code> if the <code>age</code> role is superior or equal to 18.</p>
|
||||
<pre class="cpp">SortFilterProxyModel {
|
||||
sourceModel: personModel
|
||||
proxyRoles: FilterRole {
|
||||
name: <span class="string">"isAdult"</span>
|
||||
RangeFilter { roleName: <span class="string">"age"</span>; minimumValue: <span class="number">18</span>; minimumInclusive: <span class="keyword">true</span> }
|
||||
}
|
||||
}</pre>
|
||||
<p><b>See also </b><a href="qml-sortfilterproxymodel-filtercontainer.html">FilterContainer</a>.</p>
|
||||
<!-- @@@FilterRole -->
|
||||
<h2>Property Documentation</h2>
|
||||
<!-- $$$filters -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="filters-prop"></a><span class="qmldefault">[default] </span><span class="name">filters</span> : <span class="type">list</span><<span class="type"><a href="qml-sortfilterproxymodel-filter.html">Filter</a></span>></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the list of filters for this filter role. The data of this role will be equal to the <code>true</code> if all its filters match the model row, <code>false</code> otherwise.</p>
|
||||
<p><b>See also </b><a href="qml-sortfilterproxymodel-filter.html">Filter</a> and <a href="qml-sortfilterproxymodel-filtercontainer.html">FilterContainer</a>.</p>
|
||||
</div></div><!-- @@@filters -->
|
||||
<br/>
|
||||
<!-- $$$name -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="name-prop"></a><span class="name">name</span> : <span class="type">string</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the role name of the proxy role.</p>
|
||||
</div></div><!-- @@@name -->
|
||||
<br/>
|
||||
</body>
|
||||
</html>
|
|
@ -1,21 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- filtersorter.cpp -->
|
||||
<title>List of All Members for FilterSorter | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">List of All Members for FilterSorter</h1>
|
||||
<p>This is the complete list of members for <a href="qml-sortfilterproxymodel-filtersorter.html">FilterSorter</a>, including inherited members.</p>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-filtersorter.html#enabled-prop">enabled</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-filtersorter.html#filters-prop">filters</a></b></b> : list<Filter> [default]</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-filtersorter.html#priority-prop">priority</a></b></b> : int</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-filtersorter.html#sortOrder-prop">sortOrder</a></b></b> : Qt::SortOrder</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
|
@ -1,101 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- filtersorter.cpp -->
|
||||
<title>FilterSorter QML Type | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar">
|
||||
<div class="toc">
|
||||
<h3><a name="toc">Contents</a></h3>
|
||||
<ul>
|
||||
<li class="level1"><a href="#properties">Properties</a></li>
|
||||
<li class="level1"><a href="#details">Detailed Description</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">FilterSorter QML Type</h1>
|
||||
<span class="subtitle"></span>
|
||||
<!-- $$$FilterSorter-brief -->
|
||||
<p>Sorts rows based on if they match filters. <a href="#details">More...</a></p>
|
||||
<!-- @@@FilterSorter -->
|
||||
<div class="table"><table class="alignedsummary">
|
||||
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import SortFilterProxyModel .</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <p><a href="qml-sortfilterproxymodel-sorter.html">Sorter</a></p>
|
||||
</td></tr></table></div><ul>
|
||||
<li><a href="qml-sortfilterproxymodel-filtersorter-members.html">List of all members, including inherited members</a></li>
|
||||
</ul>
|
||||
<a name="properties"></a>
|
||||
<h2 id="properties">Properties</h2>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-filtersorter.html#enabled-prop">enabled</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-filtersorter.html#filters-prop">filters</a></b></b> : list<Filter></li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-filtersorter.html#priority-prop">priority</a></b></b> : int</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-filtersorter.html#sortOrder-prop">sortOrder</a></b></b> : Qt::SortOrder</li>
|
||||
</ul>
|
||||
<!-- $$$FilterSorter-description -->
|
||||
<a name="details"></a>
|
||||
<h2 id="details">Detailed Description</h2>
|
||||
<p>A FilterSorter is a <a href="qml-sortfilterproxymodel-sorter.html">Sorter</a> that orders row matching its filters before the rows not matching the filters.</p>
|
||||
<p>In the following example, rows with their <code>favorite</code> role set to <code>true</code> will be ordered at the beginning :</p>
|
||||
<pre class="cpp">SortFilterProxyModel {
|
||||
sourceModel: contactModel
|
||||
sorters: FilterSorter {
|
||||
ValueFilter { roleName: <span class="string">"favorite"</span>; value: <span class="keyword">true</span> }
|
||||
}
|
||||
}</pre>
|
||||
<p><b>See also </b><a href="qml-sortfilterproxymodel-filtercontainer.html">FilterContainer</a>.</p>
|
||||
<!-- @@@FilterSorter -->
|
||||
<h2>Property Documentation</h2>
|
||||
<!-- $$$enabled -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="enabled-prop"></a><span class="name">enabled</span> : <span class="type">bool</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds whether the sorter is enabled. A disabled sorter will not change the order of the rows.</p>
|
||||
<p>By default, sorters are enabled.</p>
|
||||
</div></div><!-- @@@enabled -->
|
||||
<br/>
|
||||
<!-- $$$filters -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="filters-prop"></a><span class="qmldefault">[default] </span><span class="name">filters</span> : <span class="type">list</span><<span class="type"><a href="qml-sortfilterproxymodel-filter.html">Filter</a></span>></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the list of filters for this filter sorter. If a row match all this <a href="qml-sortfilterproxymodel-filtersorter.html">FilterSorter</a>'s filters, it will be ordered before rows not matching all the filters.</p>
|
||||
<p><b>See also </b><a href="qml-sortfilterproxymodel-filter.html">Filter</a> and <a href="qml-sortfilterproxymodel-filtercontainer.html">FilterContainer</a>.</p>
|
||||
</div></div><!-- @@@filters -->
|
||||
<br/>
|
||||
<!-- $$$priority -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="priority-prop"></a><span class="name">priority</span> : <span class="type">int</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the sort priority of this sorter. Sorters with a higher priority are applied first. In case of equal priority, Sorters are ordered by their insertion order.</p>
|
||||
<p>By default, the priority is 0.</p>
|
||||
</div></div><!-- @@@priority -->
|
||||
<br/>
|
||||
<!-- $$$sortOrder -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="sortOrder-prop"></a><span class="name">sortOrder</span> : <span class="type">Qt::SortOrder</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the sort order of this sorter.</p>
|
||||
<div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tbldscr">Description</th></tr>
|
||||
<tr><td class="topAlign"><code>Qt.AscendingOrder</code></td><td class="topAlign">The items are sorted ascending e.g. starts with 'AAA' ends with 'ZZZ' in Latin-1 locales</td></tr>
|
||||
<tr><td class="topAlign"><code>Qt.DescendingOrder</code></td><td class="topAlign">The items are sorted descending e.g. starts with 'ZZZ' ends with 'AAA' in Latin-1 locales</td></tr>
|
||||
</table></div>
|
||||
<p>By default, sorting is in ascending order.</p>
|
||||
</div></div><!-- @@@sortOrder -->
|
||||
<br/>
|
||||
</body>
|
||||
</html>
|
|
@ -1,21 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- indexfilter.cpp -->
|
||||
<title>List of All Members for IndexFilter | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">List of All Members for IndexFilter</h1>
|
||||
<p>This is the complete list of members for <a href="qml-sortfilterproxymodel-indexfilter.html">IndexFilter</a>, including inherited members.</p>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-indexfilter.html#enabled-prop">enabled</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-indexfilter.html#inverted-prop">inverted</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-indexfilter.html#maximumIndex-prop">maximumIndex</a></b></b> : int</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-indexfilter.html#minimumIndex-prop">minimumIndex</a></b></b> : int</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
|
@ -1,104 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- indexfilter.cpp -->
|
||||
<title>IndexFilter QML Type | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar">
|
||||
<div class="toc">
|
||||
<h3><a name="toc">Contents</a></h3>
|
||||
<ul>
|
||||
<li class="level1"><a href="#properties">Properties</a></li>
|
||||
<li class="level1"><a href="#details">Detailed Description</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">IndexFilter QML Type</h1>
|
||||
<span class="subtitle"></span>
|
||||
<!-- $$$IndexFilter-brief -->
|
||||
<p>Filters rows based on their source index. <a href="#details">More...</a></p>
|
||||
<!-- @@@IndexFilter -->
|
||||
<div class="table"><table class="alignedsummary">
|
||||
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import SortFilterProxyModel .</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <p><a href="qml-sortfilterproxymodel-filter.html">Filter</a></p>
|
||||
</td></tr></table></div><ul>
|
||||
<li><a href="qml-sortfilterproxymodel-indexfilter-members.html">List of all members, including inherited members</a></li>
|
||||
</ul>
|
||||
<a name="properties"></a>
|
||||
<h2 id="properties">Properties</h2>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-indexfilter.html#enabled-prop">enabled</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-indexfilter.html#inverted-prop">inverted</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-indexfilter.html#maximumIndex-prop">maximumIndex</a></b></b> : int</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-indexfilter.html#minimumIndex-prop">minimumIndex</a></b></b> : int</li>
|
||||
</ul>
|
||||
<!-- $$$IndexFilter-description -->
|
||||
<a name="details"></a>
|
||||
<h2 id="details">Detailed Description</h2>
|
||||
<p>An IndexFilter is a filter allowing contents to be filtered based on their source model index.</p>
|
||||
<p>In the following example, only the first row of the source model will be accepted:</p>
|
||||
<pre class="cpp">SortFilterProxyModel {
|
||||
sourceModel: contactModel
|
||||
filters: IndexFilter {
|
||||
maximumIndex: <span class="number">0</span>
|
||||
}
|
||||
}</pre>
|
||||
<!-- @@@IndexFilter -->
|
||||
<h2>Property Documentation</h2>
|
||||
<!-- $$$enabled -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="enabled-prop"></a><span class="name">enabled</span> : <span class="type">bool</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds whether the filter is enabled. A disabled filter will accept every rows unconditionally (even if it's inverted).</p>
|
||||
<p>By default, filters are enabled.</p>
|
||||
</div></div><!-- @@@enabled -->
|
||||
<br/>
|
||||
<!-- $$$inverted -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="inverted-prop"></a><span class="name">inverted</span> : <span class="type">bool</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds whether the filter is inverted. When a filter is inverted, a row normally accepted would be rejected, and vice-versa.</p>
|
||||
<p>By default, filters are not inverted.</p>
|
||||
</div></div><!-- @@@inverted -->
|
||||
<br/>
|
||||
<!-- $$$maximumIndex -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="maximumIndex-prop"></a><span class="name">maximumIndex</span> : <span class="type">int</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the maximumIndex of the filter. Rows with a source index higher than <code>maximumIndex</code> will be rejected.</p>
|
||||
<p>If <code>maximumIndex</code> is negative, it is counted from the end of the source model, meaning that:</p>
|
||||
<pre class="cpp">maximumIndex: <span class="operator">-</span><span class="number">1</span></pre>
|
||||
<p>is equivalent to :</p>
|
||||
<pre class="cpp">maximumIndex: sourceModel<span class="operator">.</span>count <span class="operator">-</span> <span class="number">1</span></pre>
|
||||
<p>By default, no value is set.</p>
|
||||
</div></div><!-- @@@maximumIndex -->
|
||||
<br/>
|
||||
<!-- $$$minimumIndex -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="minimumIndex-prop"></a><span class="name">minimumIndex</span> : <span class="type">int</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the minimumIndex of the filter. Rows with a source index lower than <code>minimumIndex</code> will be rejected.</p>
|
||||
<p>If <code>minimumIndex</code> is negative, it is counted from the end of the source model, meaning that :</p>
|
||||
<pre class="cpp">minimumIndex: <span class="operator">-</span><span class="number">1</span></pre>
|
||||
<p>is equivalent to :</p>
|
||||
<pre class="cpp">minimumIndex: sourceModel<span class="operator">.</span>count <span class="operator">-</span> <span class="number">1</span></pre>
|
||||
<p>By default, no value is set.</p>
|
||||
</div></div><!-- @@@minimumIndex -->
|
||||
<br/>
|
||||
</body>
|
||||
</html>
|
|
@ -1,20 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- joinrole.cpp -->
|
||||
<title>List of All Members for JoinRole | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">List of All Members for JoinRole</h1>
|
||||
<p>This is the complete list of members for <a href="qml-sortfilterproxymodel-joinrole.html">JoinRole</a>, including inherited members.</p>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-joinrole.html#name-prop">name</a></b></b> : string</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-joinrole.html#roleNames-prop">roleNames</a></b></b> : list<string></li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-joinrole.html#separator-prop">separator</a></b></b> : string</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
|
@ -1,83 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- joinrole.cpp -->
|
||||
<title>JoinRole QML Type | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar">
|
||||
<div class="toc">
|
||||
<h3><a name="toc">Contents</a></h3>
|
||||
<ul>
|
||||
<li class="level1"><a href="#properties">Properties</a></li>
|
||||
<li class="level1"><a href="#details">Detailed Description</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">JoinRole QML Type</h1>
|
||||
<span class="subtitle"></span>
|
||||
<!-- $$$JoinRole-brief -->
|
||||
<p>a role made from concatenating other roles. <a href="#details">More...</a></p>
|
||||
<!-- @@@JoinRole -->
|
||||
<div class="table"><table class="alignedsummary">
|
||||
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import SortFilterProxyModel .</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <p><a href="qml-sortfilterproxymodel-singlerole.html">SingleRole</a></p>
|
||||
</td></tr></table></div><ul>
|
||||
<li><a href="qml-sortfilterproxymodel-joinrole-members.html">List of all members, including inherited members</a></li>
|
||||
</ul>
|
||||
<a name="properties"></a>
|
||||
<h2 id="properties">Properties</h2>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-joinrole.html#name-prop">name</a></b></b> : string</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-joinrole.html#roleNames-prop">roleNames</a></b></b> : list<string></li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-joinrole.html#separator-prop">separator</a></b></b> : string</li>
|
||||
</ul>
|
||||
<!-- $$$JoinRole-description -->
|
||||
<a name="details"></a>
|
||||
<h2 id="details">Detailed Description</h2>
|
||||
<p>A JoinRole is a simple <a href="qml-sortfilterproxymodel-proxyrole.html">ProxyRole</a> that concatenates other roles.</p>
|
||||
<p>In the following example, the <code>fullName</code> role is computed by the concatenation of the <code>firstName</code> role and the <code>lastName</code> role separated by a space :</p>
|
||||
<pre class="cpp">SortFilterProxyModel {
|
||||
sourceModel: contactModel
|
||||
proxyRoles: JoinRole {
|
||||
name: <span class="string">"fullName"</span>
|
||||
roleNames: <span class="operator">[</span><span class="string">"firstName"</span><span class="operator">,</span> <span class="string">"lastName"</span><span class="operator">]</span>
|
||||
}
|
||||
}</pre>
|
||||
<!-- @@@JoinRole -->
|
||||
<h2>Property Documentation</h2>
|
||||
<!-- $$$name -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="name-prop"></a><span class="name">name</span> : <span class="type">string</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the role name of the proxy role.</p>
|
||||
</div></div><!-- @@@name -->
|
||||
<br/>
|
||||
<!-- $$$roleNames -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="roleNames-prop"></a><span class="name">roleNames</span> : <span class="type">list</span><<span class="type">string</span>></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the role names that are joined by this role.</p>
|
||||
</div></div><!-- @@@roleNames -->
|
||||
<br/>
|
||||
<!-- $$$separator -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="separator-prop"></a><span class="name">separator</span> : <span class="type">string</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the separator that is used to join the roles specified in <a href="qml-sortfilterproxymodel-joinrole.html#roleNames-prop">roleNames</a>.</p>
|
||||
<p>By default, it's a space.</p>
|
||||
</div></div><!-- @@@separator -->
|
||||
<br/>
|
||||
</body>
|
||||
</html>
|
|
@ -1,15 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- proxyrole.cpp -->
|
||||
<title>List of All Members for ProxyRole | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">List of All Members for ProxyRole</h1>
|
||||
<p>This is the complete list of members for <a href="qml-sortfilterproxymodel-proxyrole.html">ProxyRole</a>, including inherited members.</p>
|
||||
</body>
|
||||
</html>
|
|
@ -1,35 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- proxyrole.cpp -->
|
||||
<title>ProxyRole QML Type | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar">
|
||||
<div class="toc">
|
||||
<h3><a name="toc">Contents</a></h3>
|
||||
<ul>
|
||||
<li class="level1"><a href="#details">Detailed Description</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">ProxyRole QML Type</h1>
|
||||
<span class="subtitle"></span>
|
||||
<!-- $$$ProxyRole-brief -->
|
||||
<p>Base type for the <a href="qml-sortfilterproxymodel-sortfilterproxymodel.html">SortFilterProxyModel</a> proxy roles. <a href="#details">More...</a></p>
|
||||
<!-- @@@ProxyRole -->
|
||||
<div class="table"><table class="alignedsummary">
|
||||
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import SortFilterProxyModel .</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherited By:</td><td class="memItemRight bottomAlign"> <p><a href="qml-sortfilterproxymodel-regexprole.html">RegExpRole</a> and <a href="qml-sortfilterproxymodel-singlerole.html">SingleRole</a></p>
|
||||
</td></tr></table></div><ul>
|
||||
<li><a href="qml-sortfilterproxymodel-proxyrole-members.html">List of all members, including inherited members</a></li>
|
||||
</ul>
|
||||
<!-- $$$ProxyRole-description -->
|
||||
<a name="details"></a>
|
||||
<h2 id="details">Detailed Description</h2>
|
||||
<p>The ProxyRole type cannot be used directly in a QML file. It exists to provide a set of common properties and methods, available across all the other proxy role types that inherit from it. Attempting to use the ProxyRole type directly will result in an error.</p>
|
||||
<!-- @@@ProxyRole -->
|
||||
</body>
|
||||
</html>
|
|
@ -1,24 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- rangefilter.cpp -->
|
||||
<title>List of All Members for RangeFilter | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">List of All Members for RangeFilter</h1>
|
||||
<p>This is the complete list of members for <a href="qml-sortfilterproxymodel-rangefilter.html">RangeFilter</a>, including inherited members.</p>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-rangefilter.html#enabled-prop">enabled</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-rangefilter.html#inverted-prop">inverted</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-rangefilter.html#maximumInclusive-prop">maximumInclusive</a></b></b> : int</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-rangefilter.html#maximumValue-prop">maximumValue</a></b></b> : int</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-rangefilter.html#minimumInclusive-prop">minimumInclusive</a></b></b> : int</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-rangefilter.html#minimumValue-prop">minimumValue</a></b></b> : int</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-rangefilter.html#roleName-prop">roleName</a></b></b> : string</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
|
@ -1,141 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- rangefilter.cpp -->
|
||||
<title>RangeFilter QML Type | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar">
|
||||
<div class="toc">
|
||||
<h3><a name="toc">Contents</a></h3>
|
||||
<ul>
|
||||
<li class="level1"><a href="#properties">Properties</a></li>
|
||||
<li class="level1"><a href="#details">Detailed Description</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">RangeFilter QML Type</h1>
|
||||
<span class="subtitle"></span>
|
||||
<!-- $$$RangeFilter-brief -->
|
||||
<p>Filters rows between boundary values. <a href="#details">More...</a></p>
|
||||
<!-- @@@RangeFilter -->
|
||||
<div class="table"><table class="alignedsummary">
|
||||
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import SortFilterProxyModel .</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <p><a href="qml-sortfilterproxymodel-rolefilter.html">RoleFilter</a></p>
|
||||
</td></tr></table></div><ul>
|
||||
<li><a href="qml-sortfilterproxymodel-rangefilter-members.html">List of all members, including inherited members</a></li>
|
||||
</ul>
|
||||
<a name="properties"></a>
|
||||
<h2 id="properties">Properties</h2>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-rangefilter.html#enabled-prop">enabled</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-rangefilter.html#inverted-prop">inverted</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-rangefilter.html#maximumInclusive-prop">maximumInclusive</a></b></b> : int</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-rangefilter.html#maximumValue-prop">maximumValue</a></b></b> : int</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-rangefilter.html#minimumInclusive-prop">minimumInclusive</a></b></b> : int</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-rangefilter.html#minimumValue-prop">minimumValue</a></b></b> : int</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-rangefilter.html#roleName-prop">roleName</a></b></b> : string</li>
|
||||
</ul>
|
||||
<!-- $$$RangeFilter-description -->
|
||||
<a name="details"></a>
|
||||
<h2 id="details">Detailed Description</h2>
|
||||
<p>A RangeFilter is a <a href="qml-sortfilterproxymodel-rolefilter.html">RoleFilter</a> that accepts rows if their data is between the filter's minimum and maximum value.</p>
|
||||
<p>In the following example, only rows with their <code>price</code> role set to a value between the tow boundary of the slider will be accepted :</p>
|
||||
<pre class="cpp">RangeSlider {
|
||||
id: priceRangeSlider
|
||||
}
|
||||
|
||||
SortFilterProxyModel {
|
||||
sourceModel: priceModel
|
||||
filters: RangeFilter {
|
||||
roleName: <span class="string">"price"</span>
|
||||
minimumValue: priceRangeSlider<span class="operator">.</span>first<span class="operator">.</span>value
|
||||
maximumValue: priceRangeSlider<span class="operator">.</span>second<span class="operator">.</span>value
|
||||
}
|
||||
}</pre>
|
||||
<!-- @@@RangeFilter -->
|
||||
<h2>Property Documentation</h2>
|
||||
<!-- $$$enabled -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="enabled-prop"></a><span class="name">enabled</span> : <span class="type">bool</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds whether the filter is enabled. A disabled filter will accept every rows unconditionally (even if it's inverted).</p>
|
||||
<p>By default, filters are enabled.</p>
|
||||
</div></div><!-- @@@enabled -->
|
||||
<br/>
|
||||
<!-- $$$inverted -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="inverted-prop"></a><span class="name">inverted</span> : <span class="type">bool</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds whether the filter is inverted. When a filter is inverted, a row normally accepted would be rejected, and vice-versa.</p>
|
||||
<p>By default, filters are not inverted.</p>
|
||||
</div></div><!-- @@@inverted -->
|
||||
<br/>
|
||||
<!-- $$$maximumInclusive -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="maximumInclusive-prop"></a><span class="name">maximumInclusive</span> : <span class="type">int</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds whether the <a href="qml-sortfilterproxymodel-rangefilter.html#minimumValue-prop">minimumValue</a> is inclusive.</p>
|
||||
<p>By default, the <a href="qml-sortfilterproxymodel-rangefilter.html#minimumValue-prop">minimumValue</a> is inclusive.</p>
|
||||
<p><b>See also </b><a href="qml-sortfilterproxymodel-rangefilter.html#minimumValue-prop">minimumValue</a>.</p>
|
||||
</div></div><!-- @@@maximumInclusive -->
|
||||
<br/>
|
||||
<!-- $$$maximumValue -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="maximumValue-prop"></a><span class="name">maximumValue</span> : <span class="type">int</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the maximumValue of the filter. Rows with a value higher than <code>maximumValue</code> will be rejected.</p>
|
||||
<p>By default, no value is set.</p>
|
||||
<p><b>See also </b><a href="qml-sortfilterproxymodel-rangefilter.html#maximumInclusive-prop">maximumInclusive</a>.</p>
|
||||
</div></div><!-- @@@maximumValue -->
|
||||
<br/>
|
||||
<!-- $$$minimumInclusive -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="minimumInclusive-prop"></a><span class="name">minimumInclusive</span> : <span class="type">int</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds whether the <a href="qml-sortfilterproxymodel-rangefilter.html#minimumValue-prop">minimumValue</a> is inclusive.</p>
|
||||
<p>By default, the <a href="qml-sortfilterproxymodel-rangefilter.html#minimumValue-prop">minimumValue</a> is inclusive.</p>
|
||||
<p><b>See also </b><a href="qml-sortfilterproxymodel-rangefilter.html#minimumValue-prop">minimumValue</a>.</p>
|
||||
</div></div><!-- @@@minimumInclusive -->
|
||||
<br/>
|
||||
<!-- $$$minimumValue -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="minimumValue-prop"></a><span class="name">minimumValue</span> : <span class="type">int</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the minimumValue of the filter. Rows with a value lower than <code>minimumValue</code> will be rejected.</p>
|
||||
<p>By default, no value is set.</p>
|
||||
<p><b>See also </b><a href="qml-sortfilterproxymodel-rangefilter.html#minimumInclusive-prop">minimumInclusive</a>.</p>
|
||||
</div></div><!-- @@@minimumValue -->
|
||||
<br/>
|
||||
<!-- $$$roleName -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="roleName-prop"></a><span class="name">roleName</span> : <span class="type">string</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the role name that the filter is using to query the source model's data when filtering items.</p>
|
||||
</div></div><!-- @@@roleName -->
|
||||
<br/>
|
||||
</body>
|
||||
</html>
|
|
@ -1,23 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- regexpfilter.cpp -->
|
||||
<title>List of All Members for RegExpFilter | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">List of All Members for RegExpFilter</h1>
|
||||
<p>This is the complete list of members for <a href="qml-sortfilterproxymodel-regexpfilter.html">RegExpFilter</a>, including inherited members.</p>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-regexpfilter.html#caseSensitivity-prop">caseSensitivity</a></b></b> : Qt::CaseSensitivity</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-regexpfilter.html#enabled-prop">enabled</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-regexpfilter.html#inverted-prop">inverted</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-regexpfilter.html#pattern-prop">pattern</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-regexpfilter.html#roleName-prop">roleName</a></b></b> : string</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-regexpfilter.html#syntax-prop">syntax</a></b></b> : enum</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
|
@ -1,132 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- regexpfilter.cpp -->
|
||||
<title>RegExpFilter QML Type | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar">
|
||||
<div class="toc">
|
||||
<h3><a name="toc">Contents</a></h3>
|
||||
<ul>
|
||||
<li class="level1"><a href="#properties">Properties</a></li>
|
||||
<li class="level1"><a href="#details">Detailed Description</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">RegExpFilter QML Type</h1>
|
||||
<span class="subtitle"></span>
|
||||
<!-- $$$RegExpFilter-brief -->
|
||||
<p>Filters rows matching a regular expression. <a href="#details">More...</a></p>
|
||||
<!-- @@@RegExpFilter -->
|
||||
<div class="table"><table class="alignedsummary">
|
||||
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import SortFilterProxyModel .</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <p><a href="qml-sortfilterproxymodel-rolefilter.html">RoleFilter</a></p>
|
||||
</td></tr></table></div><ul>
|
||||
<li><a href="qml-sortfilterproxymodel-regexpfilter-members.html">List of all members, including inherited members</a></li>
|
||||
</ul>
|
||||
<a name="properties"></a>
|
||||
<h2 id="properties">Properties</h2>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-regexpfilter.html#caseSensitivity-prop">caseSensitivity</a></b></b> : Qt::CaseSensitivity</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-regexpfilter.html#enabled-prop">enabled</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-regexpfilter.html#inverted-prop">inverted</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-regexpfilter.html#pattern-prop">pattern</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-regexpfilter.html#roleName-prop">roleName</a></b></b> : string</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-regexpfilter.html#syntax-prop">syntax</a></b></b> : enum</li>
|
||||
</ul>
|
||||
<!-- $$$RegExpFilter-description -->
|
||||
<a name="details"></a>
|
||||
<h2 id="details">Detailed Description</h2>
|
||||
<p>A RegExpFilter is a <a href="qml-sortfilterproxymodel-rolefilter.html">RoleFilter</a> that accepts rows matching a regular rexpression.</p>
|
||||
<p>In the following example, only rows with their <code>lastName</code> role beggining with the content of textfield the will be accepted:</p>
|
||||
<pre class="cpp">TextField {
|
||||
id: nameTextField
|
||||
}
|
||||
|
||||
SortFilterProxyModel {
|
||||
sourceModel: contactModel
|
||||
filters: RegExpFilter {
|
||||
roleName: <span class="string">"lastName"</span>
|
||||
pattern: <span class="string">"^"</span> <span class="operator">+</span> nameTextField<span class="operator">.</span>displayText
|
||||
}
|
||||
}</pre>
|
||||
<!-- @@@RegExpFilter -->
|
||||
<h2>Property Documentation</h2>
|
||||
<!-- $$$caseSensitivity -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="caseSensitivity-prop"></a><span class="name">caseSensitivity</span> : <span class="type">Qt::CaseSensitivity</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the caseSensitivity of the filter.</p>
|
||||
</div></div><!-- @@@caseSensitivity -->
|
||||
<br/>
|
||||
<!-- $$$enabled -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="enabled-prop"></a><span class="name">enabled</span> : <span class="type">bool</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds whether the filter is enabled. A disabled filter will accept every rows unconditionally (even if it's inverted).</p>
|
||||
<p>By default, filters are enabled.</p>
|
||||
</div></div><!-- @@@enabled -->
|
||||
<br/>
|
||||
<!-- $$$inverted -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="inverted-prop"></a><span class="name">inverted</span> : <span class="type">bool</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds whether the filter is inverted. When a filter is inverted, a row normally accepted would be rejected, and vice-versa.</p>
|
||||
<p>By default, filters are not inverted.</p>
|
||||
</div></div><!-- @@@inverted -->
|
||||
<br/>
|
||||
<!-- $$$pattern -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="pattern-prop"></a><span class="name">pattern</span> : <span class="type">bool</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>The pattern used to filter the contents of the source model.</p>
|
||||
<p><b>See also </b><a href="qml-sortfilterproxymodel-regexpfilter.html#syntax-prop">syntax</a>.</p>
|
||||
</div></div><!-- @@@pattern -->
|
||||
<br/>
|
||||
<!-- $$$roleName -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="roleName-prop"></a><span class="name">roleName</span> : <span class="type">string</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the role name that the filter is using to query the source model's data when filtering items.</p>
|
||||
</div></div><!-- @@@roleName -->
|
||||
<br/>
|
||||
<!-- $$$syntax -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="syntax-prop"></a><span class="name">syntax</span> : <span class="type">enum</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>The pattern used to filter the contents of the source model.</p>
|
||||
<p>Only the source model's value having their <a href="qml-sortfilterproxymodel-regexpfilter.html#roleName-prop">RoleFilter::roleName</a> data matching this <a href="qml-sortfilterproxymodel-regexpfilter.html#pattern-prop">pattern</a> with the specified syntax will be kept.</p>
|
||||
<div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tbldscr">Description</th></tr>
|
||||
<tr><td class="topAlign"><code>RegExpFilter.RegExp</code></td><td class="topAlign">A rich Perl-like pattern matching syntax. This is the default.</td></tr>
|
||||
<tr><td class="topAlign"><code>RegExpFilter.Wildcard</code></td><td class="topAlign">This provides a simple pattern matching syntax similar to that used by shells (command interpreters) for "file globbing".</td></tr>
|
||||
<tr><td class="topAlign"><code>RegExpFilter.FixedString</code></td><td class="topAlign">The pattern is a fixed string. This is equivalent to using the RegExp pattern on a string in which all metacharacters are escaped.</td></tr>
|
||||
<tr><td class="topAlign"><code>RegExpFilter.RegExp2</code></td><td class="topAlign">Like RegExp, but with greedy quantifiers.</td></tr>
|
||||
<tr><td class="topAlign"><code>RegExpFilter.WildcardUnix</code></td><td class="topAlign">This is similar to Wildcard but with the behavior of a Unix shell. The wildcard characters can be escaped with the character "".</td></tr>
|
||||
<tr><td class="topAlign"><code>RegExpFilter.W3CXmlSchema11</code></td><td class="topAlign">The pattern is a regular expression as defined by the W3C XML Schema 1.1 specification.</td></tr>
|
||||
</table></div>
|
||||
<p><b>See also </b><a href="qml-sortfilterproxymodel-regexpfilter.html#pattern-prop">pattern</a>.</p>
|
||||
</div></div><!-- @@@syntax -->
|
||||
<br/>
|
||||
</body>
|
||||
</html>
|
|
@ -1,20 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- regexprole.cpp -->
|
||||
<title>List of All Members for RegExpRole | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">List of All Members for RegExpRole</h1>
|
||||
<p>This is the complete list of members for <a href="qml-sortfilterproxymodel-regexprole.html">RegExpRole</a>, including inherited members.</p>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-regexprole.html#caseSensitivity-prop">caseSensitivity</a></b></b> : Qt::CaseSensitivity</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-regexprole.html#pattern-prop">pattern</a></b></b> : QString</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-regexprole.html#roleName-prop">roleName</a></b></b> : QString</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
|
@ -1,82 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- regexprole.cpp -->
|
||||
<title>RegExpRole QML Type | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar">
|
||||
<div class="toc">
|
||||
<h3><a name="toc">Contents</a></h3>
|
||||
<ul>
|
||||
<li class="level1"><a href="#properties">Properties</a></li>
|
||||
<li class="level1"><a href="#details">Detailed Description</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">RegExpRole QML Type</h1>
|
||||
<span class="subtitle"></span>
|
||||
<!-- $$$RegExpRole-brief -->
|
||||
<p>A <a href="qml-sortfilterproxymodel-proxyrole.html">ProxyRole</a> extracting data from a source role via a regular expression. <a href="#details">More...</a></p>
|
||||
<!-- @@@RegExpRole -->
|
||||
<div class="table"><table class="alignedsummary">
|
||||
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import SortFilterProxyModel .</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <p><a href="qml-sortfilterproxymodel-proxyrole.html">ProxyRole</a></p>
|
||||
</td></tr></table></div><ul>
|
||||
<li><a href="qml-sortfilterproxymodel-regexprole-members.html">List of all members, including inherited members</a></li>
|
||||
</ul>
|
||||
<a name="properties"></a>
|
||||
<h2 id="properties">Properties</h2>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-regexprole.html#caseSensitivity-prop">caseSensitivity</a></b></b> : Qt::CaseSensitivity</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-regexprole.html#pattern-prop">pattern</a></b></b> : QString</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-regexprole.html#roleName-prop">roleName</a></b></b> : QString</li>
|
||||
</ul>
|
||||
<!-- $$$RegExpRole-description -->
|
||||
<a name="details"></a>
|
||||
<h2 id="details">Detailed Description</h2>
|
||||
<p>A RegExpRole is a <a href="qml-sortfilterproxymodel-proxyrole.html">ProxyRole</a> that provides a role for each named capture group of its regular expression <a href="qml-sortfilterproxymodel-regexprole.html#pattern-prop">pattern</a>.</p>
|
||||
<p>In the following example, the <code>date</code> role of the source model will be extracted in 3 roles in the proxy moodel: <code>year</code>, <code>month</code> and <code>day</code>.</p>
|
||||
<pre class="cpp">SortFilterProxyModel {
|
||||
sourceModel: eventModel
|
||||
proxyRoles: RegExpRole {
|
||||
roleName: <span class="string">"date"</span>
|
||||
pattern: <span class="string">"(?<year>\\d{4})-(?<month>\\d{2})-(?<day>\\d{2})"</span>
|
||||
}
|
||||
}</pre>
|
||||
<!-- @@@RegExpRole -->
|
||||
<h2>Property Documentation</h2>
|
||||
<!-- $$$caseSensitivity -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="caseSensitivity-prop"></a><span class="name">caseSensitivity</span> : <span class="type">Qt::CaseSensitivity</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the caseSensitivity of the regular expression.</p>
|
||||
</div></div><!-- @@@caseSensitivity -->
|
||||
<br/>
|
||||
<!-- $$$pattern -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="pattern-prop"></a><span class="name">pattern</span> : <span class="type">QString</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the pattern of the regular expression of this <a href="qml-sortfilterproxymodel-regexprole.html">RegExpRole</a>. The <a href="qml-sortfilterproxymodel-regexprole.html">RegExpRole</a> will expose a role for each of the named capture group of the pattern.</p>
|
||||
</div></div><!-- @@@pattern -->
|
||||
<br/>
|
||||
<!-- $$$roleName -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="roleName-prop"></a><span class="name">roleName</span> : <span class="type">QString</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the role name that the <a href="qml-sortfilterproxymodel-regexprole.html">RegExpRole</a> is using to query the source model's data to extract new roles from.</p>
|
||||
</div></div><!-- @@@roleName -->
|
||||
<br/>
|
||||
</body>
|
||||
</html>
|
|
@ -1,20 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- rolefilter.cpp -->
|
||||
<title>List of All Members for RoleFilter | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">List of All Members for RoleFilter</h1>
|
||||
<p>This is the complete list of members for <a href="qml-sortfilterproxymodel-rolefilter.html">RoleFilter</a>, including inherited members.</p>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-rolefilter.html#enabled-prop">enabled</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-rolefilter.html#inverted-prop">inverted</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-rolefilter.html#roleName-prop">roleName</a></b></b> : string</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
|
@ -1,77 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- rolefilter.cpp -->
|
||||
<title>RoleFilter QML Type | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar">
|
||||
<div class="toc">
|
||||
<h3><a name="toc">Contents</a></h3>
|
||||
<ul>
|
||||
<li class="level1"><a href="#properties">Properties</a></li>
|
||||
<li class="level1"><a href="#details">Detailed Description</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">RoleFilter QML Type</h1>
|
||||
<span class="subtitle"></span>
|
||||
<!-- $$$RoleFilter-brief -->
|
||||
<p>Base type for filters based on a source model role. <a href="#details">More...</a></p>
|
||||
<!-- @@@RoleFilter -->
|
||||
<div class="table"><table class="alignedsummary">
|
||||
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import SortFilterProxyModel .</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <p><a href="qml-sortfilterproxymodel-filter.html">Filter</a></p>
|
||||
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherited By:</td><td class="memItemRight bottomAlign"> <p><a href="qml-sortfilterproxymodel-rangefilter.html">RangeFilter</a>, <a href="qml-sortfilterproxymodel-regexpfilter.html">RegExpFilter</a>, and <a href="qml-sortfilterproxymodel-valuefilter.html">ValueFilter</a></p>
|
||||
</td></tr></table></div><ul>
|
||||
<li><a href="qml-sortfilterproxymodel-rolefilter-members.html">List of all members, including inherited members</a></li>
|
||||
</ul>
|
||||
<a name="properties"></a>
|
||||
<h2 id="properties">Properties</h2>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-rolefilter.html#enabled-prop">enabled</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-rolefilter.html#inverted-prop">inverted</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-rolefilter.html#roleName-prop">roleName</a></b></b> : string</li>
|
||||
</ul>
|
||||
<!-- $$$RoleFilter-description -->
|
||||
<a name="details"></a>
|
||||
<h2 id="details">Detailed Description</h2>
|
||||
<p>The RoleFilter type cannot be used directly in a QML file. It exists to provide a set of common properties and methods, available across all the other filter types that inherit from it. Attempting to use the RoleFilter type directly will result in an error.</p>
|
||||
<!-- @@@RoleFilter -->
|
||||
<h2>Property Documentation</h2>
|
||||
<!-- $$$enabled -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="enabled-prop"></a><span class="name">enabled</span> : <span class="type">bool</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds whether the filter is enabled. A disabled filter will accept every rows unconditionally (even if it's inverted).</p>
|
||||
<p>By default, filters are enabled.</p>
|
||||
</div></div><!-- @@@enabled -->
|
||||
<br/>
|
||||
<!-- $$$inverted -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="inverted-prop"></a><span class="name">inverted</span> : <span class="type">bool</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds whether the filter is inverted. When a filter is inverted, a row normally accepted would be rejected, and vice-versa.</p>
|
||||
<p>By default, filters are not inverted.</p>
|
||||
</div></div><!-- @@@inverted -->
|
||||
<br/>
|
||||
<!-- $$$roleName -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="roleName-prop"></a><span class="name">roleName</span> : <span class="type">string</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the role name that the filter is using to query the source model's data when filtering items.</p>
|
||||
</div></div><!-- @@@roleName -->
|
||||
<br/>
|
||||
</body>
|
||||
</html>
|
|
@ -1,21 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- rolesorter.cpp -->
|
||||
<title>List of All Members for RoleSorter | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">List of All Members for RoleSorter</h1>
|
||||
<p>This is the complete list of members for <a href="qml-sortfilterproxymodel-rolesorter.html">RoleSorter</a>, including inherited members.</p>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-rolesorter.html#enabled-prop">enabled</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-rolesorter.html#priority-prop">priority</a></b></b> : int</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-rolesorter.html#roleName-prop">roleName</a></b></b> : string</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-rolesorter.html#sortOrder-prop">sortOrder</a></b></b> : Qt::SortOrder</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
|
@ -1,98 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- rolesorter.cpp -->
|
||||
<title>RoleSorter QML Type | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar">
|
||||
<div class="toc">
|
||||
<h3><a name="toc">Contents</a></h3>
|
||||
<ul>
|
||||
<li class="level1"><a href="#properties">Properties</a></li>
|
||||
<li class="level1"><a href="#details">Detailed Description</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">RoleSorter QML Type</h1>
|
||||
<span class="subtitle"></span>
|
||||
<!-- $$$RoleSorter-brief -->
|
||||
<p>Sorts rows based on a source model role. <a href="#details">More...</a></p>
|
||||
<!-- @@@RoleSorter -->
|
||||
<div class="table"><table class="alignedsummary">
|
||||
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import SortFilterProxyModel .</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <p><a href="qml-sortfilterproxymodel-sorter.html">Sorter</a></p>
|
||||
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherited By:</td><td class="memItemRight bottomAlign"> <p><a href="qml-sortfilterproxymodel-stringsorter.html">StringSorter</a></p>
|
||||
</td></tr></table></div><ul>
|
||||
<li><a href="qml-sortfilterproxymodel-rolesorter-members.html">List of all members, including inherited members</a></li>
|
||||
</ul>
|
||||
<a name="properties"></a>
|
||||
<h2 id="properties">Properties</h2>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-rolesorter.html#enabled-prop">enabled</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-rolesorter.html#priority-prop">priority</a></b></b> : int</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-rolesorter.html#roleName-prop">roleName</a></b></b> : string</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-rolesorter.html#sortOrder-prop">sortOrder</a></b></b> : Qt::SortOrder</li>
|
||||
</ul>
|
||||
<!-- $$$RoleSorter-description -->
|
||||
<a name="details"></a>
|
||||
<h2 id="details">Detailed Description</h2>
|
||||
<p>A RoleSorter is a simple <a href="qml-sortfilterproxymodel-sorter.html">Sorter</a> that sorts rows based on a source model role.</p>
|
||||
<p>In the following example, rows with be sorted by their <code>lastName</code> role :</p>
|
||||
<pre class="cpp">SortFilterProxyModel {
|
||||
sourceModel: contactModel
|
||||
sorters: RoleSorter { roleName: <span class="string">"lastName"</span> }
|
||||
}</pre>
|
||||
<!-- @@@RoleSorter -->
|
||||
<h2>Property Documentation</h2>
|
||||
<!-- $$$enabled -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="enabled-prop"></a><span class="name">enabled</span> : <span class="type">bool</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds whether the sorter is enabled. A disabled sorter will not change the order of the rows.</p>
|
||||
<p>By default, sorters are enabled.</p>
|
||||
</div></div><!-- @@@enabled -->
|
||||
<br/>
|
||||
<!-- $$$priority -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="priority-prop"></a><span class="name">priority</span> : <span class="type">int</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the sort priority of this sorter. Sorters with a higher priority are applied first. In case of equal priority, Sorters are ordered by their insertion order.</p>
|
||||
<p>By default, the priority is 0.</p>
|
||||
</div></div><!-- @@@priority -->
|
||||
<br/>
|
||||
<!-- $$$roleName -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="roleName-prop"></a><span class="name">roleName</span> : <span class="type">string</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the role name that the sorter is using to query the source model's data when sorting items.</p>
|
||||
</div></div><!-- @@@roleName -->
|
||||
<br/>
|
||||
<!-- $$$sortOrder -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="sortOrder-prop"></a><span class="name">sortOrder</span> : <span class="type">Qt::SortOrder</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the sort order of this sorter.</p>
|
||||
<div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tbldscr">Description</th></tr>
|
||||
<tr><td class="topAlign"><code>Qt.AscendingOrder</code></td><td class="topAlign">The items are sorted ascending e.g. starts with 'AAA' ends with 'ZZZ' in Latin-1 locales</td></tr>
|
||||
<tr><td class="topAlign"><code>Qt.DescendingOrder</code></td><td class="topAlign">The items are sorted descending e.g. starts with 'ZZZ' ends with 'AAA' in Latin-1 locales</td></tr>
|
||||
</table></div>
|
||||
<p>By default, sorting is in ascending order.</p>
|
||||
</div></div><!-- @@@sortOrder -->
|
||||
<br/>
|
||||
</body>
|
||||
</html>
|
|
@ -1,18 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- singlerole.cpp -->
|
||||
<title>List of All Members for SingleRole | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">List of All Members for SingleRole</h1>
|
||||
<p>This is the complete list of members for <a href="qml-sortfilterproxymodel-singlerole.html">SingleRole</a>, including inherited members.</p>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-singlerole.html#name-prop">name</a></b></b> : string</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
|
@ -1,53 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- singlerole.cpp -->
|
||||
<title>SingleRole QML Type | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar">
|
||||
<div class="toc">
|
||||
<h3><a name="toc">Contents</a></h3>
|
||||
<ul>
|
||||
<li class="level1"><a href="#properties">Properties</a></li>
|
||||
<li class="level1"><a href="#details">Detailed Description</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">SingleRole QML Type</h1>
|
||||
<span class="subtitle"></span>
|
||||
<!-- $$$SingleRole-brief -->
|
||||
<p>Base type for the <a href="qml-sortfilterproxymodel-sortfilterproxymodel.html">SortFilterProxyModel</a> proxy roles defining a single role. <a href="#details">More...</a></p>
|
||||
<!-- @@@SingleRole -->
|
||||
<div class="table"><table class="alignedsummary">
|
||||
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import SortFilterProxyModel .</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <p><a href="qml-sortfilterproxymodel-proxyrole.html">ProxyRole</a></p>
|
||||
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherited By:</td><td class="memItemRight bottomAlign"> <p><a href="qml-sortfilterproxymodel-expressionrole.html">ExpressionRole</a>, <a href="qml-sortfilterproxymodel-filterrole.html">FilterRole</a>, <a href="qml-sortfilterproxymodel-joinrole.html">JoinRole</a>, and <a href="qml-sortfilterproxymodel-switchrole.html">SwitchRole</a></p>
|
||||
</td></tr></table></div><ul>
|
||||
<li><a href="qml-sortfilterproxymodel-singlerole-members.html">List of all members, including inherited members</a></li>
|
||||
</ul>
|
||||
<a name="properties"></a>
|
||||
<h2 id="properties">Properties</h2>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-singlerole.html#name-prop">name</a></b></b> : string</li>
|
||||
</ul>
|
||||
<!-- $$$SingleRole-description -->
|
||||
<a name="details"></a>
|
||||
<h2 id="details">Detailed Description</h2>
|
||||
<p>SingleRole is a convenience base class for proxy roles who define a single role. It cannot be used directly in a QML file. It exists to provide a set of common properties and methods, available across all the other proxy role types that inherit from it. Attempting to use the SingleRole type directly will result in an error.</p>
|
||||
<!-- @@@SingleRole -->
|
||||
<h2>Property Documentation</h2>
|
||||
<!-- $$$name -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="name-prop"></a><span class="name">name</span> : <span class="type">string</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the role name of the proxy role.</p>
|
||||
</div></div><!-- @@@name -->
|
||||
<br/>
|
||||
</body>
|
||||
</html>
|
|
@ -1,20 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- sorter.cpp -->
|
||||
<title>List of All Members for Sorter | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">List of All Members for Sorter</h1>
|
||||
<p>This is the complete list of members for <a href="qml-sortfilterproxymodel-sorter.html">Sorter</a>, including inherited members.</p>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-sorter.html#enabled-prop">enabled</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-sorter.html#priority-prop">priority</a></b></b> : int</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-sorter.html#sortOrder-prop">sortOrder</a></b></b> : Qt::SortOrder</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
|
@ -1,81 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- sorter.cpp -->
|
||||
<title>Sorter QML Type | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar">
|
||||
<div class="toc">
|
||||
<h3><a name="toc">Contents</a></h3>
|
||||
<ul>
|
||||
<li class="level1"><a href="#properties">Properties</a></li>
|
||||
<li class="level1"><a href="#details">Detailed Description</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">Sorter QML Type</h1>
|
||||
<span class="subtitle"></span>
|
||||
<!-- $$$Sorter-brief -->
|
||||
<p>Base type for the <a href="qml-sortfilterproxymodel-sortfilterproxymodel.html">SortFilterProxyModel</a> sorters. <a href="#details">More...</a></p>
|
||||
<!-- @@@Sorter -->
|
||||
<div class="table"><table class="alignedsummary">
|
||||
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import SortFilterProxyModel .</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherited By:</td><td class="memItemRight bottomAlign"> <p><a href="qml-sortfilterproxymodel-expressionsorter.html">ExpressionSorter</a>, <a href="qml-sortfilterproxymodel-filtersorter.html">FilterSorter</a>, and <a href="qml-sortfilterproxymodel-rolesorter.html">RoleSorter</a></p>
|
||||
</td></tr></table></div><ul>
|
||||
<li><a href="qml-sortfilterproxymodel-sorter-members.html">List of all members, including inherited members</a></li>
|
||||
</ul>
|
||||
<a name="properties"></a>
|
||||
<h2 id="properties">Properties</h2>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-sorter.html#enabled-prop">enabled</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-sorter.html#priority-prop">priority</a></b></b> : int</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-sorter.html#sortOrder-prop">sortOrder</a></b></b> : Qt::SortOrder</li>
|
||||
</ul>
|
||||
<!-- $$$Sorter-description -->
|
||||
<a name="details"></a>
|
||||
<h2 id="details">Detailed Description</h2>
|
||||
<p>The Sorter type cannot be used directly in a QML file. It exists to provide a set of common properties and methods, available across all the other sorters types that inherit from it. Attempting to use the Sorter type directly will result in an error.</p>
|
||||
<!-- @@@Sorter -->
|
||||
<h2>Property Documentation</h2>
|
||||
<!-- $$$enabled -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="enabled-prop"></a><span class="name">enabled</span> : <span class="type">bool</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds whether the sorter is enabled. A disabled sorter will not change the order of the rows.</p>
|
||||
<p>By default, sorters are enabled.</p>
|
||||
</div></div><!-- @@@enabled -->
|
||||
<br/>
|
||||
<!-- $$$priority -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="priority-prop"></a><span class="name">priority</span> : <span class="type">int</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the sort priority of this sorter. Sorters with a higher priority are applied first. In case of equal priority, Sorters are ordered by their insertion order.</p>
|
||||
<p>By default, the priority is 0.</p>
|
||||
</div></div><!-- @@@priority -->
|
||||
<br/>
|
||||
<!-- $$$sortOrder -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="sortOrder-prop"></a><span class="name">sortOrder</span> : <span class="type">Qt::SortOrder</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the sort order of this sorter.</p>
|
||||
<div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tbldscr">Description</th></tr>
|
||||
<tr><td class="topAlign"><code>Qt.AscendingOrder</code></td><td class="topAlign">The items are sorted ascending e.g. starts with 'AAA' ends with 'ZZZ' in Latin-1 locales</td></tr>
|
||||
<tr><td class="topAlign"><code>Qt.DescendingOrder</code></td><td class="topAlign">The items are sorted descending e.g. starts with 'ZZZ' ends with 'AAA' in Latin-1 locales</td></tr>
|
||||
</table></div>
|
||||
<p>By default, sorting is in ascending order.</p>
|
||||
</div></div><!-- @@@sortOrder -->
|
||||
<br/>
|
||||
</body>
|
||||
</html>
|
|
@ -1,18 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- sortercontainer.cpp -->
|
||||
<title>List of All Members for SorterContainer | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">List of All Members for SorterContainer</h1>
|
||||
<p>This is the complete list of members for <a href="qml-sortfilterproxymodel-sortercontainer.html">SorterContainer</a>, including inherited members.</p>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-sortercontainer.html#container-attached-prop">container</a></b></b> : bool [attached]</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
|
@ -1,56 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- sortercontainer.cpp -->
|
||||
<title>SorterContainer QML Type | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar">
|
||||
<div class="toc">
|
||||
<h3><a name="toc">Contents</a></h3>
|
||||
<ul>
|
||||
<li class="level1"><a href="#attached-properties">Attached Properties</a></li>
|
||||
<li class="level1"><a href="#details">Detailed Description</a></li>
|
||||
<li class="level2"><a href="#types-implementing-this-interface">Types implementing this interface:</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">SorterContainer QML Type</h1>
|
||||
<span class="subtitle"></span>
|
||||
<!-- $$$SorterContainer-brief -->
|
||||
<p>Abstract interface for types containing <a href="qml-sortfilterproxymodel-sorter.html">Sorters</a>. <a href="#details">More...</a></p>
|
||||
<!-- @@@SorterContainer -->
|
||||
<div class="table"><table class="alignedsummary">
|
||||
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import SortFilterProxyModel .</td></tr></table></div><ul>
|
||||
<li><a href="qml-sortfilterproxymodel-sortercontainer-members.html">List of all members, including inherited members</a></li>
|
||||
</ul>
|
||||
<a name="attached-properties"></a>
|
||||
<h2 id="attached-properties">Attached Properties</h2>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-sortercontainer.html#container-attached-prop">container</a></b></b> : bool</li>
|
||||
</ul>
|
||||
<!-- $$$SorterContainer-description -->
|
||||
<a name="details"></a>
|
||||
<h2 id="details">Detailed Description</h2>
|
||||
<a name="types-implementing-this-interface"></a>
|
||||
<h3 id="types-implementing-this-interface">Types implementing this interface:</h3>
|
||||
<div class="table"><table class="annotated">
|
||||
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-sortfilterproxymodel.html">SortFilterProxyModel</a></p></td><td class="tblDescr"><p>Filters and sorts data coming from a source QAbstractItemModel</p></td></tr>
|
||||
</table></div>
|
||||
<!-- @@@SorterContainer -->
|
||||
<h2>Attached Property Documentation</h2>
|
||||
<!-- $$$container -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="container-attached-prop"></a><span class="name">SorterContainer.container</span> : <span class="type">bool</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This attached property allows you to include in a <a href="qml-sortfilterproxymodel-sortercontainer.html">SorterContainer</a> a <a href="qml-sortfilterproxymodel-sorter.html">Sorter</a> that has been instantiated outside of the <a href="qml-sortfilterproxymodel-sortercontainer.html">SorterContainer</a>, for example in an Instantiator.</p>
|
||||
</div></div><!-- @@@container -->
|
||||
<br/>
|
||||
</body>
|
||||
</html>
|
|
@ -1,31 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- qqmlsortfilterproxymodel.cpp -->
|
||||
<title>List of All Members for SortFilterProxyModel | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">List of All Members for SortFilterProxyModel</h1>
|
||||
<p>This is the complete list of members for <a href="qml-sortfilterproxymodel-sortfilterproxymodel.html">SortFilterProxyModel</a>, including inherited members.</p>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-sortfilterproxymodel.html#count-prop">count</a></b></b> : int</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-sortfilterproxymodel.html#delayed-prop">delayed</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-sortfilterproxymodel.html#filters-prop">filters</a></b></b> : list<Filter></li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-sortfilterproxymodel.html#proxyRoles-prop">proxyRoles</a></b></b> : list<ProxyRole></li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-sortfilterproxymodel.html#sortRoleName-prop">sortRoleName</a></b></b> : string</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-sortfilterproxymodel.html#sorters-prop">sorters</a></b></b> : list<Sorter></li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-sortfilterproxymodel.html#sourceModel-prop">sourceModel</a></b></b> : QAbstractItemModel*</li>
|
||||
<li class="fn">variant <b><b><a href="qml-sortfilterproxymodel-sortfilterproxymodel.html#get-method-1">get</a></b></b>(<i>row</i>, string <i>roleName</i>)</li>
|
||||
<li class="fn">object <b><b><a href="qml-sortfilterproxymodel-sortfilterproxymodel.html#get-method">get</a></b></b>(<i>row</i>)</li>
|
||||
<li class="fn">int <b><b><a href="qml-sortfilterproxymodel-sortfilterproxymodel.html#mapFromSource-method-1">mapFromSource</a></b></b>(<i>sourceRow</i>)</li>
|
||||
<li class="fn">QModelIndex <b><b><a href="qml-sortfilterproxymodel-sortfilterproxymodel.html#mapFromSource-method">mapFromSource</a></b></b>(<i>sourceIndex</i>)</li>
|
||||
<li class="fn">int <b><b><a href="qml-sortfilterproxymodel-sortfilterproxymodel.html#mapToSource-method-1">mapToSource</a></b></b>(<i>proxyRow</i>)</li>
|
||||
<li class="fn">index <b><b><a href="qml-sortfilterproxymodel-sortfilterproxymodel.html#mapToSource-method">mapToSource</a></b></b>(<i>proxyIndex</i>)</li>
|
||||
<li class="fn">int <b><b><a href="qml-sortfilterproxymodel-sortfilterproxymodel.html#roleForName-method">roleForName</a></b></b>(<i>roleName</i>)</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
|
@ -1,206 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- qqmlsortfilterproxymodel.cpp -->
|
||||
<title>SortFilterProxyModel QML Type | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar">
|
||||
<div class="toc">
|
||||
<h3><a name="toc">Contents</a></h3>
|
||||
<ul>
|
||||
<li class="level1"><a href="#properties">Properties</a></li>
|
||||
<li class="level1"><a href="#methods">Methods</a></li>
|
||||
<li class="level1"><a href="#details">Detailed Description</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">SortFilterProxyModel QML Type</h1>
|
||||
<span class="subtitle"></span>
|
||||
<!-- $$$SortFilterProxyModel-brief -->
|
||||
<p>Filters and sorts data coming from a source <a href="http://doc.qt.io/qt-5/qabstractitemmodel.html">QAbstractItemModel</a>. <a href="#details">More...</a></p>
|
||||
<!-- @@@SortFilterProxyModel -->
|
||||
<div class="table"><table class="alignedsummary">
|
||||
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import SortFilterProxyModel .</td></tr></table></div><ul>
|
||||
<li><a href="qml-sortfilterproxymodel-sortfilterproxymodel-members.html">List of all members, including inherited members</a></li>
|
||||
</ul>
|
||||
<a name="properties"></a>
|
||||
<h2 id="properties">Properties</h2>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-sortfilterproxymodel.html#count-prop">count</a></b></b> : int</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-sortfilterproxymodel.html#delayed-prop">delayed</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-sortfilterproxymodel.html#filters-prop">filters</a></b></b> : list<Filter></li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-sortfilterproxymodel.html#proxyRoles-prop">proxyRoles</a></b></b> : list<ProxyRole></li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-sortfilterproxymodel.html#sortRoleName-prop">sortRoleName</a></b></b> : string</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-sortfilterproxymodel.html#sorters-prop">sorters</a></b></b> : list<Sorter></li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-sortfilterproxymodel.html#sourceModel-prop">sourceModel</a></b></b> : QAbstractItemModel*</li>
|
||||
</ul>
|
||||
<a name="methods"></a>
|
||||
<h2 id="methods">Methods</h2>
|
||||
<ul>
|
||||
<li class="fn">variant <b><b><a href="qml-sortfilterproxymodel-sortfilterproxymodel.html#get-method-1">get</a></b></b>(<i>row</i>, string <i>roleName</i>)</li>
|
||||
<li class="fn">object <b><b><a href="qml-sortfilterproxymodel-sortfilterproxymodel.html#get-method">get</a></b></b>(<i>row</i>)</li>
|
||||
<li class="fn">int <b><b><a href="qml-sortfilterproxymodel-sortfilterproxymodel.html#mapFromSource-method-1">mapFromSource</a></b></b>(<i>sourceRow</i>)</li>
|
||||
<li class="fn">QModelIndex <b><b><a href="qml-sortfilterproxymodel-sortfilterproxymodel.html#mapFromSource-method">mapFromSource</a></b></b>(<i>sourceIndex</i>)</li>
|
||||
<li class="fn">int <b><b><a href="qml-sortfilterproxymodel-sortfilterproxymodel.html#mapToSource-method-1">mapToSource</a></b></b>(<i>proxyRow</i>)</li>
|
||||
<li class="fn">index <b><b><a href="qml-sortfilterproxymodel-sortfilterproxymodel.html#mapToSource-method">mapToSource</a></b></b>(<i>proxyIndex</i>)</li>
|
||||
<li class="fn">int <b><b><a href="qml-sortfilterproxymodel-sortfilterproxymodel.html#roleForName-method">roleForName</a></b></b>(<i>roleName</i>)</li>
|
||||
</ul>
|
||||
<!-- $$$SortFilterProxyModel-description -->
|
||||
<a name="details"></a>
|
||||
<h2 id="details">Detailed Description</h2>
|
||||
<p>The SortFilterProxyModel type provides support for filtering and sorting data coming from a source model.</p>
|
||||
<p><b>See also </b><a href="qml-sortfilterproxymodel-filtercontainer.html">FilterContainer</a> and <a href="qml-sortfilterproxymodel-sortercontainer.html">SorterContainer</a>.</p>
|
||||
<!-- @@@SortFilterProxyModel -->
|
||||
<h2>Property Documentation</h2>
|
||||
<!-- $$$count -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="count-prop"></a><span class="name">count</span> : <span class="type">int</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>The number of rows in the proxy model (not filtered out the source model)</p>
|
||||
</div></div><!-- @@@count -->
|
||||
<br/>
|
||||
<!-- $$$delayed -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="delayed-prop"></a><span class="name">delayed</span> : <span class="type">bool</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>Delay the execution of filters, sorters and <a href="index.html#proxyroles">proxyRoles</a> until the next event loop. This can be used as an optimization when multiple filters, sorters or <a href="index.html#proxyroles">proxyRoles</a> are changed in a single event loop. They will be executed once in a single batch at the next event loop instead of being executed in multiple sequential batches.</p>
|
||||
<p>By default, the <a href="qml-sortfilterproxymodel-sortfilterproxymodel.html">SortFilterProxyModel</a> is not delayed, unless the <code>SFPM_DELAYED</code> environment variable is defined at compile time.</p>
|
||||
</div></div><!-- @@@delayed -->
|
||||
<br/>
|
||||
<!-- $$$filters -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="filters-prop"></a><span class="name">filters</span> : <span class="type">list</span><<span class="type"><a href="qml-sortfilterproxymodel-filter.html">Filter</a></span>></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the list of filters for this proxy model. To be included in the model, a row of the source model has to be accepted by all the top level filters of this list.</p>
|
||||
<p><b>See also </b><a href="qml-sortfilterproxymodel-filter.html">Filter</a> and <a href="qml-sortfilterproxymodel-filtercontainer.html">FilterContainer</a>.</p>
|
||||
</div></div><!-- @@@filters -->
|
||||
<br/>
|
||||
<!-- $$$proxyRoles -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="proxyRoles-prop"></a><span class="name">proxyRoles</span> : <span class="type">list</span><<span class="type"><a href="qml-sortfilterproxymodel-proxyrole.html">ProxyRole</a></span>></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the list of proxy roles for this proxy model. Each proxy role adds a new custom role to the model.</p>
|
||||
<p><b>See also </b><a href="qml-sortfilterproxymodel-proxyrole.html">ProxyRole</a>.</p>
|
||||
</div></div><!-- @@@proxyRoles -->
|
||||
<br/>
|
||||
<!-- $$$sortRoleName -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="sortRoleName-prop"></a><span class="name">sortRoleName</span> : <span class="type">string</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>The role name of the source model's data used for the sorting.</p>
|
||||
<p><b>See also </b><a href="http://doc.qt.io/qt-5/qsortfilterproxymodel.html#sortRole-prop">sortRole</a> and <a href="qml-sortfilterproxymodel-sortfilterproxymodel.html#roleForName-method">roleForName</a>.</p>
|
||||
</div></div><!-- @@@sortRoleName -->
|
||||
<br/>
|
||||
<!-- $$$sorters -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="sorters-prop"></a><span class="name">sorters</span> : <span class="type">list</span><<span class="type"><a href="qml-sortfilterproxymodel-sorter.html">Sorter</a></span>></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the list of sorters for this proxy model. The rows of the source model are sorted by the sorters of this list, in their order of insertion.</p>
|
||||
<p><b>See also </b><a href="qml-sortfilterproxymodel-sorter.html">Sorter</a> and <a href="qml-sortfilterproxymodel-sortercontainer.html">SorterContainer</a>.</p>
|
||||
</div></div><!-- @@@sorters -->
|
||||
<br/>
|
||||
<!-- $$$sourceModel -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="sourceModel-prop"></a><span class="name">sourceModel</span> : <span class="type">QAbstractItemModel</span>*</p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>The source model of this proxy model</p>
|
||||
</div></div><!-- @@@sourceModel -->
|
||||
<br/>
|
||||
<h2>Method Documentation</h2>
|
||||
<!-- $$$get$$$getstring -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlFuncNode"><p>
|
||||
<a name="get-method-1"></a><span class="type">variant</span> <span class="name">get</span>(<i>row</i>, <span class="type">string</span> <i>roleName</i>)</p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>Return the data for the given <i>roleName</i> of the item at <i>row</i> in the proxy model. This allows the role data to be read (not modified) from JavaScript. This equivalent to calling <code>data(index(row, 0), roleForName(roleName))</code>.</p>
|
||||
</div></div><!-- @@@get -->
|
||||
<br/>
|
||||
<!-- $$$get[overload1]$$$get -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlFuncNode"><p>
|
||||
<a name="get-method"></a><span class="type">object</span> <span class="name">get</span>(<i>row</i>)</p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>Return the item at <i>row</i> in the proxy model as a map of all its roles. This allows the item data to be read (not modified) from JavaScript.</p>
|
||||
</div></div><!-- @@@get -->
|
||||
<br/>
|
||||
<!-- $$$mapFromSource$$$mapFromSource -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlFuncNode"><p>
|
||||
<a name="mapFromSource-method-1"></a><span class="type">int</span> <span class="name">mapFromSource</span>(<i>sourceRow</i>)</p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>Returns the row in the <a href="qml-sortfilterproxymodel-sortfilterproxymodel.html">SortFilterProxyModel</a> given the <i>sourceRow</i> from the source model. Returns -1 if there is no corresponding row.</p>
|
||||
</div></div><!-- @@@mapFromSource -->
|
||||
<br/>
|
||||
<!-- $$$mapFromSource[overload1]$$$mapFromSource -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlFuncNode"><p>
|
||||
<a name="mapFromSource-method"></a><span class="type">QModelIndex</span> <span class="name">mapFromSource</span>(<i>sourceIndex</i>)</p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>Returns the model index in the <a href="qml-sortfilterproxymodel-sortfilterproxymodel.html">SortFilterProxyModel</a> given the <i>sourceIndex</i> from the source model.</p>
|
||||
</div></div><!-- @@@mapFromSource -->
|
||||
<br/>
|
||||
<!-- $$$mapToSource$$$mapToSource -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlFuncNode"><p>
|
||||
<a name="mapToSource-method-1"></a><span class="type">int</span> <span class="name">mapToSource</span>(<i>proxyRow</i>)</p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>Returns the source model row corresponding to the given <i>proxyRow</i> from the <a href="qml-sortfilterproxymodel-sortfilterproxymodel.html">SortFilterProxyModel</a>. Returns -1 if there is no corresponding row.</p>
|
||||
</div></div><!-- @@@mapToSource -->
|
||||
<br/>
|
||||
<!-- $$$mapToSource[overload1]$$$mapToSource -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlFuncNode"><p>
|
||||
<a name="mapToSource-method"></a><span class="type">index</span> <span class="name">mapToSource</span>(<i>proxyIndex</i>)</p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>Returns the source model index corresponding to the given <i>proxyIndex</i> from the <a href="qml-sortfilterproxymodel-sortfilterproxymodel.html">SortFilterProxyModel</a>.</p>
|
||||
</div></div><!-- @@@mapToSource -->
|
||||
<br/>
|
||||
<!-- $$$roleForName[overload1]$$$roleForName -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlFuncNode"><p>
|
||||
<a name="roleForName-method"></a><span class="type">int</span> <span class="name">roleForName</span>(<i>roleName</i>)</p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>Returns the role number for the given <i>roleName</i>. If no role is found for this <i>roleName</i>, <code>-1</code> is returned.</p>
|
||||
</div></div><!-- @@@roleForName -->
|
||||
<br/>
|
||||
</body>
|
||||
</html>
|
|
@ -1,28 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- stringsorter.cpp -->
|
||||
<title>List of All Members for StringSorter | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">List of All Members for StringSorter</h1>
|
||||
<p>This is the complete list of members for <a href="qml-sortfilterproxymodel-stringsorter.html">StringSorter</a>, including inherited members.</p>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-stringsorter.html#caseSensitivity-prop">caseSensitivity</a></b></b> : Qt.CaseSensitivity</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-stringsorter.html#ignorePunctation-prop">ignorePunctation</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-stringsorter.html#locale-prop">locale</a></b></b> : Locale</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-stringsorter.html#numericMode-prop">numericMode</a></b></b> : bool</li>
|
||||
</ul>
|
||||
<p>The following members are inherited from <a href="qml-sortfilterproxymodel-rolesorter.html">RoleSorter</a>.</p>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-stringsorter.html#enabled-prop">enabled</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-stringsorter.html#priority-prop">priority</a></b></b> : int</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-rolesorter.html#roleName-prop">roleName</a></b></b> : string</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-stringsorter.html#sortOrder-prop">sortOrder</a></b></b> : Qt::SortOrder</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
|
@ -1,90 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- stringsorter.cpp -->
|
||||
<title>StringSorter QML Type | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar">
|
||||
<div class="toc">
|
||||
<h3><a name="toc">Contents</a></h3>
|
||||
<ul>
|
||||
<li class="level1"><a href="#properties">Properties</a></li>
|
||||
<li class="level1"><a href="#details">Detailed Description</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">StringSorter QML Type</h1>
|
||||
<span class="subtitle"></span>
|
||||
<!-- $$$StringSorter-brief -->
|
||||
<p>Sorts rows based on a source model string role. <a href="#details">More...</a></p>
|
||||
<!-- @@@StringSorter -->
|
||||
<div class="table"><table class="alignedsummary">
|
||||
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import SortFilterProxyModel .</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <p><a href="qml-sortfilterproxymodel-rolesorter.html">RoleSorter</a></p>
|
||||
</td></tr></table></div><ul>
|
||||
<li><a href="qml-sortfilterproxymodel-stringsorter-members.html">List of all members, including inherited members</a></li>
|
||||
</ul>
|
||||
<a name="properties"></a>
|
||||
<h2 id="properties">Properties</h2>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-stringsorter.html#caseSensitivity-prop">caseSensitivity</a></b></b> : Qt.CaseSensitivity</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-stringsorter.html#ignorePunctation-prop">ignorePunctation</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-stringsorter.html#locale-prop">locale</a></b></b> : Locale</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-stringsorter.html#numericMode-prop">numericMode</a></b></b> : bool</li>
|
||||
</ul>
|
||||
<!-- $$$StringSorter-description -->
|
||||
<a name="details"></a>
|
||||
<h2 id="details">Detailed Description</h2>
|
||||
<p><a href="qml-sortfilterproxymodel-stringsorter.html">StringSorter</a> is a specialized <a href="qml-sortfilterproxymodel-rolesorter.html">RoleSorter</a> that sorts rows based on a source model string role. <a href="qml-sortfilterproxymodel-stringsorter.html">StringSorter</a> compares strings according to a localized collation algorithm.</p>
|
||||
<p>In the following example, rows with be sorted by their <code>lastName</code> role :</p>
|
||||
<pre class="cpp">SortFilterProxyModel {
|
||||
sourceModel: contactModel
|
||||
sorters: StringSorter { roleName: <span class="string">"lastName"</span> }
|
||||
}</pre>
|
||||
<!-- @@@StringSorter -->
|
||||
<h2>Property Documentation</h2>
|
||||
<!-- $$$caseSensitivity -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="caseSensitivity-prop"></a><span class="name">caseSensitivity</span> : <span class="type">Qt</span>.<span class="type">CaseSensitivity</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the case sensitivity of the sorter.</p>
|
||||
</div></div><!-- @@@caseSensitivity -->
|
||||
<br/>
|
||||
<!-- $$$ignorePunctation -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="ignorePunctation-prop"></a><span class="name">ignorePunctation</span> : <span class="type">bool</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds whether the sorter ignores punctation. if <code>ignorePunctuation</code> is <code>true</code>, punctuation characters and symbols are ignored when determining sort order.</p>
|
||||
<p><b>Note: </b>This property is not currently supported on Apple platforms or if Qt is configured to not use ICU on Linux.</p></div></div><!-- @@@ignorePunctation -->
|
||||
<br/>
|
||||
<!-- $$$locale -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="locale-prop"></a><span class="name">locale</span> : <span class="type">Locale</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the locale of the sorter.</p>
|
||||
</div></div><!-- @@@locale -->
|
||||
<br/>
|
||||
<!-- $$$numericMode -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="numericMode-prop"></a><span class="name">numericMode</span> : <span class="type">bool</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds whether the numeric mode of the sorter is enabled. This will enable proper sorting of numeric digits, so that e.g. 100 sorts after 99. By default this mode is off.</p>
|
||||
</div></div><!-- @@@numericMode -->
|
||||
<br/>
|
||||
</body>
|
||||
</html>
|
|
@ -1,22 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- switchrole.cpp -->
|
||||
<title>List of All Members for SwitchRole | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">List of All Members for SwitchRole</h1>
|
||||
<p>This is the complete list of members for <a href="qml-sortfilterproxymodel-switchrole.html">SwitchRole</a>, including inherited members.</p>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-switchrole.html#defaultRoleName-prop">defaultRoleName</a></b></b> : string</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-switchrole.html#defaultValue-prop">defaultValue</a></b></b> : var</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-switchrole.html#filters-prop">filters</a></b></b> : list<Filter> [default]</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-switchrole.html#name-prop">name</a></b></b> : string</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-switchrole.html#value-attached-prop">value</a></b></b> : var [attached]</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
|
@ -1,117 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- switchrole.cpp -->
|
||||
<title>SwitchRole QML Type | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar">
|
||||
<div class="toc">
|
||||
<h3><a name="toc">Contents</a></h3>
|
||||
<ul>
|
||||
<li class="level1"><a href="#properties">Properties</a></li>
|
||||
<li class="level1"><a href="#attached-properties">Attached Properties</a></li>
|
||||
<li class="level1"><a href="#details">Detailed Description</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">SwitchRole QML Type</h1>
|
||||
<span class="subtitle"></span>
|
||||
<!-- $$$SwitchRole-brief -->
|
||||
<p>A role using <a href="qml-sortfilterproxymodel-filter.html">Filter</a> to conditionnaly compute its data. <a href="#details">More...</a></p>
|
||||
<!-- @@@SwitchRole -->
|
||||
<div class="table"><table class="alignedsummary">
|
||||
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import SortFilterProxyModel .</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <p><a href="qml-sortfilterproxymodel-singlerole.html">SingleRole</a></p>
|
||||
</td></tr></table></div><ul>
|
||||
<li><a href="qml-sortfilterproxymodel-switchrole-members.html">List of all members, including inherited members</a></li>
|
||||
</ul>
|
||||
<a name="properties"></a>
|
||||
<h2 id="properties">Properties</h2>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-switchrole.html#defaultRoleName-prop">defaultRoleName</a></b></b> : string</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-switchrole.html#defaultValue-prop">defaultValue</a></b></b> : var</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-switchrole.html#filters-prop">filters</a></b></b> : list<Filter></li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-switchrole.html#name-prop">name</a></b></b> : string</li>
|
||||
</ul>
|
||||
<a name="attached-properties"></a>
|
||||
<h2 id="attached-properties">Attached Properties</h2>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-switchrole.html#value-attached-prop">value</a></b></b> : var</li>
|
||||
</ul>
|
||||
<!-- $$$SwitchRole-description -->
|
||||
<a name="details"></a>
|
||||
<h2 id="details">Detailed Description</h2>
|
||||
<p>A SwitchRole is a <a href="qml-sortfilterproxymodel-proxyrole.html">ProxyRole</a> that computes its data with the help of <a href="qml-sortfilterproxymodel-filter.html">Filter</a>. Each top level filters specified in the <a href="qml-sortfilterproxymodel-switchrole.html">SwitchRole</a> is evaluated on the rows of the model, if a <a href="qml-sortfilterproxymodel-filter.html">Filter</a> evaluates to true, the data of the <a href="qml-sortfilterproxymodel-switchrole.html">SwitchRole</a> for this row will be the one of the attached <a href="qml-sortfilterproxymodel-switchrole.html#value-attached-prop">SwitchRole.value</a> property. If no top level filters evaluate to true, the data will default to the one of the <a href="qml-sortfilterproxymodel-switchrole.html#defaultRoleName-prop">defaultRoleName</a> (or the <a href="qml-sortfilterproxymodel-switchrole.html#defaultValue-prop">defaultValue</a> if no <a href="qml-sortfilterproxymodel-switchrole.html#defaultRoleName-prop">defaultRoleName</a> is specified).</p>
|
||||
<p>In the following example, the <code>favoriteOrFirstNameSection</code> role is equal to <code>*</code> if the <code>favorite</code> role of a row is true, otherwise it's the same as the <code>firstName</code> role :</p>
|
||||
<pre class="cpp">SortFilterProxyModel {
|
||||
sourceModel: contactModel
|
||||
proxyRoles: SwitchRole {
|
||||
name: <span class="string">"favoriteOrFirstNameSection"</span>
|
||||
filters: ValueFilter {
|
||||
roleName: <span class="string">"favorite"</span>
|
||||
value: <span class="keyword">true</span>
|
||||
SwitchRole<span class="operator">.</span>value: <span class="string">"*"</span>
|
||||
}
|
||||
defaultRoleName: <span class="string">"firstName"</span>
|
||||
}
|
||||
}</pre>
|
||||
<p><b>See also </b><a href="qml-sortfilterproxymodel-filtercontainer.html">FilterContainer</a>.</p>
|
||||
<!-- @@@SwitchRole -->
|
||||
<h2>Property Documentation</h2>
|
||||
<!-- $$$defaultRoleName -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="defaultRoleName-prop"></a><span class="name">defaultRoleName</span> : <span class="type">string</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the default role name of the role. If no filter match a row, the data of this role will be the data of the role whose name is <code>defaultRoleName</code>.</p>
|
||||
</div></div><!-- @@@defaultRoleName -->
|
||||
<br/>
|
||||
<!-- $$$defaultValue -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="defaultValue-prop"></a><span class="name">defaultValue</span> : <span class="type">var</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the default value of the role. If no filter match a row, and no <a href="qml-sortfilterproxymodel-switchrole.html#defaultRoleName-prop">defaultRoleName</a> is set, the data of this role will be <code>defaultValue</code>.</p>
|
||||
</div></div><!-- @@@defaultValue -->
|
||||
<br/>
|
||||
<!-- $$$filters -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="filters-prop"></a><span class="qmldefault">[default] </span><span class="name">filters</span> : <span class="type">list</span><<span class="type"><a href="qml-sortfilterproxymodel-filter.html">Filter</a></span>></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the list of filters for this proxy role. The data of this role will be equal to the attached <a href="qml-sortfilterproxymodel-switchrole.html#value-attached-prop">SwitchRole.value</a> property of the first filter that matches the model row.</p>
|
||||
<p><b>See also </b><a href="qml-sortfilterproxymodel-filter.html">Filter</a> and <a href="qml-sortfilterproxymodel-filtercontainer.html">FilterContainer</a>.</p>
|
||||
</div></div><!-- @@@filters -->
|
||||
<br/>
|
||||
<!-- $$$name -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="name-prop"></a><span class="name">name</span> : <span class="type">string</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the role name of the proxy role.</p>
|
||||
</div></div><!-- @@@name -->
|
||||
<br/>
|
||||
<h2>Attached Property Documentation</h2>
|
||||
<!-- $$$value -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="value-attached-prop"></a><span class="name">SwitchRole.value</span> : <span class="type">var</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property attaches a value to a <a href="qml-sortfilterproxymodel-filter.html">Filter</a>.</p>
|
||||
</div></div><!-- @@@value -->
|
||||
<br/>
|
||||
</body>
|
||||
</html>
|
|
@ -1,21 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- valuefilter.cpp -->
|
||||
<title>List of All Members for ValueFilter | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">List of All Members for ValueFilter</h1>
|
||||
<p>This is the complete list of members for <a href="qml-sortfilterproxymodel-valuefilter.html">ValueFilter</a>, including inherited members.</p>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-valuefilter.html#enabled-prop">enabled</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-valuefilter.html#inverted-prop">inverted</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-valuefilter.html#roleName-prop">roleName</a></b></b> : string</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-valuefilter.html#value-prop">value</a></b></b> : variant</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
|
@ -1,100 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- valuefilter.cpp -->
|
||||
<title>ValueFilter QML Type | SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar">
|
||||
<div class="toc">
|
||||
<h3><a name="toc">Contents</a></h3>
|
||||
<ul>
|
||||
<li class="level1"><a href="#properties">Properties</a></li>
|
||||
<li class="level1"><a href="#details">Detailed Description</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<h1 class="title">ValueFilter QML Type</h1>
|
||||
<span class="subtitle"></span>
|
||||
<!-- $$$ValueFilter-brief -->
|
||||
<p>Filters rows matching exactly a value. <a href="#details">More...</a></p>
|
||||
<!-- @@@ValueFilter -->
|
||||
<div class="table"><table class="alignedsummary">
|
||||
<tr><td class="memItemLeft rightAlign topAlign"> Import Statement:</td><td class="memItemRight bottomAlign"> import SortFilterProxyModel .</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <p><a href="qml-sortfilterproxymodel-rolefilter.html">RoleFilter</a></p>
|
||||
</td></tr></table></div><ul>
|
||||
<li><a href="qml-sortfilterproxymodel-valuefilter-members.html">List of all members, including inherited members</a></li>
|
||||
</ul>
|
||||
<a name="properties"></a>
|
||||
<h2 id="properties">Properties</h2>
|
||||
<ul>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-valuefilter.html#enabled-prop">enabled</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-valuefilter.html#inverted-prop">inverted</a></b></b> : bool</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-valuefilter.html#roleName-prop">roleName</a></b></b> : string</li>
|
||||
<li class="fn"><b><b><a href="qml-sortfilterproxymodel-valuefilter.html#value-prop">value</a></b></b> : variant</li>
|
||||
</ul>
|
||||
<!-- $$$ValueFilter-description -->
|
||||
<a name="details"></a>
|
||||
<h2 id="details">Detailed Description</h2>
|
||||
<p>A ValueFilter is a simple <a href="qml-sortfilterproxymodel-rolefilter.html">RoleFilter</a> that accepts rows matching exactly the filter's value</p>
|
||||
<p>In the following example, only rows with their <code>favorite</code> role set to <code>true</code> will be accepted when the checkbox is checked :</p>
|
||||
<pre class="cpp">CheckBox {
|
||||
id: showOnlyFavoriteCheckBox
|
||||
}
|
||||
|
||||
SortFilterProxyModel {
|
||||
sourceModel: contactModel
|
||||
filters: ValueFilter {
|
||||
roleName: <span class="string">"favorite"</span>
|
||||
value: <span class="keyword">true</span>
|
||||
enabled: showOnlyFavoriteCheckBox<span class="operator">.</span>checked
|
||||
}
|
||||
}</pre>
|
||||
<!-- @@@ValueFilter -->
|
||||
<h2>Property Documentation</h2>
|
||||
<!-- $$$enabled -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="enabled-prop"></a><span class="name">enabled</span> : <span class="type">bool</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds whether the filter is enabled. A disabled filter will accept every rows unconditionally (even if it's inverted).</p>
|
||||
<p>By default, filters are enabled.</p>
|
||||
</div></div><!-- @@@enabled -->
|
||||
<br/>
|
||||
<!-- $$$inverted -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="inverted-prop"></a><span class="name">inverted</span> : <span class="type">bool</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds whether the filter is inverted. When a filter is inverted, a row normally accepted would be rejected, and vice-versa.</p>
|
||||
<p>By default, filters are not inverted.</p>
|
||||
</div></div><!-- @@@inverted -->
|
||||
<br/>
|
||||
<!-- $$$roleName -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="roleName-prop"></a><span class="name">roleName</span> : <span class="type">string</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the role name that the filter is using to query the source model's data when filtering items.</p>
|
||||
</div></div><!-- @@@roleName -->
|
||||
<br/>
|
||||
<!-- $$$value -->
|
||||
<div class="qmlitem"><div class="qmlproto">
|
||||
<div class="table"><table class="qmlname">
|
||||
<tr valign="top" class="odd" id="">
|
||||
<td class="tblQmlPropNode"><p>
|
||||
<a name="value-prop"></a><span class="name">value</span> : <span class="type">variant</span></p></td></tr>
|
||||
</table></div>
|
||||
</div><div class="qmldoc"><p>This property holds the value used to filter the contents of the source model.</p>
|
||||
</div></div><!-- @@@value -->
|
||||
<br/>
|
||||
</body>
|
||||
</html>
|
|
@ -1,44 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<!-- index.qdoc -->
|
||||
<title>SortFilterProxyModel</title>
|
||||
<link rel="stylesheet" type="text/css" href="style/offline.css" />
|
||||
</head>
|
||||
<body>
|
||||
<div class="sidebar"><div class="sidebar-content" id="sidebar-content"></div></div>
|
||||
<span class="subtitle"></span>
|
||||
<!-- $$$SortFilterProxyModel-description -->
|
||||
<div class="descr"> <a name="details"></a>
|
||||
</div>
|
||||
<!-- @@@SortFilterProxyModel -->
|
||||
<div class="table"><table class="annotated">
|
||||
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-allof.html">AllOf</a></p></td><td class="tblDescr"><p>Filter container accepting rows accepted by all its child filters</p></td></tr>
|
||||
<tr class="even topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-anyof.html">AnyOf</a></p></td><td class="tblDescr"><p>Filter container accepting rows accepted by at least one of its child filters</p></td></tr>
|
||||
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-expressionfilter.html">ExpressionFilter</a></p></td><td class="tblDescr"><p>Filters row with a custom filtering</p></td></tr>
|
||||
<tr class="even topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-expressionrole.html">ExpressionRole</a></p></td><td class="tblDescr"><p>A custom role computed from a javascript expression</p></td></tr>
|
||||
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-expressionsorter.html">ExpressionSorter</a></p></td><td class="tblDescr"><p>Sorts row with a custom javascript expression</p></td></tr>
|
||||
<tr class="even topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-filter.html">Filter</a></p></td><td class="tblDescr"><p>Base type for the SortFilterProxyModel filters</p></td></tr>
|
||||
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-filtercontainer.html">FilterContainer</a></p></td><td class="tblDescr"><p>Abstract interface for types containing Filters</p></td></tr>
|
||||
<tr class="even topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-filterrole.html">FilterRole</a></p></td><td class="tblDescr"><p>A role resolving to true for rows matching all its filters</p></td></tr>
|
||||
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-filtersorter.html">FilterSorter</a></p></td><td class="tblDescr"><p>Sorts rows based on if they match filters</p></td></tr>
|
||||
<tr class="even topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-indexfilter.html">IndexFilter</a></p></td><td class="tblDescr"><p>Filters rows based on their source index</p></td></tr>
|
||||
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-joinrole.html">JoinRole</a></p></td><td class="tblDescr"><p>Role made from concatenating other roles</p></td></tr>
|
||||
<tr class="even topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-proxyrole.html">ProxyRole</a></p></td><td class="tblDescr"><p>Base type for the SortFilterProxyModel proxy roles</p></td></tr>
|
||||
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-rangefilter.html">RangeFilter</a></p></td><td class="tblDescr"><p>Filters rows between boundary values</p></td></tr>
|
||||
<tr class="even topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-regexpfilter.html">RegExpFilter</a></p></td><td class="tblDescr"><p>Filters rows matching a regular expression</p></td></tr>
|
||||
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-regexprole.html">RegExpRole</a></p></td><td class="tblDescr"><p>A ProxyRole extracting data from a source role via a regular expression</p></td></tr>
|
||||
<tr class="even topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-rolefilter.html">RoleFilter</a></p></td><td class="tblDescr"><p>Base type for filters based on a source model role</p></td></tr>
|
||||
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-rolesorter.html">RoleSorter</a></p></td><td class="tblDescr"><p>Sorts rows based on a source model role</p></td></tr>
|
||||
<tr class="even topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-singlerole.html">SingleRole</a></p></td><td class="tblDescr"><p>Base type for the SortFilterProxyModel proxy roles defining a single role</p></td></tr>
|
||||
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-sortfilterproxymodel.html">SortFilterProxyModel</a></p></td><td class="tblDescr"><p>Filters and sorts data coming from a source QAbstractItemModel</p></td></tr>
|
||||
<tr class="even topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-sorter.html">Sorter</a></p></td><td class="tblDescr"><p>Base type for the SortFilterProxyModel sorters</p></td></tr>
|
||||
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-sortercontainer.html">SorterContainer</a></p></td><td class="tblDescr"><p>Abstract interface for types containing Sorters</p></td></tr>
|
||||
<tr class="even topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-stringsorter.html">StringSorter</a></p></td><td class="tblDescr"><p>Sorts rows based on a source model string role</p></td></tr>
|
||||
<tr class="odd topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-switchrole.html">SwitchRole</a></p></td><td class="tblDescr"><p>A role using Filter to conditionnaly compute its data</p></td></tr>
|
||||
<tr class="even topAlign"><td class="tblName"><p><a href="qml-sortfilterproxymodel-valuefilter.html">ValueFilter</a></p></td><td class="tblDescr"><p>Filters rows matching exactly a value</p></td></tr>
|
||||
</table></div>
|
||||
</body>
|
||||
</html>
|
|
@ -1,156 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE QDOCINDEX>
|
||||
<INDEX url="" title="SortFilterProxyModel Reference Documentation" version="" project="SortFilterProxyModel">
|
||||
<namespace name="" status="active" access="public" module="sortfilterproxymodel">
|
||||
<qmlclass name="AnyOf" qml-module-name="SortFilterProxyModel" qml-base-type="SortFilterProxyModel::Filter" fullname="SortFilterProxyModel.AnyOf" href="qml-sortfilterproxymodel-anyof.html" status="active" access="public" documented="true" title="AnyOf" fulltitle="AnyOf" subtitle="" groups="Filters,FilterContainer" brief="Filter container accepting rows accepted by at least one of its child filters"/>
|
||||
<qmlclass name="SwitchRole" qml-module-name="SortFilterProxyModel" qml-base-type="SortFilterProxyModel::SingleRole" fullname="SortFilterProxyModel.SwitchRole" href="qml-sortfilterproxymodel-switchrole.html" status="active" access="public" documented="true" title="SwitchRole" fulltitle="SwitchRole" subtitle="" groups="ProxyRoles,FilterContainer" brief="A role using Filter to conditionnaly compute its data">
|
||||
<qmlproperty name="value" fullname="SortFilterProxyModel.SwitchRole.value" href="qml-sortfilterproxymodel-switchrole.html#value-attached-prop" status="active" access="public" documented="true" type="var" attached="true" writable="true"/>
|
||||
<qmlproperty name="defaultRoleName" fullname="SortFilterProxyModel.SwitchRole.defaultRoleName" href="qml-sortfilterproxymodel-switchrole.html#defaultRoleName-prop" status="active" access="public" documented="true" type="string" attached="false" writable="true"/>
|
||||
<qmlproperty name="defaultValue" fullname="SortFilterProxyModel.SwitchRole.defaultValue" href="qml-sortfilterproxymodel-switchrole.html#defaultValue-prop" status="active" access="public" documented="true" type="var" attached="false" writable="true"/>
|
||||
<qmlproperty name="filters" fullname="SortFilterProxyModel.SwitchRole.filters" href="qml-sortfilterproxymodel-switchrole.html#filters-prop" status="active" access="public" documented="true" type="list<Filter>" attached="false" writable="true"/>
|
||||
</qmlclass>
|
||||
<qmlclass name="AllOf" qml-module-name="SortFilterProxyModel" qml-base-type="SortFilterProxyModel::Filter" fullname="SortFilterProxyModel.AllOf" href="qml-sortfilterproxymodel-allof.html" status="active" access="public" documented="true" title="AllOf" fulltitle="AllOf" subtitle="" groups="Filters,FilterContainer" brief="Filter container accepting rows accepted by all its child filters"/>
|
||||
<qmlclass name="ExpressionFilter" qml-module-name="SortFilterProxyModel" qml-base-type="SortFilterProxyModel::Filter" fullname="SortFilterProxyModel.ExpressionFilter" href="qml-sortfilterproxymodel-expressionfilter.html" status="active" access="public" documented="true" title="ExpressionFilter" fulltitle="ExpressionFilter" subtitle="" groups="Filters" brief="Filters row with a custom filtering">
|
||||
<qmlproperty name="expression" fullname="SortFilterProxyModel.ExpressionFilter.expression" href="qml-sortfilterproxymodel-expressionfilter.html#expression-prop" status="active" access="public" documented="true" type="expression" attached="false" writable="true"/>
|
||||
</qmlclass>
|
||||
<qmlclass name="IndexFilter" qml-module-name="SortFilterProxyModel" qml-base-type="SortFilterProxyModel::Filter" fullname="SortFilterProxyModel.IndexFilter" href="qml-sortfilterproxymodel-indexfilter.html" status="active" access="public" documented="true" title="IndexFilter" fulltitle="IndexFilter" subtitle="" groups="Filters" brief="Filters rows based on their source index">
|
||||
<qmlproperty name="minimumIndex" fullname="SortFilterProxyModel.IndexFilter.minimumIndex" href="qml-sortfilterproxymodel-indexfilter.html#minimumIndex-prop" status="active" access="public" documented="true" type="int" attached="false" writable="true"/>
|
||||
<qmlproperty name="maximumIndex" fullname="SortFilterProxyModel.IndexFilter.maximumIndex" href="qml-sortfilterproxymodel-indexfilter.html#maximumIndex-prop" status="active" access="public" documented="true" type="int" attached="false" writable="true"/>
|
||||
</qmlclass>
|
||||
<qmlclass name="Filter" qml-module-name="SortFilterProxyModel" fullname="SortFilterProxyModel.Filter" href="qml-sortfilterproxymodel-filter.html" status="active" access="public" abstract="true" documented="true" title="Filter" fulltitle="Filter" subtitle="" groups="Filters" brief="Base type for the SortFilterProxyModel filters">
|
||||
<qmlproperty name="inverted" fullname="SortFilterProxyModel.Filter.inverted" status="active" access="public" documented="true" type="bool" attached="false" writable="true"/>
|
||||
<qmlproperty name="enabled" fullname="SortFilterProxyModel.Filter.enabled" status="active" access="public" documented="true" type="bool" attached="false" writable="true"/>
|
||||
</qmlclass>
|
||||
<qmlclass name="FilterContainer" qml-module-name="SortFilterProxyModel" fullname="SortFilterProxyModel.FilterContainer" href="qml-sortfilterproxymodel-filtercontainer.html" status="active" access="public" abstract="true" documented="true" title="FilterContainer" fulltitle="FilterContainer" subtitle="" groups="FilterAttached" brief="Abstract interface for types containing Filters">
|
||||
<contents name="types-implementing-this-interface" title="Types implementing this interface:" level="2"/>
|
||||
<qmlproperty name="container" fullname="SortFilterProxyModel.FilterContainer.container" status="active" access="public" documented="true" type="bool" attached="true" writable="true"/>
|
||||
</qmlclass>
|
||||
<qmlclass name="RangeFilter" qml-module-name="SortFilterProxyModel" qml-base-type="SortFilterProxyModel::RoleFilter" fullname="SortFilterProxyModel.RangeFilter" href="qml-sortfilterproxymodel-rangefilter.html" status="active" access="public" documented="true" title="RangeFilter" fulltitle="RangeFilter" subtitle="" groups="Filters" brief="Filters rows between boundary values">
|
||||
<qmlproperty name="minimumValue" fullname="SortFilterProxyModel.RangeFilter.minimumValue" href="qml-sortfilterproxymodel-rangefilter.html#minimumValue-prop" status="active" access="public" documented="true" type="int" attached="false" writable="true"/>
|
||||
<qmlproperty name="minimumInclusive" fullname="SortFilterProxyModel.RangeFilter.minimumInclusive" href="qml-sortfilterproxymodel-rangefilter.html#minimumInclusive-prop" status="active" access="public" documented="true" type="int" attached="false" writable="true"/>
|
||||
<qmlproperty name="maximumValue" fullname="SortFilterProxyModel.RangeFilter.maximumValue" href="qml-sortfilterproxymodel-rangefilter.html#maximumValue-prop" status="active" access="public" documented="true" type="int" attached="false" writable="true"/>
|
||||
<qmlproperty name="maximumInclusive" fullname="SortFilterProxyModel.RangeFilter.maximumInclusive" href="qml-sortfilterproxymodel-rangefilter.html#maximumInclusive-prop" status="active" access="public" documented="true" type="int" attached="false" writable="true"/>
|
||||
</qmlclass>
|
||||
<qmlclass name="SortFilterProxyModel" qml-module-name="SortFilterProxyModel" fullname="SortFilterProxyModel.SortFilterProxyModel" href="qml-sortfilterproxymodel-sortfilterproxymodel.html" status="active" access="public" documented="true" title="SortFilterProxyModel" fulltitle="SortFilterProxyModel" subtitle="" groups="SortFilterProxyModel,FilterContainer,SorterContainer" brief="Filters and sorts data coming from a source QAbstractItemModel">
|
||||
<function name="get" fullname="SortFilterProxyModel.SortFilterProxyModel.get" href="qml-sortfilterproxymodel-sortfilterproxymodel.html#get-method" status="active" access="public" documented="true" meta="qmlmethod"/>
|
||||
<function name="get" fullname="SortFilterProxyModel.SortFilterProxyModel.get" href="qml-sortfilterproxymodel-sortfilterproxymodel.html#get-method" status="active" access="public" documented="true" meta="qmlmethod"/>
|
||||
<function name="mapFromSource" fullname="SortFilterProxyModel.SortFilterProxyModel.mapFromSource" href="qml-sortfilterproxymodel-sortfilterproxymodel.html#mapFromSource-method" status="active" access="public" documented="true" meta="qmlmethod"/>
|
||||
<function name="mapFromSource" fullname="SortFilterProxyModel.SortFilterProxyModel.mapFromSource" href="qml-sortfilterproxymodel-sortfilterproxymodel.html#mapFromSource-method" status="active" access="public" documented="true" meta="qmlmethod"/>
|
||||
<function name="mapToSource" fullname="SortFilterProxyModel.SortFilterProxyModel.mapToSource" href="qml-sortfilterproxymodel-sortfilterproxymodel.html#mapToSource-method" status="active" access="public" documented="true" meta="qmlmethod"/>
|
||||
<function name="mapToSource" fullname="SortFilterProxyModel.SortFilterProxyModel.mapToSource" href="qml-sortfilterproxymodel-sortfilterproxymodel.html#mapToSource-method" status="active" access="public" documented="true" meta="qmlmethod"/>
|
||||
<function name="roleForName" fullname="SortFilterProxyModel.SortFilterProxyModel.roleForName" href="qml-sortfilterproxymodel-sortfilterproxymodel.html#roleForName-method" status="active" access="public" documented="true" meta="qmlmethod"/>
|
||||
<qmlproperty name="count" fullname="SortFilterProxyModel.SortFilterProxyModel.count" href="qml-sortfilterproxymodel-sortfilterproxymodel.html#count-prop" status="active" access="public" documented="true" type="int" attached="false" writable="true"/>
|
||||
<qmlproperty name="proxyRoles" fullname="SortFilterProxyModel.SortFilterProxyModel.proxyRoles" href="qml-sortfilterproxymodel-sortfilterproxymodel.html#proxyRoles-prop" status="active" access="public" documented="true" type="list<ProxyRole>" attached="false" writable="true"/>
|
||||
<qmlproperty name="sourceModel" fullname="SortFilterProxyModel.SortFilterProxyModel.sourceModel" href="qml-sortfilterproxymodel-sortfilterproxymodel.html#sourceModel-prop" status="active" access="public" documented="true" type="QAbstractItemModel*" attached="false" writable="true"/>
|
||||
<qmlproperty name="sorters" fullname="SortFilterProxyModel.SortFilterProxyModel.sorters" href="qml-sortfilterproxymodel-sortfilterproxymodel.html#sorters-prop" status="active" access="public" documented="true" type="list<Sorter>" attached="false" writable="true"/>
|
||||
<qmlproperty name="filters" fullname="SortFilterProxyModel.SortFilterProxyModel.filters" href="qml-sortfilterproxymodel-sortfilterproxymodel.html#filters-prop" status="active" access="public" documented="true" type="list<Filter>" attached="false" writable="true"/>
|
||||
<qmlproperty name="sortRoleName" fullname="SortFilterProxyModel.SortFilterProxyModel.sortRoleName" href="qml-sortfilterproxymodel-sortfilterproxymodel.html#sortRoleName-prop" status="active" access="public" documented="true" type="string" attached="false" writable="true"/>
|
||||
<qmlproperty name="delayed" fullname="SortFilterProxyModel.SortFilterProxyModel.delayed" href="qml-sortfilterproxymodel-sortfilterproxymodel.html#delayed-prop" status="active" access="public" documented="true" type="bool" attached="false" writable="true"/>
|
||||
</qmlclass>
|
||||
<qmlclass name="RegExpFilter" qml-module-name="SortFilterProxyModel" qml-base-type="SortFilterProxyModel::RoleFilter" fullname="SortFilterProxyModel.RegExpFilter" href="qml-sortfilterproxymodel-regexpfilter.html" status="active" access="public" documented="true" title="RegExpFilter" fulltitle="RegExpFilter" subtitle="" groups="Filters" brief="Filters rows matching a regular expression">
|
||||
<qmlproperty name="syntax" fullname="SortFilterProxyModel.RegExpFilter.syntax" href="qml-sortfilterproxymodel-regexpfilter.html#syntax-prop" status="active" access="public" documented="true" type="enum" attached="false" writable="true"/>
|
||||
<qmlproperty name="pattern" fullname="SortFilterProxyModel.RegExpFilter.pattern" href="qml-sortfilterproxymodel-regexpfilter.html#pattern-prop" status="active" access="public" documented="true" type="bool" attached="false" writable="true"/>
|
||||
<qmlproperty name="caseSensitivity" fullname="SortFilterProxyModel.RegExpFilter.caseSensitivity" href="qml-sortfilterproxymodel-regexpfilter.html#caseSensitivity-prop" status="active" access="public" documented="true" type="Qt::CaseSensitivity" attached="false" writable="true"/>
|
||||
</qmlclass>
|
||||
<qmlclass name="ExpressionSorter" qml-module-name="SortFilterProxyModel" qml-base-type="SortFilterProxyModel::Sorter" fullname="SortFilterProxyModel.ExpressionSorter" href="qml-sortfilterproxymodel-expressionsorter.html" status="active" access="public" documented="true" title="ExpressionSorter" fulltitle="ExpressionSorter" subtitle="" groups="Sorters" brief="Sorts row with a custom javascript expression">
|
||||
<qmlproperty name="expression" fullname="SortFilterProxyModel.ExpressionSorter.expression" href="qml-sortfilterproxymodel-expressionsorter.html#expression-prop" status="active" access="public" documented="true" type="expression" attached="false" writable="true"/>
|
||||
</qmlclass>
|
||||
<qmlclass name="FilterSorter" qml-module-name="SortFilterProxyModel" qml-base-type="SortFilterProxyModel::Sorter" fullname="SortFilterProxyModel.FilterSorter" href="qml-sortfilterproxymodel-filtersorter.html" status="active" access="public" documented="true" title="FilterSorter" fulltitle="FilterSorter" subtitle="" groups="Sorters,FilterContainer" brief="Sorts rows based on if they match filters">
|
||||
<qmlproperty name="filters" fullname="SortFilterProxyModel.FilterSorter.filters" href="qml-sortfilterproxymodel-filtersorter.html#filters-prop" status="active" access="public" documented="true" type="list<Filter>" attached="false" writable="true"/>
|
||||
</qmlclass>
|
||||
<qmlclass name="RoleSorter" qml-module-name="SortFilterProxyModel" qml-base-type="SortFilterProxyModel::Sorter" fullname="SortFilterProxyModel.RoleSorter" href="qml-sortfilterproxymodel-rolesorter.html" status="active" access="public" documented="true" title="RoleSorter" fulltitle="RoleSorter" subtitle="" groups="Sorters" brief="Sorts rows based on a source model role">
|
||||
<qmlproperty name="roleName" fullname="SortFilterProxyModel.RoleSorter.roleName" href="qml-sortfilterproxymodel-rolesorter.html#roleName-prop" status="active" access="public" documented="true" type="string" attached="false" writable="true"/>
|
||||
</qmlclass>
|
||||
<qmlclass name="Sorter" qml-module-name="SortFilterProxyModel" fullname="SortFilterProxyModel.Sorter" href="qml-sortfilterproxymodel-sorter.html" status="active" access="public" abstract="true" documented="true" title="Sorter" fulltitle="Sorter" subtitle="" groups="Sorters" brief="Base type for the SortFilterProxyModel sorters">
|
||||
<qmlproperty name="enabled" fullname="SortFilterProxyModel.Sorter.enabled" status="active" access="public" documented="true" type="bool" attached="false" writable="true"/>
|
||||
<qmlproperty name="sortOrder" fullname="SortFilterProxyModel.Sorter.sortOrder" status="active" access="public" documented="true" type="Qt::SortOrder" attached="false" writable="true"/>
|
||||
<qmlproperty name="priority" fullname="SortFilterProxyModel.Sorter.priority" status="active" access="public" documented="true" type="int" attached="false" writable="true"/>
|
||||
</qmlclass>
|
||||
<qmlclass name="SorterContainer" qml-module-name="SortFilterProxyModel" fullname="SortFilterProxyModel.SorterContainer" href="qml-sortfilterproxymodel-sortercontainer.html" status="active" access="public" abstract="true" documented="true" title="SorterContainer" fulltitle="SorterContainer" subtitle="" groups="SorterAttached" brief="Abstract interface for types containing Sorters">
|
||||
<contents name="types-implementing-this-interface" title="Types implementing this interface:" level="2"/>
|
||||
<qmlproperty name="container" fullname="SortFilterProxyModel.SorterContainer.container" status="active" access="public" documented="true" type="bool" attached="true" writable="true"/>
|
||||
</qmlclass>
|
||||
<qmlclass name="tst_builtins" qml-module-name="tst_builtins" href="qml-tst-builtins.html" status="internal" access="private" location="tst_builtins.qml" filepath="D:/coding/MeetupSFPMMap/vendor/SortFilterProxyModel/tests/tst_builtins.qml" lineno="6" title="tst_builtins" fulltitle="tst_builtins" subtitle=""/>
|
||||
<qmlclass name="tst_expressionrole" qml-module-name="tst_expressionrole" href="qml-tst-expressionrole.html" status="internal" access="private" location="tst_expressionrole.qml" filepath="D:/coding/MeetupSFPMMap/vendor/SortFilterProxyModel/tests/tst_expressionrole.qml" lineno="7" title="tst_expressionrole" fulltitle="tst_expressionrole" subtitle="">
|
||||
<qmlproperty name="c" fullname="tst_expressionrole::c" href="qml-tst-expressionrole.html#c-prop" status="internal" access="private" location="tst_expressionrole.qml" filepath="D:/coding/MeetupSFPMMap/vendor/SortFilterProxyModel/tests/tst_expressionrole.qml" lineno="8" type="int" attached="false" writable="true"/>
|
||||
</qmlclass>
|
||||
<qmlclass name="tst_delayed" qml-module-name="tst_delayed" href="qml-tst-delayed.html" status="internal" access="private" location="tst_delayed.qml" filepath="D:/coding/MeetupSFPMMap/vendor/SortFilterProxyModel/tests/tst_delayed.qml" lineno="7" title="tst_delayed" fulltitle="tst_delayed" subtitle=""/>
|
||||
<qmlclass name="StringSorter" qml-module-name="SortFilterProxyModel" qml-base-type="SortFilterProxyModel::RoleSorter" fullname="SortFilterProxyModel.StringSorter" href="qml-sortfilterproxymodel-stringsorter.html" status="active" access="public" documented="true" title="StringSorter" fulltitle="StringSorter" subtitle="" groups="Sorters" brief="Sorts rows based on a source model string role">
|
||||
<qmlproperty name="caseSensitivity" fullname="SortFilterProxyModel.StringSorter.caseSensitivity" href="qml-sortfilterproxymodel-stringsorter.html#caseSensitivity-prop" status="active" access="public" documented="true" type="Qt.CaseSensitivity" attached="false" writable="true"/>
|
||||
<qmlproperty name="ignorePunctation" fullname="SortFilterProxyModel.StringSorter.ignorePunctation" href="qml-sortfilterproxymodel-stringsorter.html#ignorePunctation-prop" status="active" access="public" documented="true" type="bool" attached="false" writable="true"/>
|
||||
<qmlproperty name="locale" fullname="SortFilterProxyModel.StringSorter.locale" href="qml-sortfilterproxymodel-stringsorter.html#locale-prop" status="active" access="public" documented="true" type="Locale" attached="false" writable="true"/>
|
||||
<qmlproperty name="numericMode" fullname="SortFilterProxyModel.StringSorter.numericMode" href="qml-sortfilterproxymodel-stringsorter.html#numericMode-prop" status="active" access="public" documented="true" type="bool" attached="false" writable="true"/>
|
||||
</qmlclass>
|
||||
<qmlclass name="tst_filtercontainerattached" qml-module-name="tst_filtercontainerattached" href="qml-tst-filtercontainerattached.html" status="internal" access="private" location="tst_filtercontainerattached.qml" filepath="D:/coding/MeetupSFPMMap/vendor/SortFilterProxyModel/tests/tst_filtercontainerattached.qml" lineno="7" title="tst_filtercontainerattached" fulltitle="tst_filtercontainerattached" subtitle=""/>
|
||||
<qmlclass name="tst_filtercontainers" qml-module-name="tst_filtercontainers" href="qml-tst-filtercontainers.html" status="internal" access="private" location="tst_filtercontainers.qml" filepath="D:/coding/MeetupSFPMMap/vendor/SortFilterProxyModel/tests/tst_filtercontainers.qml" lineno="6" title="tst_filtercontainers" fulltitle="tst_filtercontainers" subtitle="">
|
||||
<qmlproperty name="filters" fullname="tst_filtercontainers::filters" href="qml-tst-filtercontainers.html#filters-prop" status="internal" access="private" location="tst_filtercontainers.qml" filepath="D:/coding/MeetupSFPMMap/vendor/SortFilterProxyModel/tests/tst_filtercontainers.qml" lineno="7" type="Filter" attached="false" writable="true"/>
|
||||
</qmlclass>
|
||||
<qmlclass name="tst_filterrole" qml-module-name="tst_filterrole" href="qml-tst-filterrole.html" status="internal" access="private" location="tst_filterrole.qml" filepath="D:/coding/MeetupSFPMMap/vendor/SortFilterProxyModel/tests/tst_filterrole.qml" lineno="7" title="tst_filterrole" fulltitle="tst_filterrole" subtitle=""/>
|
||||
<qmlclass name="tst_filtersorter" qml-module-name="tst_filtersorter" href="qml-tst-filtersorter.html" status="internal" access="private" location="tst_filtersorter.qml" filepath="D:/coding/MeetupSFPMMap/vendor/SortFilterProxyModel/tests/tst_filtersorter.qml" lineno="7" title="tst_filtersorter" fulltitle="tst_filtersorter" subtitle=""/>
|
||||
<qmlclass name="tst_helpers" qml-module-name="tst_helpers" href="qml-tst-helpers.html" status="internal" access="private" location="tst_helpers.qml" filepath="D:/coding/MeetupSFPMMap/vendor/SortFilterProxyModel/tests/tst_helpers.qml" lineno="7" title="tst_helpers" fulltitle="tst_helpers" subtitle=""/>
|
||||
<qmlclass name="tst_indexfilter" qml-module-name="tst_indexfilter" href="qml-tst-indexfilter.html" status="internal" access="private" location="tst_indexfilter.qml" filepath="D:/coding/MeetupSFPMMap/vendor/SortFilterProxyModel/tests/tst_indexfilter.qml" lineno="6" title="tst_indexfilter" fulltitle="tst_indexfilter" subtitle="">
|
||||
<qmlproperty name="filters" fullname="tst_indexfilter::filters" href="qml-tst-indexfilter.html#filters-prop" status="internal" access="private" location="tst_indexfilter.qml" filepath="D:/coding/MeetupSFPMMap/vendor/SortFilterProxyModel/tests/tst_indexfilter.qml" lineno="7" type="IndexFilter" attached="false" writable="true"/>
|
||||
</qmlclass>
|
||||
<qmlclass name="tst_joinrole" qml-module-name="tst_joinrole" href="qml-tst-joinrole.html" status="internal" access="private" location="tst_joinrole.qml" filepath="D:/coding/MeetupSFPMMap/vendor/SortFilterProxyModel/tests/tst_joinrole.qml" lineno="7" title="tst_joinrole" fulltitle="tst_joinrole" subtitle=""/>
|
||||
<qmlclass name="tst_proxyroles" qml-module-name="tst_proxyroles" href="qml-tst-proxyroles.html" status="internal" access="private" location="tst_proxyroles.qml" filepath="D:/coding/MeetupSFPMMap/vendor/SortFilterProxyModel/tests/tst_proxyroles.qml" lineno="8" title="tst_proxyroles" fulltitle="tst_proxyroles" subtitle=""/>
|
||||
<qmlclass name="tst_rangefilter" qml-module-name="tst_rangefilter" href="qml-tst-rangefilter.html" status="internal" access="private" location="tst_rangefilter.qml" filepath="D:/coding/MeetupSFPMMap/vendor/SortFilterProxyModel/tests/tst_rangefilter.qml" lineno="6" title="tst_rangefilter" fulltitle="tst_rangefilter" subtitle="">
|
||||
<qmlproperty name="filters" fullname="tst_rangefilter::filters" href="qml-tst-rangefilter.html#filters-prop" status="internal" access="private" location="tst_rangefilter.qml" filepath="D:/coding/MeetupSFPMMap/vendor/SortFilterProxyModel/tests/tst_rangefilter.qml" lineno="7" type="RangeFilter" attached="false" writable="true"/>
|
||||
</qmlclass>
|
||||
<qmlclass name="tst_regexprole" qml-module-name="tst_regexprole" href="qml-tst-regexprole.html" status="internal" access="private" location="tst_regexprole.qml" filepath="D:/coding/MeetupSFPMMap/vendor/SortFilterProxyModel/tests/tst_regexprole.qml" lineno="7" title="tst_regexprole" fulltitle="tst_regexprole" subtitle=""/>
|
||||
<qmlclass name="tst_sorters" qml-module-name="tst_sorters" href="qml-tst-sorters.html" status="internal" access="private" location="tst_sorters.qml" filepath="D:/coding/MeetupSFPMMap/vendor/SortFilterProxyModel/tests/tst_sorters.qml" lineno="7" title="tst_sorters" fulltitle="tst_sorters" subtitle="">
|
||||
<qmlproperty name="tieSorters" fullname="tst_sorters::tieSorters" href="qml-tst-sorters.html#tieSorters-prop" status="internal" access="private" location="tst_sorters.qml" filepath="D:/coding/MeetupSFPMMap/vendor/SortFilterProxyModel/tests/tst_sorters.qml" lineno="72" type="RoleSorter" attached="false" writable="true"/>
|
||||
<qmlproperty name="sorters" fullname="tst_sorters::sorters" href="qml-tst-sorters.html#sorters-prop" status="internal" access="private" location="tst_sorters.qml" filepath="D:/coding/MeetupSFPMMap/vendor/SortFilterProxyModel/tests/tst_sorters.qml" lineno="20" type="QtObject" attached="false" writable="true"/>
|
||||
<qmlproperty name="sortersWithPriority" fullname="tst_sorters::sortersWithPriority" href="qml-tst-sorters.html#sortersWithPriority-prop" status="internal" access="private" location="tst_sorters.qml" filepath="D:/coding/MeetupSFPMMap/vendor/SortFilterProxyModel/tests/tst_sorters.qml" lineno="77" type="RoleSorter" attached="false" writable="true"/>
|
||||
</qmlclass>
|
||||
<qmlclass name="tst_stringsorter" qml-module-name="tst_stringsorter" href="qml-tst-stringsorter.html" status="internal" access="private" location="tst_stringsorter.qml" filepath="D:/coding/MeetupSFPMMap/vendor/SortFilterProxyModel/tests/tst_stringsorter.qml" lineno="6" title="tst_stringsorter" fulltitle="tst_stringsorter" subtitle="">
|
||||
<qmlproperty name="sorters" fullname="tst_stringsorter::sorters" href="qml-tst-stringsorter.html#sorters-prop" status="internal" access="private" location="tst_stringsorter.qml" filepath="D:/coding/MeetupSFPMMap/vendor/SortFilterProxyModel/tests/tst_stringsorter.qml" lineno="7" type="StringSorter" attached="false" writable="true"/>
|
||||
</qmlclass>
|
||||
<qmlclass name="tst_sourceroles" qml-module-name="tst_sourceroles" href="qml-tst-sourceroles.html" status="internal" access="private" location="tst_sourceroles.qml" filepath="D:/coding/MeetupSFPMMap/vendor/SortFilterProxyModel/tests/tst_sourceroles.qml" lineno="6" title="tst_sourceroles" fulltitle="tst_sourceroles" subtitle=""/>
|
||||
<qmlclass name="tst_switchrole" qml-module-name="tst_switchrole" href="qml-tst-switchrole.html" status="internal" access="private" location="tst_switchrole.qml" filepath="D:/coding/MeetupSFPMMap/vendor/SortFilterProxyModel/tests/tst_switchrole.qml" lineno="7" title="tst_switchrole" fulltitle="tst_switchrole" subtitle=""/>
|
||||
<page name="index.html" href="index.html" status="active" location="index.qdoc" filepath="D:/coding/MeetupSFPMMap/vendor/SortFilterProxyModel/index.qdoc" lineno="1" documented="true" subtype="page" title="SortFilterProxyModel QML Module" fulltitle="SortFilterProxyModel QML Module" subtitle="" module="SortFilterProxyModel">
|
||||
<contents name="filters" title="Filters" level="1"/>
|
||||
<contents name="related-attached-types" title="Related attached types" level="2"/>
|
||||
<contents name="sorters" title="Sorters" level="1"/>
|
||||
<contents name="related-attached-types" title="Related attached types" level="2"/>
|
||||
<contents name="proxyroles" title="ProxyRoles" level="1"/>
|
||||
</page>
|
||||
<qmlclass name="RoleFilter" qml-module-name="SortFilterProxyModel" qml-base-type="SortFilterProxyModel::Filter" fullname="SortFilterProxyModel.RoleFilter" href="qml-sortfilterproxymodel-rolefilter.html" status="active" access="public" abstract="true" documented="true" title="RoleFilter" fulltitle="RoleFilter" subtitle="" groups="Filters" brief="Base type for filters based on a source model role">
|
||||
<qmlproperty name="roleName" fullname="SortFilterProxyModel.RoleFilter.roleName" status="active" access="public" documented="true" type="string" attached="false" writable="true"/>
|
||||
</qmlclass>
|
||||
<qmlclass name="ValueFilter" qml-module-name="SortFilterProxyModel" qml-base-type="SortFilterProxyModel::RoleFilter" fullname="SortFilterProxyModel.ValueFilter" href="qml-sortfilterproxymodel-valuefilter.html" status="active" access="public" documented="true" title="ValueFilter" fulltitle="ValueFilter" subtitle="" groups="Filters" brief="Filters rows matching exactly a value">
|
||||
<qmlproperty name="value" fullname="SortFilterProxyModel.ValueFilter.value" href="qml-sortfilterproxymodel-valuefilter.html#value-prop" status="active" access="public" documented="true" type="variant" attached="false" writable="true"/>
|
||||
</qmlclass>
|
||||
<qmlclass name="FilterRole" qml-module-name="SortFilterProxyModel" qml-base-type="SortFilterProxyModel::SingleRole" fullname="SortFilterProxyModel.FilterRole" href="qml-sortfilterproxymodel-filterrole.html" status="active" access="public" documented="true" title="FilterRole" fulltitle="FilterRole" subtitle="" groups="ProxyRoles,FilterContainer" brief="A role resolving to true for rows matching all its filters">
|
||||
<qmlproperty name="filters" fullname="SortFilterProxyModel.FilterRole.filters" href="qml-sortfilterproxymodel-filterrole.html#filters-prop" status="active" access="public" documented="true" type="list<Filter>" attached="false" writable="true"/>
|
||||
</qmlclass>
|
||||
<qmlclass name="ExpressionRole" qml-module-name="SortFilterProxyModel" qml-base-type="SortFilterProxyModel::SingleRole" fullname="SortFilterProxyModel.ExpressionRole" href="qml-sortfilterproxymodel-expressionrole.html" status="active" access="public" documented="true" title="ExpressionRole" fulltitle="ExpressionRole" subtitle="" groups="ProxyRoles" brief="A custom role computed from a javascript expression">
|
||||
<qmlproperty name="expression" fullname="SortFilterProxyModel.ExpressionRole.expression" href="qml-sortfilterproxymodel-expressionrole.html#expression-prop" status="active" access="public" documented="true" type="expression" attached="false" writable="true"/>
|
||||
</qmlclass>
|
||||
<qmlclass name="ProxyRole" qml-module-name="SortFilterProxyModel" fullname="SortFilterProxyModel.ProxyRole" href="qml-sortfilterproxymodel-proxyrole.html" status="active" access="public" documented="true" title="ProxyRole" fulltitle="ProxyRole" subtitle="" groups="ProxyRoles" brief="Base type for the SortFilterProxyModel proxy roles"/>
|
||||
<qmlclass name="JoinRole" qml-module-name="SortFilterProxyModel" qml-base-type="SortFilterProxyModel::SingleRole" fullname="SortFilterProxyModel.JoinRole" href="qml-sortfilterproxymodel-joinrole.html" status="active" access="public" documented="true" title="JoinRole" fulltitle="JoinRole" subtitle="" groups="ProxyRoles" brief="Role made from concatenating other roles">
|
||||
<qmlproperty name="roleNames" fullname="SortFilterProxyModel.JoinRole.roleNames" href="qml-sortfilterproxymodel-joinrole.html#roleNames-prop" status="active" access="public" documented="true" type="list<string>" attached="false" writable="true"/>
|
||||
<qmlproperty name="separator" fullname="SortFilterProxyModel.JoinRole.separator" href="qml-sortfilterproxymodel-joinrole.html#separator-prop" status="active" access="public" documented="true" type="string" attached="false" writable="true"/>
|
||||
</qmlclass>
|
||||
<qmlclass name="tst_sortercontainerattached" qml-module-name="tst_sortercontainerattached" href="qml-tst-sortercontainerattached.html" status="internal" access="private" location="tst_sortercontainerattached.qml" filepath="D:/coding/MeetupSFPMMap/vendor/SortFilterProxyModel/tests/tst_sortercontainerattached.qml" lineno="7" title="tst_sortercontainerattached" fulltitle="tst_sortercontainerattached" subtitle=""/>
|
||||
<qmlclass name="SingleRole" qml-module-name="SortFilterProxyModel" qml-base-type="SortFilterProxyModel::ProxyRole" fullname="SortFilterProxyModel.SingleRole" href="qml-sortfilterproxymodel-singlerole.html" status="active" access="public" abstract="true" documented="true" title="SingleRole" fulltitle="SingleRole" subtitle="" groups="ProxyRoles" brief="Base type for the SortFilterProxyModel proxy roles defining a single role">
|
||||
<qmlproperty name="name" fullname="SortFilterProxyModel.SingleRole.name" status="active" access="public" documented="true" type="string" attached="false" writable="true"/>
|
||||
</qmlclass>
|
||||
<qmlclass name="RegExpRole" qml-module-name="SortFilterProxyModel" qml-base-type="SortFilterProxyModel::ProxyRole" fullname="SortFilterProxyModel.RegExpRole" href="qml-sortfilterproxymodel-regexprole.html" status="active" access="public" documented="true" title="RegExpRole" fulltitle="RegExpRole" subtitle="" groups="ProxyRoles" brief="A ProxyRole extracting data from a source role via a regular expression">
|
||||
<qmlproperty name="roleName" fullname="SortFilterProxyModel.RegExpRole.roleName" href="qml-sortfilterproxymodel-regexprole.html#roleName-prop" status="active" access="public" documented="true" type="QString" attached="false" writable="true"/>
|
||||
<qmlproperty name="pattern" fullname="SortFilterProxyModel.RegExpRole.pattern" href="qml-sortfilterproxymodel-regexprole.html#pattern-prop" status="active" access="public" documented="true" type="QString" attached="false" writable="true"/>
|
||||
<qmlproperty name="caseSensitivity" fullname="SortFilterProxyModel.RegExpRole.caseSensitivity" href="qml-sortfilterproxymodel-regexprole.html#caseSensitivity-prop" status="active" access="public" documented="true" type="Qt::CaseSensitivity" attached="false" writable="true"/>
|
||||
</qmlclass>
|
||||
<qmlclass name="tst_rolesorter" qml-module-name="tst_rolesorter" href="qml-tst-rolesorter.html" status="internal" access="private" location="tst_rolesorter.qml" filepath="D:/coding/MeetupSFPMMap/vendor/SortFilterProxyModel/tests/tst_rolesorter.qml" lineno="6" title="tst_rolesorter" fulltitle="tst_rolesorter" subtitle="">
|
||||
<qmlproperty name="sorters" fullname="tst_rolesorter::sorters" href="qml-tst-rolesorter.html#sorters-prop" status="internal" access="private" location="tst_rolesorter.qml" filepath="D:/coding/MeetupSFPMMap/vendor/SortFilterProxyModel/tests/tst_rolesorter.qml" lineno="7" type="RoleSorter" attached="false" writable="true"/>
|
||||
</qmlclass>
|
||||
<group name="FilterAttached" href="filterattached.html" status="internal" seen="false" title="" members="FilterContainer"/>
|
||||
<group name="FilterContainer" href="filtercontainer.html" status="internal" seen="false" title="" members="AllOf,AnyOf,FilterRole,SwitchRole,SortFilterProxyModel,FilterSorter"/>
|
||||
<group name="Filters" href="filters.html" status="internal" seen="false" title="" members="AllOf,AnyOf,ExpressionFilter,Filter,IndexFilter,RangeFilter,RegExpFilter,RoleFilter,ValueFilter"/>
|
||||
<group name="ProxyRoles" href="proxyroles.html" status="internal" seen="false" title="" members="ExpressionRole,FilterRole,JoinRole,ProxyRole,RegExpRole,SingleRole,SwitchRole"/>
|
||||
<group name="SortFilterProxyModel" href="sortfilterproxymodel.html" status="internal" seen="false" title="" members="SortFilterProxyModel"/>
|
||||
<group name="SorterAttached" href="sorterattached.html" status="internal" seen="false" title="" members="SorterContainer"/>
|
||||
<group name="SorterContainer" href="sortercontainer.html" status="internal" seen="false" title="" members="SortFilterProxyModel"/>
|
||||
<group name="Sorters" href="sorters.html" status="internal" seen="false" title="" members="ExpressionSorter,FilterSorter,RoleSorter,Sorter,StringSorter"/>
|
||||
<qmlmodule name="SortFilterProxyModel" qml-module-name="SortFilterProxyModel" qml-module-version="." href="sortfilterproxymodel-qmlmodule.html" status="active" location="index.qdoc" filepath="D:/coding/MeetupSFPMMap/vendor/SortFilterProxyModel/index.qdoc" lineno="25" documented="true" seen="true" title="" module="SortFilterProxyModel" members="AllOf,AnyOf,ExpressionFilter,Filter,FilterContainer,IndexFilter,RangeFilter,RegExpFilter,RoleFilter,ValueFilter,ExpressionRole,FilterRole,JoinRole,ProxyRole,RegExpRole,SingleRole,SwitchRole,SortFilterProxyModel,ExpressionSorter,FilterSorter,RoleSorter,Sorter,SorterContainer,StringSorter"/>
|
||||
</namespace>
|
||||
</INDEX>
|
|
@ -1,805 +0,0 @@
|
|||
body {
|
||||
font: normal 400 14px/1.2 Arial;
|
||||
margin-top: 85px;
|
||||
font-family: Arial, Helvetica;
|
||||
text-align: left;
|
||||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
p {
|
||||
line-height: 20px
|
||||
}
|
||||
|
||||
img {
|
||||
margin-left: 0px;
|
||||
max-width: 800px;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.content .border img {
|
||||
box-shadow:3px 3px 8px 3px rgba(200,200,200,0.5)
|
||||
}
|
||||
|
||||
.content .border .player {
|
||||
box-shadow:3px 3px 8px 3px rgba(200,200,200,0.5)
|
||||
}
|
||||
|
||||
.content .indexboxcont li {
|
||||
font: normal bold 13px/1 Verdana
|
||||
}
|
||||
|
||||
.content .normallist li {
|
||||
font: normal 13px/1 Verdana
|
||||
}
|
||||
|
||||
.descr {
|
||||
margin-top: 35px;
|
||||
margin-bottom: 45px;
|
||||
margin-left: 5px;
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.name {
|
||||
max-width: 75%;
|
||||
font-weight: 100;
|
||||
}
|
||||
|
||||
tt {
|
||||
text-align: left
|
||||
}
|
||||
|
||||
/*
|
||||
-----------
|
||||
links
|
||||
-----------
|
||||
*/
|
||||
|
||||
a:link {
|
||||
color: #007330;
|
||||
text-decoration: none;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
a.qa-mark:target:before {
|
||||
content: "***";
|
||||
color: #ff0000;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #44a51c;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
a:visited {
|
||||
color: #007330;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
a:visited:hover {
|
||||
color: #44a51c;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
/*
|
||||
-----------
|
||||
offline viewing: HTML links display an icon
|
||||
-----------
|
||||
*/
|
||||
|
||||
a[href*="http://"], a[href*="ftp://"], a[href*="https://"] {
|
||||
text-decoration: none;
|
||||
background-image: url(../images/ico_out.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: left;
|
||||
padding-left: 20px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.flags {
|
||||
text-decoration: none;
|
||||
text-height: 24px;
|
||||
}
|
||||
|
||||
.flags:target {
|
||||
background-color: #FFFFD6;
|
||||
}
|
||||
|
||||
/*
|
||||
-------------------------------
|
||||
NOTE styles
|
||||
-------------------------------
|
||||
*/
|
||||
|
||||
.notetitle, .tiptitle, .fastpathtitle {
|
||||
font-weight: bold
|
||||
}
|
||||
|
||||
.attentiontitle, .cautiontitle, .dangertitle, .importanttitle, .remembertitle, .restrictiontitle {
|
||||
font-weight: bold
|
||||
}
|
||||
|
||||
.note, .tip, .fastpath {
|
||||
background: #F2F2F2 url(../images/ico_note.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: top left;
|
||||
padding: 5px;
|
||||
padding-left: 40px;
|
||||
padding-bottom: 10px;
|
||||
border: #999 1px dotted;
|
||||
color: #666666;
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
.attention, .caution, .danger, .important, .remember, .restriction {
|
||||
background: #F2F2F2 url(../images/ico_note_attention.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: top left;
|
||||
padding: 5px;
|
||||
padding-left: 40px;
|
||||
padding-bottom: 10px;
|
||||
border: #999 1px dotted;
|
||||
color: #666666;
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
/*
|
||||
-------------------------------
|
||||
Top navigation
|
||||
-------------------------------
|
||||
*/
|
||||
|
||||
.qtref {
|
||||
display: block;
|
||||
position: relative;
|
||||
height: 15px;
|
||||
z-index: 1;
|
||||
font-size: 11px;
|
||||
padding-right: 10px;
|
||||
float: right;
|
||||
}
|
||||
|
||||
.naviNextPrevious {
|
||||
clear: both;
|
||||
display: block;
|
||||
position: relative;
|
||||
text-align: right;
|
||||
top: -47px;
|
||||
float: right;
|
||||
height: 20px;
|
||||
z-index: 1;
|
||||
padding-right: 10px;
|
||||
padding-top: 2px;
|
||||
vertical-align: top;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
.naviNextPrevious > a:first-child {
|
||||
background-image: url(../images/btn_prev.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: left;
|
||||
padding-left: 20px;
|
||||
height: 20px;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
.naviNextPrevious > a:last-child {
|
||||
background-image: url(../images/btn_next.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: right;
|
||||
padding-right: 20px;
|
||||
height: 20px;
|
||||
margin-left: 30px;
|
||||
}
|
||||
|
||||
.naviSeparator { display: none }
|
||||
/*
|
||||
-----------
|
||||
footer and license
|
||||
-----------
|
||||
*/
|
||||
|
||||
.footer {
|
||||
text-align: left;
|
||||
padding-top: 45px;
|
||||
padding-left: 5px;
|
||||
margin-top: 45px;
|
||||
margin-bottom: 45px;
|
||||
font-size: 10px;
|
||||
border-top: 1px solid #999;
|
||||
}
|
||||
|
||||
.footer p {
|
||||
line-height: 14px;
|
||||
font-size: 11px;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.footer a[href*="http://"], a[href*="ftp://"], a[href*="https://"] {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.footerNavi {
|
||||
width: auto;
|
||||
text-align: right;
|
||||
margin-top: 50px;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.navigationbar {
|
||||
display: block;
|
||||
position: relative;
|
||||
top: -20px;
|
||||
border-top: 1px solid #cecece;
|
||||
border-bottom: 1px solid #cecece;
|
||||
background-color: #F2F2F2;
|
||||
z-index: 1;
|
||||
height: 20px;
|
||||
padding-left: 7px;
|
||||
margin: 0px;
|
||||
padding-top: 2px;
|
||||
margin-left: -5px;
|
||||
margin-right: -5px;
|
||||
}
|
||||
|
||||
.navigationbar .first {
|
||||
background: url(../images/home.png);
|
||||
background-position: left;
|
||||
background-repeat: no-repeat;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
.navigationbar ul {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
.navigationbar ul li {
|
||||
list-style-type: none;
|
||||
padding-top: 2px;
|
||||
padding-left: 4px;
|
||||
margin: 0;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.navigationbar li {
|
||||
float: left
|
||||
}
|
||||
|
||||
.navigationbar li a, .navigationbar td a {
|
||||
display: block;
|
||||
text-decoration: none;
|
||||
background: url(../images/arrow_bc.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: right;
|
||||
padding-right: 17px;
|
||||
}
|
||||
|
||||
table.buildversion {
|
||||
float: right;
|
||||
margin-top: -18px !important;
|
||||
}
|
||||
|
||||
.navigationbar table {
|
||||
border-radius: 0;
|
||||
border: 0 none;
|
||||
background-color: #F2F2F2;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.navigationbar table td {
|
||||
padding: 0;
|
||||
border: 0 none;
|
||||
}
|
||||
|
||||
#buildversion {
|
||||
font-style: italic;
|
||||
font-size: small;
|
||||
float: right;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
/* table of content
|
||||
no display
|
||||
*/
|
||||
|
||||
/*
|
||||
-----------
|
||||
headers
|
||||
-----------
|
||||
*/
|
||||
|
||||
@media screen {
|
||||
.title {
|
||||
color: #313131;
|
||||
font-size: 24px;
|
||||
font-weight: normal;
|
||||
left: 0;
|
||||
padding-bottom: 20px;
|
||||
padding-left: 10px;
|
||||
padding-top: 20px;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
background-color: #E6E6E6;
|
||||
border-bottom: 1px #CCC solid;
|
||||
border-top: 2px #CCC solid;
|
||||
font-weight: bold;
|
||||
margin-left: 0px;
|
||||
margin-right: 0px;
|
||||
}
|
||||
.subtitle, .small-subtitle {
|
||||
display: block;
|
||||
clear: left;
|
||||
}
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 0
|
||||
}
|
||||
|
||||
h2, p.h2 {
|
||||
font: 500 16px/1.2 Arial;
|
||||
font-weight: 100;
|
||||
background-color: #F2F3F4;
|
||||
padding: 4px;
|
||||
margin-bottom: 30px;
|
||||
margin-top: 30px;
|
||||
border-top: #E0E0DE 1px solid;
|
||||
border-bottom: #E0E0DE 1px solid;
|
||||
max-width: 99%;
|
||||
}
|
||||
|
||||
h2:target {
|
||||
background-color: #F2F3D4;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font: 500 14px/1.2 Arial;
|
||||
font-weight: 100;
|
||||
text-decoration: underline;
|
||||
margin-bottom: 30px;
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
h3.fn, span.fn {
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: #E6E6E6;
|
||||
-moz-border-radius: 7px 7px 7px 7px;
|
||||
-webkit-border-radius: 7px 7px 7px 7px;
|
||||
border-radius: 7px 7px 7px 7px;
|
||||
background-color: #F6F6F6;
|
||||
word-spacing: 3px;
|
||||
padding: 5px 5px;
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
max-width: 75%;
|
||||
font-size: 14px;
|
||||
margin: 0px;
|
||||
margin-top: 45px;
|
||||
}
|
||||
.fngroup h3.fngroupitem {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
h3.fn code {
|
||||
float: right;
|
||||
}
|
||||
h3.fn:target {
|
||||
background-color: #F6F6D6;
|
||||
}
|
||||
|
||||
.name {
|
||||
color: #1A1A1A
|
||||
}
|
||||
|
||||
.type {
|
||||
color: #808080
|
||||
}
|
||||
|
||||
@media print {
|
||||
.title {
|
||||
color: #0066CB;
|
||||
font-family: Arial, Helvetica;
|
||||
font-size: 32px;
|
||||
font-weight: normal;
|
||||
left: 0;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
-----------------
|
||||
table styles
|
||||
-----------------
|
||||
*/
|
||||
|
||||
.table img {
|
||||
border: none;
|
||||
margin-left: 0px;
|
||||
-moz-box-shadow: 0px 0px 0px #fff;
|
||||
-webkit-box-shadow: 0px 0px 0px #fff;
|
||||
box-shadow: 0px 0px 0px #fff;
|
||||
}
|
||||
|
||||
/* table with border alternative colours*/
|
||||
|
||||
table, pre, .LegaleseLeft {
|
||||
-moz-border-radius: 7px 7px 7px 7px;
|
||||
-webkit-border-radius: 7px 7px 7px 7px;
|
||||
border-radius: 7px 7px 7px 7px;
|
||||
background-color: #F6F6F6;
|
||||
border: 1px solid #E6E6E6;
|
||||
border-collapse: separate;
|
||||
margin-bottom: 25px;
|
||||
margin-left: 15px;
|
||||
font-size: 12px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
table tr.even {
|
||||
background-color: white;
|
||||
color: #66666E;
|
||||
}
|
||||
|
||||
table tr.odd {
|
||||
background-color: #F6F6F6;
|
||||
color: #66666E;
|
||||
}
|
||||
|
||||
table tr:target {
|
||||
background-color: #F6F6D6;
|
||||
}
|
||||
|
||||
table thead {
|
||||
text-align: left;
|
||||
padding-left: 20px;
|
||||
background-color: #e1e0e0;
|
||||
border-left: none;
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
table thead th {
|
||||
padding-top: 5px;
|
||||
padding-left: 10px;
|
||||
padding-bottom: 5px;
|
||||
border-bottom: 2px solid #D1D1D1;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
table th {
|
||||
text-align: left;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
table td {
|
||||
padding: 3px 15px 3px 20px;
|
||||
border-bottom: #CCC dotted 1px;
|
||||
}
|
||||
|
||||
table p {
|
||||
margin: 0px
|
||||
}
|
||||
|
||||
.LegaleseLeft {
|
||||
font-family: monospace;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
/* table bodless & white*/
|
||||
|
||||
.borderless {
|
||||
border-radius: 0px 0px 0px 0px;
|
||||
background-color: #fff;
|
||||
border: 1px solid #fff;
|
||||
}
|
||||
|
||||
.borderless tr {
|
||||
background-color: #FFF;
|
||||
color: #66666E;
|
||||
}
|
||||
|
||||
.borderless td {
|
||||
border: none;
|
||||
border-bottom: #fff dotted 1px;
|
||||
}
|
||||
|
||||
/*
|
||||
-----------
|
||||
List
|
||||
-----------
|
||||
*/
|
||||
|
||||
ul {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
li {
|
||||
margin-bottom: 10px;
|
||||
padding-left: 8px;
|
||||
list-style: outside;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
ul > li {
|
||||
list-style-type: square;
|
||||
}
|
||||
|
||||
ol {
|
||||
margin: 10px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
ol.A > li {
|
||||
list-style-type: upper-alpha;
|
||||
}
|
||||
|
||||
ol.a > li{
|
||||
list-style-type: lower-alpha;
|
||||
}
|
||||
|
||||
ol > li {
|
||||
margin-left: 30px;
|
||||
padding-left: 8px;
|
||||
list-style: decimal;
|
||||
}
|
||||
|
||||
.centerAlign {
|
||||
text-align: left
|
||||
}
|
||||
|
||||
.cpp, .LegaleseLeft {
|
||||
display: block;
|
||||
margin: 10px;
|
||||
overflow: auto;
|
||||
padding: 20px 20px 20px 20px;
|
||||
}
|
||||
|
||||
.js {
|
||||
display: block;
|
||||
margin: 10px;
|
||||
overflow: auto;
|
||||
padding: 20px 20px 20px 20px;
|
||||
}
|
||||
|
||||
.memItemLeft {
|
||||
padding-right: 3px
|
||||
}
|
||||
|
||||
.memItemRight {
|
||||
padding: 3px 15px 3px 0
|
||||
}
|
||||
|
||||
.qml {
|
||||
display: block;
|
||||
margin: 10px;
|
||||
overflow: auto;
|
||||
padding: 20px 20px 20px 20px;
|
||||
}
|
||||
|
||||
.qmldefault {
|
||||
padding-left: 5px;
|
||||
float: right;
|
||||
color: red;
|
||||
}
|
||||
|
||||
.qmlreadonly {
|
||||
padding-left: 5px;
|
||||
float: right;
|
||||
color: #254117;
|
||||
}
|
||||
|
||||
.rightAlign {
|
||||
padding: 3px 5px 3px 10px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.qmldoc {
|
||||
margin-left: 15px
|
||||
}
|
||||
|
||||
.flowList {
|
||||
padding: 25px
|
||||
}
|
||||
.flowList dd {
|
||||
display: inline-block;
|
||||
margin-left: 10px;
|
||||
width: 255px;
|
||||
line-height: 1.15em;
|
||||
overflow-x: hidden;
|
||||
text-overflow: ellipsis
|
||||
}
|
||||
.alphaChar {
|
||||
font-size: 2em;
|
||||
position: relative
|
||||
}
|
||||
/*
|
||||
-----------
|
||||
Content table
|
||||
-----------
|
||||
*/
|
||||
|
||||
@media print {
|
||||
.toc {
|
||||
float: right;
|
||||
clear: right;
|
||||
padding-bottom: 10px;
|
||||
padding-top: 50px;
|
||||
width: 100%;
|
||||
background-image: url(../images/bgrContent.png);
|
||||
background-position: top;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen {
|
||||
.toc {
|
||||
float: right;
|
||||
clear: right;
|
||||
vertical-align: top;
|
||||
-moz-border-radius: 7px 7px 7px 7px;
|
||||
-webkit-border-radius: 7px 7px 7px 7px;
|
||||
border-radius: 7px 7px 7px 7px;
|
||||
background: #FFF url('../images/bgrContent.png');
|
||||
background-position: top;
|
||||
background-repeat: repeat-x;
|
||||
border: 1px solid #E6E6E6;
|
||||
padding-left: 5px;
|
||||
padding-bottom: 10px;
|
||||
height: auto;
|
||||
width: 200px;
|
||||
text-align: left;
|
||||
margin-left: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.toc h3 {
|
||||
text-decoration: none
|
||||
}
|
||||
|
||||
.toc h3 {
|
||||
font: 500 14px/1.2 Arial;
|
||||
font-weight: 100;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
padding-top: 5px;
|
||||
padding-left: 5px;
|
||||
}
|
||||
|
||||
.toc ul {
|
||||
padding-left: 10px;
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
.toc ul li {
|
||||
margin-left: 15px;
|
||||
list-style-image: url(../images/bullet_dn.png);
|
||||
marker-offset: 0px;
|
||||
margin-bottom: 8px;
|
||||
padding-left: 0px;
|
||||
}
|
||||
|
||||
.toc .level1 {
|
||||
border: none
|
||||
}
|
||||
|
||||
.toc .level2 {
|
||||
border: none;
|
||||
margin-left: 25px;
|
||||
}
|
||||
|
||||
.level3 {
|
||||
border: none;
|
||||
margin-left: 30px;
|
||||
}
|
||||
|
||||
.clearfix {
|
||||
clear: both
|
||||
}
|
||||
|
||||
/*
|
||||
-----------
|
||||
Landing page
|
||||
-----------
|
||||
*/
|
||||
|
||||
.col-group {
|
||||
white-space: nowrap;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
|
||||
.landing h2 {
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
margin-bottom: 0px;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.landing a, .landing li {
|
||||
font-size: 13px;
|
||||
font-weight: bold !important;
|
||||
}
|
||||
|
||||
.col-1 {
|
||||
display: inline-block;
|
||||
white-space: normal;
|
||||
width: 70%;
|
||||
height: 100%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.col-2 {
|
||||
display: inline-block;
|
||||
white-space: normal;
|
||||
width: 20%;
|
||||
margin-left: 5%;
|
||||
position: relative;
|
||||
top: -20px;
|
||||
}
|
||||
|
||||
.col-1 h1 {
|
||||
margin: 20px 0 0 0;
|
||||
}
|
||||
|
||||
.col-1 h2 {
|
||||
font-size: 18px;
|
||||
font-weight: bold !important;
|
||||
}
|
||||
|
||||
.landingicons {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.icons1of3 {
|
||||
display: inline-block;
|
||||
width: 33.3333%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.icons1of3 h2, .doc-column h2 {
|
||||
font-size: 15px;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
div.multi-column {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
div.multi-column div {
|
||||
display: -moz-inline-box;
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
margin-top: 1em;
|
||||
margin-right: 4em;
|
||||
width: 24em;
|
||||
}
|
||||
|
||||
.mainContent .video {
|
||||
width:40%;
|
||||
max-width:640px;
|
||||
margin: 15px 0 0 15px;
|
||||
position:relative;
|
||||
display:table
|
||||
}
|
||||
|
||||
.mainContent .video > .vspan {
|
||||
padding-top:60%;
|
||||
display:block
|
||||
}
|
||||
.mainContent .video iframe {
|
||||
width:100%;
|
||||
height:100%;
|
||||
position:absolute;
|
||||
top:0;
|
||||
left:0
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
#include "alloffilter.h"
|
||||
|
||||
namespace qqsfpm {
|
||||
|
||||
/*!
|
||||
\qmltype AllOf
|
||||
\inherits Filter
|
||||
\inqmlmodule SortFilterProxyModel
|
||||
\ingroup Filters
|
||||
\ingroup FilterContainer
|
||||
\brief Filter container accepting rows accepted by all its child filters.
|
||||
|
||||
The AllOf type is a \l Filter container that accepts rows if all of its contained (and enabled) filters accept them, or if it has no filter.
|
||||
|
||||
Using it as a top level filter has the same effect as putting all its child filters as top level filters. It can however be usefull to use an AllOf filter when nested in an AnyOf filter.
|
||||
\sa FilterContainer
|
||||
*/
|
||||
bool AllOfFilter::filterRow(const QModelIndex& sourceIndex, const QQmlSortFilterProxyModel& proxyModel) const
|
||||
{
|
||||
//return true if all filters return false, or if there is no filter.
|
||||
return std::all_of(m_filters.begin(), m_filters.end(),
|
||||
[&sourceIndex, &proxyModel] (Filter* filter) {
|
||||
return filter->filterAcceptsRow(sourceIndex, proxyModel);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
#ifndef ALLOFFILTER_H
|
||||
#define ALLOFFILTER_H
|
||||
|
||||
#include "filtercontainerfilter.h"
|
||||
|
||||
namespace qqsfpm {
|
||||
|
||||
class AllOfFilter : public FilterContainerFilter {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
using FilterContainerFilter::FilterContainerFilter;
|
||||
|
||||
protected:
|
||||
bool filterRow(const QModelIndex& sourceIndex, const QQmlSortFilterProxyModel& proxyModel) const override;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // ALLOFFILTER_H
|
|
@ -1,49 +0,0 @@
|
|||
#include "anyoffilter.h"
|
||||
|
||||
namespace qqsfpm {
|
||||
|
||||
/*!
|
||||
\qmltype AnyOf
|
||||
\inherits Filter
|
||||
\inqmlmodule SortFilterProxyModel
|
||||
\ingroup Filters
|
||||
\ingroup FilterContainer
|
||||
\brief Filter container accepting rows accepted by at least one of its child filters.
|
||||
|
||||
The AnyOf type is a \l Filter container that accepts rows if any of its contained (and enabled) filters accept them.
|
||||
|
||||
In the following example, only the rows where the \c firstName role or the \c lastName role match the text entered in the \c nameTextField will be accepted :
|
||||
\code
|
||||
TextField {
|
||||
id: nameTextField
|
||||
}
|
||||
|
||||
SortFilterProxyModel {
|
||||
sourceModel: contactModel
|
||||
filters: AnyOf {
|
||||
RegExpFilter {
|
||||
roleName: "lastName"
|
||||
pattern: nameTextField.text
|
||||
caseSensitivity: Qt.CaseInsensitive
|
||||
}
|
||||
RegExpFilter {
|
||||
roleName: "firstName"
|
||||
pattern: nameTextField.text
|
||||
caseSensitivity: Qt.CaseInsensitive
|
||||
}
|
||||
}
|
||||
}
|
||||
\endcode
|
||||
\sa FilterContainer
|
||||
*/
|
||||
bool AnyOfFilter::filterRow(const QModelIndex& sourceIndex, const QQmlSortFilterProxyModel& proxyModel) const
|
||||
{
|
||||
//return true if any of the enabled filters return true
|
||||
return std::any_of(m_filters.begin(), m_filters.end(),
|
||||
[&sourceIndex, &proxyModel] (Filter* filter) {
|
||||
return filter->enabled() && filter->filterAcceptsRow(sourceIndex, proxyModel);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
#ifndef ANYOFFILTER_H
|
||||
#define ANYOFFILTER_H
|
||||
|
||||
#include "filtercontainerfilter.h"
|
||||
|
||||
namespace qqsfpm {
|
||||
|
||||
class AnyOfFilter : public FilterContainerFilter {
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
using FilterContainerFilter::FilterContainerFilter;
|
||||
|
||||
protected:
|
||||
bool filterRow(const QModelIndex& sourceIndex, const QQmlSortFilterProxyModel& proxyModel) const override;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // ANYOFFILTER_H
|
|
@ -1,125 +0,0 @@
|
|||
#include "expressionfilter.h"
|
||||
#include "qqmlsortfilterproxymodel.h"
|
||||
#include <QtQml>
|
||||
|
||||
namespace qqsfpm {
|
||||
|
||||
/*!
|
||||
\qmltype ExpressionFilter
|
||||
\inherits Filter
|
||||
\inqmlmodule SortFilterProxyModel
|
||||
\ingroup Filters
|
||||
\brief Filters row with a custom filtering.
|
||||
|
||||
An ExpressionFilter is a \l Filter allowing to implement custom filtering based on a javascript expression.
|
||||
*/
|
||||
|
||||
/*!
|
||||
\qmlproperty expression ExpressionFilter::expression
|
||||
|
||||
An expression to implement custom filtering, it must evaluate to a boolean.
|
||||
It has the same syntax has a \l {http://doc.qt.io/qt-5/qtqml-syntax-propertybinding.html} {Property Binding} except it will be evaluated for each of the source model's rows.
|
||||
Rows that have their expression evaluating to \c true will be accepted by the model.
|
||||
Data for each row is exposed like for a delegate of a QML View.
|
||||
|
||||
This expression is reevaluated for a row every time its model data changes.
|
||||
When an external property (not \c index or in \c model) the expression depends on changes, the expression is reevaluated for every row of the source model.
|
||||
To capture the properties the expression depends on, the expression is first executed with invalid data and each property access is detected by the QML engine.
|
||||
This means that if a property is not accessed because of a conditional, it won't be captured and the expression won't be reevaluted when this property changes.
|
||||
|
||||
A workaround to this problem is to access all the properties the expressions depends unconditionally at the beggining of the expression.
|
||||
*/
|
||||
const QQmlScriptString& ExpressionFilter::expression() const
|
||||
{
|
||||
return m_scriptString;
|
||||
}
|
||||
|
||||
void ExpressionFilter::setExpression(const QQmlScriptString& scriptString)
|
||||
{
|
||||
if (m_scriptString == scriptString)
|
||||
return;
|
||||
|
||||
m_scriptString = scriptString;
|
||||
updateExpression();
|
||||
|
||||
Q_EMIT expressionChanged();
|
||||
invalidate();
|
||||
}
|
||||
|
||||
void ExpressionFilter::proxyModelCompleted(const QQmlSortFilterProxyModel& proxyModel)
|
||||
{
|
||||
updateContext(proxyModel);
|
||||
}
|
||||
|
||||
bool ExpressionFilter::filterRow(const QModelIndex& sourceIndex, const QQmlSortFilterProxyModel& proxyModel) const
|
||||
{
|
||||
if (!m_scriptString.isEmpty()) {
|
||||
QVariantMap modelMap;
|
||||
QHash<int, QByteArray> roles = proxyModel.roleNames();
|
||||
|
||||
QQmlContext context(qmlContext(this));
|
||||
auto addToContext = [&] (const QString &name, const QVariant& value) {
|
||||
context.setContextProperty(name, value);
|
||||
modelMap.insert(name, value);
|
||||
};
|
||||
|
||||
for (auto it = roles.cbegin(); it != roles.cend(); ++it)
|
||||
addToContext(it.value(), proxyModel.sourceData(sourceIndex, it.key()));
|
||||
addToContext("index", sourceIndex.row());
|
||||
|
||||
context.setContextProperty("model", modelMap);
|
||||
|
||||
QQmlExpression expression(m_scriptString, &context);
|
||||
QVariant variantResult = expression.evaluate();
|
||||
|
||||
if (expression.hasError()) {
|
||||
qWarning() << expression.error();
|
||||
return true;
|
||||
}
|
||||
if (variantResult.canConvert<bool>()) {
|
||||
return variantResult.toBool();
|
||||
} else {
|
||||
qWarning("%s:%i:%i : Can't convert result to bool",
|
||||
expression.sourceFile().toUtf8().data(),
|
||||
expression.lineNumber(),
|
||||
expression.columnNumber());
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void ExpressionFilter::updateContext(const QQmlSortFilterProxyModel& proxyModel)
|
||||
{
|
||||
delete m_context;
|
||||
m_context = new QQmlContext(qmlContext(this), this);
|
||||
// what about roles changes ?
|
||||
QVariantMap modelMap;
|
||||
|
||||
auto addToContext = [&] (const QString &name, const QVariant& value) {
|
||||
m_context->setContextProperty(name, value);
|
||||
modelMap.insert(name, value);
|
||||
};
|
||||
|
||||
for (const QByteArray& roleName : proxyModel.roleNames().values())
|
||||
addToContext(roleName, QVariant());
|
||||
|
||||
addToContext("index", -1);
|
||||
|
||||
m_context->setContextProperty("model", modelMap);
|
||||
updateExpression();
|
||||
}
|
||||
|
||||
void ExpressionFilter::updateExpression()
|
||||
{
|
||||
if (!m_context)
|
||||
return;
|
||||
|
||||
delete m_expression;
|
||||
m_expression = new QQmlExpression(m_scriptString, m_context, 0, this);
|
||||
connect(m_expression, &QQmlExpression::valueChanged, this, &ExpressionFilter::invalidate);
|
||||
m_expression->setNotifyOnValueChanged(true);
|
||||
m_expression->evaluate();
|
||||
}
|
||||
|
||||
}
|
|
@ -1,41 +0,0 @@
|
|||
#ifndef EXPRESSIONFILTER_H
|
||||
#define EXPRESSIONFILTER_H
|
||||
|
||||
#include "filter.h"
|
||||
#include <QQmlScriptString>
|
||||
|
||||
class QQmlExpression;
|
||||
|
||||
namespace qqsfpm {
|
||||
|
||||
class ExpressionFilter : public Filter
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QQmlScriptString expression READ expression WRITE setExpression NOTIFY expressionChanged)
|
||||
|
||||
public:
|
||||
using Filter::Filter;
|
||||
|
||||
const QQmlScriptString& expression() const;
|
||||
void setExpression(const QQmlScriptString& scriptString);
|
||||
|
||||
void proxyModelCompleted(const QQmlSortFilterProxyModel& proxyModel) override;
|
||||
|
||||
protected:
|
||||
bool filterRow(const QModelIndex& sourceIndex, const QQmlSortFilterProxyModel& proxyModel) const override;
|
||||
|
||||
Q_SIGNALS:
|
||||
void expressionChanged();
|
||||
|
||||
private:
|
||||
void updateContext(const QQmlSortFilterProxyModel& proxyModel);
|
||||
void updateExpression();
|
||||
|
||||
QQmlScriptString m_scriptString;
|
||||
QQmlExpression* m_expression = nullptr;
|
||||
QQmlContext* m_context = nullptr;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // EXPRESSIONFILTER_H
|
|
@ -1,85 +0,0 @@
|
|||
#include "filter.h"
|
||||
#include "qqmlsortfilterproxymodel.h"
|
||||
|
||||
namespace qqsfpm {
|
||||
|
||||
/*!
|
||||
\qmltype Filter
|
||||
\qmlabstract
|
||||
\inqmlmodule SortFilterProxyModel
|
||||
\ingroup Filters
|
||||
\brief Base type for the \l SortFilterProxyModel filters.
|
||||
|
||||
The Filter type cannot be used directly in a QML file.
|
||||
It exists to provide a set of common properties and methods,
|
||||
available across all the other filter types that inherit from it.
|
||||
Attempting to use the Filter type directly will result in an error.
|
||||
*/
|
||||
|
||||
Filter::Filter(QObject *parent) : QObject(parent)
|
||||
{
|
||||
}
|
||||
|
||||
/*!
|
||||
\qmlproperty bool Filter::enabled
|
||||
|
||||
This property holds whether the filter is enabled.
|
||||
A disabled filter will accept every rows unconditionally (even if it's inverted).
|
||||
|
||||
By default, filters are enabled.
|
||||
*/
|
||||
bool Filter::enabled() const
|
||||
{
|
||||
return m_enabled;
|
||||
}
|
||||
|
||||
void Filter::setEnabled(bool enabled)
|
||||
{
|
||||
if (m_enabled == enabled)
|
||||
return;
|
||||
|
||||
m_enabled = enabled;
|
||||
Q_EMIT enabledChanged();
|
||||
Q_EMIT invalidated();
|
||||
}
|
||||
|
||||
/*!
|
||||
\qmlproperty bool Filter::inverted
|
||||
|
||||
This property holds whether the filter is inverted.
|
||||
When a filter is inverted, a row normally accepted would be rejected, and vice-versa.
|
||||
|
||||
By default, filters are not inverted.
|
||||
*/
|
||||
bool Filter::inverted() const
|
||||
{
|
||||
return m_inverted;
|
||||
}
|
||||
|
||||
void Filter::setInverted(bool inverted)
|
||||
{
|
||||
if (m_inverted == inverted)
|
||||
return;
|
||||
|
||||
m_inverted = inverted;
|
||||
Q_EMIT invertedChanged();
|
||||
invalidate();
|
||||
}
|
||||
|
||||
bool Filter::filterAcceptsRow(const QModelIndex &sourceIndex, const QQmlSortFilterProxyModel& proxyModel) const
|
||||
{
|
||||
return !m_enabled || filterRow(sourceIndex, proxyModel) ^ m_inverted;
|
||||
}
|
||||
|
||||
void Filter::proxyModelCompleted(const QQmlSortFilterProxyModel& proxyModel)
|
||||
{
|
||||
Q_UNUSED(proxyModel)
|
||||
}
|
||||
|
||||
void Filter::invalidate()
|
||||
{
|
||||
if (m_enabled)
|
||||
Q_EMIT invalidated();
|
||||
}
|
||||
|
||||
}
|
|
@ -1,46 +0,0 @@
|
|||
#ifndef FILTER_H
|
||||
#define FILTER_H
|
||||
|
||||
#include <QObject>
|
||||
|
||||
namespace qqsfpm {
|
||||
|
||||
class QQmlSortFilterProxyModel;
|
||||
|
||||
class Filter : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(bool enabled READ enabled WRITE setEnabled NOTIFY enabledChanged)
|
||||
Q_PROPERTY(bool inverted READ inverted WRITE setInverted NOTIFY invertedChanged)
|
||||
|
||||
public:
|
||||
explicit Filter(QObject *parent = nullptr);
|
||||
virtual ~Filter() = default;
|
||||
|
||||
bool enabled() const;
|
||||
void setEnabled(bool enabled);
|
||||
|
||||
bool inverted() const;
|
||||
void setInverted(bool inverted);
|
||||
|
||||
bool filterAcceptsRow(const QModelIndex &sourceIndex, const QQmlSortFilterProxyModel& proxyModel) const;
|
||||
|
||||
virtual void proxyModelCompleted(const QQmlSortFilterProxyModel& proxyModel);
|
||||
|
||||
Q_SIGNALS:
|
||||
void enabledChanged();
|
||||
void invertedChanged();
|
||||
void invalidated();
|
||||
|
||||
protected:
|
||||
virtual bool filterRow(const QModelIndex &sourceIndex, const QQmlSortFilterProxyModel& proxyModel) const = 0;
|
||||
void invalidate();
|
||||
|
||||
private:
|
||||
bool m_enabled = true;
|
||||
bool m_inverted = false;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // FILTER_H
|
|
@ -1,126 +0,0 @@
|
|||
#include "filtercontainer.h"
|
||||
#include "filter.h"
|
||||
#include <QtQml>
|
||||
|
||||
namespace qqsfpm {
|
||||
|
||||
/*!
|
||||
\qmltype FilterContainer
|
||||
\qmlabstract
|
||||
\inqmlmodule SortFilterProxyModel
|
||||
\ingroup FilterAttached
|
||||
\brief Abstract interface for types containing \l {Filter}{Filters}.
|
||||
|
||||
\section2 Types implementing this interface:
|
||||
\annotatedlist FilterContainer
|
||||
*/
|
||||
|
||||
QList<Filter*> FilterContainer::filters() const
|
||||
{
|
||||
return m_filters;
|
||||
}
|
||||
|
||||
void FilterContainer::appendFilter(Filter* filter)
|
||||
{
|
||||
m_filters.append(filter);
|
||||
onFilterAppended(filter);
|
||||
}
|
||||
|
||||
void FilterContainer::removeFilter(Filter* filter)
|
||||
{
|
||||
m_filters.removeOne(filter);
|
||||
onFilterRemoved(filter);
|
||||
}
|
||||
|
||||
void FilterContainer::clearFilters()
|
||||
{
|
||||
m_filters.clear();
|
||||
onFiltersCleared();
|
||||
}
|
||||
|
||||
QQmlListProperty<Filter> FilterContainer::filtersListProperty()
|
||||
{
|
||||
return QQmlListProperty<Filter>(reinterpret_cast<QObject*>(this), &m_filters,
|
||||
&FilterContainer::append_filter,
|
||||
&FilterContainer::count_filter,
|
||||
&FilterContainer::at_filter,
|
||||
&FilterContainer::clear_filters);
|
||||
}
|
||||
|
||||
void FilterContainer::append_filter(QQmlListProperty<Filter>* list, Filter* filter)
|
||||
{
|
||||
if (!filter)
|
||||
return;
|
||||
|
||||
FilterContainer* that = reinterpret_cast<FilterContainer*>(list->object);
|
||||
that->appendFilter(filter);
|
||||
}
|
||||
|
||||
qsizetype FilterContainer::count_filter(QQmlListProperty<Filter>* list)
|
||||
{
|
||||
QList<Filter*>* filters = static_cast<QList<Filter*>*>(list->data);
|
||||
return filters->count();
|
||||
}
|
||||
|
||||
Filter* FilterContainer::at_filter(QQmlListProperty<Filter>* list, qsizetype index)
|
||||
{
|
||||
QList<Filter*>* filters = static_cast<QList<Filter*>*>(list->data);
|
||||
return filters->at(index);
|
||||
}
|
||||
|
||||
void FilterContainer::clear_filters(QQmlListProperty<Filter> *list)
|
||||
{
|
||||
FilterContainer* that = reinterpret_cast<FilterContainer*>(list->object);
|
||||
that->clearFilters();
|
||||
}
|
||||
|
||||
FilterContainerAttached::FilterContainerAttached(QObject* object) : QObject(object),
|
||||
m_filter(qobject_cast<Filter*>(object))
|
||||
{
|
||||
if (!m_filter)
|
||||
qmlWarning(object) << "FilterContainer must be attached to a Filter";
|
||||
}
|
||||
|
||||
FilterContainerAttached::~FilterContainerAttached()
|
||||
{
|
||||
if (m_filter && m_container) {
|
||||
FilterContainer* container = qobject_cast<FilterContainer*>(m_container.data());
|
||||
container->removeFilter(m_filter);
|
||||
}
|
||||
}
|
||||
|
||||
/*!
|
||||
\qmlattachedproperty bool FilterContainer::container
|
||||
This attached property allows you to include in a \l FilterContainer a \l Filter that
|
||||
has been instantiated outside of the \l FilterContainer, for example in an Instantiator.
|
||||
*/
|
||||
QObject* FilterContainerAttached::container() const
|
||||
{
|
||||
return m_container;
|
||||
}
|
||||
|
||||
void FilterContainerAttached::setContainer(QObject* object)
|
||||
{
|
||||
if (m_container == object)
|
||||
return;
|
||||
|
||||
FilterContainer* container = qobject_cast<FilterContainer*>(object);
|
||||
if (object && !container)
|
||||
qmlWarning(parent()) << "container must inherits from FilterContainer, " << object->metaObject()->className() << " provided";
|
||||
|
||||
if (m_container && m_filter)
|
||||
qobject_cast<FilterContainer*>(m_container.data())->removeFilter(m_filter);
|
||||
|
||||
m_container = container ? object : nullptr;
|
||||
if (container && m_filter)
|
||||
container->appendFilter(m_filter);
|
||||
|
||||
Q_EMIT containerChanged();
|
||||
}
|
||||
|
||||
FilterContainerAttached* FilterContainerAttached::qmlAttachedProperties(QObject* object)
|
||||
{
|
||||
return new FilterContainerAttached(object);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,68 +0,0 @@
|
|||
#ifndef FILTERCONTAINER_H
|
||||
#define FILTERCONTAINER_H
|
||||
|
||||
#include <QList>
|
||||
#include <QQmlListProperty>
|
||||
#include <qqml.h>
|
||||
#include <QPointer>
|
||||
|
||||
namespace qqsfpm {
|
||||
|
||||
class Filter;
|
||||
class QQmlSortFilterProxyModel;
|
||||
|
||||
class FilterContainer {
|
||||
public:
|
||||
virtual ~FilterContainer() = default;
|
||||
|
||||
QList<Filter*> filters() const;
|
||||
void appendFilter(Filter* filter);
|
||||
void removeFilter(Filter* filter);
|
||||
void clearFilters();
|
||||
|
||||
QQmlListProperty<Filter> filtersListProperty();
|
||||
|
||||
protected:
|
||||
QList<Filter*> m_filters;
|
||||
|
||||
private:
|
||||
virtual void onFilterAppended(Filter* filter) = 0;
|
||||
virtual void onFilterRemoved(Filter* filter) = 0;
|
||||
virtual void onFiltersCleared() = 0;
|
||||
|
||||
static void append_filter(QQmlListProperty<Filter>* list, Filter* filter);
|
||||
static qsizetype count_filter(QQmlListProperty<Filter>* list);
|
||||
static Filter* at_filter(QQmlListProperty<Filter>* list, qsizetype index);
|
||||
static void clear_filters(QQmlListProperty<Filter>* list);
|
||||
};
|
||||
|
||||
class FilterContainerAttached : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QObject* container READ container WRITE setContainer NOTIFY containerChanged)
|
||||
|
||||
public:
|
||||
FilterContainerAttached(QObject* object);
|
||||
~FilterContainerAttached();
|
||||
|
||||
QObject* container() const;
|
||||
void setContainer(QObject* object);
|
||||
|
||||
static FilterContainerAttached* qmlAttachedProperties(QObject* object);
|
||||
|
||||
Q_SIGNALS:
|
||||
void containerChanged();
|
||||
|
||||
private:
|
||||
QPointer<QObject> m_container = nullptr;
|
||||
Filter* m_filter = nullptr;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#define FilterContainer_iid "fr.grecko.SortFilterProxyModel.FilterContainer"
|
||||
Q_DECLARE_INTERFACE(qqsfpm::FilterContainer, FilterContainer_iid)
|
||||
|
||||
QML_DECLARE_TYPEINFO(qqsfpm::FilterContainerAttached, QML_HAS_ATTACHED_PROPERTIES)
|
||||
|
||||
#endif // FILTERCONTAINER_H
|
|
@ -1,28 +0,0 @@
|
|||
#include "filtercontainerfilter.h"
|
||||
|
||||
namespace qqsfpm {
|
||||
|
||||
void FilterContainerFilter::proxyModelCompleted(const QQmlSortFilterProxyModel& proxyModel)
|
||||
{
|
||||
for (Filter* filter : m_filters)
|
||||
filter->proxyModelCompleted(proxyModel);
|
||||
}
|
||||
|
||||
void FilterContainerFilter::onFilterAppended(Filter* filter)
|
||||
{
|
||||
connect(filter, &Filter::invalidated, this, &FilterContainerFilter::invalidate);
|
||||
invalidate();
|
||||
}
|
||||
|
||||
void FilterContainerFilter::onFilterRemoved(Filter* filter)
|
||||
{
|
||||
Q_UNUSED(filter)
|
||||
invalidate();
|
||||
}
|
||||
|
||||
void qqsfpm::FilterContainerFilter::onFiltersCleared()
|
||||
{
|
||||
invalidate();
|
||||
}
|
||||
|
||||
}
|
|
@ -1,31 +0,0 @@
|
|||
#ifndef FILTERCONTAINERFILTER_H
|
||||
#define FILTERCONTAINERFILTER_H
|
||||
|
||||
#include "filter.h"
|
||||
#include "filtercontainer.h"
|
||||
|
||||
namespace qqsfpm {
|
||||
|
||||
class FilterContainerFilter : public Filter, public FilterContainer {
|
||||
Q_OBJECT
|
||||
Q_INTERFACES(qqsfpm::FilterContainer)
|
||||
Q_PROPERTY(QQmlListProperty<qqsfpm::Filter> filters READ filtersListProperty NOTIFY filtersChanged)
|
||||
Q_CLASSINFO("DefaultProperty", "filters")
|
||||
|
||||
public:
|
||||
using Filter::Filter;
|
||||
|
||||
void proxyModelCompleted(const QQmlSortFilterProxyModel& proxyModel) override;
|
||||
|
||||
Q_SIGNALS:
|
||||
void filtersChanged();
|
||||
|
||||
private:
|
||||
void onFilterAppended(Filter* filter) override;
|
||||
void onFilterRemoved(Filter* filter) override;
|
||||
void onFiltersCleared() override;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // FILTERCONTAINERFILTER_H
|
|
@ -1,28 +0,0 @@
|
|||
#include "filter.h"
|
||||
#include "valuefilter.h"
|
||||
#include "indexfilter.h"
|
||||
#include "regexpfilter.h"
|
||||
#include "rangefilter.h"
|
||||
#include "expressionfilter.h"
|
||||
#include "anyoffilter.h"
|
||||
#include "alloffilter.h"
|
||||
#include <QQmlEngine>
|
||||
#include <QCoreApplication>
|
||||
|
||||
namespace qqsfpm {
|
||||
|
||||
void registerFiltersTypes() {
|
||||
qmlRegisterUncreatableType<Filter>("SortFilterProxyModel", 0, 2, "Filter", "Filter is an abstract class");
|
||||
qmlRegisterType<ValueFilter>("SortFilterProxyModel", 0, 2, "ValueFilter");
|
||||
qmlRegisterType<IndexFilter>("SortFilterProxyModel", 0, 2, "IndexFilter");
|
||||
qmlRegisterType<RegExpFilter>("SortFilterProxyModel", 0, 2, "RegExpFilter");
|
||||
qmlRegisterType<RangeFilter>("SortFilterProxyModel", 0, 2, "RangeFilter");
|
||||
qmlRegisterType<ExpressionFilter>("SortFilterProxyModel", 0, 2, "ExpressionFilter");
|
||||
qmlRegisterType<AnyOfFilter>("SortFilterProxyModel", 0, 2, "AnyOf");
|
||||
qmlRegisterType<AllOfFilter>("SortFilterProxyModel", 0, 2, "AllOf");
|
||||
qmlRegisterUncreatableType<FilterContainerAttached>("SortFilterProxyModel", 0, 2, "FilterContainer", "FilterContainer can only be used as an attaching type");
|
||||
}
|
||||
|
||||
Q_COREAPP_STARTUP_FUNCTION(registerFiltersTypes)
|
||||
|
||||
}
|
|
@ -1,112 +0,0 @@
|
|||
#include "indexfilter.h"
|
||||
#include "qqmlsortfilterproxymodel.h"
|
||||
|
||||
namespace qqsfpm {
|
||||
|
||||
/*!
|
||||
\qmltype IndexFilter
|
||||
\inherits Filter
|
||||
\inqmlmodule SortFilterProxyModel
|
||||
\ingroup Filters
|
||||
\brief Filters rows based on their source index.
|
||||
|
||||
An IndexFilter is a filter allowing contents to be filtered based on their source model index.
|
||||
|
||||
In the following example, only the first row of the source model will be accepted:
|
||||
\code
|
||||
SortFilterProxyModel {
|
||||
sourceModel: contactModel
|
||||
filters: IndexFilter {
|
||||
maximumIndex: 0
|
||||
}
|
||||
}
|
||||
\endcode
|
||||
*/
|
||||
|
||||
/*!
|
||||
\qmlproperty int IndexFilter::minimumIndex
|
||||
|
||||
This property holds the minimumIndex of the filter.
|
||||
Rows with a source index lower than \c minimumIndex will be rejected.
|
||||
|
||||
If \c minimumIndex is negative, it is counted from the end of the source model, meaning that :
|
||||
\code
|
||||
minimumIndex: -1
|
||||
\endcode
|
||||
is equivalent to :
|
||||
\code
|
||||
minimumIndex: sourceModel.count - 1
|
||||
\endcode
|
||||
By default, no value is set.
|
||||
*/
|
||||
const QVariant& IndexFilter::minimumIndex() const
|
||||
{
|
||||
return m_minimumIndex;
|
||||
}
|
||||
|
||||
void IndexFilter::setMinimumIndex(const QVariant& minimumIndex)
|
||||
{
|
||||
if (m_minimumIndex == minimumIndex)
|
||||
return;
|
||||
|
||||
m_minimumIndex = minimumIndex;
|
||||
Q_EMIT minimumIndexChanged();
|
||||
invalidate();
|
||||
}
|
||||
|
||||
/*!
|
||||
\qmlproperty int IndexFilter::maximumIndex
|
||||
|
||||
This property holds the maximumIndex of the filter.
|
||||
Rows with a source index higher than \c maximumIndex will be rejected.
|
||||
|
||||
If \c maximumIndex is negative, it is counted from the end of the source model, meaning that:
|
||||
\code
|
||||
maximumIndex: -1
|
||||
\endcode
|
||||
is equivalent to :
|
||||
\code
|
||||
maximumIndex: sourceModel.count - 1
|
||||
\endcode
|
||||
By default, no value is set.
|
||||
*/
|
||||
const QVariant& IndexFilter::maximumIndex() const
|
||||
{
|
||||
return m_maximumIndex;
|
||||
}
|
||||
|
||||
void IndexFilter::setMaximumIndex(const QVariant& maximumIndex)
|
||||
{
|
||||
if (m_maximumIndex == maximumIndex)
|
||||
return;
|
||||
|
||||
m_maximumIndex = maximumIndex;
|
||||
Q_EMIT maximumIndexChanged();
|
||||
invalidate();
|
||||
}
|
||||
|
||||
bool IndexFilter::filterRow(const QModelIndex& sourceIndex, const QQmlSortFilterProxyModel& proxyModel) const
|
||||
{
|
||||
int sourceRowCount = proxyModel.sourceModel()->rowCount();
|
||||
int sourceRow = sourceIndex.row();
|
||||
|
||||
bool minimumIsValid;
|
||||
int minimum = m_minimumIndex.toInt(&minimumIsValid);
|
||||
if (minimumIsValid) {
|
||||
int actualMinimum = minimum < 0 ? sourceRowCount + minimum : minimum;
|
||||
if (sourceRow < actualMinimum)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool maximumIsValid;
|
||||
int maximum = m_maximumIndex.toInt(&maximumIsValid);
|
||||
if (maximumIsValid) {
|
||||
int actualMaximum = maximum < 0 ? sourceRowCount + maximum : maximum;
|
||||
if (sourceRow > actualMaximum)
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,37 +0,0 @@
|
|||
#ifndef INDEXFILTER_H
|
||||
#define INDEXFILTER_H
|
||||
|
||||
#include "filter.h"
|
||||
#include <QVariant>
|
||||
|
||||
namespace qqsfpm {
|
||||
|
||||
class IndexFilter: public Filter {
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QVariant minimumIndex READ minimumIndex WRITE setMinimumIndex NOTIFY minimumIndexChanged)
|
||||
Q_PROPERTY(QVariant maximumIndex READ maximumIndex WRITE setMaximumIndex NOTIFY maximumIndexChanged)
|
||||
|
||||
public:
|
||||
using Filter::Filter;
|
||||
|
||||
const QVariant& minimumIndex() const;
|
||||
void setMinimumIndex(const QVariant& minimumIndex);
|
||||
|
||||
const QVariant& maximumIndex() const;
|
||||
void setMaximumIndex(const QVariant& maximumIndex);
|
||||
|
||||
protected:
|
||||
bool filterRow(const QModelIndex& sourceIndex, const QQmlSortFilterProxyModel& proxyModel) const override;
|
||||
|
||||
Q_SIGNALS:
|
||||
void minimumIndexChanged();
|
||||
void maximumIndexChanged();
|
||||
|
||||
private:
|
||||
QVariant m_minimumIndex;
|
||||
QVariant m_maximumIndex;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // INDEXFILTER_H
|
|
@ -1,140 +0,0 @@
|
|||
#include "rangefilter.h"
|
||||
#include "../utils/utils.h"
|
||||
|
||||
namespace qqsfpm {
|
||||
|
||||
/*!
|
||||
\qmltype RangeFilter
|
||||
\inherits RoleFilter
|
||||
\inqmlmodule SortFilterProxyModel
|
||||
\ingroup Filters
|
||||
\brief Filters rows between boundary values.
|
||||
|
||||
A RangeFilter is a \l RoleFilter that accepts rows if their data is between the filter's minimum and maximum value.
|
||||
|
||||
In the following example, only rows with their \c price role set to a value between the tow boundary of the slider will be accepted :
|
||||
\code
|
||||
RangeSlider {
|
||||
id: priceRangeSlider
|
||||
}
|
||||
|
||||
SortFilterProxyModel {
|
||||
sourceModel: priceModel
|
||||
filters: RangeFilter {
|
||||
roleName: "price"
|
||||
minimumValue: priceRangeSlider.first.value
|
||||
maximumValue: priceRangeSlider.second.value
|
||||
}
|
||||
}
|
||||
\endcode
|
||||
*/
|
||||
|
||||
/*!
|
||||
\qmlproperty int RangeFilter::minimumValue
|
||||
|
||||
This property holds the minimumValue of the filter.
|
||||
Rows with a value lower than \c minimumValue will be rejected.
|
||||
|
||||
By default, no value is set.
|
||||
|
||||
\sa minimumInclusive
|
||||
*/
|
||||
QVariant RangeFilter::minimumValue() const
|
||||
{
|
||||
return m_minimumValue;
|
||||
}
|
||||
|
||||
void RangeFilter::setMinimumValue(QVariant minimumValue)
|
||||
{
|
||||
if (m_minimumValue == minimumValue)
|
||||
return;
|
||||
|
||||
m_minimumValue = minimumValue;
|
||||
Q_EMIT minimumValueChanged();
|
||||
invalidate();
|
||||
}
|
||||
|
||||
/*!
|
||||
\qmlproperty int RangeFilter::minimumInclusive
|
||||
|
||||
This property holds whether the \l minimumValue is inclusive.
|
||||
|
||||
By default, the \l minimumValue is inclusive.
|
||||
|
||||
\sa minimumValue
|
||||
*/
|
||||
bool RangeFilter::minimumInclusive() const
|
||||
{
|
||||
return m_minimumInclusive;
|
||||
}
|
||||
|
||||
void RangeFilter::setMinimumInclusive(bool minimumInclusive)
|
||||
{
|
||||
if (m_minimumInclusive == minimumInclusive)
|
||||
return;
|
||||
|
||||
m_minimumInclusive = minimumInclusive;
|
||||
Q_EMIT minimumInclusiveChanged();
|
||||
invalidate();
|
||||
}
|
||||
|
||||
/*!
|
||||
\qmlproperty int RangeFilter::maximumValue
|
||||
|
||||
This property holds the maximumValue of the filter.
|
||||
Rows with a value higher than \c maximumValue will be rejected.
|
||||
|
||||
By default, no value is set.
|
||||
|
||||
\sa maximumInclusive
|
||||
*/
|
||||
QVariant RangeFilter::maximumValue() const
|
||||
{
|
||||
return m_maximumValue;
|
||||
}
|
||||
|
||||
void RangeFilter::setMaximumValue(QVariant maximumValue)
|
||||
{
|
||||
if (m_maximumValue == maximumValue)
|
||||
return;
|
||||
|
||||
m_maximumValue = maximumValue;
|
||||
Q_EMIT maximumValueChanged();
|
||||
invalidate();
|
||||
}
|
||||
|
||||
/*!
|
||||
\qmlproperty int RangeFilter::maximumInclusive
|
||||
|
||||
This property holds whether the \l minimumValue is inclusive.
|
||||
|
||||
By default, the \l minimumValue is inclusive.
|
||||
|
||||
\sa minimumValue
|
||||
*/
|
||||
bool RangeFilter::maximumInclusive() const
|
||||
{
|
||||
return m_maximumInclusive;
|
||||
}
|
||||
|
||||
void RangeFilter::setMaximumInclusive(bool maximumInclusive)
|
||||
{
|
||||
if (m_maximumInclusive == maximumInclusive)
|
||||
return;
|
||||
|
||||
m_maximumInclusive = maximumInclusive;
|
||||
Q_EMIT maximumInclusiveChanged();
|
||||
invalidate();
|
||||
}
|
||||
|
||||
bool RangeFilter::filterRow(const QModelIndex& sourceIndex, const QQmlSortFilterProxyModel& proxyModel) const
|
||||
{
|
||||
const QVariant value = sourceData(sourceIndex, proxyModel);
|
||||
bool lessThanMin = m_minimumValue.isValid() &&
|
||||
(m_minimumInclusive ? value < m_minimumValue : value <= m_minimumValue);
|
||||
bool moreThanMax = m_maximumValue.isValid() &&
|
||||
(m_maximumInclusive ? value > m_maximumValue : value >= m_maximumValue);
|
||||
return !(lessThanMin || moreThanMax);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,48 +0,0 @@
|
|||
#ifndef RANGEFILTER_H
|
||||
#define RANGEFILTER_H
|
||||
|
||||
#include "rolefilter.h"
|
||||
#include <QVariant>
|
||||
|
||||
namespace qqsfpm {
|
||||
|
||||
class RangeFilter : public RoleFilter
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QVariant minimumValue READ minimumValue WRITE setMinimumValue NOTIFY minimumValueChanged)
|
||||
Q_PROPERTY(bool minimumInclusive READ minimumInclusive WRITE setMinimumInclusive NOTIFY minimumInclusiveChanged)
|
||||
Q_PROPERTY(QVariant maximumValue READ maximumValue WRITE setMaximumValue NOTIFY maximumValueChanged)
|
||||
Q_PROPERTY(bool maximumInclusive READ maximumInclusive WRITE setMaximumInclusive NOTIFY maximumInclusiveChanged)
|
||||
|
||||
public:
|
||||
using RoleFilter::RoleFilter;
|
||||
|
||||
QVariant minimumValue() const;
|
||||
void setMinimumValue(QVariant minimumValue);
|
||||
bool minimumInclusive() const;
|
||||
void setMinimumInclusive(bool minimumInclusive);
|
||||
|
||||
QVariant maximumValue() const;
|
||||
void setMaximumValue(QVariant maximumValue);
|
||||
bool maximumInclusive() const;
|
||||
void setMaximumInclusive(bool maximumInclusive);
|
||||
|
||||
protected:
|
||||
bool filterRow(const QModelIndex& sourceIndex, const QQmlSortFilterProxyModel& proxyModel) const override;
|
||||
|
||||
Q_SIGNALS:
|
||||
void minimumValueChanged();
|
||||
void minimumInclusiveChanged();
|
||||
void maximumValueChanged();
|
||||
void maximumInclusiveChanged();
|
||||
|
||||
private:
|
||||
QVariant m_minimumValue;
|
||||
bool m_minimumInclusive = true;
|
||||
QVariant m_maximumValue;
|
||||
bool m_maximumInclusive = true;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // RANGEFILTER_H
|
|
@ -1,90 +0,0 @@
|
|||
#include "regexpfilter.h"
|
||||
#include <QVariant>
|
||||
|
||||
namespace qqsfpm {
|
||||
|
||||
/*!
|
||||
\qmltype RegExpFilter
|
||||
\inherits RoleFilter
|
||||
\inqmlmodule SortFilterProxyModel
|
||||
\ingroup Filters
|
||||
\brief Filters rows matching a regular expression.
|
||||
|
||||
A RegExpFilter is a \l RoleFilter that accepts rows matching a regular rexpression.
|
||||
|
||||
In the following example, only rows with their \c lastName role beggining with the content of textfield the will be accepted:
|
||||
\code
|
||||
TextField {
|
||||
id: nameTextField
|
||||
}
|
||||
|
||||
SortFilterProxyModel {
|
||||
sourceModel: contactModel
|
||||
filters: RegExpFilter {
|
||||
roleName: "lastName"
|
||||
pattern: "^" + nameTextField.displayText
|
||||
}
|
||||
}
|
||||
\endcode
|
||||
*/
|
||||
|
||||
/*!
|
||||
\qmlproperty bool RegExpFilter::pattern
|
||||
|
||||
The pattern used to filter the contents of the source model.
|
||||
|
||||
\sa syntax
|
||||
*/
|
||||
RegExpFilter::RegExpFilter() :
|
||||
m_caseSensitivity(m_regExp.patternOptions().testFlag(
|
||||
QRegularExpression::CaseInsensitiveOption) ? Qt::CaseInsensitive : Qt::CaseSensitive)
|
||||
{
|
||||
}
|
||||
|
||||
QString RegExpFilter::pattern() const
|
||||
{
|
||||
return m_pattern;
|
||||
}
|
||||
|
||||
void RegExpFilter::setPattern(const QString& pattern)
|
||||
{
|
||||
if (m_pattern == pattern)
|
||||
return;
|
||||
|
||||
m_pattern = pattern;
|
||||
m_regExp.setPattern(pattern);
|
||||
Q_EMIT patternChanged();
|
||||
invalidate();
|
||||
}
|
||||
|
||||
/*!
|
||||
\qmlproperty Qt::CaseSensitivity RegExpFilter::caseSensitivity
|
||||
|
||||
This property holds the caseSensitivity of the filter.
|
||||
*/
|
||||
Qt::CaseSensitivity RegExpFilter::caseSensitivity() const
|
||||
{
|
||||
return m_caseSensitivity;
|
||||
}
|
||||
|
||||
void RegExpFilter::setCaseSensitivity(Qt::CaseSensitivity caseSensitivity)
|
||||
{
|
||||
if (m_caseSensitivity == caseSensitivity)
|
||||
return;
|
||||
|
||||
m_caseSensitivity = caseSensitivity;
|
||||
QRegularExpression::PatternOptions patternOptions = m_regExp.patternOptions();
|
||||
if (caseSensitivity == Qt::CaseInsensitive)
|
||||
patternOptions.setFlag(QRegularExpression::CaseInsensitiveOption);
|
||||
m_regExp.setPatternOptions(patternOptions);
|
||||
Q_EMIT caseSensitivityChanged();
|
||||
invalidate();
|
||||
}
|
||||
|
||||
bool RegExpFilter::filterRow(const QModelIndex& sourceIndex, const QQmlSortFilterProxyModel& proxyModel) const
|
||||
{
|
||||
const QString string = sourceData(sourceIndex, proxyModel).toString();
|
||||
return m_regExp.match(string).hasMatch();
|
||||
}
|
||||
|
||||
}
|
|
@ -1,41 +0,0 @@
|
|||
#ifndef REGEXPFILTER_H
|
||||
#define REGEXPFILTER_H
|
||||
|
||||
#include "rolefilter.h"
|
||||
|
||||
#include <QRegularExpression>
|
||||
|
||||
namespace qqsfpm {
|
||||
|
||||
class RegExpFilter : public RoleFilter {
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QString pattern READ pattern WRITE setPattern NOTIFY patternChanged)
|
||||
Q_PROPERTY(Qt::CaseSensitivity caseSensitivity READ caseSensitivity WRITE setCaseSensitivity NOTIFY caseSensitivityChanged)
|
||||
|
||||
public:
|
||||
using RoleFilter::RoleFilter;
|
||||
|
||||
RegExpFilter();
|
||||
|
||||
QString pattern() const;
|
||||
void setPattern(const QString& pattern);
|
||||
|
||||
Qt::CaseSensitivity caseSensitivity() const;
|
||||
void setCaseSensitivity(Qt::CaseSensitivity caseSensitivity);
|
||||
|
||||
protected:
|
||||
bool filterRow(const QModelIndex& sourceIndex, const QQmlSortFilterProxyModel& proxyModel) const override;
|
||||
|
||||
Q_SIGNALS:
|
||||
void patternChanged();
|
||||
void caseSensitivityChanged();
|
||||
|
||||
private:
|
||||
QRegularExpression m_regExp;
|
||||
Qt::CaseSensitivity m_caseSensitivity;
|
||||
QString m_pattern = m_regExp.pattern();
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // REGEXPFILTER_H
|
|
@ -1,45 +0,0 @@
|
|||
#include "rolefilter.h"
|
||||
#include "qqmlsortfilterproxymodel.h"
|
||||
|
||||
namespace qqsfpm {
|
||||
|
||||
/*!
|
||||
\qmltype RoleFilter
|
||||
\qmlabstract
|
||||
\inherits Filter
|
||||
\inqmlmodule SortFilterProxyModel
|
||||
\ingroup Filters
|
||||
\brief Base type for filters based on a source model role.
|
||||
|
||||
The RoleFilter type cannot be used directly in a QML file.
|
||||
It exists to provide a set of common properties and methods,
|
||||
available across all the other filter types that inherit from it.
|
||||
Attempting to use the RoleFilter type directly will result in an error.
|
||||
*/
|
||||
|
||||
/*!
|
||||
\qmlproperty string RoleFilter::roleName
|
||||
|
||||
This property holds the role name that the filter is using to query the source model's data when filtering items.
|
||||
*/
|
||||
const QString& RoleFilter::roleName() const
|
||||
{
|
||||
return m_roleName;
|
||||
}
|
||||
|
||||
void RoleFilter::setRoleName(const QString& roleName)
|
||||
{
|
||||
if (m_roleName == roleName)
|
||||
return;
|
||||
|
||||
m_roleName = roleName;
|
||||
Q_EMIT roleNameChanged();
|
||||
invalidate();
|
||||
}
|
||||
|
||||
QVariant RoleFilter::sourceData(const QModelIndex &sourceIndex, const QQmlSortFilterProxyModel& proxyModel) const
|
||||
{
|
||||
return proxyModel.sourceData(sourceIndex, m_roleName);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,31 +0,0 @@
|
|||
#ifndef ROLEFILTER_H
|
||||
#define ROLEFILTER_H
|
||||
|
||||
#include "filter.h"
|
||||
|
||||
namespace qqsfpm {
|
||||
|
||||
class RoleFilter : public Filter
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QString roleName READ roleName WRITE setRoleName NOTIFY roleNameChanged)
|
||||
|
||||
public:
|
||||
using Filter::Filter;
|
||||
|
||||
const QString& roleName() const;
|
||||
void setRoleName(const QString& roleName);
|
||||
|
||||
Q_SIGNALS:
|
||||
void roleNameChanged();
|
||||
|
||||
protected:
|
||||
QVariant sourceData(const QModelIndex &sourceIndex, const QQmlSortFilterProxyModel& proxyModel) const;
|
||||
|
||||
private:
|
||||
QString m_roleName;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // ROLEFILTER_H
|
|
@ -1,57 +0,0 @@
|
|||
#include "valuefilter.h"
|
||||
|
||||
namespace qqsfpm {
|
||||
|
||||
/*!
|
||||
\qmltype ValueFilter
|
||||
\inherits RoleFilter
|
||||
\inqmlmodule SortFilterProxyModel
|
||||
\ingroup Filters
|
||||
\brief Filters rows matching exactly a value.
|
||||
|
||||
A ValueFilter is a simple \l RoleFilter that accepts rows matching exactly the filter's value
|
||||
|
||||
In the following example, only rows with their \c favorite role set to \c true will be accepted when the checkbox is checked :
|
||||
\code
|
||||
CheckBox {
|
||||
id: showOnlyFavoriteCheckBox
|
||||
}
|
||||
|
||||
SortFilterProxyModel {
|
||||
sourceModel: contactModel
|
||||
filters: ValueFilter {
|
||||
roleName: "favorite"
|
||||
value: true
|
||||
enabled: showOnlyFavoriteCheckBox.checked
|
||||
}
|
||||
}
|
||||
\endcode
|
||||
|
||||
*/
|
||||
|
||||
/*!
|
||||
\qmlproperty variant ValueFilter::value
|
||||
|
||||
This property holds the value used to filter the contents of the source model.
|
||||
*/
|
||||
const QVariant &ValueFilter::value() const
|
||||
{
|
||||
return m_value;
|
||||
}
|
||||
|
||||
void ValueFilter::setValue(const QVariant& value)
|
||||
{
|
||||
if (m_value == value)
|
||||
return;
|
||||
|
||||
m_value = value;
|
||||
Q_EMIT valueChanged();
|
||||
invalidate();
|
||||
}
|
||||
|
||||
bool ValueFilter::filterRow(const QModelIndex& sourceIndex, const QQmlSortFilterProxyModel& proxyModel) const
|
||||
{
|
||||
return !m_value.isValid() || m_value == sourceData(sourceIndex, proxyModel);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,31 +0,0 @@
|
|||
#ifndef VALUEFILTER_H
|
||||
#define VALUEFILTER_H
|
||||
|
||||
#include "rolefilter.h"
|
||||
#include <QVariant>
|
||||
|
||||
namespace qqsfpm {
|
||||
|
||||
class ValueFilter : public RoleFilter {
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QVariant value READ value WRITE setValue NOTIFY valueChanged)
|
||||
|
||||
public:
|
||||
using RoleFilter::RoleFilter;
|
||||
|
||||
const QVariant& value() const;
|
||||
void setValue(const QVariant& value);
|
||||
|
||||
protected:
|
||||
bool filterRow(const QModelIndex &sourceIndex, const QQmlSortFilterProxyModel& proxyModel) const override;
|
||||
|
||||
Q_SIGNALS:
|
||||
void valueChanged();
|
||||
|
||||
private:
|
||||
QVariant m_value;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // VALUEFILTER_H
|
|
@ -1,27 +0,0 @@
|
|||
/*!
|
||||
\page index.html overview
|
||||
|
||||
\title SortFilterProxyModel QML Module
|
||||
|
||||
SortFilterProxyModel is an implementation of QSortFilterProxyModel conveniently exposed for QML.
|
||||
\annotatedlist SortFilterProxyModel
|
||||
|
||||
\section1 Filters
|
||||
\annotatedlist Filters
|
||||
|
||||
\section2 Related attached types
|
||||
\annotatedlist FilterAttached
|
||||
|
||||
\section1 Sorters
|
||||
\annotatedlist Sorters
|
||||
|
||||
\section2 Related attached types
|
||||
\annotatedlist SorterAttached
|
||||
|
||||
\section1 ProxyRoles
|
||||
\annotatedlist ProxyRoles
|
||||
*/
|
||||
|
||||
/*!
|
||||
\qmlmodule SortFilterProxyModel
|
||||
*/
|
|
@ -1,805 +0,0 @@
|
|||
body {
|
||||
font: normal 400 14px/1.2 Arial;
|
||||
margin-top: 85px;
|
||||
font-family: Arial, Helvetica;
|
||||
text-align: left;
|
||||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
p {
|
||||
line-height: 20px
|
||||
}
|
||||
|
||||
img {
|
||||
margin-left: 0px;
|
||||
max-width: 800px;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.content .border img {
|
||||
box-shadow:3px 3px 8px 3px rgba(200,200,200,0.5)
|
||||
}
|
||||
|
||||
.content .border .player {
|
||||
box-shadow:3px 3px 8px 3px rgba(200,200,200,0.5)
|
||||
}
|
||||
|
||||
.content .indexboxcont li {
|
||||
font: normal bold 13px/1 Verdana
|
||||
}
|
||||
|
||||
.content .normallist li {
|
||||
font: normal 13px/1 Verdana
|
||||
}
|
||||
|
||||
.descr {
|
||||
margin-top: 35px;
|
||||
margin-bottom: 45px;
|
||||
margin-left: 5px;
|
||||
text-align: left;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.name {
|
||||
max-width: 75%;
|
||||
font-weight: 100;
|
||||
}
|
||||
|
||||
tt {
|
||||
text-align: left
|
||||
}
|
||||
|
||||
/*
|
||||
-----------
|
||||
links
|
||||
-----------
|
||||
*/
|
||||
|
||||
a:link {
|
||||
color: #007330;
|
||||
text-decoration: none;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
a.qa-mark:target:before {
|
||||
content: "***";
|
||||
color: #ff0000;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
color: #44a51c;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
a:visited {
|
||||
color: #007330;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
a:visited:hover {
|
||||
color: #44a51c;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
/*
|
||||
-----------
|
||||
offline viewing: HTML links display an icon
|
||||
-----------
|
||||
*/
|
||||
|
||||
a[href*="http://"], a[href*="ftp://"], a[href*="https://"] {
|
||||
text-decoration: none;
|
||||
background-image: url(../images/ico_out.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: left;
|
||||
padding-left: 20px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.flags {
|
||||
text-decoration: none;
|
||||
text-height: 24px;
|
||||
}
|
||||
|
||||
.flags:target {
|
||||
background-color: #FFFFD6;
|
||||
}
|
||||
|
||||
/*
|
||||
-------------------------------
|
||||
NOTE styles
|
||||
-------------------------------
|
||||
*/
|
||||
|
||||
.notetitle, .tiptitle, .fastpathtitle {
|
||||
font-weight: bold
|
||||
}
|
||||
|
||||
.attentiontitle, .cautiontitle, .dangertitle, .importanttitle, .remembertitle, .restrictiontitle {
|
||||
font-weight: bold
|
||||
}
|
||||
|
||||
.note, .tip, .fastpath {
|
||||
background: #F2F2F2 url(../images/ico_note.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: top left;
|
||||
padding: 5px;
|
||||
padding-left: 40px;
|
||||
padding-bottom: 10px;
|
||||
border: #999 1px dotted;
|
||||
color: #666666;
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
.attention, .caution, .danger, .important, .remember, .restriction {
|
||||
background: #F2F2F2 url(../images/ico_note_attention.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: top left;
|
||||
padding: 5px;
|
||||
padding-left: 40px;
|
||||
padding-bottom: 10px;
|
||||
border: #999 1px dotted;
|
||||
color: #666666;
|
||||
margin: 5px;
|
||||
}
|
||||
|
||||
/*
|
||||
-------------------------------
|
||||
Top navigation
|
||||
-------------------------------
|
||||
*/
|
||||
|
||||
.qtref {
|
||||
display: block;
|
||||
position: relative;
|
||||
height: 15px;
|
||||
z-index: 1;
|
||||
font-size: 11px;
|
||||
padding-right: 10px;
|
||||
float: right;
|
||||
}
|
||||
|
||||
.naviNextPrevious {
|
||||
clear: both;
|
||||
display: block;
|
||||
position: relative;
|
||||
text-align: right;
|
||||
top: -47px;
|
||||
float: right;
|
||||
height: 20px;
|
||||
z-index: 1;
|
||||
padding-right: 10px;
|
||||
padding-top: 2px;
|
||||
vertical-align: top;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
.naviNextPrevious > a:first-child {
|
||||
background-image: url(../images/btn_prev.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: left;
|
||||
padding-left: 20px;
|
||||
height: 20px;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
.naviNextPrevious > a:last-child {
|
||||
background-image: url(../images/btn_next.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: right;
|
||||
padding-right: 20px;
|
||||
height: 20px;
|
||||
margin-left: 30px;
|
||||
}
|
||||
|
||||
.naviSeparator { display: none }
|
||||
/*
|
||||
-----------
|
||||
footer and license
|
||||
-----------
|
||||
*/
|
||||
|
||||
.footer {
|
||||
text-align: left;
|
||||
padding-top: 45px;
|
||||
padding-left: 5px;
|
||||
margin-top: 45px;
|
||||
margin-bottom: 45px;
|
||||
font-size: 10px;
|
||||
border-top: 1px solid #999;
|
||||
}
|
||||
|
||||
.footer p {
|
||||
line-height: 14px;
|
||||
font-size: 11px;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.footer a[href*="http://"], a[href*="ftp://"], a[href*="https://"] {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.footerNavi {
|
||||
width: auto;
|
||||
text-align: right;
|
||||
margin-top: 50px;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.navigationbar {
|
||||
display: block;
|
||||
position: relative;
|
||||
top: -20px;
|
||||
border-top: 1px solid #cecece;
|
||||
border-bottom: 1px solid #cecece;
|
||||
background-color: #F2F2F2;
|
||||
z-index: 1;
|
||||
height: 20px;
|
||||
padding-left: 7px;
|
||||
margin: 0px;
|
||||
padding-top: 2px;
|
||||
margin-left: -5px;
|
||||
margin-right: -5px;
|
||||
}
|
||||
|
||||
.navigationbar .first {
|
||||
background: url(../images/home.png);
|
||||
background-position: left;
|
||||
background-repeat: no-repeat;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
.navigationbar ul {
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
.navigationbar ul li {
|
||||
list-style-type: none;
|
||||
padding-top: 2px;
|
||||
padding-left: 4px;
|
||||
margin: 0;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.navigationbar li {
|
||||
float: left
|
||||
}
|
||||
|
||||
.navigationbar li a, .navigationbar td a {
|
||||
display: block;
|
||||
text-decoration: none;
|
||||
background: url(../images/arrow_bc.png);
|
||||
background-repeat: no-repeat;
|
||||
background-position: right;
|
||||
padding-right: 17px;
|
||||
}
|
||||
|
||||
table.buildversion {
|
||||
float: right;
|
||||
margin-top: -18px !important;
|
||||
}
|
||||
|
||||
.navigationbar table {
|
||||
border-radius: 0;
|
||||
border: 0 none;
|
||||
background-color: #F2F2F2;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.navigationbar table td {
|
||||
padding: 0;
|
||||
border: 0 none;
|
||||
}
|
||||
|
||||
#buildversion {
|
||||
font-style: italic;
|
||||
font-size: small;
|
||||
float: right;
|
||||
margin-right: 5px;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
/* table of content
|
||||
no display
|
||||
*/
|
||||
|
||||
/*
|
||||
-----------
|
||||
headers
|
||||
-----------
|
||||
*/
|
||||
|
||||
@media screen {
|
||||
.title {
|
||||
color: #313131;
|
||||
font-size: 24px;
|
||||
font-weight: normal;
|
||||
left: 0;
|
||||
padding-bottom: 20px;
|
||||
padding-left: 10px;
|
||||
padding-top: 20px;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
background-color: #E6E6E6;
|
||||
border-bottom: 1px #CCC solid;
|
||||
border-top: 2px #CCC solid;
|
||||
font-weight: bold;
|
||||
margin-left: 0px;
|
||||
margin-right: 0px;
|
||||
}
|
||||
.subtitle, .small-subtitle {
|
||||
display: block;
|
||||
clear: left;
|
||||
}
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 0
|
||||
}
|
||||
|
||||
h2, p.h2 {
|
||||
font: 500 16px/1.2 Arial;
|
||||
font-weight: 100;
|
||||
background-color: #F2F3F4;
|
||||
padding: 4px;
|
||||
margin-bottom: 30px;
|
||||
margin-top: 30px;
|
||||
border-top: #E0E0DE 1px solid;
|
||||
border-bottom: #E0E0DE 1px solid;
|
||||
max-width: 99%;
|
||||
}
|
||||
|
||||
h2:target {
|
||||
background-color: #F2F3D4;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font: 500 14px/1.2 Arial;
|
||||
font-weight: 100;
|
||||
text-decoration: underline;
|
||||
margin-bottom: 30px;
|
||||
margin-top: 30px;
|
||||
}
|
||||
|
||||
h3.fn, span.fn {
|
||||
border-width: 1px;
|
||||
border-style: solid;
|
||||
border-color: #E6E6E6;
|
||||
-moz-border-radius: 7px 7px 7px 7px;
|
||||
-webkit-border-radius: 7px 7px 7px 7px;
|
||||
border-radius: 7px 7px 7px 7px;
|
||||
background-color: #F6F6F6;
|
||||
word-spacing: 3px;
|
||||
padding: 5px 5px;
|
||||
text-decoration: none;
|
||||
font-weight: bold;
|
||||
max-width: 75%;
|
||||
font-size: 14px;
|
||||
margin: 0px;
|
||||
margin-top: 45px;
|
||||
}
|
||||
.fngroup h3.fngroupitem {
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
h3.fn code {
|
||||
float: right;
|
||||
}
|
||||
h3.fn:target {
|
||||
background-color: #F6F6D6;
|
||||
}
|
||||
|
||||
.name {
|
||||
color: #1A1A1A
|
||||
}
|
||||
|
||||
.type {
|
||||
color: #808080
|
||||
}
|
||||
|
||||
@media print {
|
||||
.title {
|
||||
color: #0066CB;
|
||||
font-family: Arial, Helvetica;
|
||||
font-size: 32px;
|
||||
font-weight: normal;
|
||||
left: 0;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
-----------------
|
||||
table styles
|
||||
-----------------
|
||||
*/
|
||||
|
||||
.table img {
|
||||
border: none;
|
||||
margin-left: 0px;
|
||||
-moz-box-shadow: 0px 0px 0px #fff;
|
||||
-webkit-box-shadow: 0px 0px 0px #fff;
|
||||
box-shadow: 0px 0px 0px #fff;
|
||||
}
|
||||
|
||||
/* table with border alternative colours*/
|
||||
|
||||
table, pre, .LegaleseLeft {
|
||||
-moz-border-radius: 7px 7px 7px 7px;
|
||||
-webkit-border-radius: 7px 7px 7px 7px;
|
||||
border-radius: 7px 7px 7px 7px;
|
||||
background-color: #F6F6F6;
|
||||
border: 1px solid #E6E6E6;
|
||||
border-collapse: separate;
|
||||
margin-bottom: 25px;
|
||||
margin-left: 15px;
|
||||
font-size: 12px;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
table tr.even {
|
||||
background-color: white;
|
||||
color: #66666E;
|
||||
}
|
||||
|
||||
table tr.odd {
|
||||
background-color: #F6F6F6;
|
||||
color: #66666E;
|
||||
}
|
||||
|
||||
table tr:target {
|
||||
background-color: #F6F6D6;
|
||||
}
|
||||
|
||||
table thead {
|
||||
text-align: left;
|
||||
padding-left: 20px;
|
||||
background-color: #e1e0e0;
|
||||
border-left: none;
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
table thead th {
|
||||
padding-top: 5px;
|
||||
padding-left: 10px;
|
||||
padding-bottom: 5px;
|
||||
border-bottom: 2px solid #D1D1D1;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
table th {
|
||||
text-align: left;
|
||||
padding-left: 20px;
|
||||
}
|
||||
|
||||
table td {
|
||||
padding: 3px 15px 3px 20px;
|
||||
border-bottom: #CCC dotted 1px;
|
||||
}
|
||||
|
||||
table p {
|
||||
margin: 0px
|
||||
}
|
||||
|
||||
.LegaleseLeft {
|
||||
font-family: monospace;
|
||||
white-space: pre-wrap;
|
||||
}
|
||||
/* table bodless & white*/
|
||||
|
||||
.borderless {
|
||||
border-radius: 0px 0px 0px 0px;
|
||||
background-color: #fff;
|
||||
border: 1px solid #fff;
|
||||
}
|
||||
|
||||
.borderless tr {
|
||||
background-color: #FFF;
|
||||
color: #66666E;
|
||||
}
|
||||
|
||||
.borderless td {
|
||||
border: none;
|
||||
border-bottom: #fff dotted 1px;
|
||||
}
|
||||
|
||||
/*
|
||||
-----------
|
||||
List
|
||||
-----------
|
||||
*/
|
||||
|
||||
ul {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
li {
|
||||
margin-bottom: 10px;
|
||||
padding-left: 8px;
|
||||
list-style: outside;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
ul > li {
|
||||
list-style-type: square;
|
||||
}
|
||||
|
||||
ol {
|
||||
margin: 10px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
ol.A > li {
|
||||
list-style-type: upper-alpha;
|
||||
}
|
||||
|
||||
ol.a > li{
|
||||
list-style-type: lower-alpha;
|
||||
}
|
||||
|
||||
ol > li {
|
||||
margin-left: 30px;
|
||||
padding-left: 8px;
|
||||
list-style: decimal;
|
||||
}
|
||||
|
||||
.centerAlign {
|
||||
text-align: left
|
||||
}
|
||||
|
||||
.cpp, .LegaleseLeft {
|
||||
display: block;
|
||||
margin: 10px;
|
||||
overflow: auto;
|
||||
padding: 20px 20px 20px 20px;
|
||||
}
|
||||
|
||||
.js {
|
||||
display: block;
|
||||
margin: 10px;
|
||||
overflow: auto;
|
||||
padding: 20px 20px 20px 20px;
|
||||
}
|
||||
|
||||
.memItemLeft {
|
||||
padding-right: 3px
|
||||
}
|
||||
|
||||
.memItemRight {
|
||||
padding: 3px 15px 3px 0
|
||||
}
|
||||
|
||||
.qml {
|
||||
display: block;
|
||||
margin: 10px;
|
||||
overflow: auto;
|
||||
padding: 20px 20px 20px 20px;
|
||||
}
|
||||
|
||||
.qmldefault {
|
||||
padding-left: 5px;
|
||||
float: right;
|
||||
color: red;
|
||||
}
|
||||
|
||||
.qmlreadonly {
|
||||
padding-left: 5px;
|
||||
float: right;
|
||||
color: #254117;
|
||||
}
|
||||
|
||||
.rightAlign {
|
||||
padding: 3px 5px 3px 10px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.qmldoc {
|
||||
margin-left: 15px
|
||||
}
|
||||
|
||||
.flowList {
|
||||
padding: 25px
|
||||
}
|
||||
.flowList dd {
|
||||
display: inline-block;
|
||||
margin-left: 10px;
|
||||
width: 255px;
|
||||
line-height: 1.15em;
|
||||
overflow-x: hidden;
|
||||
text-overflow: ellipsis
|
||||
}
|
||||
.alphaChar {
|
||||
font-size: 2em;
|
||||
position: relative
|
||||
}
|
||||
/*
|
||||
-----------
|
||||
Content table
|
||||
-----------
|
||||
*/
|
||||
|
||||
@media print {
|
||||
.toc {
|
||||
float: right;
|
||||
clear: right;
|
||||
padding-bottom: 10px;
|
||||
padding-top: 50px;
|
||||
width: 100%;
|
||||
background-image: url(../images/bgrContent.png);
|
||||
background-position: top;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen {
|
||||
.toc {
|
||||
float: right;
|
||||
clear: right;
|
||||
vertical-align: top;
|
||||
-moz-border-radius: 7px 7px 7px 7px;
|
||||
-webkit-border-radius: 7px 7px 7px 7px;
|
||||
border-radius: 7px 7px 7px 7px;
|
||||
background: #FFF url('../images/bgrContent.png');
|
||||
background-position: top;
|
||||
background-repeat: repeat-x;
|
||||
border: 1px solid #E6E6E6;
|
||||
padding-left: 5px;
|
||||
padding-bottom: 10px;
|
||||
height: auto;
|
||||
width: 200px;
|
||||
text-align: left;
|
||||
margin-left: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.toc h3 {
|
||||
text-decoration: none
|
||||
}
|
||||
|
||||
.toc h3 {
|
||||
font: 500 14px/1.2 Arial;
|
||||
font-weight: 100;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
padding-top: 5px;
|
||||
padding-left: 5px;
|
||||
}
|
||||
|
||||
.toc ul {
|
||||
padding-left: 10px;
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
.toc ul li {
|
||||
margin-left: 15px;
|
||||
list-style-image: url(../images/bullet_dn.png);
|
||||
marker-offset: 0px;
|
||||
margin-bottom: 8px;
|
||||
padding-left: 0px;
|
||||
}
|
||||
|
||||
.toc .level1 {
|
||||
border: none
|
||||
}
|
||||
|
||||
.toc .level2 {
|
||||
border: none;
|
||||
margin-left: 25px;
|
||||
}
|
||||
|
||||
.level3 {
|
||||
border: none;
|
||||
margin-left: 30px;
|
||||
}
|
||||
|
||||
.clearfix {
|
||||
clear: both
|
||||
}
|
||||
|
||||
/*
|
||||
-----------
|
||||
Landing page
|
||||
-----------
|
||||
*/
|
||||
|
||||
.col-group {
|
||||
white-space: nowrap;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
|
||||
.landing h2 {
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
margin-bottom: 0px;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.landing a, .landing li {
|
||||
font-size: 13px;
|
||||
font-weight: bold !important;
|
||||
}
|
||||
|
||||
.col-1 {
|
||||
display: inline-block;
|
||||
white-space: normal;
|
||||
width: 70%;
|
||||
height: 100%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.col-2 {
|
||||
display: inline-block;
|
||||
white-space: normal;
|
||||
width: 20%;
|
||||
margin-left: 5%;
|
||||
position: relative;
|
||||
top: -20px;
|
||||
}
|
||||
|
||||
.col-1 h1 {
|
||||
margin: 20px 0 0 0;
|
||||
}
|
||||
|
||||
.col-1 h2 {
|
||||
font-size: 18px;
|
||||
font-weight: bold !important;
|
||||
}
|
||||
|
||||
.landingicons {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.icons1of3 {
|
||||
display: inline-block;
|
||||
width: 33.3333%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.icons1of3 h2, .doc-column h2 {
|
||||
font-size: 15px;
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
div.multi-column {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
div.multi-column div {
|
||||
display: -moz-inline-box;
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
margin-top: 1em;
|
||||
margin-right: 4em;
|
||||
width: 24em;
|
||||
}
|
||||
|
||||
.mainContent .video {
|
||||
width:40%;
|
||||
max-width:640px;
|
||||
margin: 15px 0 0 15px;
|
||||
position:relative;
|
||||
display:table
|
||||
}
|
||||
|
||||
.mainContent .video > .vspan {
|
||||
padding-top:60%;
|
||||
display:block
|
||||
}
|
||||
.mainContent .video iframe {
|
||||
width:100%;
|
||||
height:100%;
|
||||
position:absolute;
|
||||
top:0;
|
||||
left:0
|
||||
}
|
|
@ -1,128 +0,0 @@
|
|||
#include "expressionrole.h"
|
||||
#include "qqmlsortfilterproxymodel.h"
|
||||
#include <QtQml>
|
||||
|
||||
namespace qqsfpm {
|
||||
|
||||
/*!
|
||||
\qmltype ExpressionRole
|
||||
\inherits SingleRole
|
||||
\inqmlmodule SortFilterProxyModel
|
||||
\ingroup ProxyRoles
|
||||
\brief A custom role computed from a javascript expression.
|
||||
|
||||
An ExpressionRole is a \l ProxyRole allowing to implement a custom role based on a javascript expression.
|
||||
|
||||
In the following example, the \c c role is computed by adding the \c a role and \c b role of the model :
|
||||
\code
|
||||
SortFilterProxyModel {
|
||||
sourceModel: numberModel
|
||||
proxyRoles: ExpressionRole {
|
||||
name: "c"
|
||||
expression: model.a + model.b
|
||||
}
|
||||
}
|
||||
\endcode
|
||||
*/
|
||||
|
||||
/*!
|
||||
\qmlproperty expression ExpressionRole::expression
|
||||
|
||||
An expression to implement a custom role.
|
||||
It has the same syntax has a \l {http://doc.qt.io/qt-5/qtqml-syntax-propertybinding.html} {Property Binding} except it will be evaluated for each of the source model's rows.
|
||||
The data for this role will be the retuned valued of the expression.
|
||||
Data for each row is exposed like for a delegate of a QML View.
|
||||
|
||||
This expression is reevaluated for a row every time its model data changes.
|
||||
When an external property (not \c index or in \c model) the expression depends on changes, the expression is reevaluated for every row of the source model.
|
||||
To capture the properties the expression depends on, the expression is first executed with invalid data and each property access is detected by the QML engine.
|
||||
This means that if a property is not accessed because of a conditional, it won't be captured and the expression won't be reevaluted when this property changes.
|
||||
|
||||
A workaround to this problem is to access all the properties the expressions depends unconditionally at the beggining of the expression.
|
||||
*/
|
||||
const QQmlScriptString& ExpressionRole::expression() const
|
||||
{
|
||||
return m_scriptString;
|
||||
}
|
||||
|
||||
void ExpressionRole::setExpression(const QQmlScriptString& scriptString)
|
||||
{
|
||||
if (m_scriptString == scriptString)
|
||||
return;
|
||||
|
||||
m_scriptString = scriptString;
|
||||
updateExpression();
|
||||
|
||||
Q_EMIT expressionChanged();
|
||||
invalidate();
|
||||
}
|
||||
|
||||
void ExpressionRole::proxyModelCompleted(const QQmlSortFilterProxyModel& proxyModel)
|
||||
{
|
||||
updateContext(proxyModel);
|
||||
}
|
||||
|
||||
QVariant ExpressionRole::data(const QModelIndex& sourceIndex, const QQmlSortFilterProxyModel& proxyModel)
|
||||
{
|
||||
if (!m_scriptString.isEmpty()) {
|
||||
QVariantMap modelMap;
|
||||
QHash<int, QByteArray> roles = proxyModel.roleNames();
|
||||
|
||||
QQmlContext context(qmlContext(this));
|
||||
auto addToContext = [&] (const QString &name, const QVariant& value) {
|
||||
context.setContextProperty(name, value);
|
||||
modelMap.insert(name, value);
|
||||
};
|
||||
|
||||
for (auto it = roles.cbegin(); it != roles.cend(); ++it)
|
||||
addToContext(it.value(), proxyModel.sourceData(sourceIndex, it.key()));
|
||||
addToContext("index", sourceIndex.row());
|
||||
|
||||
context.setContextProperty("model", modelMap);
|
||||
|
||||
QQmlExpression expression(m_scriptString, &context);
|
||||
QVariant result = expression.evaluate();
|
||||
|
||||
if (expression.hasError()) {
|
||||
qWarning() << expression.error();
|
||||
return true;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
return QVariant();
|
||||
}
|
||||
|
||||
void ExpressionRole::updateContext(const QQmlSortFilterProxyModel& proxyModel)
|
||||
{
|
||||
delete m_context;
|
||||
m_context = new QQmlContext(qmlContext(this), this);
|
||||
// what about roles changes ?
|
||||
QVariantMap modelMap;
|
||||
|
||||
auto addToContext = [&] (const QString &name, const QVariant& value) {
|
||||
m_context->setContextProperty(name, value);
|
||||
modelMap.insert(name, value);
|
||||
};
|
||||
|
||||
for (const QByteArray& roleName : proxyModel.roleNames().values())
|
||||
addToContext(roleName, QVariant());
|
||||
|
||||
addToContext("index", -1);
|
||||
|
||||
m_context->setContextProperty("model", modelMap);
|
||||
updateExpression();
|
||||
}
|
||||
|
||||
void ExpressionRole::updateExpression()
|
||||
{
|
||||
if (!m_context)
|
||||
return;
|
||||
|
||||
delete m_expression;
|
||||
m_expression = new QQmlExpression(m_scriptString, m_context, 0, this);
|
||||
connect(m_expression, &QQmlExpression::valueChanged, this, &ExpressionRole::invalidate);
|
||||
m_expression->setNotifyOnValueChanged(true);
|
||||
m_expression->evaluate();
|
||||
}
|
||||
|
||||
}
|
|
@ -1,39 +0,0 @@
|
|||
#ifndef EXPRESSIONROLE_H
|
||||
#define EXPRESSIONROLE_H
|
||||
|
||||
#include "singlerole.h"
|
||||
#include <QQmlScriptString>
|
||||
|
||||
class QQmlExpression;
|
||||
|
||||
namespace qqsfpm {
|
||||
|
||||
class ExpressionRole : public SingleRole
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QQmlScriptString expression READ expression WRITE setExpression NOTIFY expressionChanged)
|
||||
|
||||
public:
|
||||
using SingleRole::SingleRole;
|
||||
|
||||
const QQmlScriptString& expression() const;
|
||||
void setExpression(const QQmlScriptString& scriptString);
|
||||
|
||||
void proxyModelCompleted(const QQmlSortFilterProxyModel& proxyModel) override;
|
||||
|
||||
Q_SIGNALS:
|
||||
void expressionChanged();
|
||||
|
||||
private:
|
||||
QVariant data(const QModelIndex& sourceIndex, const QQmlSortFilterProxyModel& proxyModel) override;
|
||||
void updateContext(const QQmlSortFilterProxyModel& proxyModel);
|
||||
void updateExpression();
|
||||
|
||||
QQmlScriptString m_scriptString;
|
||||
QQmlExpression* m_expression = nullptr;
|
||||
QQmlContext* m_context = nullptr;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // EXPRESSIONROLE_H
|
|
@ -1,65 +0,0 @@
|
|||
#include "filterrole.h"
|
||||
#include "filters/filter.h"
|
||||
|
||||
namespace qqsfpm {
|
||||
|
||||
/*!
|
||||
\qmltype FilterRole
|
||||
\inherits SingleRole
|
||||
\inqmlmodule SortFilterProxyModel
|
||||
\ingroup ProxyRoles
|
||||
\ingroup FilterContainer
|
||||
\brief A role resolving to \c true for rows matching all its filters.
|
||||
|
||||
A FilterRole is a \l ProxyRole that returns \c true for rows matching all its filters.
|
||||
|
||||
In the following example, the \c isAdult role will be equal to \c true if the \c age role is superior or equal to 18.
|
||||
\code
|
||||
SortFilterProxyModel {
|
||||
sourceModel: personModel
|
||||
proxyRoles: FilterRole {
|
||||
name: "isAdult"
|
||||
RangeFilter { roleName: "age"; minimumValue: 18; minimumInclusive: true }
|
||||
}
|
||||
}
|
||||
\endcode
|
||||
\sa FilterContainer
|
||||
*/
|
||||
|
||||
/*!
|
||||
\qmlproperty list<Filter> FilterRole::filters
|
||||
\default
|
||||
|
||||
This property holds the list of filters for this filter role.
|
||||
The data of this role will be equal to the \c true if all its filters match the model row, \c false otherwise.
|
||||
|
||||
\sa Filter, FilterContainer
|
||||
*/
|
||||
|
||||
void FilterRole::onFilterAppended(Filter* filter)
|
||||
{
|
||||
connect(filter, &Filter::invalidated, this, &FilterRole::invalidate);
|
||||
invalidate();
|
||||
}
|
||||
|
||||
void FilterRole::onFilterRemoved(Filter* filter)
|
||||
{
|
||||
disconnect(filter, &Filter::invalidated, this, &FilterRole::invalidate);
|
||||
invalidate();
|
||||
}
|
||||
|
||||
void FilterRole::onFiltersCleared()
|
||||
{
|
||||
invalidate();
|
||||
}
|
||||
|
||||
QVariant FilterRole::data(const QModelIndex& sourceIndex, const QQmlSortFilterProxyModel& proxyModel)
|
||||
{
|
||||
return std::all_of(m_filters.begin(), m_filters.end(),
|
||||
[&] (Filter* filter) {
|
||||
return filter->filterAcceptsRow(sourceIndex, proxyModel);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
}
|
|
@ -1,29 +0,0 @@
|
|||
#ifndef FILTERROLE_H
|
||||
#define FILTERROLE_H
|
||||
|
||||
#include "singlerole.h"
|
||||
#include "filters/filtercontainer.h"
|
||||
|
||||
namespace qqsfpm {
|
||||
|
||||
class FilterRole : public SingleRole, public FilterContainer
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_INTERFACES(qqsfpm::FilterContainer)
|
||||
Q_PROPERTY(QQmlListProperty<qqsfpm::Filter> filters READ filtersListProperty)
|
||||
Q_CLASSINFO("DefaultProperty", "filters")
|
||||
|
||||
public:
|
||||
using SingleRole::SingleRole;
|
||||
|
||||
private:
|
||||
void onFilterAppended(Filter* filter) override;
|
||||
void onFilterRemoved(Filter* filter) override;
|
||||
void onFiltersCleared() override;
|
||||
|
||||
QVariant data(const QModelIndex& sourceIndex, const QQmlSortFilterProxyModel& proxyModel) override;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // FILTERROLE_H
|
|
@ -1,83 +0,0 @@
|
|||
#include "joinrole.h"
|
||||
#include "qqmlsortfilterproxymodel.h"
|
||||
|
||||
namespace qqsfpm {
|
||||
|
||||
/*!
|
||||
\qmltype JoinRole
|
||||
\inherits SingleRole
|
||||
\inqmlmodule SortFilterProxyModel
|
||||
\ingroup ProxyRoles
|
||||
\brief a role made from concatenating other roles.
|
||||
|
||||
A JoinRole is a simple \l ProxyRole that concatenates other roles.
|
||||
|
||||
In the following example, the \c fullName role is computed by the concatenation of the \c firstName role and the \c lastName role separated by a space :
|
||||
\code
|
||||
SortFilterProxyModel {
|
||||
sourceModel: contactModel
|
||||
proxyRoles: JoinRole {
|
||||
name: "fullName"
|
||||
roleNames: ["firstName", "lastName"]
|
||||
}
|
||||
}
|
||||
\endcode
|
||||
|
||||
*/
|
||||
|
||||
/*!
|
||||
\qmlproperty list<string> JoinRole::roleNames
|
||||
|
||||
This property holds the role names that are joined by this role.
|
||||
*/
|
||||
QStringList JoinRole::roleNames() const
|
||||
{
|
||||
return m_roleNames;
|
||||
}
|
||||
|
||||
void JoinRole::setRoleNames(const QStringList& roleNames)
|
||||
{
|
||||
if (m_roleNames == roleNames)
|
||||
return;
|
||||
|
||||
m_roleNames = roleNames;
|
||||
Q_EMIT roleNamesChanged();
|
||||
invalidate();
|
||||
}
|
||||
|
||||
/*!
|
||||
\qmlproperty string JoinRole::separator
|
||||
|
||||
This property holds the separator that is used to join the roles specified in \l roleNames.
|
||||
|
||||
By default, it's a space.
|
||||
*/
|
||||
QString JoinRole::separator() const
|
||||
{
|
||||
return m_separator;
|
||||
}
|
||||
|
||||
void JoinRole::setSeparator(const QString& separator)
|
||||
{
|
||||
if (m_separator == separator)
|
||||
return;
|
||||
|
||||
m_separator = separator;
|
||||
Q_EMIT separatorChanged();
|
||||
invalidate();
|
||||
}
|
||||
|
||||
QVariant JoinRole::data(const QModelIndex &sourceIndex, const QQmlSortFilterProxyModel& proxyModel)
|
||||
{
|
||||
QString result;
|
||||
|
||||
for (const QString& roleName : m_roleNames)
|
||||
result += proxyModel.sourceData(sourceIndex, roleName).toString() + m_separator;
|
||||
|
||||
if (!m_roleNames.isEmpty())
|
||||
result.chop(m_separator.length());
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
|
@ -1,36 +0,0 @@
|
|||
#ifndef JOINROLE_H
|
||||
#define JOINROLE_H
|
||||
|
||||
#include "singlerole.h"
|
||||
|
||||
namespace qqsfpm {
|
||||
|
||||
class JoinRole : public SingleRole
|
||||
{
|
||||
Q_OBJECT
|
||||
Q_PROPERTY(QStringList roleNames READ roleNames WRITE setRoleNames NOTIFY roleNamesChanged)
|
||||
Q_PROPERTY(QString separator READ separator WRITE setSeparator NOTIFY separatorChanged)
|
||||
|
||||
public:
|
||||
using SingleRole::SingleRole;
|
||||
|
||||
QStringList roleNames() const;
|
||||
void setRoleNames(const QStringList& roleNames);
|
||||
|
||||
QString separator() const;
|
||||
void setSeparator(const QString& separator);
|
||||
|
||||
Q_SIGNALS:
|
||||
void roleNamesChanged();
|
||||
|
||||
void separatorChanged();
|
||||
|
||||
private:
|
||||
QStringList m_roleNames;
|
||||
QVariant data(const QModelIndex& sourceIndex, const QQmlSortFilterProxyModel& proxyModel) override;
|
||||
QString m_separator = " ";
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // JOINROLE_H
|
|
@ -1,46 +0,0 @@
|
|||
#include "proxyrole.h"
|
||||
#include <QQmlEngine>
|
||||
#include <QQmlContext>
|
||||
#include <QQmlExpression>
|
||||
#include <QCoreApplication>
|
||||
#include <QDebug>
|
||||
#include <QQmlInfo>
|
||||
#include "filters/filter.h"
|
||||
#include "qqmlsortfilterproxymodel.h"
|
||||
|
||||
namespace qqsfpm {
|
||||
|
||||
/*!
|
||||
\qmltype ProxyRole
|
||||
\inqmlmodule SortFilterProxyModel
|
||||
\ingroup ProxyRoles
|
||||
\brief Base type for the \l SortFilterProxyModel proxy roles.
|
||||
|
||||
The ProxyRole type cannot be used directly in a QML file.
|
||||
It exists to provide a set of common properties and methods,
|
||||
available across all the other proxy role types that inherit from it.
|
||||
Attempting to use the ProxyRole type directly will result in an error.
|
||||
*/
|
||||
|
||||
QVariant ProxyRole::roleData(const QModelIndex& sourceIndex, const QQmlSortFilterProxyModel& proxyModel, const QString &name)
|
||||
{
|
||||
if (m_mutex.tryLock()) {
|
||||
QVariant result = data(sourceIndex, proxyModel, name);
|
||||
m_mutex.unlock();
|
||||
return result;
|
||||
} else {
|
||||
return {};
|
||||
}
|
||||
}
|
||||
|
||||
void ProxyRole::proxyModelCompleted(const QQmlSortFilterProxyModel &proxyModel)
|
||||
{
|
||||
Q_UNUSED(proxyModel)
|
||||
}
|
||||
|
||||
void ProxyRole::invalidate()
|
||||
{
|
||||
Q_EMIT invalidated();
|
||||
}
|
||||
|
||||
}
|
|
@ -1,40 +0,0 @@
|
|||
#ifndef PROXYROLE_H
|
||||
#define PROXYROLE_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QMutex>
|
||||
|
||||
namespace qqsfpm {
|
||||
|
||||
class QQmlSortFilterProxyModel;
|
||||
|
||||
class ProxyRole : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
using QObject::QObject;
|
||||
virtual ~ProxyRole() = default;
|
||||
|
||||
QVariant roleData(const QModelIndex& sourceIndex, const QQmlSortFilterProxyModel& proxyModel, const QString& name);
|
||||
virtual void proxyModelCompleted(const QQmlSortFilterProxyModel& proxyModel);
|
||||
|
||||
virtual QStringList names() = 0;
|
||||
|
||||
protected:
|
||||
void invalidate();
|
||||
|
||||
Q_SIGNALS:
|
||||
void invalidated();
|
||||
void namesAboutToBeChanged();
|
||||
void namesChanged();
|
||||
|
||||
private:
|
||||
virtual QVariant data(const QModelIndex& sourceIndex, const QQmlSortFilterProxyModel& proxyModel, const QString& name) = 0;
|
||||
|
||||
QMutex m_mutex;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif // PROXYROLE_H
|
|
@ -1,64 +0,0 @@
|
|||
#include "proxyrolecontainer.h"
|
||||
|
||||
namespace qqsfpm {
|
||||
|
||||
QList<ProxyRole*> ProxyRoleContainer::proxyRoles() const
|
||||
{
|
||||
return m_proxyRoles;
|
||||
}
|
||||
|
||||
void ProxyRoleContainer::appendProxyRole(ProxyRole* proxyRole)
|
||||
{
|
||||
m_proxyRoles.append(proxyRole);
|
||||
onProxyRoleAppended(proxyRole);
|
||||
}
|
||||
|
||||
void ProxyRoleContainer::removeProxyRole(ProxyRole* proxyRole)
|
||||
{
|
||||
m_proxyRoles.removeOne(proxyRole);
|
||||
onProxyRoleRemoved(proxyRole);
|
||||
}
|
||||
|
||||
void ProxyRoleContainer::clearProxyRoles()
|
||||
{
|
||||
m_proxyRoles.clear();
|
||||
onProxyRolesCleared();
|
||||
}
|
||||
|
||||
QQmlListProperty<ProxyRole> ProxyRoleContainer::proxyRolesListProperty()
|
||||
{
|
||||
return QQmlListProperty<ProxyRole>(reinterpret_cast<QObject*>(this), &m_proxyRoles,
|
||||
&ProxyRoleContainer::append_proxyRole,
|
||||
&ProxyRoleContainer::count_proxyRole,
|
||||
&ProxyRoleContainer::at_proxyRole,
|
||||
&ProxyRoleContainer::clear_proxyRoles);
|
||||
}
|
||||
|
||||
void ProxyRoleContainer::append_proxyRole(QQmlListProperty<ProxyRole>* list, ProxyRole* proxyRole)
|
||||
{
|
||||
if (!proxyRole)
|
||||
return;
|
||||
|
||||
ProxyRoleContainer* that = reinterpret_cast<ProxyRoleContainer*>(list->object);
|
||||
that->appendProxyRole(proxyRole);
|
||||
}
|
||||
|
||||
qsizetype ProxyRoleContainer::count_proxyRole(QQmlListProperty<ProxyRole>* list)
|
||||
{
|
||||
QList<ProxyRole*>* ProxyRoles = static_cast<QList<ProxyRole*>*>(list->data);
|
||||
return ProxyRoles->count();
|
||||
}
|
||||
|
||||
ProxyRole* ProxyRoleContainer::at_proxyRole(QQmlListProperty<ProxyRole>* list, qsizetype index)
|
||||
{
|
||||
QList<ProxyRole*>* ProxyRoles = static_cast<QList<ProxyRole*>*>(list->data);
|
||||
return ProxyRoles->at(index);
|
||||
}
|
||||
|
||||
void ProxyRoleContainer::clear_proxyRoles(QQmlListProperty<ProxyRole> *list)
|
||||
{
|
||||
ProxyRoleContainer* that = reinterpret_cast<ProxyRoleContainer*>(list->object);
|
||||
that->clearProxyRoles();
|
||||
}
|
||||
|
||||
}
|
|
@ -1,42 +0,0 @@
|
|||
#ifndef PROXYROLECONTAINER_H
|
||||
#define PROXYROLECONTAINER_H
|
||||
|
||||
#include <QList>
|
||||
#include <QQmlListProperty>
|
||||
|
||||
namespace qqsfpm {
|
||||
|
||||
class ProxyRole;
|
||||
class QQmlSortFilterProxyModel;
|
||||
|
||||
class ProxyRoleContainer {
|
||||
public:
|
||||
virtual ~ProxyRoleContainer() = default;
|
||||
|
||||
QList<ProxyRole*> proxyRoles() const;
|
||||
void appendProxyRole(ProxyRole* proxyRole);
|
||||
void removeProxyRole(ProxyRole* proxyRole);
|
||||
void clearProxyRoles();
|
||||
|
||||
QQmlListProperty<ProxyRole> proxyRolesListProperty();
|
||||
|
||||
protected:
|
||||
QList<ProxyRole*> m_proxyRoles;
|
||||
|
||||
private:
|
||||
virtual void onProxyRoleAppended(ProxyRole* proxyRole) = 0;
|
||||
virtual void onProxyRoleRemoved(ProxyRole* proxyRole) = 0;
|
||||
virtual void onProxyRolesCleared() = 0;
|
||||
|
||||
static void append_proxyRole(QQmlListProperty<ProxyRole>* list, ProxyRole* proxyRole);
|
||||
static qsizetype count_proxyRole(QQmlListProperty<ProxyRole>* list);
|
||||
static ProxyRole* at_proxyRole(QQmlListProperty<ProxyRole>* list, qsizetype index);
|
||||
static void clear_proxyRoles(QQmlListProperty<ProxyRole>* list);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#define ProxyRoleContainer_iid "fr.grecko.SortFilterProxyModel.ProxyRoleContainer"
|
||||
Q_DECLARE_INTERFACE(qqsfpm::ProxyRoleContainer, ProxyRoleContainer_iid)
|
||||
|
||||
#endif // PROXYROLECONTAINER_H
|
|
@ -1,23 +0,0 @@
|
|||
#include "proxyrole.h"
|
||||
#include "joinrole.h"
|
||||
#include "switchrole.h"
|
||||
#include "expressionrole.h"
|
||||
#include "regexprole.h"
|
||||
#include "filterrole.h"
|
||||
#include <QQmlEngine>
|
||||
#include <QCoreApplication>
|
||||
|
||||
namespace qqsfpm {
|
||||
|
||||
void registerProxyRoleTypes() {
|
||||
qmlRegisterUncreatableType<ProxyRole>("SortFilterProxyModel", 0, 2, "ProxyRole", "ProxyRole is an abstract class");
|
||||
qmlRegisterType<JoinRole>("SortFilterProxyModel", 0, 2, "JoinRole");
|
||||
qmlRegisterType<SwitchRole>("SortFilterProxyModel", 0, 2, "SwitchRole");
|
||||
qmlRegisterType<ExpressionRole>("SortFilterProxyModel", 0, 2, "ExpressionRole");
|
||||
qmlRegisterType<RegExpRole>("SortFilterProxyModel", 0, 2, "RegExpRole");
|
||||
qmlRegisterType<FilterRole>("SortFilterProxyModel", 0, 2, "FilterRole");
|
||||
}
|
||||
|
||||
Q_COREAPP_STARTUP_FUNCTION(registerProxyRoleTypes)
|
||||
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue