diff --git a/debian/changelog b/debian/changelog old mode 100755 new mode 100644 index f06dc59..428f626 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +ukui-menu (3.1.1-ok4~1024) yangtze; urgency=medium + + * close-cd #I5SPVS 移动面板后使用win键打开菜单栏位置不对 + * close-cd #I5RF2N 开始菜单展开后没有置顶,也没有全屏 + * close-cd #I5R2AO 开始菜单放大后应用图标缺失、电源按钮被任务栏挡住,且有小概率未正确全屏 + + -- lixueman Mon, 24 Oct 2022 17:10:56 +0800 + ukui-menu (3.1.1-ok4~1020) yangtze; urgency=medium * close-cd #129225【开始菜单】【PC】在列表顶部或底部继续触摸拖动概率性出现图标缺失情况,再次滑动显示正常(1/10) diff --git a/debian/control b/debian/control old mode 100755 new mode 100644 diff --git a/debian/copyright b/debian/copyright old mode 100755 new mode 100644 diff --git a/debian/rules b/debian/rules old mode 100755 new mode 100644 diff --git a/debian/source/format b/debian/source/format old mode 100755 new mode 100644 diff --git a/debian/watch b/debian/watch old mode 100755 new mode 100644 diff --git a/src/BackProcess/Interface/ukuimenuinterface.cpp b/src/BackProcess/Interface/ukuimenuinterface.cpp index 7879cc0..d7438fb 100755 --- a/src/BackProcess/Interface/ukuimenuinterface.cpp +++ b/src/BackProcess/Interface/ukuimenuinterface.cpp @@ -375,7 +375,7 @@ QStringList UkuiMenuInterface::getDesktopFilePath() m_filePathList.removeAll("/usr/share/applications/kylin-io-monitor.desktop"); m_filePathList.removeAll("/usr/share/applications/wps-office-uninstall.desktop"); m_filePathList.removeAll("/usr/share/applications/wps-office-misc.desktop"); - m_filePathList.removeAll("/usr/share/applications/kylin-installer.desktop"); +// m_filePathList.removeAll("/usr/share/applications/kylin-installer.desktop"); QStringList desktopList; for (int i = 0; i < m_filePathList.count(); ++i) { diff --git a/src/UserInterface/Widget/full_commonuse_widget.cpp b/src/UserInterface/Widget/full_commonuse_widget.cpp index 6adab1a..adbce44 100755 --- a/src/UserInterface/Widget/full_commonuse_widget.cpp +++ b/src/UserInterface/Widget/full_commonuse_widget.cpp @@ -170,7 +170,7 @@ void FullCommonUseWidget::resizeScrollAreaControls() rowcount = listview->model()->rowCount() / dividend; } - listview->setFixedSize(m_listView->width(), listview->gridSize().height() * rowcount); + listview->setFixedSize(Style::m_applistAreaWidth, listview->gridSize().height() * rowcount); m_scrollArea->widget()->setFixedSize(listview->size()); } @@ -275,11 +275,13 @@ void FullCommonUseWidget::updateListView() void FullCommonUseWidget::repaintWidget() { m_scrollArea->setFixedSize(Style::m_applistAreaWidth, Style::m_applistWidHeight); + m_scrollArea->setWidgetResizable(true); m_scrollAreaWidLayout->removeWidget(m_listView); m_listView->setParent(nullptr); delete m_listView; initAppListWidget(); fillAppList(); + m_scrollAreaWid->adjustSize(); m_scrollAreaWidHeight = m_scrollAreaWid->height(); initVerticalScrollBar(); on_setAreaScrollBarValue(0); diff --git a/src/UserInterface/mainwindow.cpp b/src/UserInterface/mainwindow.cpp index 0c07b15..42a5e78 100755 --- a/src/UserInterface/mainwindow.cpp +++ b/src/UserInterface/mainwindow.cpp @@ -1382,8 +1382,14 @@ void MainWindow::repaintWidget() int y = Style::m_primaryScreenY; int width = Style::m_availableScreenWidth; int height = Style::m_availableScreenHeight; + setMinWindowPos(); - m_fullWindow->move(x, y); + + if (g_platform.startsWith(QLatin1String("wayland"), Qt::CaseInsensitive)) { + kdk::WindowManager::setGeometry(m_fullWindow->windowHandle(), QRect(x, y, width, height)); + } else { + m_fullWindow->move(x, y); + } m_fullWindow->setFixedSize(width, height); m_fullWindow->repaintWidget(); } diff --git a/src/UtilityFunction/utility.cpp b/src/UtilityFunction/utility.cpp index c7b63e7..1873136 100755 --- a/src/UtilityFunction/utility.cpp +++ b/src/UtilityFunction/utility.cpp @@ -138,23 +138,24 @@ QVariantList getScreenGeometryList() QRect rect; rect = qApp->primaryScreen()->geometry(); int panelSize = 0; - int position = 0; + int panelPosition = 0; QVariantList list; list.clear(); - QDBusInterface iface(DBUS_NAME, - DBUS_PATH, - DBUS_INTERFACE, - QDBusConnection::sessionBus()); - QDBusReply reply = iface.call("GetPrimaryScreenPhysicalGeometry"); - if (reply.isValid()) { - panelSize = reply.value().at(4).toInt(); - position = reply.value().at(5).toInt(); + if (QGSettings::isSchemaInstalled(QString("org.ukui.panel.settings").toLocal8Bit())) { + QGSettings gsetting(QString("org.ukui.panel.settings").toLocal8Bit()); + if (gsetting.keys().contains("panelposition")) { + panelPosition = gsetting.get("panelposition").toInt(); + } + + if (gsetting.keys().contains("panelsize")) { + panelSize = gsetting.get("panelsize").toInt(); + } } QList posIndex; - switch (position) { + switch (panelPosition) { case BOTTOM: posIndex = {0, 0, 0, -1}; break; @@ -173,7 +174,7 @@ QVariantList getScreenGeometryList() list.append(rect.width() + posIndex[2] * panelSize); list.append(rect.height() + posIndex[3] * panelSize); list.append(panelSize); - list.append(position); + list.append(panelPosition); return list; }