增加版权信息
This commit is contained in:
parent
2ca68199f1
commit
8e026603c8
|
@ -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
|
||||
|
||||
* close-cd # 131373 【wayland】【软件更新器】点击打开软件更新器后,开始菜单过6s左右才退出;
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "dbus.h"
|
||||
#include <QFileInfo>
|
||||
#include <QDir>
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef DBUS_H
|
||||
#define DBUS_H
|
||||
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "desktop_watcher.h"
|
||||
#include <QDir>
|
||||
#include <QEventLoop>
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef DESKTOPWATCHER_H
|
||||
#define DESKTOPWATCHER_H
|
||||
#include <QFileSystemWatcher>
|
||||
|
|
|
@ -101,7 +101,7 @@ void TabletDirectoryChangedThread::run()
|
|||
syslog(LOG_LOCAL0 | LOG_DEBUG, "%s", iconstr.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());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "currenttime_interface.h"
|
||||
#include <QTimer>
|
||||
#define TIME_FORMAT "org.ukui.control-center.panel.plugins"
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef CURRENTTIMEINTERFACE_H
|
||||
#define CURRENTTIMEINTERFACE_H
|
||||
#include <QString>
|
||||
|
|
|
@ -996,7 +996,7 @@ QVector<QString> UkuiMenuInterface::getAllClassification()
|
|||
commonVector = getCommonUseApp();
|
||||
int index = 0;
|
||||
|
||||
Q_FOREACH (QString desktopfp, desktopfpVector) {
|
||||
Q_FOREACH(QString desktopfp, desktopfpVector) {
|
||||
if (!commonVector.contains(desktopfp)) {
|
||||
appVector.append(appInfoVector.at(index));
|
||||
}
|
||||
|
@ -1006,7 +1006,7 @@ QVector<QString> UkuiMenuInterface::getAllClassification()
|
|||
|
||||
qSort(appVector.begin(), appVector.end(), cmpApp);
|
||||
|
||||
Q_FOREACH (QString desktopfp, commonVector) {
|
||||
Q_FOREACH(QString desktopfp, commonVector) {
|
||||
allAppVector.append(desktopfp);
|
||||
}
|
||||
|
||||
|
@ -1102,7 +1102,7 @@ QVector<QString> UkuiMenuInterface::getCommonUseApp()
|
|||
if (!g_projectCodeName.contains("V10SP1-edu")) {
|
||||
QVector<QString> data;
|
||||
|
||||
Q_FOREACH (QString desktopfn, getLockAppList()) {
|
||||
Q_FOREACH(QString desktopfn, getLockAppList()) {
|
||||
QString desktopfp;
|
||||
|
||||
if (androidDesktopfnList.contains(desktopfn)) {
|
||||
|
@ -1120,7 +1120,7 @@ QVector<QString> UkuiMenuInterface::getCommonUseApp()
|
|||
data.append(desktopfp);
|
||||
}
|
||||
|
||||
Q_FOREACH (QString desktopfn, getUnlockAllList()) {
|
||||
Q_FOREACH(QString desktopfn, getUnlockAllList()) {
|
||||
QString desktopfp;
|
||||
|
||||
if (androidDesktopfnList.contains(desktopfn)) {
|
||||
|
@ -1163,7 +1163,7 @@ QVector<QString> UkuiMenuInterface::sortDesktopList(QString group)
|
|||
setting->endGroup();
|
||||
QVector<QString> data;
|
||||
|
||||
Q_FOREACH (QString desktopfn, desktopfnList) {
|
||||
Q_FOREACH(QString desktopfn, desktopfnList) {
|
||||
QString desktopfp;
|
||||
|
||||
if (androidDesktopfnList.contains(desktopfn)) {
|
||||
|
@ -1181,7 +1181,7 @@ QVector<QString> UkuiMenuInterface::getCollectApp()
|
|||
{
|
||||
QVector<QString> data;
|
||||
|
||||
Q_FOREACH (QString desktopfn, getCollectAppList()) {
|
||||
Q_FOREACH(QString desktopfn, getCollectAppList()) {
|
||||
QString desktopfp;
|
||||
|
||||
if (androidDesktopfnList.contains(desktopfn)) {
|
||||
|
@ -1221,7 +1221,7 @@ QVector<QString> UkuiMenuInterface::getLockApp()
|
|||
setting->endGroup();
|
||||
QVector<QString> data;
|
||||
|
||||
Q_FOREACH (QString desktopfn, lockdesktopfnList) {
|
||||
Q_FOREACH(QString desktopfn, lockdesktopfnList) {
|
||||
QString desktopfp;
|
||||
// if(androidDesktopfnList.contains(desktopfn))//如果锁的应用在安卓列表
|
||||
// desktopfp=QString(QDir::homePath()+"/.local/share/applications/"+desktopfn);
|
||||
|
@ -1580,7 +1580,7 @@ QString UkuiMenuInterface::getAppNameInitials(QString desktopfp)
|
|||
QStringList appnamestr = appname.split(" ");
|
||||
QString letters;
|
||||
|
||||
Q_FOREACH (QString name, appnamestr) {
|
||||
Q_FOREACH(QString name, appnamestr) {
|
||||
letters.clear();
|
||||
letters = UkuiChineseLetter::getFirstLettersAll(name);
|
||||
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "getmodeldata.h"
|
||||
#include <QTranslator>
|
||||
#include <QDir>
|
||||
|
@ -27,7 +45,7 @@ QVector<QStringList> GetModelData::getMinAllData()
|
|||
{
|
||||
m_minAllData.clear();
|
||||
|
||||
Q_FOREACH (QString desktopfp, UkuiMenuInterface::allAppVector) {
|
||||
Q_FOREACH(QString desktopfp, UkuiMenuInterface::allAppVector) {
|
||||
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-screenshot.desktop")
|
||||
<<QString("/usr/share/applications/peony.desktop");
|
||||
Q_FOREACH (QString appDesktop,preAppList) {
|
||||
Q_FOREACH(QString appDesktop,preAppList) {
|
||||
if (UkuiMenuInterface::allAppVector.contains(appDesktop)) {
|
||||
preAppListExist.append(appDesktop);
|
||||
QFileInfo fileInfo(appDesktop);
|
||||
|
@ -60,7 +78,7 @@ QStringList GetModelData::getcollectData()
|
|||
{
|
||||
m_collectData.clear();
|
||||
|
||||
Q_FOREACH (QString desktopfp, UkuiMenuInterface::collectAppVector) {
|
||||
Q_FOREACH(QString desktopfp, UkuiMenuInterface::collectAppVector) {
|
||||
m_collectData.append(QString(desktopfp));
|
||||
}
|
||||
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef GETMODELDATA_H
|
||||
#define GETMODELDATA_H
|
||||
#include "ukuimenuinterface.h"
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "pagemanager.h"
|
||||
#include "ukuimenuinterface.h"
|
||||
#include "style.h"
|
||||
|
@ -34,7 +52,7 @@ QVector<QStringList> PageManager::sortAppInPage(const QVector<QString> &appVecto
|
|||
QVector<QStringList> pageData;
|
||||
QStringList onePageData;
|
||||
|
||||
Q_FOREACH (QString desktopfp, appVector) {
|
||||
Q_FOREACH(QString desktopfp, appVector) {
|
||||
m_data.append(desktopfp);
|
||||
}
|
||||
|
||||
|
@ -79,7 +97,7 @@ QVector<QStringList> PageManager::getAppPageVector()
|
|||
QVector<QStringList> appPagelist;
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef PAGEMANAGER_H
|
||||
#define PAGEMANAGER_H
|
||||
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#include <QPainter>
|
||||
#include "klistview.h"
|
||||
#include "utility.h"
|
||||
|
@ -22,7 +40,7 @@ void KListView::addData(QStringList data)
|
|||
listmodel = new QStandardItemModel(this);
|
||||
this->setModel(listmodel);
|
||||
|
||||
Q_FOREACH (QString desktopfp, data) {
|
||||
Q_FOREACH(QString desktopfp, data) {
|
||||
QStandardItem *item = new QStandardItem;
|
||||
item->setData(QVariant::fromValue<QString>(desktopfp), Qt::DisplayRole);
|
||||
listmodel->appendRow(item);
|
||||
|
@ -33,7 +51,7 @@ void KListView::updateData(QStringList data)
|
|||
{
|
||||
listmodel->clear();
|
||||
|
||||
Q_FOREACH (QString desktopfp, data) {
|
||||
Q_FOREACH(QString desktopfp, data) {
|
||||
QStandardItem *item = new QStandardItem;
|
||||
item->setData(QVariant::fromValue<QString>(desktopfp), Qt::DisplayRole);
|
||||
listmodel->appendRow(item);
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef KLISTVIEW_H
|
||||
#define KLISTVIEW_H
|
||||
#include <QListView>
|
||||
|
|
|
@ -72,7 +72,7 @@ void ListView::addData(QVector<QStringList> data, int module)
|
|||
this->module = module;
|
||||
listmodel->clear();
|
||||
|
||||
Q_FOREACH (QStringList desktopfp, data) {
|
||||
Q_FOREACH(QStringList desktopfp, data) {
|
||||
QStandardItem *item = new QStandardItem;
|
||||
item->setData(QVariant::fromValue<QStringList>(desktopfp), Qt::DisplayRole);
|
||||
listmodel->appendRow(item);
|
||||
|
@ -86,7 +86,7 @@ void ListView::updateData(QVector<QStringList> data)
|
|||
{
|
||||
listmodel->clear();
|
||||
|
||||
Q_FOREACH (QStringList desktopfp, data) {
|
||||
Q_FOREACH(QStringList desktopfp, data) {
|
||||
QStandardItem *item = new QStandardItem;
|
||||
item->setData(QVariant::fromValue<QStringList>(desktopfp), Qt::DisplayRole);
|
||||
listmodel->appendRow(item);
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef RIGHTLISTVIEW_H
|
||||
#define RIGHTLISTVIEW_H
|
||||
#include <QListView>
|
||||
|
|
|
@ -150,7 +150,7 @@ void TabletListView::addData(QStringList data)
|
|||
listmodel = new QStandardItemModel(this);
|
||||
this->setModel(listmodel);
|
||||
|
||||
Q_FOREACH (QString desktopfp, data) {
|
||||
Q_FOREACH(QString desktopfp, data) {
|
||||
QStandardItem *item = new QStandardItem;
|
||||
item->setData(QVariant::fromValue<QString>(desktopfp), Qt::DisplayRole);
|
||||
bool appDis = appDisable(desktopfp);
|
||||
|
@ -166,7 +166,7 @@ void TabletListView::updateData(QStringList data)
|
|||
{
|
||||
listmodel->clear();
|
||||
|
||||
Q_FOREACH (QString desktopfp, data) {
|
||||
Q_FOREACH(QString desktopfp, data) {
|
||||
QStandardItem *p_item = new QStandardItem;
|
||||
p_item->setData(QVariant::fromValue<QString>(desktopfp), Qt::DisplayRole);
|
||||
bool appDis = appDisable(desktopfp);
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "lettertooltip.h"
|
||||
#include <QPainter>
|
||||
#include <QAction>
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef LETTERTOOLTIP_H
|
||||
#define LETTERTOOLTIP_H
|
||||
#include <QDialog>
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "rotationlabel.h"
|
||||
#include <QPainter>
|
||||
#include <QDebug>
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef ROTATIONLABEL_H
|
||||
#define ROTATIONLABEL_H
|
||||
#include <QLabel>
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "menubox.h"
|
||||
#include <QDebug>
|
||||
#include <QMouseEvent>
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef MENUBOX_H
|
||||
#define MENUBOX_H
|
||||
#include <QMenu>
|
||||
|
|
|
@ -119,7 +119,7 @@ void TabletRightClickMenu::unfixedFromAllActionTriggerSlot()
|
|||
QString desktopfn = fileInfo.fileName();
|
||||
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()) {
|
||||
m_setting->setValue(desktop, m_setting->value(desktop).toInt() - 1);
|
||||
}
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "kitemdelegate.h"
|
||||
|
||||
KItemDelegate::KItemDelegate(QObject *parent):
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef KITEMDELEGATE_H
|
||||
#define KITEMDELEGATE_H
|
||||
#include <QStyledItemDelegate>
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "recent_item_delegate.h"
|
||||
|
||||
recentitemdelegate::recentitemdelegate(QObject *parent, int module):
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef RECENTITEMDELEGATE_H
|
||||
#define RECENTITEMDELEGATE_H
|
||||
#include "itemdelegate.h"
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "right_item_delegate.h"
|
||||
#include "utility.h"
|
||||
#include <QDebug>
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef RIGHTITEMDELEGATE_H
|
||||
#define RIGHTITEMDELEGATE_H
|
||||
#include <QStyledItemDelegate>
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "animationpage.h"
|
||||
#include "utility.h"
|
||||
#include <QPainter>
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef ANIMATIONPAGE_H
|
||||
#define ANIMATIONPAGE_H
|
||||
#include <QLabel>
|
||||
|
|
|
@ -176,7 +176,7 @@ void FullCommonUseWidget::fillAppList()
|
|||
{
|
||||
m_data.clear();
|
||||
|
||||
Q_FOREACH (QString desktopfp, UkuiMenuInterface::allAppVector) {
|
||||
Q_FOREACH(QString desktopfp, UkuiMenuInterface::allAppVector) {
|
||||
m_data.append(desktopfp);
|
||||
}
|
||||
|
||||
|
@ -259,7 +259,7 @@ void FullCommonUseWidget::updateListView()
|
|||
{
|
||||
m_data.clear();
|
||||
|
||||
Q_FOREACH (QString desktopfp, m_ukuiMenuInterface->getAllClassification()) {
|
||||
Q_FOREACH(QString desktopfp, m_ukuiMenuInterface->getAllClassification()) {
|
||||
m_data.append(desktopfp);
|
||||
}
|
||||
|
||||
|
|
|
@ -240,7 +240,7 @@ void FullFunctionWidget::updateAppListView()
|
|||
fillAppList();
|
||||
|
||||
//刷新图标列表界面
|
||||
Q_FOREACH (QAbstractButton *button, m_buttonList) {
|
||||
Q_FOREACH(QAbstractButton *button, m_buttonList) {
|
||||
m_btnGroup->removeButton(button);
|
||||
}
|
||||
|
||||
|
@ -341,7 +341,7 @@ void FullFunctionWidget::initIconListScrollArea()
|
|||
m_iconListWidLayout->addItem(m_bottomSpacerItem);
|
||||
int id = 0;
|
||||
|
||||
Q_FOREACH (QAbstractButton *btn, m_buttonList) {
|
||||
Q_FOREACH(QAbstractButton *btn, m_buttonList) {
|
||||
m_btnGroup->addButton(btn, id++);
|
||||
}
|
||||
|
||||
|
@ -358,7 +358,7 @@ void FullFunctionWidget::btnGroupClickedSlot(QAbstractButton *btn)
|
|||
disconnect(m_scrollArea->verticalScrollBar(), &QScrollBar::valueChanged,
|
||||
this, &FullFunctionWidget::valueChangedSlot);
|
||||
|
||||
Q_FOREACH (QAbstractButton *button, m_buttonList) {
|
||||
Q_FOREACH(QAbstractButton *button, m_buttonList) {
|
||||
if (m_btnGroup->id(btn) == m_buttonList.indexOf(button)) {
|
||||
m_beginPos = m_scrollArea->verticalScrollBar()->sliderPosition();
|
||||
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) {
|
||||
Q_FOREACH (QAbstractButton *button, m_buttonList) {
|
||||
Q_FOREACH(QAbstractButton *button, m_buttonList) {
|
||||
FunctionClassifyButton *fcbutton = qobject_cast<FunctionClassifyButton *>(button);
|
||||
|
||||
if (index == m_buttonList.indexOf(button)) {
|
||||
|
|
|
@ -242,7 +242,7 @@ void FullLetterWidget::updateAppListView()
|
|||
fillAppList();
|
||||
|
||||
//刷新字母列表界面
|
||||
Q_FOREACH (QAbstractButton *button, m_buttonList) {
|
||||
Q_FOREACH(QAbstractButton *button, m_buttonList) {
|
||||
m_btnGroup->removeButton(button);
|
||||
}
|
||||
|
||||
|
@ -345,7 +345,7 @@ void FullLetterWidget::initLetterListScrollArea()
|
|||
m_letterListWidLayout->addItem(m_letterListBottomSpacer);
|
||||
int id = 0;
|
||||
|
||||
Q_FOREACH (QAbstractButton *btn, m_buttonList) {
|
||||
Q_FOREACH(QAbstractButton *btn, m_buttonList) {
|
||||
m_btnGroup->addButton(btn, id++);
|
||||
}
|
||||
|
||||
|
@ -362,7 +362,7 @@ void FullLetterWidget::btnGroupClickedSlot(QAbstractButton *btn)
|
|||
disconnect(m_scrollArea->verticalScrollBar(), &QScrollBar::valueChanged,
|
||||
this, &FullLetterWidget::valueChangedSlot);
|
||||
|
||||
Q_FOREACH (QAbstractButton *button, m_buttonList) {
|
||||
Q_FOREACH(QAbstractButton *button, m_buttonList) {
|
||||
LetterClassifyButton *letterbtn = qobject_cast<LetterClassifyButton *>(button);
|
||||
|
||||
if (m_btnGroup->id(btn) == m_buttonList.indexOf(button)) {
|
||||
|
@ -426,7 +426,7 @@ void FullLetterWidget::valueChangedSlot(int value)
|
|||
}
|
||||
|
||||
if (value >= min && value < max) {
|
||||
Q_FOREACH (QAbstractButton *button, m_buttonList) {
|
||||
Q_FOREACH(QAbstractButton *button, m_buttonList) {
|
||||
LetterClassifyButton *letterbtn = qobject_cast<LetterClassifyButton *>(button);
|
||||
|
||||
if (index == m_buttonList.indexOf(button)) {
|
||||
|
@ -476,7 +476,7 @@ void FullLetterWidget::repaintWidget()
|
|||
|
||||
void FullLetterWidget::widgetMakeZero()
|
||||
{
|
||||
Q_FOREACH (QAbstractButton *button, m_buttonList) {
|
||||
Q_FOREACH(QAbstractButton *button, m_buttonList) {
|
||||
QString letterstr = button->text().at(0);
|
||||
int num = m_letterList.indexOf(letterstr);
|
||||
|
||||
|
|
|
@ -152,7 +152,7 @@ void FullSearchResultWidget::updateAppListView(QVector<QStringList> arg)
|
|||
{
|
||||
m_data.clear();
|
||||
|
||||
Q_FOREACH (QStringList appinfo, arg) {
|
||||
Q_FOREACH(QStringList appinfo, arg) {
|
||||
m_data.append(appinfo.at(0));
|
||||
}
|
||||
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "function_Widget.h"
|
||||
#include "style.h"
|
||||
#include <QVBoxLayout>
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef FUNCTIONWIDGET_H
|
||||
#define FUNCTIONWIDGET_H
|
||||
|
||||
|
|
|
@ -73,7 +73,7 @@ void FunctionButtonWidget::initUi()
|
|||
if (QGSettings::isSchemaInstalled(QString("org.ukui.style").toLocal8Bit())) {
|
||||
QGSettings *gsetting = new QGSettings(QString("org.ukui.style").toLocal8Bit());
|
||||
connect(gsetting, &QGSettings::changed, this, [ = ] {
|
||||
Q_FOREACH (QAbstractButton *btn, m_buttonList)
|
||||
Q_FOREACH(QAbstractButton *btn, m_buttonList)
|
||||
{
|
||||
FunctionClassifyButton *fbtn = qobject_cast<FunctionClassifyButton *>(btn);
|
||||
fbtn->updateBtnState();
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "plugin_widget.h"
|
||||
#include "KySmallPluginInterface.h"
|
||||
#include <QDebug>
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef PLUGINWIDGET_H
|
||||
#define PLUGINWIDGET_H
|
||||
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "tabview_widget.h"
|
||||
#include <QTabBar>
|
||||
|
||||
|
@ -27,7 +45,7 @@ void TabViewWidget::updateListView()
|
|||
{
|
||||
m_data.clear();
|
||||
|
||||
Q_FOREACH (QString desktopfp, m_ukuiMenuInterface->getAllClassification()) {
|
||||
Q_FOREACH(QString desktopfp, m_ukuiMenuInterface->getAllClassification()) {
|
||||
m_data.append(desktopfp);
|
||||
}
|
||||
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef TABVIEWWIDGET_H
|
||||
#define TABVIEWWIDGET_H
|
||||
#include <QTabWidget>
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "full_mainwindow.h"
|
||||
#include <KWindowEffects>
|
||||
#include <QAction>
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef FULLMAINWINDOW_H
|
||||
#define FULLMAINWINDOW_H
|
||||
|
||||
|
|
|
@ -1134,7 +1134,7 @@ void MainWindow::recvSearchResult(QVector<QStringList> arg)
|
|||
m_minSearchResultListView->verticalScrollBar()->setSliderPosition(0);
|
||||
m_minSearchResultListView->addData(m_data, 3);
|
||||
|
||||
Q_FOREACH (QStringList appinfo, arg) {
|
||||
Q_FOREACH(QStringList appinfo, arg) {
|
||||
m_data.append(QStringList() << appinfo.at(0) << "1");
|
||||
}
|
||||
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef ABSTRACTINTERFACE_H
|
||||
#define ABSTRACTINTERFACE_H
|
||||
#include <QObject>
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef KYSMALLPLUGININTERFACE_H
|
||||
#define KYSMALLPLUGININTERFACE_H
|
||||
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef OOBE_PLUGIN_INFACE_H
|
||||
#define OOBE_PLUGIN_INFACE_H
|
||||
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "thumbnail.h"
|
||||
#include <QVBoxLayout>
|
||||
#include "style.h"
|
||||
|
|
|
@ -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/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef THUMBNAIL_H
|
||||
#define THUMBNAIL_H
|
||||
|
||||
|
|
|
@ -234,7 +234,7 @@ QString getEnvOverriddenDesktopFile(int pid)
|
|||
if (file.open(QIODevice::ReadOnly)) {
|
||||
QList<QByteArray> list = file.readLine().split('\x00');
|
||||
|
||||
Q_FOREACH (QByteArray array, list) {
|
||||
Q_FOREACH(QByteArray array, list) {
|
||||
if (array.contains("GIO_LAUNCHED_DESKTOP_FILE=")) {
|
||||
ret = QString(array.split('=').at(1));
|
||||
break;
|
||||
|
@ -279,7 +279,7 @@ void initDatabase()
|
|||
setting->beginGroup("application");
|
||||
QString desktopfp;
|
||||
|
||||
Q_FOREACH (QString desktopfn, setting->allKeys()) {
|
||||
Q_FOREACH(QString desktopfn, setting->allKeys()) {
|
||||
if (setting->value(desktopfn).toInt() == 1) {
|
||||
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)");
|
||||
|
||||
Q_FOREACH (QString desktopfn, desktopfnList) {
|
||||
Q_FOREACH(QString desktopfn, desktopfnList) {
|
||||
myDebug() << "void initDatabase()" << desktopfn;
|
||||
QDateTime dt = QDateTime::currentDateTime();
|
||||
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\"")
|
||||
.arg(desktopfn);
|
||||
sql.exec(cmd);
|
||||
|
|
Loading…
Reference in New Issue