隐藏搜索任务栏图标;
This commit is contained in:
parent
0fea295bea
commit
651782ff2d
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue