隐藏搜索任务栏图标;

This commit is contained in:
jixiaoxu 2021-12-16 11:26:49 +08:00 committed by iaom
parent 0fea295bea
commit 651782ff2d
2 changed files with 3 additions and 0 deletions

View File

@ -21,6 +21,7 @@
#include "create-index-ask-dialog.h"
#include <QPainterPath>
#include "kwindowsystem.h"
#define MAIN_SIZE QSize(380, 202)
#define MAIN_SPACING 0
@ -43,6 +44,7 @@ CreateIndexAskDialog::CreateIndexAskDialog(QWidget *parent) : QDialog(parent) {
}
void CreateIndexAskDialog::initUi() {
KWindowSystem::setState(this->winId(),NET::SkipTaskbar | NET::SkipPager);
this->setFixedSize(MAIN_SIZE);
m_mainLyt = new QVBoxLayout(this);
this->setLayout(m_mainLyt);

View File

@ -403,6 +403,7 @@ void MainWindow::moveToPanel() {
void MainWindow::centerToScreen(QWidget* widget) {
if(!widget)
return;
KWindowSystem::setState(this->winId(),NET::SkipTaskbar | NET::SkipPager);
QDesktopWidget* m = QApplication::desktop();
QRect desk_rect = m->screenGeometry(m->screenNumber(QCursor::pos()));
int desk_x = desk_rect.width();