fix(UI issue): The virtual keyboard is not fully displayed after screen rotation

Description: The virtual keyboard is not fully displayed after screen rotation

Log: 屏幕旋转后虚拟键盘显示不全
Bug: bug##I72EYT
This commit is contained in:
liudun 2023-07-04 10:56:50 +08:00
parent 7417086560
commit 87681643b3
4 changed files with 15 additions and 7 deletions

View File

@ -44,6 +44,7 @@ public:
VirtualKeyboardWidget(QWidget *parent = nullptr);
virtual ~VirtualKeyboardWidget();
bool getFloatStatus();
void adjustGeometry();
public Q_SLOTS:
void onNormalBtnClicked(QChar c);
@ -63,7 +64,7 @@ protected:
private:
void initUI();
void initConnections();
void adjustGeometry();
// void adjustGeometry();
void onMouseEvents(int type);
void clearModifier();

8
debian/changelog vendored
View File

@ -1,3 +1,11 @@
ukui-screensaver (4.0.0.0-ok3~0704) v101; urgency=medium
* BUG号bug##I72EYT【次要】【锁屏】锁屏界面平板模式切换横竖屏后软键盘下方显示不全wayland中文
* 需求号:无
* 其他修改说明:处理编译依赖问题
-- liudun <liudun@kylinos.cn> Tue, 04 Jul 2023 10:34:46 +0800
ukui-screensaver (4.0.0.0-ok3~0628) yangtze; urgency=medium
* BUG号bug#I69CSS【锁屏】合盖后重新打开进入锁屏此时锁屏界面下方图标会被遮住

3
debian/control vendored
View File

@ -31,7 +31,7 @@ Build-Depends: debhelper-compat (= 12),
ukui-input-gather (>=1.0.0.2),
libinput-dev,
libukuiinputgatherclient-dev,
layer-shell-qt
liblayershellqtinterface-dev
Standards-Version: 4.5.0
Rules-Requires-Root: no
Homepage: https://www.github.com/ukui/ukui-screensaver
@ -45,7 +45,6 @@ Depends: ethtool,
ukui-session-manager,
libpam-biometric(>=3.20.0.10),
ukui-input-gather(>=1.0.0.2),
layer-shell-qt,
${misc:Depends},
${shlibs:Depends}
Replaces: ukui-screensaver-common (<< 2.0.0)

View File

@ -1415,10 +1415,10 @@ void LockWidget::setVirkeyboardPos()
{
if(vKeyboard)
{
vKeyboard->setGeometry(0,
height() - height()/3,
width(), height()/3);
// vKeyboard->setGeometry(0,
// height() - height()/3,
// width(), height()/3);
vKeyboard->adjustGeometry();
}
}