Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
3698ff07
Kaydet (Commit)
3698ff07
authored
May 29, 2018
tarafından
Katarina Behrens
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add radiobuttons to native menus
Change-Id: I015bbb0a337b917096ca6f542a73c24c79fbef7d
üst
42b390cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
Qt5Menu.cxx
vcl/qt5/Qt5Menu.cxx
+14
-0
No files found.
vcl/qt5/Qt5Menu.cxx
Dosyayı görüntüle @
3698ff07
...
...
@@ -87,6 +87,7 @@ void Qt5Menu::DoFullMenuUpdate( Menu* pMenuBar, QMenu* pParentMenu )
if
(
mbMenuBar
&&
mpQMenuBar
)
mpQMenuBar
->
clear
();
QActionGroup
*
pQAG
=
nullptr
;
for
(
sal_Int32
nItem
=
0
;
nItem
<
static_cast
<
sal_Int32
>
(
GetItemCount
());
nItem
++
)
{
...
...
@@ -105,8 +106,11 @@ void Qt5Menu::DoFullMenuUpdate( Menu* pMenuBar, QMenu* pParentMenu )
else
{
if
(
pSalMenuItem
->
mpSubMenu
)
{
// submenu
pQMenu
=
pQMenu
->
addMenu
(
toQString
(
aText
)
);
pQAG
=
new
QActionGroup
(
pQMenu
);
}
else
{
if
(
pSalMenuItem
->
mnType
==
MenuItemType
::
SEPARATOR
)
...
...
@@ -122,6 +126,16 @@ void Qt5Menu::DoFullMenuUpdate( Menu* pMenuBar, QMenu* pParentMenu )
pAction
->
setCheckable
(
true
);
pAction
->
setChecked
(
bChecked
);
}
else
if
(
itemBits
&
MenuItemBits
::
RADIOCHECK
)
{
pAction
->
setCheckable
(
true
);
if
(
!
pQAG
)
{
pQAG
=
new
QActionGroup
(
pQMenu
);
pQAG
->
setExclusive
(
true
);
}
pQAG
->
addAction
(
pAction
);
}
connect
(
pAction
,
&
QAction
::
triggered
,
this
,
[
this
,
pSalMenuItem
]{
DispatchCommand
(
pSalMenuItem
);
}
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment