增加版权信息

This commit is contained in:
lixueman 2022-09-07 14:51:05 +08:00
parent 2ca68199f1
commit 8e026603c8
53 changed files with 768 additions and 40 deletions

8
debian/changelog vendored
View File

@ -1,3 +1,11 @@
ukui-menu (3.1.1-ok4~0907) yangtze; urgency=medium
* close-cd #125158 【开始菜单】切换全屏时动画显示不太流畅
* close-cd #133399 【开始菜单】【PC】只有一个用户开始菜单右键电源按钮存在切换用户选项
* 添加版权信息
-- lixueman <lixueman@kylinos.cn> Wed, 07 Sep 2022 14:12:53 +0800
ukui-menu (3.1.1-ok4~0831) yangtze; urgency=medium ukui-menu (3.1.1-ok4~0831) yangtze; urgency=medium
* close-cd # 131373 【wayland】【软件更新器】点击打开软件更新器后开始菜单过6s左右才退出; * close-cd # 131373 【wayland】【软件更新器】点击打开软件更新器后开始菜单过6s左右才退出;

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#include "dbus.h" #include "dbus.h"
#include <QFileInfo> #include <QFileInfo>
#include <QDir> #include <QDir>

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#ifndef DBUS_H #ifndef DBUS_H
#define DBUS_H #define DBUS_H

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#include "desktop_watcher.h" #include "desktop_watcher.h"
#include <QDir> #include <QDir>
#include <QEventLoop> #include <QEventLoop>

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#ifndef DESKTOPWATCHER_H #ifndef DESKTOPWATCHER_H
#define DESKTOPWATCHER_H #define DESKTOPWATCHER_H
#include <QFileSystemWatcher> #include <QFileSystemWatcher>

View File

@ -101,7 +101,7 @@ void TabletDirectoryChangedThread::run()
syslog(LOG_LOCAL0 | LOG_DEBUG, "%s", iconstr.toLocal8Bit().data()); syslog(LOG_LOCAL0 | LOG_DEBUG, "%s", iconstr.toLocal8Bit().data());
syslog(LOG_LOCAL0 | LOG_DEBUG, "软件安装desktop文件名%s", desktopfn.toLocal8Bit().data()); syslog(LOG_LOCAL0 | LOG_DEBUG, "软件安装desktop文件名%s", desktopfn.toLocal8Bit().data());
Q_FOREACH (QString path, QIcon::themeSearchPaths()) { Q_FOREACH(QString path, QIcon::themeSearchPaths()) {
syslog(LOG_LOCAL0 | LOG_DEBUG, "%s", path.toLocal8Bit().data()); syslog(LOG_LOCAL0 | LOG_DEBUG, "%s", path.toLocal8Bit().data());
} }
} }

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#include "currenttime_interface.h" #include "currenttime_interface.h"
#include <QTimer> #include <QTimer>
#define TIME_FORMAT "org.ukui.control-center.panel.plugins" #define TIME_FORMAT "org.ukui.control-center.panel.plugins"

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#ifndef CURRENTTIMEINTERFACE_H #ifndef CURRENTTIMEINTERFACE_H
#define CURRENTTIMEINTERFACE_H #define CURRENTTIMEINTERFACE_H
#include <QString> #include <QString>

View File

@ -996,7 +996,7 @@ QVector<QString> UkuiMenuInterface::getAllClassification()
commonVector = getCommonUseApp(); commonVector = getCommonUseApp();
int index = 0; int index = 0;
Q_FOREACH (QString desktopfp, desktopfpVector) { Q_FOREACH(QString desktopfp, desktopfpVector) {
if (!commonVector.contains(desktopfp)) { if (!commonVector.contains(desktopfp)) {
appVector.append(appInfoVector.at(index)); appVector.append(appInfoVector.at(index));
} }
@ -1006,7 +1006,7 @@ QVector<QString> UkuiMenuInterface::getAllClassification()
qSort(appVector.begin(), appVector.end(), cmpApp); qSort(appVector.begin(), appVector.end(), cmpApp);
Q_FOREACH (QString desktopfp, commonVector) { Q_FOREACH(QString desktopfp, commonVector) {
allAppVector.append(desktopfp); allAppVector.append(desktopfp);
} }
@ -1102,7 +1102,7 @@ QVector<QString> UkuiMenuInterface::getCommonUseApp()
if (!g_projectCodeName.contains("V10SP1-edu")) { if (!g_projectCodeName.contains("V10SP1-edu")) {
QVector<QString> data; QVector<QString> data;
Q_FOREACH (QString desktopfn, getLockAppList()) { Q_FOREACH(QString desktopfn, getLockAppList()) {
QString desktopfp; QString desktopfp;
if (androidDesktopfnList.contains(desktopfn)) { if (androidDesktopfnList.contains(desktopfn)) {
@ -1120,7 +1120,7 @@ QVector<QString> UkuiMenuInterface::getCommonUseApp()
data.append(desktopfp); data.append(desktopfp);
} }
Q_FOREACH (QString desktopfn, getUnlockAllList()) { Q_FOREACH(QString desktopfn, getUnlockAllList()) {
QString desktopfp; QString desktopfp;
if (androidDesktopfnList.contains(desktopfn)) { if (androidDesktopfnList.contains(desktopfn)) {
@ -1163,7 +1163,7 @@ QVector<QString> UkuiMenuInterface::sortDesktopList(QString group)
setting->endGroup(); setting->endGroup();
QVector<QString> data; QVector<QString> data;
Q_FOREACH (QString desktopfn, desktopfnList) { Q_FOREACH(QString desktopfn, desktopfnList) {
QString desktopfp; QString desktopfp;
if (androidDesktopfnList.contains(desktopfn)) { if (androidDesktopfnList.contains(desktopfn)) {
@ -1181,7 +1181,7 @@ QVector<QString> UkuiMenuInterface::getCollectApp()
{ {
QVector<QString> data; QVector<QString> data;
Q_FOREACH (QString desktopfn, getCollectAppList()) { Q_FOREACH(QString desktopfn, getCollectAppList()) {
QString desktopfp; QString desktopfp;
if (androidDesktopfnList.contains(desktopfn)) { if (androidDesktopfnList.contains(desktopfn)) {
@ -1221,7 +1221,7 @@ QVector<QString> UkuiMenuInterface::getLockApp()
setting->endGroup(); setting->endGroup();
QVector<QString> data; QVector<QString> data;
Q_FOREACH (QString desktopfn, lockdesktopfnList) { Q_FOREACH(QString desktopfn, lockdesktopfnList) {
QString desktopfp; QString desktopfp;
// if(androidDesktopfnList.contains(desktopfn))//如果锁的应用在安卓列表 // if(androidDesktopfnList.contains(desktopfn))//如果锁的应用在安卓列表
// desktopfp=QString(QDir::homePath()+"/.local/share/applications/"+desktopfn); // desktopfp=QString(QDir::homePath()+"/.local/share/applications/"+desktopfn);
@ -1580,7 +1580,7 @@ QString UkuiMenuInterface::getAppNameInitials(QString desktopfp)
QStringList appnamestr = appname.split(" "); QStringList appnamestr = appname.split(" ");
QString letters; QString letters;
Q_FOREACH (QString name, appnamestr) { Q_FOREACH(QString name, appnamestr) {
letters.clear(); letters.clear();
letters = UkuiChineseLetter::getFirstLettersAll(name); letters = UkuiChineseLetter::getFirstLettersAll(name);

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#include "getmodeldata.h" #include "getmodeldata.h"
#include <QTranslator> #include <QTranslator>
#include <QDir> #include <QDir>
@ -27,7 +45,7 @@ QVector<QStringList> GetModelData::getMinAllData()
{ {
m_minAllData.clear(); m_minAllData.clear();
Q_FOREACH (QString desktopfp, UkuiMenuInterface::allAppVector) { Q_FOREACH(QString desktopfp, UkuiMenuInterface::allAppVector) {
m_minAllData.append(QStringList() << desktopfp << "1"); m_minAllData.append(QStringList() << desktopfp << "1");
} }
@ -44,7 +62,7 @@ QStringList GetModelData::getPreCollectionApp()
<<QString("/usr/share/applications/kylin-software-center.desktop") <<QString("/usr/share/applications/kylin-software-center.desktop")
<<QString("/usr/share/applications/kylin-screenshot.desktop") <<QString("/usr/share/applications/kylin-screenshot.desktop")
<<QString("/usr/share/applications/peony.desktop"); <<QString("/usr/share/applications/peony.desktop");
Q_FOREACH (QString appDesktop,preAppList) { Q_FOREACH(QString appDesktop,preAppList) {
if (UkuiMenuInterface::allAppVector.contains(appDesktop)) { if (UkuiMenuInterface::allAppVector.contains(appDesktop)) {
preAppListExist.append(appDesktop); preAppListExist.append(appDesktop);
QFileInfo fileInfo(appDesktop); QFileInfo fileInfo(appDesktop);
@ -60,7 +78,7 @@ QStringList GetModelData::getcollectData()
{ {
m_collectData.clear(); m_collectData.clear();
Q_FOREACH (QString desktopfp, UkuiMenuInterface::collectAppVector) { Q_FOREACH(QString desktopfp, UkuiMenuInterface::collectAppVector) {
m_collectData.append(QString(desktopfp)); m_collectData.append(QString(desktopfp));
} }

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#ifndef GETMODELDATA_H #ifndef GETMODELDATA_H
#define GETMODELDATA_H #define GETMODELDATA_H
#include "ukuimenuinterface.h" #include "ukuimenuinterface.h"

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#include "pagemanager.h" #include "pagemanager.h"
#include "ukuimenuinterface.h" #include "ukuimenuinterface.h"
#include "style.h" #include "style.h"
@ -34,7 +52,7 @@ QVector<QStringList> PageManager::sortAppInPage(const QVector<QString> &appVecto
QVector<QStringList> pageData; QVector<QStringList> pageData;
QStringList onePageData; QStringList onePageData;
Q_FOREACH (QString desktopfp, appVector) { Q_FOREACH(QString desktopfp, appVector) {
m_data.append(desktopfp); m_data.append(desktopfp);
} }
@ -79,7 +97,7 @@ QVector<QStringList> PageManager::getAppPageVector()
QVector<QStringList> appPagelist; QVector<QStringList> appPagelist;
QVector<QString> allAppList = UkuiMenuInterface::tencentInitVector + UkuiMenuInterface::customizedVector + UkuiMenuInterface::thirdPartyVector + UkuiMenuInterface::applicationVector; QVector<QString> allAppList = UkuiMenuInterface::tencentInitVector + UkuiMenuInterface::customizedVector + UkuiMenuInterface::thirdPartyVector + UkuiMenuInterface::applicationVector;
Q_FOREACH (QStringList desktopfp, sortAppInPage(/*UkuiMenuInterface::tencentInitVector*/allAppList)) { Q_FOREACH(QStringList desktopfp, sortAppInPage(/*UkuiMenuInterface::tencentInitVector*/allAppList)) {
appPagelist.append(desktopfp); appPagelist.append(desktopfp);
} }

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#ifndef PAGEMANAGER_H #ifndef PAGEMANAGER_H
#define PAGEMANAGER_H #define PAGEMANAGER_H

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#include <QPainter> #include <QPainter>
#include "klistview.h" #include "klistview.h"
#include "utility.h" #include "utility.h"
@ -22,7 +40,7 @@ void KListView::addData(QStringList data)
listmodel = new QStandardItemModel(this); listmodel = new QStandardItemModel(this);
this->setModel(listmodel); this->setModel(listmodel);
Q_FOREACH (QString desktopfp, data) { Q_FOREACH(QString desktopfp, data) {
QStandardItem *item = new QStandardItem; QStandardItem *item = new QStandardItem;
item->setData(QVariant::fromValue<QString>(desktopfp), Qt::DisplayRole); item->setData(QVariant::fromValue<QString>(desktopfp), Qt::DisplayRole);
listmodel->appendRow(item); listmodel->appendRow(item);
@ -33,7 +51,7 @@ void KListView::updateData(QStringList data)
{ {
listmodel->clear(); listmodel->clear();
Q_FOREACH (QString desktopfp, data) { Q_FOREACH(QString desktopfp, data) {
QStandardItem *item = new QStandardItem; QStandardItem *item = new QStandardItem;
item->setData(QVariant::fromValue<QString>(desktopfp), Qt::DisplayRole); item->setData(QVariant::fromValue<QString>(desktopfp), Qt::DisplayRole);
listmodel->appendRow(item); listmodel->appendRow(item);

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#ifndef KLISTVIEW_H #ifndef KLISTVIEW_H
#define KLISTVIEW_H #define KLISTVIEW_H
#include <QListView> #include <QListView>

View File

@ -72,7 +72,7 @@ void ListView::addData(QVector<QStringList> data, int module)
this->module = module; this->module = module;
listmodel->clear(); listmodel->clear();
Q_FOREACH (QStringList desktopfp, data) { Q_FOREACH(QStringList desktopfp, data) {
QStandardItem *item = new QStandardItem; QStandardItem *item = new QStandardItem;
item->setData(QVariant::fromValue<QStringList>(desktopfp), Qt::DisplayRole); item->setData(QVariant::fromValue<QStringList>(desktopfp), Qt::DisplayRole);
listmodel->appendRow(item); listmodel->appendRow(item);
@ -86,7 +86,7 @@ void ListView::updateData(QVector<QStringList> data)
{ {
listmodel->clear(); listmodel->clear();
Q_FOREACH (QStringList desktopfp, data) { Q_FOREACH(QStringList desktopfp, data) {
QStandardItem *item = new QStandardItem; QStandardItem *item = new QStandardItem;
item->setData(QVariant::fromValue<QStringList>(desktopfp), Qt::DisplayRole); item->setData(QVariant::fromValue<QStringList>(desktopfp), Qt::DisplayRole);
listmodel->appendRow(item); listmodel->appendRow(item);

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#ifndef RIGHTLISTVIEW_H #ifndef RIGHTLISTVIEW_H
#define RIGHTLISTVIEW_H #define RIGHTLISTVIEW_H
#include <QListView> #include <QListView>

View File

@ -150,7 +150,7 @@ void TabletListView::addData(QStringList data)
listmodel = new QStandardItemModel(this); listmodel = new QStandardItemModel(this);
this->setModel(listmodel); this->setModel(listmodel);
Q_FOREACH (QString desktopfp, data) { Q_FOREACH(QString desktopfp, data) {
QStandardItem *item = new QStandardItem; QStandardItem *item = new QStandardItem;
item->setData(QVariant::fromValue<QString>(desktopfp), Qt::DisplayRole); item->setData(QVariant::fromValue<QString>(desktopfp), Qt::DisplayRole);
bool appDis = appDisable(desktopfp); bool appDis = appDisable(desktopfp);
@ -166,7 +166,7 @@ void TabletListView::updateData(QStringList data)
{ {
listmodel->clear(); listmodel->clear();
Q_FOREACH (QString desktopfp, data) { Q_FOREACH(QString desktopfp, data) {
QStandardItem *p_item = new QStandardItem; QStandardItem *p_item = new QStandardItem;
p_item->setData(QVariant::fromValue<QString>(desktopfp), Qt::DisplayRole); p_item->setData(QVariant::fromValue<QString>(desktopfp), Qt::DisplayRole);
bool appDis = appDisable(desktopfp); bool appDis = appDisable(desktopfp);

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#include "lettertooltip.h" #include "lettertooltip.h"
#include <QPainter> #include <QPainter>
#include <QAction> #include <QAction>

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#ifndef LETTERTOOLTIP_H #ifndef LETTERTOOLTIP_H
#define LETTERTOOLTIP_H #define LETTERTOOLTIP_H
#include <QDialog> #include <QDialog>

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#include "rotationlabel.h" #include "rotationlabel.h"
#include <QPainter> #include <QPainter>
#include <QDebug> #include <QDebug>

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#ifndef ROTATIONLABEL_H #ifndef ROTATIONLABEL_H
#define ROTATIONLABEL_H #define ROTATIONLABEL_H
#include <QLabel> #include <QLabel>

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#include "menubox.h" #include "menubox.h"
#include <QDebug> #include <QDebug>
#include <QMouseEvent> #include <QMouseEvent>

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#ifndef MENUBOX_H #ifndef MENUBOX_H
#define MENUBOX_H #define MENUBOX_H
#include <QMenu> #include <QMenu>

View File

@ -119,7 +119,7 @@ void TabletRightClickMenu::unfixedFromAllActionTriggerSlot()
QString desktopfn = fileInfo.fileName(); QString desktopfn = fileInfo.fileName();
m_setting->beginGroup("lockapplication"); m_setting->beginGroup("lockapplication");
Q_FOREACH (QString desktop, m_setting->allKeys()) { Q_FOREACH(QString desktop, m_setting->allKeys()) {
if (m_setting->value(desktop).toInt() > m_setting->value(desktopfn).toInt()) { if (m_setting->value(desktop).toInt() > m_setting->value(desktopfn).toInt()) {
m_setting->setValue(desktop, m_setting->value(desktop).toInt() - 1); m_setting->setValue(desktop, m_setting->value(desktop).toInt() - 1);
} }

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#include "kitemdelegate.h" #include "kitemdelegate.h"
KItemDelegate::KItemDelegate(QObject *parent): KItemDelegate::KItemDelegate(QObject *parent):

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#ifndef KITEMDELEGATE_H #ifndef KITEMDELEGATE_H
#define KITEMDELEGATE_H #define KITEMDELEGATE_H
#include <QStyledItemDelegate> #include <QStyledItemDelegate>

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#include "recent_item_delegate.h" #include "recent_item_delegate.h"
recentitemdelegate::recentitemdelegate(QObject *parent, int module): recentitemdelegate::recentitemdelegate(QObject *parent, int module):

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#ifndef RECENTITEMDELEGATE_H #ifndef RECENTITEMDELEGATE_H
#define RECENTITEMDELEGATE_H #define RECENTITEMDELEGATE_H
#include "itemdelegate.h" #include "itemdelegate.h"

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#include "right_item_delegate.h" #include "right_item_delegate.h"
#include "utility.h" #include "utility.h"
#include <QDebug> #include <QDebug>

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#ifndef RIGHTITEMDELEGATE_H #ifndef RIGHTITEMDELEGATE_H
#define RIGHTITEMDELEGATE_H #define RIGHTITEMDELEGATE_H
#include <QStyledItemDelegate> #include <QStyledItemDelegate>

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#include "animationpage.h" #include "animationpage.h"
#include "utility.h" #include "utility.h"
#include <QPainter> #include <QPainter>

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#ifndef ANIMATIONPAGE_H #ifndef ANIMATIONPAGE_H
#define ANIMATIONPAGE_H #define ANIMATIONPAGE_H
#include <QLabel> #include <QLabel>

View File

@ -176,7 +176,7 @@ void FullCommonUseWidget::fillAppList()
{ {
m_data.clear(); m_data.clear();
Q_FOREACH (QString desktopfp, UkuiMenuInterface::allAppVector) { Q_FOREACH(QString desktopfp, UkuiMenuInterface::allAppVector) {
m_data.append(desktopfp); m_data.append(desktopfp);
} }
@ -259,7 +259,7 @@ void FullCommonUseWidget::updateListView()
{ {
m_data.clear(); m_data.clear();
Q_FOREACH (QString desktopfp, m_ukuiMenuInterface->getAllClassification()) { Q_FOREACH(QString desktopfp, m_ukuiMenuInterface->getAllClassification()) {
m_data.append(desktopfp); m_data.append(desktopfp);
} }

View File

@ -240,7 +240,7 @@ void FullFunctionWidget::updateAppListView()
fillAppList(); fillAppList();
//刷新图标列表界面 //刷新图标列表界面
Q_FOREACH (QAbstractButton *button, m_buttonList) { Q_FOREACH(QAbstractButton *button, m_buttonList) {
m_btnGroup->removeButton(button); m_btnGroup->removeButton(button);
} }
@ -341,7 +341,7 @@ void FullFunctionWidget::initIconListScrollArea()
m_iconListWidLayout->addItem(m_bottomSpacerItem); m_iconListWidLayout->addItem(m_bottomSpacerItem);
int id = 0; int id = 0;
Q_FOREACH (QAbstractButton *btn, m_buttonList) { Q_FOREACH(QAbstractButton *btn, m_buttonList) {
m_btnGroup->addButton(btn, id++); m_btnGroup->addButton(btn, id++);
} }
@ -358,7 +358,7 @@ void FullFunctionWidget::btnGroupClickedSlot(QAbstractButton *btn)
disconnect(m_scrollArea->verticalScrollBar(), &QScrollBar::valueChanged, disconnect(m_scrollArea->verticalScrollBar(), &QScrollBar::valueChanged,
this, &FullFunctionWidget::valueChangedSlot); this, &FullFunctionWidget::valueChangedSlot);
Q_FOREACH (QAbstractButton *button, m_buttonList) { Q_FOREACH(QAbstractButton *button, m_buttonList) {
if (m_btnGroup->id(btn) == m_buttonList.indexOf(button)) { if (m_btnGroup->id(btn) == m_buttonList.indexOf(button)) {
m_beginPos = m_scrollArea->verticalScrollBar()->sliderPosition(); m_beginPos = m_scrollArea->verticalScrollBar()->sliderPosition();
m_endPos = m_scrollAreaWidLayout->itemAt(m_btnGroup->id(btn) * 2)->widget()->y(); m_endPos = m_scrollAreaWidLayout->itemAt(m_btnGroup->id(btn) * 2)->widget()->y();
@ -415,7 +415,7 @@ void FullFunctionWidget::valueChangedSlot(int value)
} }
if (value >= min && value < max) { if (value >= min && value < max) {
Q_FOREACH (QAbstractButton *button, m_buttonList) { Q_FOREACH(QAbstractButton *button, m_buttonList) {
FunctionClassifyButton *fcbutton = qobject_cast<FunctionClassifyButton *>(button); FunctionClassifyButton *fcbutton = qobject_cast<FunctionClassifyButton *>(button);
if (index == m_buttonList.indexOf(button)) { if (index == m_buttonList.indexOf(button)) {

View File

@ -242,7 +242,7 @@ void FullLetterWidget::updateAppListView()
fillAppList(); fillAppList();
//刷新字母列表界面 //刷新字母列表界面
Q_FOREACH (QAbstractButton *button, m_buttonList) { Q_FOREACH(QAbstractButton *button, m_buttonList) {
m_btnGroup->removeButton(button); m_btnGroup->removeButton(button);
} }
@ -345,7 +345,7 @@ void FullLetterWidget::initLetterListScrollArea()
m_letterListWidLayout->addItem(m_letterListBottomSpacer); m_letterListWidLayout->addItem(m_letterListBottomSpacer);
int id = 0; int id = 0;
Q_FOREACH (QAbstractButton *btn, m_buttonList) { Q_FOREACH(QAbstractButton *btn, m_buttonList) {
m_btnGroup->addButton(btn, id++); m_btnGroup->addButton(btn, id++);
} }
@ -362,7 +362,7 @@ void FullLetterWidget::btnGroupClickedSlot(QAbstractButton *btn)
disconnect(m_scrollArea->verticalScrollBar(), &QScrollBar::valueChanged, disconnect(m_scrollArea->verticalScrollBar(), &QScrollBar::valueChanged,
this, &FullLetterWidget::valueChangedSlot); this, &FullLetterWidget::valueChangedSlot);
Q_FOREACH (QAbstractButton *button, m_buttonList) { Q_FOREACH(QAbstractButton *button, m_buttonList) {
LetterClassifyButton *letterbtn = qobject_cast<LetterClassifyButton *>(button); LetterClassifyButton *letterbtn = qobject_cast<LetterClassifyButton *>(button);
if (m_btnGroup->id(btn) == m_buttonList.indexOf(button)) { if (m_btnGroup->id(btn) == m_buttonList.indexOf(button)) {
@ -426,7 +426,7 @@ void FullLetterWidget::valueChangedSlot(int value)
} }
if (value >= min && value < max) { if (value >= min && value < max) {
Q_FOREACH (QAbstractButton *button, m_buttonList) { Q_FOREACH(QAbstractButton *button, m_buttonList) {
LetterClassifyButton *letterbtn = qobject_cast<LetterClassifyButton *>(button); LetterClassifyButton *letterbtn = qobject_cast<LetterClassifyButton *>(button);
if (index == m_buttonList.indexOf(button)) { if (index == m_buttonList.indexOf(button)) {
@ -476,7 +476,7 @@ void FullLetterWidget::repaintWidget()
void FullLetterWidget::widgetMakeZero() void FullLetterWidget::widgetMakeZero()
{ {
Q_FOREACH (QAbstractButton *button, m_buttonList) { Q_FOREACH(QAbstractButton *button, m_buttonList) {
QString letterstr = button->text().at(0); QString letterstr = button->text().at(0);
int num = m_letterList.indexOf(letterstr); int num = m_letterList.indexOf(letterstr);

View File

@ -152,7 +152,7 @@ void FullSearchResultWidget::updateAppListView(QVector<QStringList> arg)
{ {
m_data.clear(); m_data.clear();
Q_FOREACH (QStringList appinfo, arg) { Q_FOREACH(QStringList appinfo, arg) {
m_data.append(appinfo.at(0)); m_data.append(appinfo.at(0));
} }

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#include "function_Widget.h" #include "function_Widget.h"
#include "style.h" #include "style.h"
#include <QVBoxLayout> #include <QVBoxLayout>

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#ifndef FUNCTIONWIDGET_H #ifndef FUNCTIONWIDGET_H
#define FUNCTIONWIDGET_H #define FUNCTIONWIDGET_H

View File

@ -73,7 +73,7 @@ void FunctionButtonWidget::initUi()
if (QGSettings::isSchemaInstalled(QString("org.ukui.style").toLocal8Bit())) { if (QGSettings::isSchemaInstalled(QString("org.ukui.style").toLocal8Bit())) {
QGSettings *gsetting = new QGSettings(QString("org.ukui.style").toLocal8Bit()); QGSettings *gsetting = new QGSettings(QString("org.ukui.style").toLocal8Bit());
connect(gsetting, &QGSettings::changed, this, [ = ] { connect(gsetting, &QGSettings::changed, this, [ = ] {
Q_FOREACH (QAbstractButton *btn, m_buttonList) Q_FOREACH(QAbstractButton *btn, m_buttonList)
{ {
FunctionClassifyButton *fbtn = qobject_cast<FunctionClassifyButton *>(btn); FunctionClassifyButton *fbtn = qobject_cast<FunctionClassifyButton *>(btn);
fbtn->updateBtnState(); fbtn->updateBtnState();

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#include "plugin_widget.h" #include "plugin_widget.h"
#include "KySmallPluginInterface.h" #include "KySmallPluginInterface.h"
#include <QDebug> #include <QDebug>

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#ifndef PLUGINWIDGET_H #ifndef PLUGINWIDGET_H
#define PLUGINWIDGET_H #define PLUGINWIDGET_H

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#include "tabview_widget.h" #include "tabview_widget.h"
#include <QTabBar> #include <QTabBar>
@ -27,7 +45,7 @@ void TabViewWidget::updateListView()
{ {
m_data.clear(); m_data.clear();
Q_FOREACH (QString desktopfp, m_ukuiMenuInterface->getAllClassification()) { Q_FOREACH(QString desktopfp, m_ukuiMenuInterface->getAllClassification()) {
m_data.append(desktopfp); m_data.append(desktopfp);
} }

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#ifndef TABVIEWWIDGET_H #ifndef TABVIEWWIDGET_H
#define TABVIEWWIDGET_H #define TABVIEWWIDGET_H
#include <QTabWidget> #include <QTabWidget>

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#include "full_mainwindow.h" #include "full_mainwindow.h"
#include <KWindowEffects> #include <KWindowEffects>
#include <QAction> #include <QAction>

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#ifndef FULLMAINWINDOW_H #ifndef FULLMAINWINDOW_H
#define FULLMAINWINDOW_H #define FULLMAINWINDOW_H

View File

@ -1134,7 +1134,7 @@ void MainWindow::recvSearchResult(QVector<QStringList> arg)
m_minSearchResultListView->verticalScrollBar()->setSliderPosition(0); m_minSearchResultListView->verticalScrollBar()->setSliderPosition(0);
m_minSearchResultListView->addData(m_data, 3); m_minSearchResultListView->addData(m_data, 3);
Q_FOREACH (QStringList appinfo, arg) { Q_FOREACH(QStringList appinfo, arg) {
m_data.append(QStringList() << appinfo.at(0) << "1"); m_data.append(QStringList() << appinfo.at(0) << "1");
} }

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#ifndef ABSTRACTINTERFACE_H #ifndef ABSTRACTINTERFACE_H
#define ABSTRACTINTERFACE_H #define ABSTRACTINTERFACE_H
#include <QObject> #include <QObject>

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#ifndef KYSMALLPLUGININTERFACE_H #ifndef KYSMALLPLUGININTERFACE_H
#define KYSMALLPLUGININTERFACE_H #define KYSMALLPLUGININTERFACE_H

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#ifndef OOBE_PLUGIN_INFACE_H #ifndef OOBE_PLUGIN_INFACE_H
#define OOBE_PLUGIN_INFACE_H #define OOBE_PLUGIN_INFACE_H

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#include "thumbnail.h" #include "thumbnail.h"
#include <QVBoxLayout> #include <QVBoxLayout>
#include "style.h" #include "style.h"

View File

@ -1,3 +1,21 @@
/*
* Copyright (C) 2019 Tianjin KYLIN Information Technology Co., Ltd.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, see <http://www.gnu.org/licenses/&gt;.
*
*/
#ifndef THUMBNAIL_H #ifndef THUMBNAIL_H
#define THUMBNAIL_H #define THUMBNAIL_H

View File

@ -234,7 +234,7 @@ QString getEnvOverriddenDesktopFile(int pid)
if (file.open(QIODevice::ReadOnly)) { if (file.open(QIODevice::ReadOnly)) {
QList<QByteArray> list = file.readLine().split('\x00'); QList<QByteArray> list = file.readLine().split('\x00');
Q_FOREACH (QByteArray array, list) { Q_FOREACH(QByteArray array, list) {
if (array.contains("GIO_LAUNCHED_DESKTOP_FILE=")) { if (array.contains("GIO_LAUNCHED_DESKTOP_FILE=")) {
ret = QString(array.split('=').at(1)); ret = QString(array.split('=').at(1));
break; break;
@ -279,7 +279,7 @@ void initDatabase()
setting->beginGroup("application"); setting->beginGroup("application");
QString desktopfp; QString desktopfp;
Q_FOREACH (QString desktopfn, setting->allKeys()) { Q_FOREACH(QString desktopfn, setting->allKeys()) {
if (setting->value(desktopfn).toInt() == 1) { if (setting->value(desktopfn).toInt() == 1) {
desktopfp.clear(); desktopfp.clear();
@ -306,7 +306,7 @@ void initDatabase()
bool b = sql.exec("create table if not exists appInfo(desktop char primary key, times int, time int, type int, recent int, num int, collect int)"); bool b = sql.exec("create table if not exists appInfo(desktop char primary key, times int, time int, type int, recent int, num int, collect int)");
Q_FOREACH (QString desktopfn, desktopfnList) { Q_FOREACH(QString desktopfn, desktopfnList) {
myDebug() << "void initDatabase()" << desktopfn; myDebug() << "void initDatabase()" << desktopfn;
QDateTime dt = QDateTime::currentDateTime(); QDateTime dt = QDateTime::currentDateTime();
int datetime = dt.toTime_t(); int datetime = dt.toTime_t();
@ -691,7 +691,7 @@ void cleanTimeoutApp()
} }
} }
Q_FOREACH (QString desktopfn, list) { Q_FOREACH(QString desktopfn, list) {
cmd = QString("delete from appInfo where desktop=\"%1\"") cmd = QString("delete from appInfo where desktop=\"%1\"")
.arg(desktopfn); .arg(desktopfn);
sql.exec(cmd); sql.exec(cmd);