summaryrefslogtreecommitdiffstats
path: root/src/widgets/qmenubar.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2020-01-30 20:17:32 +0900
committerSlávek Banko <[email protected]>2021-02-01 23:39:38 +0100
commit961eb3f6e276b4a3609328a3076ef790026e9c03 (patch)
treef27de88e666ac3e067e01b15ac60a103eb3c559f /src/widgets/qmenubar.cpp
parentb08a6d71ba872e67b75a822fcd44670126975818 (diff)
downloadqt3-961eb3f6e276b4a3609328a3076ef790026e9c03.tar.gz
qt3-961eb3f6e276b4a3609328a3076ef790026e9c03.zip
Removed explicit usage of the 'register' keyword.
Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'src/widgets/qmenubar.cpp')
-rw-r--r--src/widgets/qmenubar.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/widgets/qmenubar.cpp b/src/widgets/qmenubar.cpp
index e832fd4..2d158ad 100644
--- a/src/widgets/qmenubar.cpp
+++ b/src/widgets/qmenubar.cpp
@@ -785,7 +785,7 @@ void QMenuBar::hidePopups()
bool anyVisible = FALSE;
#endif
QMenuItemListIt it(*mitems);
- register QMenuItem *mi;
+ QMenuItem *mi;
while ( (mi=it.current()) ) {
++it;
if ( mi->popup() && mi->popup()->isVisible() ) {
@@ -1337,7 +1337,7 @@ void QMenuBar::keyPressEvent( QKeyEvent *e )
}
if ( dx ) { // highlight next/prev
- register int i = actItem;
+ int i = actItem;
int c = mitems->count();
int n = c;
while ( n-- ) {
@@ -1362,7 +1362,7 @@ void QMenuBar::keyPressEvent( QKeyEvent *e )
QMenuItem* currentSelected = 0;
QMenuItem* firstAfterCurrent = 0;
- register QMenuItem *m;
+ QMenuItem *m;
int indx = 0;
int clashCount = 0;
while ( (m=it.current()) ) {
@@ -1534,7 +1534,7 @@ void QMenuBar::setupAccelerators()
autoaccel = 0;
QMenuItemListIt it(*mitems);
- register QMenuItem *mi;
+ QMenuItem *mi;
while ( (mi=it.current()) ) {
++it;
if ( !mi->isEnabledAndVisible() ) // ### when we have a good solution for the accel vs. focus widget problem, remove that. That is only a workaround