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
eaf2b87a
Kaydet (Commit)
eaf2b87a
authored
Ock 05, 2017
tarafından
Jan-Marek Glogowski
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
KDE4 Qt always processes all pending events
Change-Id: I6a6e37c36a64640b641b116867da5c63c9d36bca
üst
59b84bc7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
+9
-11
KDEXLib.cxx
vcl/unx/kde4/KDEXLib.cxx
+9
-11
No files found.
vcl/unx/kde4/KDEXLib.cxx
Dosyayı görüntüle @
eaf2b87a
...
...
@@ -301,21 +301,19 @@ SalYieldResult KDEXLib::Yield( bool bWait, bool bHandleAllCurrentEvents )
}
}
SalYieldResult
KDEXLib
::
processYield
(
bool
bWait
,
bool
bHandleAllCurrentEvents
)
/**
* Quoting the Qt docs: [QAbstractEventDispatcher::processEvents] processes
* pending events that match flags until there are no more events to process.
*/
SalYieldResult
KDEXLib
::
processYield
(
bool
bWait
,
bool
)
{
m_blockIdleTimeout
=
!
bWait
;
QAbstractEventDispatcher
*
dispatcher
=
QAbstractEventDispatcher
::
instance
(
qApp
->
thread
());
bool
wasEvent
=
false
;
for
(
int
cnt
=
bHandleAllCurrentEvents
?
100
:
1
;
cnt
>
0
;
--
cnt
)
{
if
(
!
dispatcher
->
processEvents
(
QEventLoop
::
AllEvents
))
break
;
wasEvent
=
true
;
}
if
(
bWait
&&
!
wasEvent
)
dispatcher
->
processEvents
(
QEventLoop
::
WaitForMoreEvents
);
if
(
bWait
)
wasEvent
=
dispatcher
->
processEvents
(
QEventLoop
::
WaitForMoreEvents
);
else
wasEvent
=
dispatcher
->
processEvents
(
QEventLoop
::
AllEvents
);
m_blockIdleTimeout
=
false
;
return
wasEvent
?
SalYieldResult
::
EVENT
:
SalYieldResult
::
TIMEOUT
;
...
...
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