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
84979c4c
Kaydet (Commit)
84979c4c
authored
Eyl 30, 2016
tarafından
Jan-Marek Glogowski
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
KDE4 implement native drag handlers
Change-Id: I3d6a1696b8278066b005c1983d226cc67381ba95
üst
60f49908
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
6 deletions
+34
-6
KDESalGraphics.cxx
vcl/unx/kde4/KDESalGraphics.cxx
+34
-6
No files found.
vcl/unx/kde4/KDESalGraphics.cxx
Dosyayı görüntüle @
84979c4c
...
...
@@ -384,14 +384,24 @@ bool KDESalGraphics::drawNativeControl( ControlType type, ControlPart part,
draw
(
QStyle
::
CE_ToolBar
,
&
option
,
m_image
.
get
(),
vclStateValue2StateFlag
(
nControlState
,
value
)
);
}
else
if
(
(
type
==
ControlType
::
Toolbar
)
&&
(
part
==
ControlPart
::
ThumbVert
)
)
else
if
(
(
type
==
ControlType
::
Toolbar
)
&&
(
part
==
ControlPart
::
ThumbVert
||
part
==
ControlPart
::
ThumbHorz
)
)
{
// reduce paint area only to the handle area
const
int
width
=
QApplication
::
style
()
->
pixelMetric
(
QStyle
::
PM_ToolBarHandleExtent
);
QRect
rect
(
0
,
0
,
width
,
widgetRect
.
height
());
localClipRegion
=
new
QRegion
(
widgetRect
.
x
(),
widgetRect
.
y
(),
width
,
widgetRect
.
height
());
const
int
handleExtend
=
QApplication
::
style
()
->
pixelMetric
(
QStyle
::
PM_ToolBarHandleExtent
);
QRect
rect
;
QStyleOption
option
;
option
.
state
=
QStyle
::
State_Horizontal
;
if
(
part
==
ControlPart
::
ThumbVert
)
{
rect
=
QRect
(
0
,
0
,
handleExtend
,
widgetRect
.
height
());
localClipRegion
=
new
QRegion
(
widgetRect
.
x
(),
widgetRect
.
y
(),
handleExtend
,
widgetRect
.
height
());
option
.
state
=
QStyle
::
State_Horizontal
;
}
else
{
rect
=
QRect
(
0
,
0
,
widgetRect
.
width
(),
handleExtend
);
localClipRegion
=
new
QRegion
(
widgetRect
.
x
(),
widgetRect
.
y
(),
widgetRect
.
width
(),
handleExtend
);
}
draw
(
QStyle
::
PE_IndicatorToolBarHandle
,
&
option
,
m_image
.
get
(),
vclStateValue2StateFlag
(
nControlState
,
value
),
rect
);
...
...
@@ -435,6 +445,7 @@ bool KDESalGraphics::drawNativeControl( ControlType type, ControlPart part,
vclStateValue2StateFlag
(
nControlState
,
value
)
);
break
;
default
:
returnVal
=
false
;
break
;
}
}
...
...
@@ -901,6 +912,23 @@ bool KDESalGraphics::getNativeControlRegion( ControlType type, ControlPart part,
}
break
;
}
case
ControlType
:
:
Toolbar
:
{
const
int
nWorH
=
QApplication
::
style
()
->
pixelMetric
(
QStyle
::
PM_ToolBarHandleExtent
);
if
(
part
==
ControlPart
::
ThumbHorz
)
{
contentRect
=
QRect
(
boundingRect
.
left
(),
boundingRect
.
top
(),
boundingRect
.
width
(),
nWorH
);
boundingRect
=
contentRect
;
retVal
=
true
;
}
else
if
(
part
==
ControlPart
::
ThumbVert
)
{
contentRect
=
QRect
(
boundingRect
.
left
(),
boundingRect
.
top
(),
nWorH
,
boundingRect
.
height
()
);
boundingRect
=
contentRect
;
retVal
=
true
;
}
break
;
}
case
ControlType
:
:
Scrollbar
:
{
// core can't handle 3-button scrollbars well, so we fix that in hitTestNativeControl(),
...
...
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