diff --git a/debian/changelog b/debian/changelog index 9184f9a..b7c062b 100755 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +ukui-menu (3.1.1-ok4~0907) yangtze; urgency=medium + + * close-cd #125158 【开始菜单】切换全屏时动画显示不太流畅 + * close-cd #133399 【开始菜单】【PC】只有一个用户,开始菜单右键电源按钮存在切换用户选项 + * 添加版权信息 + + -- lixueman Wed, 07 Sep 2022 14:12:53 +0800 + ukui-menu (3.1.1-ok4~0831) yangtze; urgency=medium * close-cd # 131373 【wayland】【软件更新器】点击打开软件更新器后,开始菜单过6s左右才退出; diff --git a/src/BackProcess/DBus/dbus.cpp b/src/BackProcess/DBus/dbus.cpp index 42f7109..98f3a61 100755 --- a/src/BackProcess/DBus/dbus.cpp +++ b/src/BackProcess/DBus/dbus.cpp @@ -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 #include diff --git a/src/BackProcess/DBus/dbus.h b/src/BackProcess/DBus/dbus.h index 44f3be4..ebc31d3 100755 --- a/src/BackProcess/DBus/dbus.h +++ b/src/BackProcess/DBus/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 #include diff --git a/src/BackProcess/FileWatcher/desktop_watcher.h b/src/BackProcess/FileWatcher/desktop_watcher.h index 874a98d..50209e9 100755 --- a/src/BackProcess/FileWatcher/desktop_watcher.h +++ b/src/BackProcess/FileWatcher/desktop_watcher.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 diff --git a/src/BackProcess/FileWatcher/tablet_directorychanged_thread.cpp b/src/BackProcess/FileWatcher/tablet_directorychanged_thread.cpp index 0cbbf6b..1d2258f 100755 --- a/src/BackProcess/FileWatcher/tablet_directorychanged_thread.cpp +++ b/src/BackProcess/FileWatcher/tablet_directorychanged_thread.cpp @@ -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()); } } diff --git a/src/BackProcess/Interface/currenttime_interface.cpp b/src/BackProcess/Interface/currenttime_interface.cpp index 4608040..2a5e818 100755 --- a/src/BackProcess/Interface/currenttime_interface.cpp +++ b/src/BackProcess/Interface/currenttime_interface.cpp @@ -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 #define TIME_FORMAT "org.ukui.control-center.panel.plugins" diff --git a/src/BackProcess/Interface/currenttime_interface.h b/src/BackProcess/Interface/currenttime_interface.h index cf08151..50d0f3f 100755 --- a/src/BackProcess/Interface/currenttime_interface.h +++ b/src/BackProcess/Interface/currenttime_interface.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 diff --git a/src/BackProcess/Interface/ukuimenuinterface.cpp b/src/BackProcess/Interface/ukuimenuinterface.cpp index ed6718b..eb2c06c 100755 --- a/src/BackProcess/Interface/ukuimenuinterface.cpp +++ b/src/BackProcess/Interface/ukuimenuinterface.cpp @@ -996,7 +996,7 @@ QVector 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 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 UkuiMenuInterface::getCommonUseApp() if (!g_projectCodeName.contains("V10SP1-edu")) { QVector data; - Q_FOREACH (QString desktopfn, getLockAppList()) { + Q_FOREACH(QString desktopfn, getLockAppList()) { QString desktopfp; if (androidDesktopfnList.contains(desktopfn)) { @@ -1120,7 +1120,7 @@ QVector 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 UkuiMenuInterface::sortDesktopList(QString group) setting->endGroup(); QVector data; - Q_FOREACH (QString desktopfn, desktopfnList) { + Q_FOREACH(QString desktopfn, desktopfnList) { QString desktopfp; if (androidDesktopfnList.contains(desktopfn)) { @@ -1181,7 +1181,7 @@ QVector UkuiMenuInterface::getCollectApp() { QVector data; - Q_FOREACH (QString desktopfn, getCollectAppList()) { + Q_FOREACH(QString desktopfn, getCollectAppList()) { QString desktopfp; if (androidDesktopfnList.contains(desktopfn)) { @@ -1221,7 +1221,7 @@ QVector UkuiMenuInterface::getLockApp() setting->endGroup(); QVector 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); diff --git a/src/BackProcess/tablet/getmodeldata.cpp b/src/BackProcess/tablet/getmodeldata.cpp index 11d0693..0c801af 100755 --- a/src/BackProcess/tablet/getmodeldata.cpp +++ b/src/BackProcess/tablet/getmodeldata.cpp @@ -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 #include @@ -27,7 +45,7 @@ QVector 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() < PageManager::sortAppInPage(const QVector &appVecto QVector pageData; QStringList onePageData; - Q_FOREACH (QString desktopfp, appVector) { + Q_FOREACH(QString desktopfp, appVector) { m_data.append(desktopfp); } @@ -79,7 +97,7 @@ QVector PageManager::getAppPageVector() QVector appPagelist; QVector 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); } diff --git a/src/BackProcess/tablet/pagemanager.h b/src/BackProcess/tablet/pagemanager.h index 8c3f2ca..729b369 100755 --- a/src/BackProcess/tablet/pagemanager.h +++ b/src/BackProcess/tablet/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 #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(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(desktopfp), Qt::DisplayRole); listmodel->appendRow(item); diff --git a/src/UserInterface/ListView/klistview.h b/src/UserInterface/ListView/klistview.h index 37359b7..9e4dbbb 100755 --- a/src/UserInterface/ListView/klistview.h +++ b/src/UserInterface/ListView/klistview.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 diff --git a/src/UserInterface/ListView/listview.cpp b/src/UserInterface/ListView/listview.cpp index ea511c2..e688092 100755 --- a/src/UserInterface/ListView/listview.cpp +++ b/src/UserInterface/ListView/listview.cpp @@ -72,7 +72,7 @@ void ListView::addData(QVector 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(desktopfp), Qt::DisplayRole); listmodel->appendRow(item); @@ -86,7 +86,7 @@ void ListView::updateData(QVector data) { listmodel->clear(); - Q_FOREACH (QStringList desktopfp, data) { + Q_FOREACH(QStringList desktopfp, data) { QStandardItem *item = new QStandardItem; item->setData(QVariant::fromValue(desktopfp), Qt::DisplayRole); listmodel->appendRow(item); diff --git a/src/UserInterface/ListView/rightlistview.h b/src/UserInterface/ListView/rightlistview.h index b09c361..0dcc0d5 100755 --- a/src/UserInterface/ListView/rightlistview.h +++ b/src/UserInterface/ListView/rightlistview.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 diff --git a/src/UserInterface/ListView/tabletlistview.cpp b/src/UserInterface/ListView/tabletlistview.cpp index 6a957f4..36e1c83 100755 --- a/src/UserInterface/ListView/tabletlistview.cpp +++ b/src/UserInterface/ListView/tabletlistview.cpp @@ -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(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(desktopfp), Qt::DisplayRole); bool appDis = appDisable(desktopfp); diff --git a/src/UserInterface/Other/lettertooltip.cpp b/src/UserInterface/Other/lettertooltip.cpp index 176b48b..fb81def 100755 --- a/src/UserInterface/Other/lettertooltip.cpp +++ b/src/UserInterface/Other/lettertooltip.cpp @@ -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 #include diff --git a/src/UserInterface/Other/lettertooltip.h b/src/UserInterface/Other/lettertooltip.h index 4f64e0a..bb1c699 100755 --- a/src/UserInterface/Other/lettertooltip.h +++ b/src/UserInterface/Other/lettertooltip.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 diff --git a/src/UserInterface/Other/rotationlabel.cpp b/src/UserInterface/Other/rotationlabel.cpp index 0c08e2e..d30ced6 100644 --- a/src/UserInterface/Other/rotationlabel.cpp +++ b/src/UserInterface/Other/rotationlabel.cpp @@ -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 #include diff --git a/src/UserInterface/Other/rotationlabel.h b/src/UserInterface/Other/rotationlabel.h index f99cdbb..81d3ca6 100644 --- a/src/UserInterface/Other/rotationlabel.h +++ b/src/UserInterface/Other/rotationlabel.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 diff --git a/src/UserInterface/RightClickMenu/menubox.cpp b/src/UserInterface/RightClickMenu/menubox.cpp index c6f9729..e95abc7 100755 --- a/src/UserInterface/RightClickMenu/menubox.cpp +++ b/src/UserInterface/RightClickMenu/menubox.cpp @@ -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 #include diff --git a/src/UserInterface/RightClickMenu/menubox.h b/src/UserInterface/RightClickMenu/menubox.h index ea48961..ca62f3d 100755 --- a/src/UserInterface/RightClickMenu/menubox.h +++ b/src/UserInterface/RightClickMenu/menubox.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 diff --git a/src/UserInterface/RightClickMenu/tabletrightclickmenu.cpp b/src/UserInterface/RightClickMenu/tabletrightclickmenu.cpp index 0143c32..f9b7dd2 100755 --- a/src/UserInterface/RightClickMenu/tabletrightclickmenu.cpp +++ b/src/UserInterface/RightClickMenu/tabletrightclickmenu.cpp @@ -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); } diff --git a/src/UserInterface/ViewItem/kitemdelegate.cpp b/src/UserInterface/ViewItem/kitemdelegate.cpp index 540536e..3b18f3e 100755 --- a/src/UserInterface/ViewItem/kitemdelegate.cpp +++ b/src/UserInterface/ViewItem/kitemdelegate.cpp @@ -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 diff --git a/src/UserInterface/ViewItem/recent_item_delegate.cpp b/src/UserInterface/ViewItem/recent_item_delegate.cpp index db471cf..61c5bdc 100755 --- a/src/UserInterface/ViewItem/recent_item_delegate.cpp +++ b/src/UserInterface/ViewItem/recent_item_delegate.cpp @@ -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 diff --git a/src/UserInterface/ViewItem/right_item_delegate.h b/src/UserInterface/ViewItem/right_item_delegate.h index ee62ed6..034fab2 100755 --- a/src/UserInterface/ViewItem/right_item_delegate.h +++ b/src/UserInterface/ViewItem/right_item_delegate.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 diff --git a/src/UserInterface/Widget/animationpage.cpp b/src/UserInterface/Widget/animationpage.cpp index 2676f29..c494d1e 100755 --- a/src/UserInterface/Widget/animationpage.cpp +++ b/src/UserInterface/Widget/animationpage.cpp @@ -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 diff --git a/src/UserInterface/Widget/animationpage.h b/src/UserInterface/Widget/animationpage.h index 9cefa24..6a51b5c 100755 --- a/src/UserInterface/Widget/animationpage.h +++ b/src/UserInterface/Widget/animationpage.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 diff --git a/src/UserInterface/Widget/full_commonuse_widget.cpp b/src/UserInterface/Widget/full_commonuse_widget.cpp index 05d9d14..53ad54f 100755 --- a/src/UserInterface/Widget/full_commonuse_widget.cpp +++ b/src/UserInterface/Widget/full_commonuse_widget.cpp @@ -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); } diff --git a/src/UserInterface/Widget/full_function_widget.cpp b/src/UserInterface/Widget/full_function_widget.cpp index 09cc615..1867b5e 100755 --- a/src/UserInterface/Widget/full_function_widget.cpp +++ b/src/UserInterface/Widget/full_function_widget.cpp @@ -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(button); if (index == m_buttonList.indexOf(button)) { diff --git a/src/UserInterface/Widget/full_letter_widget.cpp b/src/UserInterface/Widget/full_letter_widget.cpp index bd51f38..e0b0a9e 100755 --- a/src/UserInterface/Widget/full_letter_widget.cpp +++ b/src/UserInterface/Widget/full_letter_widget.cpp @@ -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(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(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); diff --git a/src/UserInterface/Widget/full_searchresult_widget.cpp b/src/UserInterface/Widget/full_searchresult_widget.cpp index a37fc83..4a7b813 100755 --- a/src/UserInterface/Widget/full_searchresult_widget.cpp +++ b/src/UserInterface/Widget/full_searchresult_widget.cpp @@ -152,7 +152,7 @@ void FullSearchResultWidget::updateAppListView(QVector arg) { m_data.clear(); - Q_FOREACH (QStringList appinfo, arg) { + Q_FOREACH(QStringList appinfo, arg) { m_data.append(appinfo.at(0)); } diff --git a/src/UserInterface/Widget/function_Widget.cpp b/src/UserInterface/Widget/function_Widget.cpp index 5cf1f5e..d7f2746 100755 --- a/src/UserInterface/Widget/function_Widget.cpp +++ b/src/UserInterface/Widget/function_Widget.cpp @@ -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 diff --git a/src/UserInterface/Widget/function_Widget.h b/src/UserInterface/Widget/function_Widget.h index 3681c78..0c289a2 100755 --- a/src/UserInterface/Widget/function_Widget.h +++ b/src/UserInterface/Widget/function_Widget.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 (btn); fbtn->updateBtnState(); diff --git a/src/UserInterface/Widget/plugin_widget.cpp b/src/UserInterface/Widget/plugin_widget.cpp index 2881e05..cfb6fd3 100755 --- a/src/UserInterface/Widget/plugin_widget.cpp +++ b/src/UserInterface/Widget/plugin_widget.cpp @@ -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 diff --git a/src/UserInterface/Widget/plugin_widget.h b/src/UserInterface/Widget/plugin_widget.h index af41deb..325da2d 100755 --- a/src/UserInterface/Widget/plugin_widget.h +++ b/src/UserInterface/Widget/plugin_widget.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 @@ -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); } diff --git a/src/UserInterface/Widget/tabview_widget.h b/src/UserInterface/Widget/tabview_widget.h index ca9e999..d390923 100755 --- a/src/UserInterface/Widget/tabview_widget.h +++ b/src/UserInterface/Widget/tabview_widget.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 diff --git a/src/UserInterface/full_mainwindow.cpp b/src/UserInterface/full_mainwindow.cpp index 3a3e2cd..2feda1b 100755 --- a/src/UserInterface/full_mainwindow.cpp +++ b/src/UserInterface/full_mainwindow.cpp @@ -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 #include diff --git a/src/UserInterface/full_mainwindow.h b/src/UserInterface/full_mainwindow.h index 1f7bc24..40058a8 100755 --- a/src/UserInterface/full_mainwindow.h +++ b/src/UserInterface/full_mainwindow.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 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"); } diff --git a/src/UtilityFunction/AbstractInterface.h b/src/UtilityFunction/AbstractInterface.h index 90ed8ff..915c223 100755 --- a/src/UtilityFunction/AbstractInterface.h +++ b/src/UtilityFunction/AbstractInterface.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 diff --git a/src/UtilityFunction/KySmallPluginInterface.h b/src/UtilityFunction/KySmallPluginInterface.h index cf9ad21..f6fb0e6 100755 --- a/src/UtilityFunction/KySmallPluginInterface.h +++ b/src/UtilityFunction/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 #include "style.h" diff --git a/src/UtilityFunction/thumbnail.h b/src/UtilityFunction/thumbnail.h index 7ed6c56..6d47545 100755 --- a/src/UtilityFunction/thumbnail.h +++ b/src/UtilityFunction/thumbnail.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 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);