OSDN Git Service
(root)
/
kde
/
Katie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
148a3b7
)
use foreach() for iteration in QApplication::alert()
author
Ivailo Monev
<xakepa10@gmail.com>
Sun, 29 Nov 2020 21:23:26 +0000
(21:23 +0000)
committer
Ivailo Monev
<xakepa10@gmail.com>
Sun, 29 Nov 2020 21:23:26 +0000
(21:23 +0000)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/gui/kernel/qapplication_x11.cpp
patch
|
blob
|
history
diff --git
a/src/gui/kernel/qapplication_x11.cpp
b/src/gui/kernel/qapplication_x11.cpp
index
4f35a18
..
bf013dc
100644
(file)
--- a/
src/gui/kernel/qapplication_x11.cpp
+++ b/
src/gui/kernel/qapplication_x11.cpp
@@
-1799,8
+1799,7
@@
void QApplication::alert(QWidget *widget, int msec)
windowsToMark.append(widget->window());
}
- for (int i = 0; i < windowsToMark.size(); ++i) {
- QWidget *window = windowsToMark.at(i);
+ foreach (QWidget *window, windowsToMark) {
if (!window->isActiveWindow()) {
qt_change_net_wm_state(window, true, ATOM(_NET_WM_STATE_DEMANDS_ATTENTION), 0);
if (msec != 0) {