!28 close-cd: #I7E19L 【设计走查】弹窗没有居中

Merge pull request !28 from 刘佳阳/openkylin/yangtze
This commit is contained in:
刘佳阳 2023-08-30 08:29:16 +00:00 committed by Gitee
commit 8053db5935
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
8 changed files with 19 additions and 0 deletions

View File

@ -1,3 +1,4 @@
moc_*.cpp
*.o
*.user
translations/kylin-music_zh_CN.qm

View File

@ -280,6 +280,8 @@ void SideBarWidget::getPlayListName()
void SideBarWidget::addPlayList()
{
newSonglistPup->enterLineEdit->clear();
QRect availableGeometry = Widget::mutual->geometry();
newSonglistPup->move(availableGeometry.center() - newSonglistPup->rect().center());
newSonglistPup->show();
newSonglistPup->enterLineEdit->setFocus();
}
@ -370,6 +372,8 @@ void SideBarWidget::rename(QString text)
{
btnText = text;
renameSongListPup->enterLineEdit->clear();
QRect availableGeometry = Widget::mutual->geometry();
renameSongListPup->move(availableGeometry.center() - renameSongListPup->rect().center());
renameSongListPup->show();
renameSongListPup->enterLineEdit->setFocus();
}

View File

@ -367,6 +367,8 @@ void TableOne::isDeleteSongs()
//确认将选中的歌曲从歌单中删除?
QMessageBox *warn = new QMessageBox(QMessageBox::Warning,tr("Prompt information"),tr("Confirm that the selected song will be deleted from the song list?"),QMessageBox::Yes | QMessageBox::No,Widget::mutual);
warn->setWindowTitle(tr("kylin-music"));
QRect availableGeometry = parentWidget()->geometry();
warn->move((availableGeometry.center() - warn->rect().center()));
warn->button(QMessageBox::Yes)->setText(tr("Yes"));
warn->button(QMessageBox::No)->setText(tr("No"));
int result = warn->exec();
@ -393,6 +395,8 @@ void TableOne::isDeleteLocalSongs()
//歌曲从本地删除后不可恢复,是否确定删除?
QMessageBox *warn = new QMessageBox(QMessageBox::Warning,tr("Prompt information"),tr("After the song is deleted from the local, it cannot be resumed. Is it sure to delete?"),QMessageBox::Yes | QMessageBox::No,Widget::mutual);
QRect availableGeometry = parentWidget()->geometry();
warn->move(availableGeometry.center() - warn->rect().center());
warn->button(QMessageBox::Yes)->setText(tr("Yes"));
warn->button(QMessageBox::No)->setText(tr("No"));
int result = warn->exec();

View File

@ -12,4 +12,5 @@ rm -rf kylin-music-plugins-simple/build/ \
debian/kylin-music.debhelper.log \
debian/kylin-music.substvars \
debian/kylin-music/ \
translations/*.qm \
kylin-music

9
debian/changelog vendored
View File

@ -1,3 +1,12 @@
kylin-music (1.1.0.47-ok6~0732) yangtze; urgency=medium
* [BUG]
- close-cd: #I7E19L 【设计走查】弹窗没有居中
* 其他: 无
-- liujiayang <liujiayang@kylinos.cn> Wed, 30 Aug 2023 15:34:51 +0800
kylin-music (1.1.0.47-ok6~0731) yangtze; urgency=medium
* [BUG]

Binary file not shown.

Binary file not shown.

Binary file not shown.