mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-27 05:38:37 +08:00
update
This commit is contained in:
parent
294606d019
commit
9f9e48659b
@ -4,6 +4,7 @@ import QtQuick.Controls
|
|||||||
import QtQuick.Layouts
|
import QtQuick.Layouts
|
||||||
import Qt.labs.platform
|
import Qt.labs.platform
|
||||||
import FluentUI
|
import FluentUI
|
||||||
|
import example
|
||||||
import "qrc:///example/qml/component"
|
import "qrc:///example/qml/component"
|
||||||
import "qrc:///example/qml/global"
|
import "qrc:///example/qml/global"
|
||||||
|
|
||||||
@ -207,6 +208,11 @@ CustomWindow {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//todo
|
||||||
|
CircularReveal{
|
||||||
|
anchors.fill: parent
|
||||||
|
}
|
||||||
|
|
||||||
Image{
|
Image{
|
||||||
id:img_cache
|
id:img_cache
|
||||||
visible: false
|
visible: false
|
||||||
|
6
example/src/component/CircularReveal.cpp
Normal file
6
example/src/component/CircularReveal.cpp
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#include "CircularReveal.h"
|
||||||
|
|
||||||
|
CircularReveal::CircularReveal()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
16
example/src/component/CircularReveal.h
Normal file
16
example/src/component/CircularReveal.h
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
#ifndef CIRCULARREVEAL_H
|
||||||
|
#define CIRCULARREVEAL_H
|
||||||
|
|
||||||
|
#include <QQuickItem>
|
||||||
|
|
||||||
|
class CircularReveal : public QQuickItem
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
CircularReveal();
|
||||||
|
|
||||||
|
signals:
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // CIRCULARREVEAL_H
|
@ -6,6 +6,7 @@
|
|||||||
#include <QProcess>
|
#include <QProcess>
|
||||||
#include <FramelessHelper/Quick/framelessquickmodule.h>
|
#include <FramelessHelper/Quick/framelessquickmodule.h>
|
||||||
#include <FramelessHelper/Core/private/framelessconfig_p.h>
|
#include <FramelessHelper/Core/private/framelessconfig_p.h>
|
||||||
|
#include "src/component/CircularReveal.h"
|
||||||
#include "AppInfo.h"
|
#include "AppInfo.h"
|
||||||
|
|
||||||
FRAMELESSHELPER_USE_NAMESPACE
|
FRAMELESSHELPER_USE_NAMESPACE
|
||||||
@ -37,6 +38,8 @@ int main(int argc, char *argv[])
|
|||||||
app.setQuitOnLastWindowClosed(false);
|
app.setQuitOnLastWindowClosed(false);
|
||||||
QQmlApplicationEngine engine;
|
QQmlApplicationEngine engine;
|
||||||
FramelessHelper::Quick::registerTypes(&engine);
|
FramelessHelper::Quick::registerTypes(&engine);
|
||||||
|
qmlRegisterType<CircularReveal>("example", 1, 0, "CircularReveal");
|
||||||
|
|
||||||
appInfo->init(&engine);
|
appInfo->init(&engine);
|
||||||
const QUrl url(QStringLiteral("qrc:/example/qml/App.qml"));
|
const QUrl url(QStringLiteral("qrc:/example/qml/App.qml"));
|
||||||
QObject::connect(&engine, &QQmlApplicationEngine::objectCreated,
|
QObject::connect(&engine, &QQmlApplicationEngine::objectCreated,
|
||||||
|
@ -191,7 +191,7 @@ Rectangle {
|
|||||||
implicitWidth: columnSource[column].width
|
implicitWidth: columnSource[column].width
|
||||||
Rectangle{
|
Rectangle{
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
visible: item_loader.sourceComponent === null
|
visible: item_loader.sourceComponent == null
|
||||||
color: selected ? control.selectionColor : "#00000000"
|
color: selected ? control.selectionColor : "#00000000"
|
||||||
}
|
}
|
||||||
MouseArea{
|
MouseArea{
|
||||||
@ -304,6 +304,7 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
TapHandler{
|
TapHandler{
|
||||||
onDoubleTapped: {
|
onDoubleTapped: {
|
||||||
|
closeEditor()
|
||||||
selection_model.clear()
|
selection_model.clear()
|
||||||
for(var i=0;i<=table_view.rows;i++){
|
for(var i=0;i<=table_view.rows;i++){
|
||||||
selection_model.select(table_model.index(i,column),ItemSelectionModel.Select)
|
selection_model.select(table_model.index(i,column),ItemSelectionModel.Select)
|
||||||
@ -377,6 +378,7 @@ Rectangle {
|
|||||||
}
|
}
|
||||||
TapHandler{
|
TapHandler{
|
||||||
onDoubleTapped: {
|
onDoubleTapped: {
|
||||||
|
closeEditor()
|
||||||
selection_model.clear()
|
selection_model.clear()
|
||||||
for(var i=0;i<=columnSource.length;i++){
|
for(var i=0;i<=columnSource.length;i++){
|
||||||
selection_model.select(table_model.index(row,i),ItemSelectionModel.Select)
|
selection_model.select(table_model.index(row,i),ItemSelectionModel.Select)
|
||||||
|
Loading…
Reference in New Issue
Block a user