File indexing completed on 2024-12-22 04:31:06
0001 /* 0002 * Copyright (C) 2021 CutefishOS Team. 0003 * 0004 * Author: cutefish <cutefishos@foxmail.com> 0005 * 0006 * This program is free software: you can redistribute it and/or modify 0007 * it under the terms of the GNU General Public License as published by 0008 * the Free Software Foundation, either version 3 of the License, or 0009 * any later version. 0010 * 0011 * This program is distributed in the hope that it will be useful, 0012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0014 * GNU General Public License for more details. 0015 * 0016 * You should have received a copy of the GNU General Public License 0017 * along with this program. If not, see <http://www.gnu.org/licenses/>. 0018 */ 0019 0020 #include "windowhelper.h" 0021 0022 #include <QGuiApplication> 0023 #include <QCursor> 0024 #include <QDebug> 0025 0026 0027 WindowHelper::WindowHelper(QObject *parent) 0028 : QObject(parent) 0029 { 0030 } 0031 0032 void WindowHelper::startSystemMove(QWindow *w) 0033 { 0034 doStartSystemMoveResize(w, 16); 0035 } 0036 0037 void WindowHelper::startSystemResize(QWindow *w, Qt::Edges edges) 0038 { 0039 doStartSystemMoveResize(w, edges); 0040 } 0041 0042 void WindowHelper::minimizeWindow(QWindow *w) 0043 { 0044 qWarning() << "not implement"; 0045 } 0046 0047 void WindowHelper::doStartSystemMoveResize(QWindow *w, int edges) 0048 { 0049 qWarning() << "not implement"; 0050 }