fix(bug修复): issuesI64UVQ菜单栏显示位置异常且存在多余的标题栏

This commit is contained in:
zoujunnan@kylinos.cn 2023-03-24 17:29:51 +08:00 committed by handsome_feng
parent 50698f8dce
commit 1061332039
4 changed files with 13 additions and 7 deletions

9
debian/changelog vendored
View File

@ -1,3 +1,12 @@
kylin-photo-viewer (1.3.0.3-ok12) yangtze; urgency=medium
* BUG号# issues/I64UVQ【看图】当看图窗口上方存在其他窗口时点击看图窗口标题栏的菜单按钮菜单栏显示位置异常且存在多余的标题栏
* 需求号:无
* 其他改动说明:无
* 影响域仅bug修复无其他影响
-- zoujunnan <zoujunnan@kylinos.cn> Tue, 03 Jan 2023 18:43:28 +0800
kylin-photo-viewer (1.3.0.3-ok11) yangtze; urgency=medium
* BUG号# issues/I64UTA 【看图】【需求15193】无法复制图片

View File

@ -11,7 +11,7 @@ CONFIG += link_pkgconfig
VERSION = 1.3.0.3
DEFINES += APP_VERSION=\\\"$$VERSION\\\"
##定义一个字符串,可以将版本号数字之后的部分添加进去
DEFINES += APP_VERSION_DETAIL=\\\"$$VERSION-ok11\\\"
DEFINES += APP_VERSION_DETAIL=\\\"$$VERSION-ok12\\\"
QMAKE_CXXFLAGS += -g

View File

@ -46,7 +46,7 @@ void menuModule::initAction()
menuButton->setAutoRaise(true);
menuButton->setFocusPolicy(Qt::NoFocus);
m_menu = new QMenu();
m_menu = new QMenu(this);
QList<QAction *> actions;
QAction *actionOpen = new QAction(m_menu);

View File

@ -57,10 +57,7 @@ ShowImageWidget::ShowImageWidget(QWidget *parent) : QWidget(parent)
this->initConnect();
}
ShowImageWidget::~ShowImageWidget()
{
delete m_imageMenu;
}
ShowImageWidget::~ShowImageWidget() {}
void ShowImageWidget::initConnect()
{
@ -1396,7 +1393,7 @@ void ShowImageWidget::initMenu()
m_saveAs = new QAction(tr("Save as"), this);
m_signImage = new QAction(tr("Markup"), this);
//右键菜单
m_imageMenu = new QMenu();
m_imageMenu = new QMenu(this);
m_imageMenu->addAction(m_copy);
// m_imageMenu->addAction(m_reName);
// m_imageMenu->addAction(m_setDeskPaper);