summaryrefslogtreecommitdiffstats
path: root/src/dialogs/qdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dialogs/qdialog.cpp')
-rw-r--r--src/dialogs/qdialog.cpp74
1 files changed, 37 insertions, 37 deletions
diff --git a/src/dialogs/qdialog.cpp b/src/dialogs/qdialog.cpp
index f8067b545..cc717bf27 100644
--- a/src/dialogs/qdialog.cpp
+++ b/src/dialogs/qdialog.cpp
@@ -99,12 +99,12 @@
and return the appropriate value. Alternatively you can connect to
the done() slot, passing it \c Accepted or \c Rejected.
- An alternative is to call setModal(TRUE), then show(). Unlike
+ An alternative is to call setModal(true), then show(). Unlike
exec(), show() returns control to the caller immediately. Calling
- setModal(TRUE) is especially useful for progress dialogs, where
+ setModal(true) is especially useful for progress dialogs, where
the user must have the ability to interact with the dialog, e.g.
to cancel a long running operation. If you use show() and
- setModal(TRUE) together you must call
+ setModal(true) together you must call
TQApplication::processEvents() periodically during processing to
enable the user to interact with the dialog. (See \l
TQProgressDialog.)
@@ -214,7 +214,7 @@ class TQDialogPrivate : public TQt
public:
TQDialogPrivate()
- : mainDef(0), orientation(Horizontal),extension(0), doShowExtension(FALSE)
+ : mainDef(0), orientation(Horizontal),extension(0), doShowExtension(false)
#ifndef TQT_NO_SIZEGRIP
,resizer(0)
#endif
@@ -288,18 +288,18 @@ void TQDialog::setDefault( TQPushButton *pushButton )
Q_ASSERT(list);
TQObjectListIt it( *list );
TQPushButton *pb;
- bool hasMain = FALSE;
+ bool hasMain = false;
while ( (pb = (TQPushButton*)it.current()) ) {
++it;
if ( pb->topLevelWidget() != this )
continue;
if ( pb == d->mainDef )
- hasMain = TRUE;
+ hasMain = true;
if ( pb != pushButton )
- pb->setDefault( FALSE );
+ pb->setDefault( false );
}
if (!pushButton && hasMain)
- d->mainDef->setDefault( TRUE );
+ d->mainDef->setDefault( true );
if (!hasMain)
d->mainDef = pushButton;
delete list;
@@ -332,7 +332,7 @@ void TQDialog::hideDefault()
TQPushButton *pb;
while ( (pb = (TQPushButton*)it.current()) ) {
++it;
- pb->setDefault( FALSE );
+ pb->setDefault( false );
}
delete list;
#endif
@@ -351,9 +351,9 @@ void TQDialog::hideSpecial()
// "OK" buttons are hidden, and (Ok) shown on titlebar
// "Cancel" buttons are hidden, and (X) shown on titlebar
// "Help" buttons are hidden, and (?) shown on titlebar
- bool showOK = FALSE,
- showX = FALSE,
- showQ = FALSE;
+ bool showOK = false,
+ showX = false,
+ showQ = false;
TQObjectList *list = queryList( "TQPushButton" );
TQObjectListIt it( *list );
TQPushButton *pb;
@@ -361,15 +361,15 @@ void TQDialog::hideSpecial()
if ( !showOK &&
pb->text() == tqApp->translate( "TQMessageBox", mb_texts[TQMessageBox::Ok] ) ) {
pb->hide();
- showOK = TRUE;
+ showOK = true;
} else if ( !showX &&
pb->text() == tqApp->translate( "TQMessageBox", mb_texts[TQMessageBox::Cancel] ) ) {
pb->hide();
- showX = TRUE;
+ showX = true;
} else if ( !showQ &&
pb->text() == tqApp->tr("Help") ) {
pb->hide();
- showQ = TRUE;
+ showQ = true;
}
++it;
}
@@ -431,7 +431,7 @@ int TQDialog::exec()
show();
- in_loop = TRUE;
+ in_loop = true;
tqApp->enter_loop();
if ( !wasShowModal )
@@ -530,14 +530,14 @@ bool TQDialog::eventFilter( TQObject *o, TQEvent *e )
void TQDialog::contextMenuEvent( TQContextMenuEvent *e )
{
#if !defined(TQT_NO_WHATSTHIS) && !defined(TQT_NO_POPUPMENU)
- TQWidget* w = childAt( e->pos(), TRUE );
+ TQWidget* w = childAt( e->pos(), true );
if ( !w )
return;
TQString s;
while ( s.isEmpty() && w ) {
- s = TQWhatsThis::textFor( w, e->pos(), FALSE );
+ s = TQWhatsThis::textFor( w, e->pos(), false );
if ( s.isEmpty() )
- w = w->parentWidget(TRUE);
+ w = w->parentWidget(true);
}
if ( !s.isEmpty() ) {
TQPopupMenu p(0,"qt_whats_this_menu");
@@ -595,7 +595,7 @@ void TQDialog::keyPressEvent( TQKeyEvent *e )
// call ours, since c++ blocks us from calling the one
// belonging to focusWidget().
TQFocusEvent::setReason(TQFocusEvent::Backtab);
- focusNextPrevChild( FALSE );
+ focusNextPrevChild( false );
TQFocusEvent::resetReason();
break;
case Key_Down:
@@ -607,7 +607,7 @@ void TQDialog::keyPressEvent( TQKeyEvent *e )
break;
}
TQFocusEvent::setReason(TQFocusEvent::Tab);
- focusNextPrevChild( TRUE );
+ focusNextPrevChild( true );
TQFocusEvent::resetReason();
break;
default:
@@ -701,7 +701,7 @@ void TQDialog::show()
adjustSize();
if( !qt_net_supports( qt_net_wm_full_placement )) {
if ( has_relpos && !did_move ) {
- adjustPositionInternal( parentWidget(), TRUE );
+ adjustPositionInternal( parentWidget(), true );
} else if ( !did_move ) {
adjustPositionInternal( parentWidget() );
}
@@ -750,7 +750,7 @@ void TQDialog::show()
if ( !d->mainDef && isTopLevel() ) {
if ( !fw || fw->focusPolicy() == NoFocus ) {
- focusNextPrevChild( TRUE );
+ focusNextPrevChild( true );
fw = focusWidget();
}
if ( fw ) {
@@ -761,7 +761,7 @@ void TQDialog::show()
do {
TQPushButton *pb = ::tqt_cast<TQPushButton*>(candidate);
if ( pb && pb->autoDefault() ) {
- pb->setDefault( TRUE );
+ pb->setDefault( true );
break;
}
candidate = fd->next();
@@ -899,7 +899,7 @@ void TQDialog::hide()
// Reimplemented to exit a modal when the dialog is hidden.
TQWidget::hide();
if ( in_loop ) {
- in_loop = FALSE;
+ in_loop = false;
tqApp->exit_loop();
}
}
@@ -913,7 +913,7 @@ void TQDialog::hide()
void TQDialog::move( int x, int y )
{
- did_move = TRUE;
+ did_move = true;
TQWidget::move( x, y );
}
@@ -921,7 +921,7 @@ void TQDialog::move( int x, int y )
void TQDialog::move( const TQPoint &p )
{
- did_move = TRUE;
+ did_move = true;
TQWidget::move( p );
}
@@ -929,7 +929,7 @@ void TQDialog::move( const TQPoint &p )
void TQDialog::resize( int w, int h )
{
- did_resize = TRUE;
+ did_resize = true;
TQWidget::resize( w, h );
}
@@ -937,7 +937,7 @@ void TQDialog::resize( int w, int h )
void TQDialog::resize( const TQSize &s )
{
- did_resize = TRUE;
+ did_resize = true;
TQWidget::resize( s );
}
@@ -945,8 +945,8 @@ void TQDialog::resize( const TQSize &s )
void TQDialog::setGeometry( int x, int y, int w, int h )
{
- did_move = TRUE;
- did_resize = TRUE;
+ did_move = true;
+ did_resize = true;
TQWidget::setGeometry( x, y, w, h );
}
@@ -954,8 +954,8 @@ void TQDialog::setGeometry( int x, int y, int w, int h )
void TQDialog::setGeometry( const TQRect &r )
{
- did_move = TRUE;
- did_resize = TRUE;
+ did_move = true;
+ did_resize = true;
TQWidget::setGeometry( r );
}
@@ -1019,7 +1019,7 @@ TQWidget* TQDialog::extension() const
/*!
- If \a showIt is TRUE, the dialog's extension is shown; otherwise the
+ If \a showIt is true, the dialog's extension is shown; otherwise the
extension is hidden.
This slot is usually connected to the \l TQButton::toggled() signal
@@ -1045,7 +1045,7 @@ void TQDialog::showExtension( bool showIt )
d->max = maximumSize();
#ifndef TQT_NO_LAYOUT
if ( layout() )
- layout()->setEnabled( FALSE );
+ layout()->setEnabled( false );
#endif
TQSize s( d->extension->sizeHint()
.expandedTo( d->extension->minimumSize() )
@@ -1068,7 +1068,7 @@ void TQDialog::showExtension( bool showIt )
resize( d->size );
#ifndef TQT_NO_LAYOUT
if ( layout() )
- layout()->setEnabled( TRUE );
+ layout()->setEnabled( true );
#endif
}
}
@@ -1135,7 +1135,7 @@ bool TQDialog::isSizeGripEnabled() const
#ifndef TQT_NO_SIZEGRIP
return !!d->resizer;
#else
- return FALSE;
+ return false;
#endif
}