summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/qaction.cpp2
-rw-r--r--src/widgets/qbuttongroup.cpp6
-rw-r--r--src/widgets/qlcdnumber.cpp2
-rw-r--r--src/widgets/qmenubar.cpp8
-rw-r--r--src/widgets/qmenudata.cpp8
-rw-r--r--src/widgets/qpopupmenu.cpp38
6 files changed, 32 insertions, 32 deletions
diff --git a/src/widgets/qaction.cpp b/src/widgets/qaction.cpp
index 62661018e..7498b4730 100644
--- a/src/widgets/qaction.cpp
+++ b/src/widgets/qaction.cpp
@@ -597,7 +597,7 @@ TQAction::~TQAction()
*/
void TQAction::setIconSet( const TQIconSet& icon )
{
- register TQIconSet *i = d->iconset;
+ TQIconSet *i = d->iconset;
if ( !icon.isNull() )
d->iconset = new TQIconSet( icon );
else
diff --git a/src/widgets/qbuttongroup.cpp b/src/widgets/qbuttongroup.cpp
index 9ffb5f197..ec4298675 100644
--- a/src/widgets/qbuttongroup.cpp
+++ b/src/widgets/qbuttongroup.cpp
@@ -371,7 +371,7 @@ void TQButtonGroup::buttonPressed()
// introduce a TQButtonListIt if calling anything
int id = -1;
TQButton *bt = (TQButton *)sender(); // object that sent the signal
- for ( register TQButtonItem *i=buttons->first(); i; i=buttons->next() )
+ for ( TQButtonItem *i=buttons->first(); i; i=buttons->next() )
if ( bt == i->button ) { // button was clicked
id = i->id;
break;
@@ -391,7 +391,7 @@ void TQButtonGroup::buttonReleased()
// introduce a TQButtonListIt if calling anything
int id = -1;
TQButton *bt = (TQButton *)sender(); // object that sent the signal
- for ( register TQButtonItem *i=buttons->first(); i; i=buttons->next() )
+ for ( TQButtonItem *i=buttons->first(); i; i=buttons->next() )
if ( bt == i->button ) { // button was clicked
id = i->id;
break;
@@ -414,7 +414,7 @@ void TQButtonGroup::buttonClicked()
#if defined(QT_CHECK_NULL)
Q_ASSERT( bt );
#endif
- for ( register TQButtonItem *i=buttons->first(); i; i=buttons->next() ) {
+ for ( TQButtonItem *i=buttons->first(); i; i=buttons->next() ) {
if ( bt == i->button ) { // button was clicked
id = i->id;
break;
diff --git a/src/widgets/qlcdnumber.cpp b/src/widgets/qlcdnumber.cpp
index 57d396871..05a5e9904 100644
--- a/src/widgets/qlcdnumber.cpp
+++ b/src/widgets/qlcdnumber.cpp
@@ -396,7 +396,7 @@ void TQLCDNumber::setNumDigits( int numDigits )
bool doDisplay = ndigits == 0;
if ( numDigits == ndigits ) // no change
return;
- register int i;
+ int i;
int dif;
if ( numDigits > ndigits ) { // expand
dif = numDigits - ndigits;
diff --git a/src/widgets/qmenubar.cpp b/src/widgets/qmenubar.cpp
index b9acce9ca..d832bcc40 100644
--- a/src/widgets/qmenubar.cpp
+++ b/src/widgets/qmenubar.cpp
@@ -785,7 +785,7 @@ void TQMenuBar::hidePopups()
bool anyVisible = FALSE;
#endif
TQMenuItemListIt it(*mitems);
- register TQMenuItem *mi;
+ TQMenuItem *mi;
while ( (mi=it.current()) ) {
++it;
if ( mi->popup() && mi->popup()->isVisible() ) {
@@ -1337,7 +1337,7 @@ void TQMenuBar::keyPressEvent( TQKeyEvent *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 TQMenuBar::keyPressEvent( TQKeyEvent *e )
TQMenuItem* currentSelected = 0;
TQMenuItem* firstAfterCurrent = 0;
- register TQMenuItem *m;
+ TQMenuItem *m;
int indx = 0;
int clashCount = 0;
while ( (m=it.current()) ) {
@@ -1534,7 +1534,7 @@ void TQMenuBar::setupAccelerators()
autoaccel = 0;
TQMenuItemListIt it(*mitems);
- register TQMenuItem *mi;
+ TQMenuItem *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
diff --git a/src/widgets/qmenudata.cpp b/src/widgets/qmenudata.cpp
index f55ca509d..98bc2bf1e 100644
--- a/src/widgets/qmenudata.cpp
+++ b/src/widgets/qmenudata.cpp
@@ -260,7 +260,7 @@ int TQMenuData::insertAny( const TQString *text, const TQPixmap *pixmap,
if ( id < 0 ) // -2, -3 etc.
id = get_seq_id();
- register TQMenuItem *mi = new TQMenuItem;
+ TQMenuItem *mi = new TQMenuItem;
TQ_CHECK_PTR( mi );
mi->ident = id;
if ( widget != 0 ) {
@@ -842,7 +842,7 @@ void TQMenuData::removeItemAt( int index )
void TQMenuData::clear()
{
- register TQMenuItem *mi = mitems->first();
+ TQMenuItem *mi = mitems->first();
while ( mi ) {
if ( mi->popup_menu )
menuDelPopup( mi->popup_menu );
@@ -1041,7 +1041,7 @@ void TQMenuData::changeItem( int id, const TQPixmap &pixmap )
TQMenuData *parent;
TQMenuItem *mi = findItem( id, &parent );
if ( mi ) { // item found
- register TQPixmap *i = mi->pixmap_data;
+ TQPixmap *i = mi->pixmap_data;
bool fast_refresh = i != 0 &&
i->width() == pixmap.width() &&
i->height() == pixmap.height() &&
@@ -1103,7 +1103,7 @@ void TQMenuData::changeItemIconSet( int id, const TQIconSet &icon )
TQMenuData *parent;
TQMenuItem *mi = findItem( id, &parent );
if ( mi ) { // item found
- register TQIconSet *i = mi->iconset_data;
+ TQIconSet *i = mi->iconset_data;
bool fast_refresh = i != 0;
if ( !icon.isNull() )
mi->iconset_data = new TQIconSet( icon );
diff --git a/src/widgets/qpopupmenu.cpp b/src/widgets/qpopupmenu.cpp
index 79812185e..61f144f6e 100644
--- a/src/widgets/qpopupmenu.cpp
+++ b/src/widgets/qpopupmenu.cpp
@@ -631,7 +631,7 @@ void TQPopupMenu::popup( const TQPoint &pos, int indexAtPoint )
h = height();
if(indexAtPoint >= 0) {
if(off_top) { //scroll to it
- register TQMenuItem *mi = NULL;
+ TQMenuItem *mi = NULL;
TQMenuItemListIt it(*mitems);
for(int tmp_y = 0; tmp_y < off_top && (mi=it.current()); ) {
TQSize sz = style().sizeFromContents(TQStyle::CT_PopupMenuItem, this,
@@ -794,7 +794,7 @@ void TQPopupMenu::hilitSig( int id )
void TQPopupMenu::setFirstItemActive()
{
TQMenuItemListIt it(*mitems);
- register TQMenuItem *mi;
+ TQMenuItem *mi;
int ai = 0;
if(d->scroll.scrollable)
ai = d->scroll.topScrollableIndex;
@@ -817,7 +817,7 @@ void TQPopupMenu::setFirstItemActive()
void TQPopupMenu::hideAllPopups()
{
- register TQMenuData *top = this; // find top level popup
+ TQMenuData *top = this; // find top level popup
if ( !preventAnimation )
TQTimer::singleShot( 10, this, SLOT(allowAnimation()) );
preventAnimation = TRUE;
@@ -851,7 +851,7 @@ void TQPopupMenu::hidePopups()
preventAnimation = TRUE;
TQMenuItemListIt it(*mitems);
- register TQMenuItem *mi;
+ TQMenuItem *mi;
while ( (mi=it.current()) ) {
++it;
if ( mi->popup() && mi->popup()->parentMenu == this ) //avoid circularity
@@ -873,7 +873,7 @@ void TQPopupMenu::hidePopups()
bool TQPopupMenu::tryMenuBar( TQMouseEvent *e )
{
- register TQMenuData *top = this; // find top level
+ TQMenuData *top = this; // find top level
while ( top->parentMenu )
top = top->parentMenu;
#ifndef TQT_NO_MENUBAR
@@ -909,7 +909,7 @@ bool TQPopupMenu::tryMouseEvent( TQPopupMenu *p, TQMouseEvent * e)
void TQPopupMenu::byeMenuBar()
{
#ifndef TQT_NO_MENUBAR
- register TQMenuData *top = this; // find top level
+ TQMenuData *top = this; // find top level
while ( top->parentMenu )
top = top->parentMenu;
#endif
@@ -1075,7 +1075,7 @@ TQSize TQPopupMenu::updateSize(bool force_update, bool do_resize)
int height = 0;
int max_width = 0, max_height = 0;
TQFontMetrics fm = fontMetrics();
- register TQMenuItem *mi;
+ TQMenuItem *mi;
maxPMWidth = 0;
int maxWidgetWidth = 0;
tab = 0;
@@ -1258,7 +1258,7 @@ TQSize TQPopupMenu::updateSize(bool force_update, bool do_resize)
void TQPopupMenu::updateAccel( TQWidget *parent )
{
TQMenuItemListIt it(*mitems);
- register TQMenuItem *mi;
+ TQMenuItem *mi;
if ( parent ) {
delete autoaccel;
@@ -1349,7 +1349,7 @@ void TQPopupMenu::enableAccel( bool enable )
autoaccel->setEnabled( enable );
accelDisabled = !enable; // rememeber when updateAccel
TQMenuItemListIt it(*mitems);
- register TQMenuItem *mi;
+ TQMenuItem *mi;
while ( (mi=it.current()) ) { // do the same for sub popups
++it;
if ( mi->popup() ) // call recursively
@@ -1651,7 +1651,7 @@ void TQPopupMenu::mousePressEvent( TQMouseEvent *e )
}
return;
}
- register TQMenuItem *mi = mitems->at(item);
+ TQMenuItem *mi = mitems->at(item);
if ( item != actItem ) // new item activated
setActiveItem( item );
@@ -1702,7 +1702,7 @@ void TQPopupMenu::mouseReleaseEvent( TQMouseEvent *e )
else
byeMenuBar();
} else { // selected menu item!
- register TQMenuItem *mi = mitems->at(actItem);
+ TQMenuItem *mi = mitems->at(actItem);
if ( mi ->widget() ) {
TQWidget* widgetAt = TQApplication::widgetAt( e->globalPos(), TRUE );
if ( widgetAt && widgetAt != this ) {
@@ -1815,7 +1815,7 @@ void TQPopupMenu::mouseMoveEvent( TQMouseEvent *e )
if ( (e->state() & TQt::MouseButtonMask) && !mouseBtDn )
mouseBtDn = TRUE; // so mouseReleaseEvent will pop down
- register TQMenuItem *mi = mitems->at( item );
+ TQMenuItem *mi = mitems->at( item );
if ( mi->widget() ) {
TQWidget* widgetAt = TQApplication::widgetAt( e->globalPos(), TRUE );
@@ -2034,7 +2034,7 @@ void TQPopupMenu::keyPressEvent( TQKeyEvent *e )
TQMenuItem* currentSelected = 0;
TQMenuItem* firstAfterCurrent = 0;
- register TQMenuItem *m;
+ TQMenuItem *m;
mi = 0;
int indx = 0;
int clashCount = 0;
@@ -2101,7 +2101,7 @@ void TQPopupMenu::keyPressEvent( TQKeyEvent *e )
}
#ifndef TQT_NO_MENUBAR
if ( !ok_key ) { // send to menu bar
- register TQMenuData *top = this; // find top level
+ TQMenuData *top = this; // find top level
while ( top->parentMenu )
top = top->parentMenu;
if ( top->isMenuBar ) {
@@ -2118,7 +2118,7 @@ void TQPopupMenu::keyPressEvent( TQKeyEvent *e )
} else if ( dy < 0 ) {
TQMenuItemListIt it(*mitems);
it.toLast();
- register TQMenuItem *mi;
+ TQMenuItem *mi;
int ai = count() - 1;
while ( (mi=it.current()) ) {
--it;
@@ -2134,7 +2134,7 @@ void TQPopupMenu::keyPressEvent( TQKeyEvent *e )
}
if ( dy ) { // highlight next/prev
- register int i = actItem;
+ int i = actItem;
int c = mitems->count();
for(int n = c; n; n--) {
i = i + dy;
@@ -2520,7 +2520,7 @@ void TQPopupMenu::connectModal( TQPopupMenu* receiver, bool doConnect )
receiver, SLOT(modalActivation(int)) );
TQMenuItemListIt it(*mitems);
- register TQMenuItem *mi;
+ TQMenuItem *mi;
while ( (mi=it.current()) ) {
++it;
if ( mi->popup() && mi->popup() != receiver
@@ -2641,12 +2641,12 @@ bool TQPopupMenu::customWhatsThis() const
*/
bool TQPopupMenu::focusNextPrevChild( bool next )
{
- register TQMenuItem *mi;
+ TQMenuItem *mi;
int dy = next? 1 : -1;
if ( dy && actItem < 0 ) {
setFirstItemActive();
} else if ( dy ) { // highlight next/prev
- register int i = actItem;
+ int i = actItem;
int c = mitems->count();
int n = c;
while ( n-- ) {