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
b82f4373
Kaydet (Commit)
b82f4373
authored
Eki 09, 2016
tarafından
Jan-Marek Glogowski
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
KDE4 rely on style()->pixelMetric for frame width
Change-Id: I7a1e89c0c058bab0b6665e2b96b22251dcb51f4f
üst
294958c7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
3 additions
and
36 deletions
+3
-36
KDESalGraphics.cxx
vcl/unx/kde4/KDESalGraphics.cxx
+2
-6
KDESalInstance.cxx
vcl/unx/kde4/KDESalInstance.cxx
+0
-5
KDESalInstance.hxx
vcl/unx/kde4/KDESalInstance.hxx
+0
-1
KDEXLib.cxx
vcl/unx/kde4/KDEXLib.cxx
+1
-21
KDEXLib.hxx
vcl/unx/kde4/KDEXLib.hxx
+0
-3
No files found.
vcl/unx/kde4/KDESalGraphics.cxx
Dosyayı görüntüle @
b82f4373
...
...
@@ -543,9 +543,8 @@ bool KDESalGraphics::drawNativeControl( ControlType type, ControlPart part,
{
lcl_drawFrame
(
QStyle
::
PE_Frame
,
m_image
.
get
(),
vclStateValue2StateFlag
(
nControlState
,
value
)
);
// draw just the border, see http://qa.openoffice.org/issues/show_bug.cgi?id=107945
int
fw
=
static_cast
<
KDESalInstance
*
>
(
GetSalData
()
->
m_pInstance
)
->
getFrameWidth
(
);
int
fw
=
QApplication
::
style
()
->
pixelMetric
(
QStyle
::
PM_DefaultFrameWidth
);
localClipRegion
=
new
QRegion
(
QRegion
(
widgetRect
).
subtracted
(
widgetRect
.
adjusted
(
fw
,
fw
,
-
fw
,
-
fw
)));
}
else
if
(
type
==
ControlType
::
WindowBackground
)
...
...
@@ -858,14 +857,11 @@ bool KDESalGraphics::getNativeControlRegion( ControlType type, ControlPart part,
{
if
(
part
==
ControlPart
::
Border
)
{
int
nFrameWidth
=
static_cast
<
KDESalInstance
*
>
(
GetSalData
()
->
m_pInstance
)
->
getFrameWidth
();
auto
nStyle
=
static_cast
<
DrawFrameFlags
>
(
val
.
getNumericVal
()
&
0xFFF0
);
if
(
nStyle
&
DrawFrameFlags
::
NoDraw
)
{
// in this case the question is: how thick would a frame be
// see brdwin.cxx, decoview.cxx
// most probably the behavior in decoview.cxx is wrong.
int
nFrameWidth
=
QApplication
::
style
()
->
pixelMetric
(
QStyle
::
PM_DefaultFrameWidth
);
contentRect
.
adjust
(
nFrameWidth
,
nFrameWidth
,
-
nFrameWidth
,
-
nFrameWidth
);
}
retVal
=
true
;
...
...
vcl/unx/kde4/KDESalInstance.cxx
Dosyayı görüntüle @
b82f4373
...
...
@@ -53,11 +53,6 @@ uno::Reference< ui::dialogs::XFilePicker2 > KDESalInstance::createFilePicker(
return
X11SalInstance
::
createFilePicker
(
xMSF
);
}
int
KDESalInstance
::
getFrameWidth
()
{
return
static_cast
<
KDEXLib
*>
(
mpXLib
)
->
getFrameWidth
();
}
SalX11Display
*
KDESalInstance
::
CreateDisplay
()
const
{
return
new
SalKDEDisplay
(
QX11Info
::
display
()
);
...
...
vcl/unx/kde4/KDESalInstance.hxx
Dosyayı görüntüle @
b82f4373
...
...
@@ -39,7 +39,6 @@ class KDESalInstance : public X11SalInstance
virtual
css
::
uno
::
Reference
<
css
::
ui
::
dialogs
::
XFilePicker2
>
createFilePicker
(
const
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>&
)
override
;
int
getFrameWidth
();
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
vcl/unx/kde4/KDEXLib.cxx
Dosyayı görüntüle @
b82f4373
...
...
@@ -50,7 +50,7 @@
KDEXLib
::
KDEXLib
()
:
SalXLib
(),
m_bStartupDone
(
false
),
m_pFreeCmdLineArgs
(
nullptr
),
m_pAppCmdLineArgs
(
nullptr
),
m_nFakeCmdLineArgs
(
0
),
m_
frameWidth
(
-
1
),
m_
isGlibEventLoopType
(
false
),
m_isGlibEventLoopType
(
false
),
m_allowKdeDialogs
(
false
),
m_blockIdleTimeout
(
false
)
{
// the timers created here means they belong to the main thread.
...
...
@@ -76,9 +76,6 @@ KDEXLib::KDEXLib() :
connect
(
this
,
SIGNAL
(
createFilePickerSignal
(
const
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>&
)
),
this
,
SLOT
(
createFilePicker
(
const
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>&
)
),
Qt
::
BlockingQueuedConnection
);
connect
(
this
,
SIGNAL
(
getFrameWidthSignal
()
),
this
,
SLOT
(
getFrameWidth
()
),
Qt
::
BlockingQueuedConnection
);
}
KDEXLib
::~
KDEXLib
()
...
...
@@ -423,23 +420,6 @@ uno::Reference< ui::dialogs::XFilePicker2 > KDEXLib::createFilePicker(
#endif
}
int
KDEXLib
::
getFrameWidth
()
{
if
(
m_frameWidth
>=
0
)
return
m_frameWidth
;
if
(
qApp
->
thread
()
!=
QThread
::
currentThread
())
{
SalYieldMutexReleaser
aReleaser
;
return
Q_EMIT
getFrameWidthSignal
();
}
// fill in a default
QFrame
aFrame
(
nullptr
);
aFrame
.
setFrameStyle
(
QFrame
::
StyledPanel
|
QFrame
::
Sunken
);
aFrame
.
ensurePolished
();
m_frameWidth
=
aFrame
.
frameWidth
();
return
m_frameWidth
;
}
#include "KDEXLib.moc"
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
vcl/unx/kde4/KDEXLib.hxx
Dosyayı görüntüle @
b82f4373
...
...
@@ -53,7 +53,6 @@ class KDEXLib : public QObject, public SalXLib
QHash
<
int
,
SocketData
>
socketData
;
// key is fd
QTimer
timeoutTimer
;
QTimer
userEventTimer
;
int
m_frameWidth
;
bool
m_isGlibEventLoopType
;
bool
m_allowKdeDialogs
;
bool
m_blockIdleTimeout
;
...
...
@@ -74,7 +73,6 @@ class KDEXLib : public QObject, public SalXLib
void
processYieldSignal
(
bool
bWait
,
bool
bHandleAllCurrentEvents
);
css
::
uno
::
Reference
<
css
::
ui
::
dialogs
::
XFilePicker2
>
createFilePickerSignal
(
const
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>&
);
int
getFrameWidthSignal
();
public
:
KDEXLib
();
...
...
@@ -95,7 +93,6 @@ class KDEXLib : public QObject, public SalXLib
public
Q_SLOTS
:
css
::
uno
::
Reference
<
css
::
ui
::
dialogs
::
XFilePicker2
>
createFilePicker
(
const
css
::
uno
::
Reference
<
css
::
uno
::
XComponentContext
>&
);
int
getFrameWidth
();
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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