This commit is contained in:
朱子楚\zhuzi 2023-06-29 23:36:36 +08:00
parent 294606d019
commit 9f9e48659b
5 changed files with 34 additions and 1 deletions

View File

@ -4,6 +4,7 @@ import QtQuick.Controls
import QtQuick.Layouts
import Qt.labs.platform
import FluentUI
import example
import "qrc:///example/qml/component"
import "qrc:///example/qml/global"
@ -207,6 +208,11 @@ CustomWindow {
}
}
//todo
CircularReveal{
anchors.fill: parent
}
Image{
id:img_cache
visible: false

View File

@ -0,0 +1,6 @@
#include "CircularReveal.h"
CircularReveal::CircularReveal()
{
}

View 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

View File

@ -6,6 +6,7 @@
#include <QProcess>
#include <FramelessHelper/Quick/framelessquickmodule.h>
#include <FramelessHelper/Core/private/framelessconfig_p.h>
#include "src/component/CircularReveal.h"
#include "AppInfo.h"
FRAMELESSHELPER_USE_NAMESPACE
@ -37,6 +38,8 @@ int main(int argc, char *argv[])
app.setQuitOnLastWindowClosed(false);
QQmlApplicationEngine engine;
FramelessHelper::Quick::registerTypes(&engine);
qmlRegisterType<CircularReveal>("example", 1, 0, "CircularReveal");
appInfo->init(&engine);
const QUrl url(QStringLiteral("qrc:/example/qml/App.qml"));
QObject::connect(&engine, &QQmlApplicationEngine::objectCreated,

View File

@ -191,7 +191,7 @@ Rectangle {
implicitWidth: columnSource[column].width
Rectangle{
anchors.fill: parent
visible: item_loader.sourceComponent === null
visible: item_loader.sourceComponent == null
color: selected ? control.selectionColor : "#00000000"
}
MouseArea{
@ -304,6 +304,7 @@ Rectangle {
}
TapHandler{
onDoubleTapped: {
closeEditor()
selection_model.clear()
for(var i=0;i<=table_view.rows;i++){
selection_model.select(table_model.index(i,column),ItemSelectionModel.Select)
@ -377,6 +378,7 @@ Rectangle {
}
TapHandler{
onDoubleTapped: {
closeEditor()
selection_model.clear()
for(var i=0;i<=columnSource.length;i++){
selection_model.select(table_model.index(row,i),ItemSelectionModel.Select)