mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-23 03:10:10 +08:00
update
This commit is contained in:
parent
294606d019
commit
9f9e48659b
@ -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
|
||||
|
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 <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,
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user