summaryrefslogtreecommitdiffstats
path: root/tqtinterface/qt4/src/dialogs
diff options
context:
space:
mode:
Diffstat (limited to 'tqtinterface/qt4/src/dialogs')
-rw-r--r--tqtinterface/qt4/src/dialogs/tqcolordialog.cpp64
-rw-r--r--tqtinterface/qt4/src/dialogs/tqcolordialog.h6
-rw-r--r--tqtinterface/qt4/src/dialogs/tqdialog.cpp20
-rw-r--r--tqtinterface/qt4/src/dialogs/tqdialog.h2
-rw-r--r--tqtinterface/qt4/src/dialogs/tqerrormessage.cpp10
-rw-r--r--tqtinterface/qt4/src/dialogs/tqerrormessage.h2
-rw-r--r--tqtinterface/qt4/src/dialogs/tqfiledialog.cpp152
-rw-r--r--tqtinterface/qt4/src/dialogs/tqfiledialog.h22
-rw-r--r--tqtinterface/qt4/src/dialogs/tqfontdialog.cpp22
-rw-r--r--tqtinterface/qt4/src/dialogs/tqfontdialog.h8
-rw-r--r--tqtinterface/qt4/src/dialogs/tqinputdialog.cpp32
-rw-r--r--tqtinterface/qt4/src/dialogs/tqinputdialog.h10
-rw-r--r--tqtinterface/qt4/src/dialogs/tqmessagebox.cpp134
-rw-r--r--tqtinterface/qt4/src/dialogs/tqmessagebox.h32
-rw-r--r--tqtinterface/qt4/src/dialogs/tqprintdialog.cpp10
-rw-r--r--tqtinterface/qt4/src/dialogs/tqprintdialog.h2
-rw-r--r--tqtinterface/qt4/src/dialogs/tqprogressdialog.cpp12
-rw-r--r--tqtinterface/qt4/src/dialogs/tqprogressdialog.h4
-rw-r--r--tqtinterface/qt4/src/dialogs/tqsemimodal.h4
-rw-r--r--tqtinterface/qt4/src/dialogs/tqtabdialog.cpp6
-rw-r--r--tqtinterface/qt4/src/dialogs/tqtabdialog.h2
-rw-r--r--tqtinterface/qt4/src/dialogs/tqwizard.cpp6
-rw-r--r--tqtinterface/qt4/src/dialogs/tqwizard.h2
23 files changed, 282 insertions, 282 deletions
diff --git a/tqtinterface/qt4/src/dialogs/tqcolordialog.cpp b/tqtinterface/qt4/src/dialogs/tqcolordialog.cpp
index cd13476..d99c63f 100644
--- a/tqtinterface/qt4/src/dialogs/tqcolordialog.cpp
+++ b/tqtinterface/qt4/src/dialogs/tqcolordialog.cpp
@@ -59,8 +59,8 @@
#include "tqpopupmenu.h"
#ifdef TQ_WS_MAC
-TQRgb macGetRgba( TQRgb initial, bool *ok, TQWidget *tqparent, const char* name );
-TQColor macGetColor( const TQColor& initial, TQWidget *tqparent, const char *name );
+TQRgb macGetRgba( TQRgb initial, bool *ok, TQWidget *parent, const char* name );
+TQColor macGetColor( const TQColor& initial, TQWidget *parent, const char *name );
#endif
//////////// TQWellArray BEGIN
@@ -75,7 +75,7 @@ class TQWellArray : public TQGridView
Q_PROPERTY( int selectedRow READ selectedRow )
public:
- TQWellArray( TQWidget* tqparent=0, const char* name=0, bool popup = FALSE );
+ TQWellArray( TQWidget* parent=0, const char* name=0, bool popup = FALSE );
~TQWellArray() {}
TQString cellContent( int row, int col ) const;
@@ -142,8 +142,8 @@ struct TQWellArrayData {
\ingroup advanced
*/
-TQWellArray::TQWellArray( TQWidget *tqparent, const char * name, bool popup )
- : TQGridView( tqparent, name,
+TQWellArray::TQWellArray( TQWidget *parent, const char * name, bool popup )
+ : TQGridView( parent, name,
(popup ? (WFlags)(WStyle_Customize|TQt::WStyle_Tool|TQt::WStyle_NoBorder) : (WFlags)0 ) )
{
d = 0;
@@ -517,8 +517,8 @@ static inline void rgb2hsv( TQRgb rgb, int&h, int&s, int&v )
class TQColorWell : public TQWellArray
{
public:
- TQColorWell( TQWidget *tqparent, int r, int c, TQRgb *vals )
- :TQWellArray( tqparent, "" ), values( vals ), mousePressed( FALSE ), oldCurrent( -1, -1 )
+ TQColorWell( TQWidget *parent, int r, int c, TQRgb *vals )
+ :TQWellArray( parent, "" ), values( vals ), mousePressed( FALSE ), oldCurrent( -1, -1 )
{ setNumRows(r), setNumCols(c); tqsetSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Minimum) ); }
protected:
@@ -632,7 +632,7 @@ class TQColorPicker : public TQFrame
Q_OBJECT
TQ_OBJECT
public:
- TQColorPicker(TQWidget* tqparent=0, const char* name=0);
+ TQColorPicker(TQWidget* parent=0, const char* name=0);
~TQColorPicker();
public Q_SLOTS:
@@ -667,7 +667,7 @@ class TQColorLuminancePicker : public TQWidget
Q_OBJECT
TQ_OBJECT
public:
- TQColorLuminancePicker(TQWidget* tqparent=0, const char* name=0);
+ TQColorLuminancePicker(TQWidget* parent=0, const char* name=0);
~TQColorLuminancePicker();
public Q_SLOTS:
@@ -708,9 +708,9 @@ int TQColorLuminancePicker::val2y( int v )
return coff + (255-v)*d/255;
}
-TQColorLuminancePicker::TQColorLuminancePicker(TQWidget* tqparent,
+TQColorLuminancePicker::TQColorLuminancePicker(TQWidget* parent,
const char* name)
- :TQWidget( tqparent, name )
+ :TQWidget( parent, name )
{
hue = 100; val = 100; sat = 100;
pix = 0;
@@ -800,8 +800,8 @@ int TQColorPicker::satPt( const TQPoint &pt )
void TQColorPicker::setCol( const TQPoint &pt )
{ setCol( huePt(pt), satPt(pt) ); }
-TQColorPicker::TQColorPicker(TQWidget* tqparent, const char* name )
- : TQFrame( tqparent, name )
+TQColorPicker::TQColorPicker(TQWidget* parent, const char* name )
+ : TQFrame( parent, name )
{
hue = 0; sat = 0;
setCol( 150, 255 );
@@ -879,8 +879,8 @@ class TQColIntValidator: public TQIntValidator
{
public:
TQColIntValidator( int bottom, int top,
- TQWidget * tqparent, const char *name = 0 )
- :TQIntValidator( bottom, top, TQT_TQOBJECT(tqparent), name ) {}
+ TQWidget * parent, const char *name = 0 )
+ :TQIntValidator( bottom, top, TQT_TQOBJECT(parent), name ) {}
TQValidator::State validate( TQString &, int & ) const;
};
@@ -908,8 +908,8 @@ TQValidator::State TQColIntValidator::validate( TQString &s, int &pos ) const
class TQColNumLineEdit : public TQLineEdit
{
public:
- TQColNumLineEdit( TQWidget *tqparent, const char* name=0 )
- : TQLineEdit( tqparent, name ) { setMaxLength( 3 );}
+ TQColNumLineEdit( TQWidget *parent, const char* name=0 )
+ : TQLineEdit( parent, name ) { setMaxLength( 3 );}
TQSize tqsizeHint() const {
return TQSize( fontMetrics().width( "999" ) + 2 * ( margin() + frameWidth() ),
TQLineEdit::tqsizeHint().height() ); }
@@ -930,7 +930,7 @@ class TQColorShower : public TQWidget
Q_OBJECT
TQ_OBJECT
public:
- TQColorShower( TQWidget *tqparent, const char *name=0 );
+ TQColorShower( TQWidget *parent, const char *name=0 );
//things that don't emit Q_SIGNALS
void setHsv( int h, int s, int v );
@@ -972,7 +972,7 @@ class TQColorShowLabel : public TQFrame
TQ_OBJECT
public:
- TQColorShowLabel( TQWidget *tqparent ) : TQFrame( tqparent, "qt_colorshow_lbl" ) {
+ TQColorShowLabel( TQWidget *parent ) : TQFrame( parent, "qt_colorshow_lbl" ) {
setFrameStyle( TQFrame::Panel|TQFrame::Sunken );
setBackgroundMode( TQt::PaletteBackground );
setAcceptDrops( TRUE );
@@ -1075,8 +1075,8 @@ void TQColorShowLabel::mouseReleaseEvent( TQMouseEvent * )
mousePressed = FALSE;
}
-TQColorShower::TQColorShower( TQWidget *tqparent, const char *name )
- :TQWidget( tqparent, name)
+TQColorShower::TQColorShower( TQWidget *parent, const char *name )
+ :TQWidget( parent, name)
{
curCol = tqRgb( -1, -1, -1 );
TQColIntValidator *val256 = new TQColIntValidator( 0, 255, this );
@@ -1447,15 +1447,15 @@ void TQColorDialogPrivate::addCustom()
*/
/*!
- Constructs a default color dialog with tqparent \a tqparent and called
+ Constructs a default color dialog with parent \a parent and called
\a name. If \a modal is TRUE the dialog will be modal. Use
setColor() to set an initial value.
\sa getColor()
*/
-TQColorDialog::TQColorDialog(TQWidget* tqparent, const char* name, bool modal) :
- TQDialog(tqparent, name, modal, (WFlags)( TQt::WType_Dialog | WStyle_Customize | TQt::WStyle_Title |
+TQColorDialog::TQColorDialog(TQWidget* parent, const char* name, bool modal) :
+ TQDialog(parent, name, modal, (WFlags)( TQt::WType_Dialog | WStyle_Customize | TQt::WStyle_Title |
TQt::WStyle_DialogBorder | TQt::WStyle_SysMenu ) )
{
setSizeGripEnabled( FALSE );
@@ -1478,21 +1478,21 @@ TQColorDialog::TQColorDialog(TQWidget* tqparent, const char* name, bool modal) :
/*!
Pops up a modal color dialog, lets the user choose a color, and
returns that color. The color is initially set to \a initial. The
- dialog is a child of \a tqparent and is called \a name. It returns
+ dialog is a child of \a parent and is called \a name. It returns
an invalid (see TQColor::isValid()) color if the user cancels the
dialog. All colors allocated by the dialog will be deallocated
before this function returns.
*/
-TQColor TQColorDialog::getColor( const TQColor& initial, TQWidget *tqparent,
+TQColor TQColorDialog::getColor( const TQColor& initial, TQWidget *parent,
const char *name )
{
#if defined(TQ_WS_MAC)
- return macGetColor(initial, tqparent, name);
+ return macGetColor(initial, parent, name);
#endif
int allocContext = TQColor::enterAllocContext();
- TQColorDialog *dlg = new TQColorDialog( tqparent, name, TRUE ); //modal
+ TQColorDialog *dlg = new TQColorDialog( parent, name, TRUE ); //modal
#ifndef TQT_NO_WIDGET_TOPEXTRA
dlg->setCaption( TQColorDialog::tr( "Select color" ) );
#endif
@@ -1512,7 +1512,7 @@ TQColor TQColorDialog::getColor( const TQColor& initial, TQWidget *tqparent,
/*!
Pops up a modal color dialog to allow the user to choose a color
and an alpha channel (transparency) value. The color+alpha is
- initially set to \a initial. The dialog is a child of \a tqparent
+ initially set to \a initial. The dialog is a child of \a parent
and called \a name.
If \a ok is non-null, \e *\a ok is set to TRUE if the user clicked
@@ -1522,14 +1522,14 @@ TQColor TQColorDialog::getColor( const TQColor& initial, TQWidget *tqparent,
*/
TQRgb TQColorDialog::getRgba( TQRgb initial, bool *ok,
- TQWidget *tqparent, const char* name )
+ TQWidget *parent, const char* name )
{
#if defined(TQ_WS_MAC)
- return macGetRgba(initial, ok, tqparent, name);
+ return macGetRgba(initial, ok, parent, name);
#endif
int allocContext = TQColor::enterAllocContext();
- TQColorDialog *dlg = new TQColorDialog( tqparent, name, TRUE ); //modal
+ TQColorDialog *dlg = new TQColorDialog( parent, name, TRUE ); //modal
TQ_CHECK_PTR( dlg );
#ifndef TQT_NO_WIDGET_TOPEXTRA
diff --git a/tqtinterface/qt4/src/dialogs/tqcolordialog.h b/tqtinterface/qt4/src/dialogs/tqcolordialog.h
index 46f5bdc..eaffc37 100644
--- a/tqtinterface/qt4/src/dialogs/tqcolordialog.h
+++ b/tqtinterface/qt4/src/dialogs/tqcolordialog.h
@@ -54,9 +54,9 @@ class TQ_EXPORT TQColorDialog : public TQDialog
TQ_OBJECT
public:
- static TQColor getColor( const TQColor& init = Qt::white, TQWidget* tqparent=0, const char* name=0 );
+ static TQColor getColor( const TQColor& init = Qt::white, TQWidget* parent=0, const char* name=0 );
static TQRgb getRgba( TQRgb, bool* ok = 0,
- TQWidget* tqparent=0, const char* name=0 );
+ TQWidget* parent=0, const char* name=0 );
static int customCount();
static TQRgb customColor( int );
@@ -65,7 +65,7 @@ public:
private:
~TQColorDialog();
- TQColorDialog( TQWidget* tqparent=0, const char* name=0, bool modal=FALSE );
+ TQColorDialog( TQWidget* parent=0, const char* name=0, bool modal=FALSE );
void setColor( const TQColor& );
TQColor color() const;
diff --git a/tqtinterface/qt4/src/dialogs/tqdialog.cpp b/tqtinterface/qt4/src/dialogs/tqdialog.cpp
index 31341ca..bbb0ad5 100644
--- a/tqtinterface/qt4/src/dialogs/tqdialog.cpp
+++ b/tqtinterface/qt4/src/dialogs/tqdialog.cpp
@@ -75,11 +75,11 @@
buttons\endlink. TQDialogs can also have a TQSizeGrip in their
lower-right corner, using setSizeGripEnabled().
- Note that TQDialog uses the tqparent widget slightly differently from
+ Note that TQDialog uses the parent widget slightly differently from
other classes in TQt. A dialog is always a top-level widget, but if
- it has a tqparent, its default location is centered on top of the
- tqparent's top-level widget (if it is not top-level itself). It will
- also share the tqparent's taskbar entry.
+ it has a parent, its default location is centered on top of the
+ parent's top-level widget (if it is not top-level itself). It will
+ also share the parent's taskbar entry.
\target modal
\section1 Modal Dialogs
@@ -234,11 +234,11 @@ public:
};
/*!
- Constructs a dialog called \a name, with tqparent \a tqparent.
+ Constructs a dialog called \a name, with parent \a parent.
- A dialog is always a top-level widget, but if it has a tqparent, its
- default location is centered on top of the tqparent. It will also
- share the tqparent's taskbar entry.
+ A dialog is always a top-level widget, but if it has a parent, its
+ default location is centered on top of the parent. It will also
+ share the parent's taskbar entry.
The widget flags \a f are passed on to the TQWidget constructor.
If, for example, you don't want a What's This button in the titlebar
@@ -253,8 +253,8 @@ public:
\sa TQWidget::setWFlags() TQt::WidgetFlags
*/
-TQDialog::TQDialog( TQWidget *tqparent, const char *name, bool modal, WFlags f )
- : TQWidget( tqparent, name,
+TQDialog::TQDialog( TQWidget *parent, const char *name, bool modal, WFlags f )
+ : TQWidget( parent, name,
(WFlags)((modal ? (WFlags)(f|TQt::WShowModal) : f) | TQt::WType_Dialog )),
rescode(0), did_move(0), has_relpos(0), did_resize(0), in_loop(0)
{
diff --git a/tqtinterface/qt4/src/dialogs/tqdialog.h b/tqtinterface/qt4/src/dialogs/tqdialog.h
index 972fc1d..8320704 100644
--- a/tqtinterface/qt4/src/dialogs/tqdialog.h
+++ b/tqtinterface/qt4/src/dialogs/tqdialog.h
@@ -61,7 +61,7 @@ friend class TQPushButton;
Q_PROPERTY( bool modal READ isModal WRITE setModal )
public:
- TQ_EXPLICIT TQDialog( TQWidget* tqparent=0, const char* name=0, bool modal=FALSE,
+ TQ_EXPLICIT TQDialog( TQWidget* parent=0, const char* name=0, bool modal=FALSE,
WFlags f=0 );
~TQDialog();
diff --git a/tqtinterface/qt4/src/dialogs/tqerrormessage.cpp b/tqtinterface/qt4/src/dialogs/tqerrormessage.cpp
index 86c50dc..3b5cf4b 100644
--- a/tqtinterface/qt4/src/dialogs/tqerrormessage.cpp
+++ b/tqtinterface/qt4/src/dialogs/tqerrormessage.cpp
@@ -59,8 +59,8 @@
class TQErrorMessageTextView : public TQTextView
{
public:
- TQErrorMessageTextView( TQWidget *tqparent, const char *name )
- : TQTextView( tqparent, name ) { }
+ TQErrorMessageTextView( TQWidget *parent, const char *name )
+ : TQTextView( parent, name ) { }
virtual TQSize tqminimumSizeHint() const;
virtual TQSize tqsizeHint() const;
@@ -153,12 +153,12 @@ void jump( TQtMsgType t, const char * m )
/*! Constructs and installs an error handler window.
- The tqparent \a tqparent and name \a name are passed on to the TQDialog
+ The parent \a parent and name \a name are passed on to the TQDialog
constructor.
*/
-TQErrorMessage::TQErrorMessage( TQWidget * tqparent, const char * name )
- : TQDialog( tqparent, name )
+TQErrorMessage::TQErrorMessage( TQWidget * parent, const char * name )
+ : TQDialog( parent, name )
{
TQGridLayout * grid = new TQGridLayout( this, 3, 2, 11, 6 );
icon = new TQLabel( this, "qt_icon_lbl" );
diff --git a/tqtinterface/qt4/src/dialogs/tqerrormessage.h b/tqtinterface/qt4/src/dialogs/tqerrormessage.h
index 6809ba4..8513c5e 100644
--- a/tqtinterface/qt4/src/dialogs/tqerrormessage.h
+++ b/tqtinterface/qt4/src/dialogs/tqerrormessage.h
@@ -58,7 +58,7 @@ class TQ_EXPORT TQErrorMessage: public TQDialog {
Q_OBJECT
TQ_OBJECT
public:
- TQErrorMessage( TQWidget* tqparent, const char* name=0 );
+ TQErrorMessage( TQWidget* parent, const char* name=0 );
~TQErrorMessage();
static TQErrorMessage * qtHandler();
diff --git a/tqtinterface/qt4/src/dialogs/tqfiledialog.cpp b/tqtinterface/qt4/src/dialogs/tqfiledialog.cpp
index 424ac7e..d2763bf 100644
--- a/tqtinterface/qt4/src/dialogs/tqfiledialog.cpp
+++ b/tqtinterface/qt4/src/dialogs/tqfiledialog.cpp
@@ -551,7 +551,7 @@ static void resolveLibs()
class TQWindowsIconProvider : public TQFileIconProvider
{
public:
- TQWindowsIconProvider( TQObject *tqparent=0, const char *name=0 );
+ TQWindowsIconProvider( TQObject *parent=0, const char *name=0 );
~TQWindowsIconProvider();
const TQPixmap * pixmap( const TQFileInfo &fi );
@@ -629,8 +629,8 @@ class TQRenameEdit : public TQLineEdit
TQ_OBJECT
public:
- TQRenameEdit( TQWidget *tqparent )
- : TQLineEdit( tqparent, "qt_rename_edit" ), doRenameAlreadyEmitted(FALSE)
+ TQRenameEdit( TQWidget *parent )
+ : TQLineEdit( parent, "qt_rename_edit" ), doRenameAlreadyEmitted(FALSE)
{
connect( this, TQT_SIGNAL(returnPressed()), TQT_SLOT(slotReturnPressed()) );
}
@@ -658,7 +658,7 @@ class TQFileListBox : public TQListBox
TQ_OBJECT
private:
- TQFileListBox( TQWidget *tqparent, TQFileDialog *d );
+ TQFileListBox( TQWidget *parent, TQFileDialog *d );
void clear();
void show();
@@ -709,7 +709,7 @@ class TQFileDialogTQFileListView : public TQListView
TQ_OBJECT
public:
- TQFileDialogTQFileListView( TQWidget *tqparent, TQFileDialog *d );
+ TQFileDialogTQFileListView( TQWidget *parent, TQFileDialog *d );
void clear();
void startRename( bool check = TRUE );
@@ -771,7 +771,7 @@ class TQFDProgressAnimation : public TQWidget
TQ_OBJECT
public:
- TQFDProgressAnimation( TQWidget *tqparent );
+ TQFDProgressAnimation( TQWidget *parent );
void start();
private Q_SLOTS:
@@ -786,8 +786,8 @@ private:
};
-TQFDProgressAnimation::TQFDProgressAnimation( TQWidget *tqparent )
- : TQWidget( tqparent, "qt_progressanimation" )
+TQFDProgressAnimation::TQFDProgressAnimation( TQWidget *parent )
+ : TQWidget( parent, "qt_progressanimation" )
{
setFixedSize( 300, 50 );
step = -1;
@@ -846,7 +846,7 @@ class TQFDProgressDialog : public TQDialog
TQ_OBJECT
public:
- TQFDProgressDialog( TQWidget *tqparent, const TQString &fn, int steps );
+ TQFDProgressDialog( TQWidget *parent, const TQString &fn, int steps );
void setReadProgress( int p );
void setWriteProgress( int p );
@@ -863,8 +863,8 @@ private:
};
-TQFDProgressDialog::TQFDProgressDialog( TQWidget *tqparent, const TQString &fn, int steps )
- : TQDialog( tqparent, "", TRUE )
+TQFDProgressDialog::TQFDProgressDialog( TQWidget *parent, const TQString &fn, int steps )
+ : TQDialog( parent, "", TRUE )
{
#ifndef TQT_NO_WIDGET_TOPEXTRA
setCaption( TQFileDialog::tr( "Copy or Move a File" ) );
@@ -955,16 +955,16 @@ public:
struct File: public TQListViewItem {
File( TQFileDialogPrivate * dlgp,
- const TQUrlInfo * fi, TQListViewItem * tqparent )
- : TQListViewItem( tqparent, dlgp->last ), info( *fi ), d(dlgp), i( 0 ), hasMimePixmap( FALSE )
+ const TQUrlInfo * fi, TQListViewItem * parent )
+ : TQListViewItem( parent, dlgp->last ), info( *fi ), d(dlgp), i( 0 ), hasMimePixmap( FALSE )
{ setup(); dlgp->last = this; }
File( TQFileDialogPrivate * dlgp,
- const TQUrlInfo * fi, TQListView * tqparent )
- : TQListViewItem( tqparent, dlgp->last ), info( *fi ), d(dlgp), i( 0 ), hasMimePixmap( FALSE )
+ const TQUrlInfo * fi, TQListView * parent )
+ : TQListViewItem( parent, dlgp->last ), info( *fi ), d(dlgp), i( 0 ), hasMimePixmap( FALSE )
{ setup(); dlgp->last = this; }
File( TQFileDialogPrivate * dlgp,
- const TQUrlInfo * fi, TQListView * tqparent, TQListViewItem * after )
- : TQListViewItem( tqparent, after ), info( *fi ), d(dlgp), i( 0 ), hasMimePixmap( FALSE )
+ const TQUrlInfo * fi, TQListView * parent, TQListViewItem * after )
+ : TQListViewItem( parent, after ), info( *fi ), d(dlgp), i( 0 ), hasMimePixmap( FALSE )
{ setup(); if ( !nextSibling() ) dlgp->last = this; }
~File();
@@ -1171,8 +1171,8 @@ void TQRenameEdit::slotReturnPressed()
*
************************************************************************/
-TQFileListBox::TQFileListBox( TQWidget *tqparent, TQFileDialog *dlg )
- : TQListBox( tqparent, "filelistbox" ), filedialog( dlg ),
+TQFileListBox::TQFileListBox( TQWidget *parent, TQFileDialog *dlg )
+ : TQListBox( parent, "filelistbox" ), filedialog( dlg ),
renaming( FALSE ), renameItem( 0 ), mousePressed( FALSE ),
firstMousePressEvent( TRUE )
{
@@ -1572,8 +1572,8 @@ void TQFileListBox::contentsMoved( int, int )
*
************************************************************************/
-TQFileDialogTQFileListView::TQFileDialogTQFileListView( TQWidget *tqparent, TQFileDialog *dlg )
- : TQListView( tqparent, "qt_filedlg_listview" ), renaming( FALSE ), renameItem( 0 ),
+TQFileDialogTQFileListView::TQFileDialogTQFileListView( TQWidget *parent, TQFileDialog *dlg )
+ : TQListView( parent, "qt_filedlg_listview" ), renaming( FALSE ), renameItem( 0 ),
filedialog( dlg ), mousePressed( FALSE ),
firstMousePressEvent( TRUE )
{
@@ -2189,7 +2189,7 @@ static TQStringList makeFiltersList( const TQString &filter )
In the above example, a modal TQFileDialog is created using a static
function. The startup directory is set to "/home". The file filter
- is set to "Images (*.png *.xpm *.jpg)". The tqparent of the file dialog
+ is set to "Images (*.png *.xpm *.jpg)". The parent of the file dialog
is set to \e this and it is given the identification name - "open file
dialog". The caption at the top of file dialog is set to "Choose a
file". If you want to use multiple filters, separate each one with
@@ -2275,7 +2275,7 @@ static TQStringList makeFiltersList( const TQString &filter )
class Preview : public TQLabel, public TQFilePreview
{
public:
- Preview( TQWidget *tqparent=0 ) : TQLabel( tqparent ) {}
+ Preview( TQWidget *parent=0 ) : TQLabel( parent ) {}
void previewUrl( const TQUrl &u )
{
@@ -2386,13 +2386,13 @@ extern const char qt_file_dialog_filter_reg_exp[] =
"([a-zA-Z0-9 ]*)\\(([a-zA-Z0-9_.*? +;#\\[\\]]*)\\)$";
/*!
- Constructs a file dialog called \a name, with the tqparent, \a tqparent.
+ Constructs a file dialog called \a name, with the parent, \a parent.
If \a modal is TRUE then the file dialog is modal; otherwise it is
modeless.
*/
-TQFileDialog::TQFileDialog( TQWidget *tqparent, const char *name, bool modal )
- : TQDialog( tqparent, name, modal,
+TQFileDialog::TQFileDialog( TQWidget *parent, const char *name, bool modal )
+ : TQDialog( parent, name, modal,
(modal ?
(WFlags)(WStyle_Customize | TQt::WStyle_DialogBorder | TQt::WStyle_Title | TQt::WStyle_SysMenu) : (WFlags)0) )
{
@@ -2406,7 +2406,7 @@ TQFileDialog::TQFileDialog( TQWidget *tqparent, const char *name, bool modal )
/*!
- Constructs a file dialog called \a name with the tqparent, \a tqparent.
+ Constructs a file dialog called \a name with the parent, \a parent.
If \a modal is TRUE then the file dialog is modal; otherwise it is
modeless.
@@ -2418,8 +2418,8 @@ TQFileDialog::TQFileDialog( TQWidget *tqparent, const char *name, bool modal )
*/
TQFileDialog::TQFileDialog( const TQString& dirName, const TQString & filter,
- TQWidget *tqparent, const char *name, bool modal )
- : TQDialog( tqparent, name, modal,
+ TQWidget *parent, const char *name, bool modal )
+ : TQDialog( parent, name, modal,
(modal ?
(WFlags)(WStyle_Customize | TQt::WStyle_DialogBorder | TQt::WStyle_Title | TQt::WStyle_SysMenu) : (WFlags)0) )
{
@@ -2615,7 +2615,7 @@ void TQFileDialog::init()
#endif
d->goBack->setIconSet( *goBackIcon );
- d->cdToParent = new TQToolButton( this, "cd to tqparent" );
+ d->cdToParent = new TQToolButton( this, "cd to parent" );
d->cdToParent->setFocusPolicy( Qt::TabFocus );
#ifndef TQT_NO_TOOLTIP
TQToolTip::add( d->cdToParent, tr( "One directory up" ) );
@@ -2995,17 +2995,17 @@ void TQFileDialog::setSelectedFilter( int n )
/*!
Sets the current filter selected in the file dialog to the first
- one that contains the text \a tqmask.
+ one that contains the text \a mask.
*/
-void TQFileDialog::setSelectedFilter( const TQString& tqmask )
+void TQFileDialog::setSelectedFilter( const TQString& mask )
{
int n;
for ( n = 0; n < d->types->count(); n++ ) {
- if ( d->types->text( n ).contains( tqmask, FALSE ) ) {
+ if ( d->types->text( n ).contains( mask, FALSE ) ) {
d->types->setCurrentItem( n );
- TQString f = tqmask;
+ TQString f = mask;
TQRegExp r( TQString::tqfromLatin1(qt_file_dialog_filter_reg_exp) );
int index = r.search( f );
if ( index >= 0 )
@@ -3423,8 +3423,8 @@ bool TQ_EXPORT qt_use_native_dialogs = TRUE;
\endcode
The function creates a modal file dialog called \a name, with
- tqparent, \a tqparent. If a tqparent is not 0, the dialog will be shown
- centered over the tqparent.
+ parent, \a parent. If a parent is not 0, the dialog will be shown
+ centered over the parent.
The file dialog's working directory will be set to \a startWith. If \a
startWith includes a file name, the file will be selected. The filter
@@ -3439,8 +3439,8 @@ bool TQ_EXPORT qt_use_native_dialogs = TRUE;
file dialog and not a TQFileDialog, unless the style of the application
is set to something other than the native style (Note that on Windows the
dialog will spin a blocking modal event loop that will not dispatch any
- TQTimers and if tqparent is not 0 then it will position the dialog just under
- the tqparent's titlebar).
+ TQTimers and if parent is not 0 then it will position the dialog just under
+ the parent's titlebar).
Under Unix/X11, the normal behavior of the file dialog is to resolve
and follow symlinks. For example, if /usr/tmp is a symlink to /var/tmp,
@@ -3453,7 +3453,7 @@ bool TQ_EXPORT qt_use_native_dialogs = TRUE;
TQString TQFileDialog::getOpenFileName( const TQString & startWith,
const TQString& filter,
- TQWidget *tqparent, const char* name,
+ TQWidget *parent, const char* name,
const TQString& caption,
TQString *selectedFilter,
bool resolveSymlinks )
@@ -3497,16 +3497,16 @@ TQString TQFileDialog::getOpenFileName( const TQString & startWith,
#if defined(TQ_WS_WIN)
if ( qt_use_native_dialogs && tqApp->tqstyle().tqstyleHint( TQStyle::SH_GUIStyle ) == WindowsStyle )
return winGetOpenFileName( initialSelection, filter, workingDirectory,
- tqparent, name, caption, selectedFilter );
+ parent, name, caption, selectedFilter );
#elif defined(TQ_WS_MAC)
if (qt_use_native_dialogs && (tqApp->tqstyle().inherits(TQMAC_DEFAULT_STYLE)
|| tqApp->tqstyle().inherits("TQMacStyle")))
return qt_mac_precomposeFileName(macGetOpenFileNames(filter,
startWith.isEmpty() ? 0 : workingDirectory,
- tqparent, name, caption, selectedFilter, FALSE).first());
+ parent, name, caption, selectedFilter, FALSE).first());
#endif
- TQFileDialog *dlg = new TQFileDialog( *workingDirectory, TQString::null, tqparent, name ? name : "qt_filedlg_gofn", TRUE );
+ TQFileDialog *dlg = new TQFileDialog( *workingDirectory, TQString::null, parent, name ? name : "qt_filedlg_gofn", TRUE );
TQ_CHECK_PTR( dlg );
#ifndef TQT_NO_WIDGET_TOPEXTRA
@@ -3540,9 +3540,9 @@ TQString TQFileDialog::getOpenFileName( const TQString & startWith,
This is a convenience static function that will return a file name
selected by the user. The file does not have to exist.
- It creates a modal file dialog called \a name, with tqparent, \a tqparent.
- If a tqparent is not 0, the dialog will be shown centered over the
- tqparent.
+ It creates a modal file dialog called \a name, with parent, \a parent.
+ If a parent is not 0, the dialog will be shown centered over the
+ parent.
\code
TQString s = TQFileDialog::getSaveFileName(
@@ -3566,8 +3566,8 @@ TQString TQFileDialog::getOpenFileName( const TQString & startWith,
file dialog and not a TQFileDialog, unless the style of the application
is set to something other than the native style. (Note that on Windows the
dialog will spin a blocking modal event loop that will not dispatch any
- TQTimers and if tqparent is not 0 then it will position the dialog just under
- the tqparent's titlebar.
+ TQTimers and if parent is not 0 then it will position the dialog just under
+ the parent's titlebar.
Under Unix/X11, the normal behavior of the file dialog is to resolve
and follow symlinks. For example, if /usr/tmp is a symlink to /var/tmp,
@@ -3580,7 +3580,7 @@ TQString TQFileDialog::getOpenFileName( const TQString & startWith,
TQString TQFileDialog::getSaveFileName( const TQString & startWith,
const TQString& filter,
- TQWidget *tqparent, const char* name,
+ TQWidget *parent, const char* name,
const TQString& caption,
TQString *selectedFilter,
bool resolveSymlinks)
@@ -3618,16 +3618,16 @@ TQString TQFileDialog::getSaveFileName( const TQString & startWith,
#if defined(TQ_WS_WIN)
if ( qt_use_native_dialogs && tqApp->tqstyle().tqstyleHint( TQStyle::SH_GUIStyle ) == WindowsStyle )
return winGetSaveFileName( initialSelection, filter, workingDirectory,
- tqparent, name, caption, selectedFilter );
+ parent, name, caption, selectedFilter );
#elif defined(TQ_WS_MAC)
if (qt_use_native_dialogs && (tqApp->tqstyle().inherits(TQMAC_DEFAULT_STYLE)
|| tqApp->tqstyle().inherits("TQMacStyle")))
return qt_mac_precomposeFileName(macGetSaveFileName(initialSelection, filter,
- startWith.isEmpty() ? 0 : workingDirectory, tqparent, name,
+ startWith.isEmpty() ? 0 : workingDirectory, parent, name,
caption, selectedFilter));
#endif
- TQFileDialog *dlg = new TQFileDialog( *workingDirectory, TQString::null, tqparent, name ? name : "qt_filedlg_gsfn", TRUE );
+ TQFileDialog *dlg = new TQFileDialog( *workingDirectory, TQString::null, parent, name ? name : "qt_filedlg_gsfn", TRUE );
TQ_CHECK_PTR( dlg );
#ifndef TQT_NO_WIDGET_TOPEXTRA
@@ -4461,8 +4461,8 @@ void TQFileDialog::createdDirectory( const TQUrlInfo &info, TQNetworkOperation *
\endcode
This function creates a modal file dialog called \a name, with
- tqparent, \a tqparent. If tqparent is not 0, the dialog will be shown
- centered over the tqparent.
+ parent, \a parent. If parent is not 0, the dialog will be shown
+ centered over the parent.
The dialog's working directory is set to \a dir, and the caption is
set to \a caption. Either of these may be TQString::null in which case
@@ -4484,14 +4484,14 @@ void TQFileDialog::createdDirectory( const TQUrlInfo &info, TQNetworkOperation *
file dialog and not a TQFileDialog, unless the style of the application
is set to something other than the native style. (Note that on Windows the
dialog will spin a blocking modal event loop that will not dispatch any
- TQTimers and if tqparent is not 0 then it will position the dialog just under
- the tqparent's titlebar).
+ TQTimers and if parent is not 0 then it will position the dialog just under
+ the parent's titlebar).
\sa getOpenFileName(), getOpenFileNames(), getSaveFileName()
*/
TQString TQFileDialog::getExistingDirectory( const TQString & dir,
- TQWidget *tqparent,
+ TQWidget *parent,
const char* name,
const TQString& caption,
bool dirOnly,
@@ -4514,7 +4514,7 @@ TQString TQFileDialog::getExistingDirectory( const TQString & dir,
} else
initialDir = TQString::null;
if ( qt_use_native_dialogs && tqApp->tqstyle().tqstyleHint( TQStyle::SH_GUIStyle ) == WindowsStyle && dirOnly )
- return winGetExistingDirectory( initialDir, tqparent, name, caption );
+ return winGetExistingDirectory( initialDir, parent, name, caption );
#endif
#if defined(TQ_WS_MAC)
TQString *initialDir = 0;
@@ -4525,11 +4525,11 @@ TQString TQFileDialog::getExistingDirectory( const TQString & dir,
}
if( qt_use_native_dialogs && (tqApp->tqstyle().inherits(TQMAC_DEFAULT_STYLE)
|| tqApp->tqstyle().inherits("TQMacStyle")))
- return qt_mac_precomposeFileName(macGetOpenFileNames("", initialDir, tqparent, name,
+ return qt_mac_precomposeFileName(macGetOpenFileNames("", initialDir, parent, name,
caption, 0, FALSE, TRUE).first());
#endif
- TQFileDialog *dlg = new TQFileDialog( tqparent, name ? name : "qt_filedlg_ged", TRUE );
+ TQFileDialog *dlg = new TQFileDialog( parent, name ? name : "qt_filedlg_ged", TRUE );
TQ_CHECK_PTR( dlg );
#ifndef TQT_NO_WIDGET_TOPEXTRA
@@ -4784,8 +4784,8 @@ TQFileDialog::PreviewMode TQFileDialog::previewMode() const
The button \a b is placed underneath the Cancel pushbutton.
\code
- MyFileDialog::MyFileDialog( TQWidget* tqparent, const char* name ) :
- TQFileDialog( tqparent, name )
+ MyFileDialog::MyFileDialog( TQWidget* parent, const char* name ) :
+ TQFileDialog( parent, name )
{
TQLabel* label = new TQLabel( "Added widgets", this );
TQLineEdit* lineedit = new TQLineEdit( this );
@@ -4972,11 +4972,11 @@ void TQFileDialog::keyPressEvent( TQKeyEvent * ke )
/*! Constructs an empty file icon provider called \a name, with the
- tqparent \a tqparent.
+ parent \a parent.
*/
-TQFileIconProvider::TQFileIconProvider( TQObject * tqparent, const char* name )
- : TQObject( tqparent, name )
+TQFileIconProvider::TQFileIconProvider( TQObject * parent, const char* name )
+ : TQObject( parent, name )
{
// nothing necessary
}
@@ -5081,8 +5081,8 @@ static void initPixmap( TQPixmap &pm )
}
-TQWindowsIconProvider::TQWindowsIconProvider( TQObject *tqparent, const char *name )
- : TQFileIconProvider( tqparent, name )
+TQWindowsIconProvider::TQWindowsIconProvider( TQObject *parent, const char *name )
+ : TQFileIconProvider( parent, name )
{
pixw = GetSystemMetrics( SM_CXSMICON );
pixh = GetSystemMetrics( SM_CYSMICON );
@@ -5600,8 +5600,8 @@ void TQFileDialog::modeButtonsDestroyed()
\endcode
This function creates a modal file dialog called \a name, with
- tqparent \a tqparent. If \a tqparent is not 0, the dialog will be shown
- centered over the tqparent.
+ parent \a parent. If \a parent is not 0, the dialog will be shown
+ centered over the parent.
The file dialog's working directory will be set to \a dir. If \a
dir includes a file name, the file will be selected. The filter
@@ -5616,8 +5616,8 @@ void TQFileDialog::modeButtonsDestroyed()
file dialog and not a TQFileDialog, unless the style of the application
is set to something other than the native style. (Note that on Windows the
dialog will spin a blocking modal event loop that will not dispatch any
- TQTimers and if tqparent is not 0 then it will position the dialog just under
- the tqparent's titlebar).
+ TQTimers and if parent is not 0 then it will position the dialog just under
+ the parent's titlebar).
Under Unix/X11, the normal behavior of the file dialog is to resolve
and follow symlinks. For example, if /usr/tmp is a symlink to /var/tmp,
@@ -5641,7 +5641,7 @@ void TQFileDialog::modeButtonsDestroyed()
TQStringList TQFileDialog::getOpenFileNames( const TQString & filter,
const TQString& dir,
- TQWidget *tqparent,
+ TQWidget *parent,
const char* name,
const TQString& caption,
TQString *selectedFilter,
@@ -5671,11 +5671,11 @@ TQStringList TQFileDialog::getOpenFileNames( const TQString & filter,
#if defined(TQ_WS_WIN)
if ( qt_use_native_dialogs && tqApp->tqstyle().tqstyleHint( TQStyle::SH_GUIStyle ) == WindowsStyle )
- return winGetOpenFileNames( filter, workingDirectory, tqparent, name, caption, selectedFilter );
+ return winGetOpenFileNames( filter, workingDirectory, parent, name, caption, selectedFilter );
#elif defined(TQ_WS_MAC)
if (qt_use_native_dialogs && (tqApp->tqstyle().inherits(TQMAC_DEFAULT_STYLE)
|| tqApp->tqstyle().inherits("TQMacStyle"))) {
- TQStringList sl = macGetOpenFileNames(filter, dir.isEmpty() ? 0 : workingDirectory, tqparent,
+ TQStringList sl = macGetOpenFileNames(filter, dir.isEmpty() ? 0 : workingDirectory, parent,
name, caption, selectedFilter);
TQStringList::iterator it = sl.begin();
while (it != sl.end()) {
@@ -5686,7 +5686,7 @@ TQStringList TQFileDialog::getOpenFileNames( const TQString & filter,
}
#endif
- TQFileDialog *dlg = new TQFileDialog( *workingDirectory, TQString::null, tqparent, name ? name : "qt_filedlg_gofns", TRUE );
+ TQFileDialog *dlg = new TQFileDialog( *workingDirectory, TQString::null, parent, name ? name : "qt_filedlg_gofns", TRUE );
TQ_CHECK_PTR( dlg );
#ifndef TQT_NO_WIDGET_TOPEXTRA
@@ -6144,7 +6144,7 @@ void TQFileDialog::setContentsPreviewEnabled( bool contents )
class Preview : public TQLabel, public TQFilePreview
{
public:
- Preview( TQWidget *tqparent=0 ) : TQLabel( tqparent ) {}
+ Preview( TQWidget *parent=0 ) : TQLabel( parent ) {}
void previewUrl( const TQUrl &u )
{
@@ -6204,7 +6204,7 @@ void TQFileDialog::setInfoPreview( TQWidget *w, TQFilePreview *preview )
class Preview : public TQLabel, public TQFilePreview
{
public:
- Preview( TQWidget *tqparent=0 ) : TQLabel( tqparent ) {}
+ Preview( TQWidget *parent=0 ) : TQLabel( parent ) {}
void previewUrl( const TQUrl &u )
{
diff --git a/tqtinterface/qt4/src/dialogs/tqfiledialog.h b/tqtinterface/qt4/src/dialogs/tqfiledialog.h
index eef857e..4af0627 100644
--- a/tqtinterface/qt4/src/dialogs/tqfiledialog.h
+++ b/tqtinterface/qt4/src/dialogs/tqfiledialog.h
@@ -72,7 +72,7 @@ class TQ_EXPORT TQFileIconProvider : public TQObject
Q_OBJECT
TQ_OBJECT
public:
- TQFileIconProvider( TQObject * tqparent = 0, const char* name = 0 );
+ TQFileIconProvider( TQObject * parent = 0, const char* name = 0 );
virtual const TQPixmap * pixmap( const TQFileInfo & );
private: // Disabled copy constructor and operator=
@@ -110,33 +110,33 @@ class TQ_EXPORT TQFileDialog : public TQDialog
public:
TQFileDialog( const TQString& dirName, const TQString& filter = TQString::null,
- TQWidget* tqparent=0, const char* name=0, bool modal = FALSE );
- TQFileDialog( TQWidget* tqparent=0, const char* name=0, bool modal = FALSE );
+ TQWidget* parent=0, const char* name=0, bool modal = FALSE );
+ TQFileDialog( TQWidget* parent=0, const char* name=0, bool modal = FALSE );
~TQFileDialog();
// recommended static functions
static TQString getOpenFileName( const TQString &initially = TQString::null,
const TQString &filter = TQString::null,
- TQWidget *tqparent = 0, const char* name = 0,
+ TQWidget *parent = 0, const char* name = 0,
const TQString &caption = TQString::null,
TQString *selectedFilter = 0,
bool resolveSymlinks = TRUE);
static TQString getSaveFileName( const TQString &initially = TQString::null,
const TQString &filter = TQString::null,
- TQWidget *tqparent = 0, const char* name = 0,
+ TQWidget *parent = 0, const char* name = 0,
const TQString &caption = TQString::null,
TQString *selectedFilter = 0,
bool resolveSymlinks = TRUE);
static TQString getExistingDirectory( const TQString &dir = TQString::null,
- TQWidget *tqparent = 0,
+ TQWidget *parent = 0,
const char* name = 0,
const TQString &caption = TQString::null,
bool dirOnly = TRUE,
bool resolveSymlinks = TRUE);
static TQStringList getOpenFileNames( const TQString &filter= TQString::null,
const TQString &dir = TQString::null,
- TQWidget *tqparent = 0,
+ TQWidget *parent = 0,
const char* name = 0,
const TQString &caption = TQString::null,
TQString *selectedFilter = 0,
@@ -304,25 +304,25 @@ private:
static TQString winGetOpenFileName( const TQString &initialSelection,
const TQString &filter,
TQString* workingDirectory,
- TQWidget *tqparent = 0,
+ TQWidget *parent = 0,
const char* name = 0,
const TQString& caption = TQString::null,
TQString* selectedFilter = 0 );
static TQString winGetSaveFileName( const TQString &initialSelection,
const TQString &filter,
TQString* workingDirectory,
- TQWidget *tqparent = 0,
+ TQWidget *parent = 0,
const char* name = 0,
const TQString& caption = TQString::null,
TQString* selectedFilter = 0 );
static TQStringList winGetOpenFileNames( const TQString &filter,
TQString* workingDirectory,
- TQWidget *tqparent = 0,
+ TQWidget *parent = 0,
const char* name = 0,
const TQString& caption = TQString::null,
TQString* selectedFilter = 0 );
static TQString winGetExistingDirectory( const TQString &initialDirectory,
- TQWidget* tqparent = 0,
+ TQWidget* parent = 0,
const char* name = 0,
const TQString& caption = TQString::null);
static TQString resolveLinkFile( const TQString& linkfile );
diff --git a/tqtinterface/qt4/src/dialogs/tqfontdialog.cpp b/tqtinterface/qt4/src/dialogs/tqfontdialog.cpp
index 5a10f04..deed5d5 100644
--- a/tqtinterface/qt4/src/dialogs/tqfontdialog.cpp
+++ b/tqtinterface/qt4/src/dialogs/tqfontdialog.cpp
@@ -146,15 +146,15 @@ public:
Use setFont() to set the initial font attributes.
- The \a tqparent, \a name, \a modal and \a f parameters are passed to
+ The \a parent, \a name, \a modal and \a f parameters are passed to
the TQDialog constructor.
\sa getFont()
*/
-TQFontDialog::TQFontDialog( TQWidget *tqparent, const char *name,
+TQFontDialog::TQFontDialog( TQWidget *parent, const char *name,
bool modal, WFlags f )
- : TQDialog( tqparent, name, modal, f )
+ : TQDialog( parent, name, modal, f )
{
setSizeGripEnabled( TRUE );
d = new TQFontDialogPrivate;
@@ -321,7 +321,7 @@ TQFontDialog::~TQFontDialog()
If the user clicks OK, the selected font is returned. If the user
clicks Cancel, the \a initial font is returned.
- The dialog is called \a name, with the tqparent \a tqparent.
+ The dialog is called \a name, with the parent \a parent.
\a initial is the initially selected font.
If the \a ok parameter is not-null, \e *\a ok is set to TRUE if the
user clicked OK, and set to FALSE if the user clicked Cancel.
@@ -349,9 +349,9 @@ TQFontDialog::~TQFontDialog()
used, and if they click Cancel the original font is used.
*/
TQFont TQFontDialog::getFont( bool *ok, const TQFont &initial,
- TQWidget *tqparent, const char* name)
+ TQWidget *parent, const char* name)
{
- return getFont( ok, &initial, tqparent, name );
+ return getFont( ok, &initial, parent, name );
}
/*!
@@ -362,7 +362,7 @@ TQFont TQFontDialog::getFont( bool *ok, const TQFont &initial,
If the user clicks OK, the selected font is returned. If the user
clicks Cancel, the TQt default font is returned.
- The dialog is called \a name, with tqparent \a tqparent.
+ The dialog is called \a name, with parent \a parent.
If the \a ok parameter is not-null, \e *\a ok is set to TRUE if the
user clicked OK, and FALSE if the user clicked Cancel.
@@ -382,19 +382,19 @@ TQFont TQFontDialog::getFont( bool *ok, const TQFont &initial,
\endcode
*/
-TQFont TQFontDialog::getFont( bool *ok, TQWidget *tqparent,const char* name)
+TQFont TQFontDialog::getFont( bool *ok, TQWidget *parent,const char* name)
{
- return getFont( ok, 0, tqparent, name );
+ return getFont( ok, 0, parent, name );
}
TQFont TQFontDialog::getFont( bool *ok, const TQFont *def,
- TQWidget *tqparent, const char* name)
+ TQWidget *parent, const char* name)
{
TQFont result;
if ( def )
result = *def;
- TQFontDialog *dlg = new TQFontDialog( tqparent, name, TRUE );
+ TQFontDialog *dlg = new TQFontDialog( parent, name, TRUE );
dlg->setFont( ( def ? *def : TQFont() ) );
#ifndef TQT_NO_WIDGET_TOPEXTRA
diff --git a/tqtinterface/qt4/src/dialogs/tqfontdialog.h b/tqtinterface/qt4/src/dialogs/tqfontdialog.h
index 2862fe5..6dc0b7f 100644
--- a/tqtinterface/qt4/src/dialogs/tqfontdialog.h
+++ b/tqtinterface/qt4/src/dialogs/tqfontdialog.h
@@ -69,14 +69,14 @@ class TQ_EXPORT TQFontDialog: public TQDialog
public:
static TQFont getFont( bool *ok, const TQFont &def,
- TQWidget* tqparent=0, const char* name=0);
- static TQFont getFont( bool *ok, TQWidget* tqparent=0, const char* name=0);
+ TQWidget* parent=0, const char* name=0);
+ static TQFont getFont( bool *ok, TQWidget* parent=0, const char* name=0);
private:
static TQFont getFont( bool *ok, const TQFont *def,
- TQWidget* tqparent=0, const char* name=0);
+ TQWidget* parent=0, const char* name=0);
- TQFontDialog( TQWidget* tqparent=0, const char* name=0, bool modal=FALSE,
+ TQFontDialog( TQWidget* parent=0, const char* name=0, bool modal=FALSE,
WFlags f=0 );
~TQFontDialog();
diff --git a/tqtinterface/qt4/src/dialogs/tqinputdialog.cpp b/tqtinterface/qt4/src/dialogs/tqinputdialog.cpp
index 951826b..a9ae81f 100644
--- a/tqtinterface/qt4/src/dialogs/tqinputdialog.cpp
+++ b/tqtinterface/qt4/src/dialogs/tqinputdialog.cpp
@@ -116,17 +116,17 @@ public:
/*!
Constructs the dialog. The \a label is the text which is shown to the user
- (it should tell the user what they are expected to enter). The \a tqparent
- is the dialog's tqparent widget. The widget is called \a name. If \a
+ (it should tell the user what they are expected to enter). The \a parent
+ is the dialog's parent widget. The widget is called \a name. If \a
modal is TRUE (the default) the dialog will be modal. The \a type
parameter is used to specify which type of dialog to construct.
\sa getText(), getInteger(), getDouble(), getItem()
*/
-TQInputDialog::TQInputDialog( const TQString &label, TQWidget* tqparent,
+TQInputDialog::TQInputDialog( const TQString &label, TQWidget* parent,
const char* name, bool modal, Type type )
- : TQDialog( tqparent, name, modal )
+ : TQDialog( parent, name, modal )
{
d = new TQInputDialogPrivate;
d->lineEdit = 0;
@@ -275,7 +275,7 @@ TQInputDialog::~TQInputDialog()
placed in the line edit. The \a mode is the echo mode the line edit
will use. If \a ok is not-null \e *\a ok will be set to TRUE if the
user pressed OK and to FALSE if the user pressed Cancel. The
- dialog's tqparent is \a tqparent; the dialog is called \a name. The
+ dialog's parent is \a parent; the dialog is called \a name. The
dialog will be modal.
This function returns the text which has been entered in the line
@@ -298,9 +298,9 @@ TQInputDialog::~TQInputDialog()
TQString TQInputDialog::getText( const TQString &caption, const TQString &label,
TQLineEdit::EchoMode mode, const TQString &text,
- bool *ok, TQWidget *tqparent, const char *name )
+ bool *ok, TQWidget *parent, const char *name )
{
- TQInputDialog *dlg = new TQInputDialog( label, tqparent,
+ TQInputDialog *dlg = new TQInputDialog( label, parent,
name ? name : "qt_inputdlg_gettext",
TRUE, LineEdit );
@@ -334,7 +334,7 @@ TQString TQInputDialog::getText( const TQString &caption, const TQString &label,
If \a ok is not-null *\a ok will be set to TRUE if the user
pressed OK and to FALSE if the user pressed Cancel. The dialog's
- tqparent is \a tqparent; the dialog is called \a name. The dialog will
+ parent is \a parent; the dialog is called \a name. The dialog will
be modal.
This function returns the integer which has been entered by the user.
@@ -356,9 +356,9 @@ TQString TQInputDialog::getText( const TQString &caption, const TQString &label,
int TQInputDialog::getInteger( const TQString &caption, const TQString &label,
int value, int minValue, int maxValue, int step, bool *ok,
- TQWidget *tqparent, const char *name )
+ TQWidget *parent, const char *name )
{
- TQInputDialog *dlg = new TQInputDialog( label, tqparent,
+ TQInputDialog *dlg = new TQInputDialog( label, parent,
name ? name : "qt_inputdlg_getint",
TRUE, SpinBox );
#ifndef TQT_NO_WIDGET_TOPEXTRA
@@ -391,7 +391,7 @@ int TQInputDialog::getInteger( const TQString &caption, const TQString &label,
If \a ok is not-null \e *\a ok will be set to TRUE if the user
pressed OK and to FALSE if the user pressed Cancel. The dialog's
- tqparent is \a tqparent; the dialog is called \a name. The dialog will
+ parent is \a parent; the dialog is called \a name. The dialog will
be modal.
This function returns the floating point number which has been
@@ -414,10 +414,10 @@ int TQInputDialog::getInteger( const TQString &caption, const TQString &label,
double TQInputDialog::getDouble( const TQString &caption, const TQString &label,
double value, double minValue, double maxValue,
- int decimals, bool *ok, TQWidget *tqparent,
+ int decimals, bool *ok, TQWidget *parent,
const char *name )
{
- TQInputDialog dlg( label, tqparent,
+ TQInputDialog dlg( label, parent,
name ? name : "qt_inputdlg_getdbl", TRUE, LineEdit );
#ifndef TQT_NO_WIDGET_TOPEXTRA
dlg.setCaption( caption );
@@ -444,7 +444,7 @@ double TQInputDialog::getDouble( const TQString &caption, const TQString &label,
If \a ok is not-null \e *\a ok will be set to TRUE if the user
pressed OK and to FALSE if the user pressed Cancel. The dialog's
- tqparent is \a tqparent; the dialog is called \a name. The dialog will
+ parent is \a parent; the dialog is called \a name. The dialog will
be modal.
This function returns the text of the current item, or if \a
@@ -469,9 +469,9 @@ double TQInputDialog::getDouble( const TQString &caption, const TQString &label,
TQString TQInputDialog::getItem( const TQString &caption, const TQString &label, const TQStringList &list,
int current, bool editable,
- bool *ok, TQWidget *tqparent, const char *name )
+ bool *ok, TQWidget *parent, const char *name )
{
- TQInputDialog *dlg = new TQInputDialog( label, tqparent, name ? name : "qt_inputdlg_getitem", TRUE, editable ? EditableComboBox : ComboBox );
+ TQInputDialog *dlg = new TQInputDialog( label, parent, name ? name : "qt_inputdlg_getitem", TRUE, editable ? EditableComboBox : ComboBox );
#ifndef TQT_NO_WIDGET_TOPEXTRA
dlg->setCaption( caption );
#endif
diff --git a/tqtinterface/qt4/src/dialogs/tqinputdialog.h b/tqtinterface/qt4/src/dialogs/tqinputdialog.h
index 8b7be71..38aac9b 100644
--- a/tqtinterface/qt4/src/dialogs/tqinputdialog.h
+++ b/tqtinterface/qt4/src/dialogs/tqinputdialog.h
@@ -61,7 +61,7 @@ class TQ_EXPORT TQInputDialog : public TQDialog
private:
enum Type { LineEdit, SpinBox, ComboBox, EditableComboBox };
- TQInputDialog( const TQString &label, TQWidget* tqparent=0, const char* name=0,
+ TQInputDialog( const TQString &label, TQWidget* parent=0, const char* name=0,
bool modal = TRUE, Type type = LineEdit ); //### 4.0: widget flag!
~TQInputDialog();
@@ -76,16 +76,16 @@ private:
public:
//### 4.0: widget flag!
static TQString getText( const TQString &caption, const TQString &label, TQLineEdit::EchoMode echo = TQLineEdit::Normal,
- const TQString &text = TQString::null, bool *ok = 0, TQWidget *tqparent = 0, const char *name = 0 );
+ const TQString &text = TQString::null, bool *ok = 0, TQWidget *parent = 0, const char *name = 0 );
static int getInteger( const TQString &caption, const TQString &label, int value = 0, int minValue = -2147483647,
int maxValue = 2147483647,
- int step = 1, bool *ok = 0, TQWidget *tqparent = 0, const char *name = 0 );
+ int step = 1, bool *ok = 0, TQWidget *parent = 0, const char *name = 0 );
static double getDouble( const TQString &caption, const TQString &label, double value = 0,
double minValue = -2147483647, double maxValue = 2147483647,
- int decimals = 1, bool *ok = 0, TQWidget *tqparent = 0, const char *name = 0 );
+ int decimals = 1, bool *ok = 0, TQWidget *parent = 0, const char *name = 0 );
static TQString getItem( const TQString &caption, const TQString &label, const TQStringList &list,
int current = 0, bool editable = TRUE,
- bool *ok = 0, TQWidget *tqparent = 0, const char *name = 0 );
+ bool *ok = 0, TQWidget *parent = 0, const char *name = 0 );
private Q_SLOTS:
void textChanged( const TQString &s );
diff --git a/tqtinterface/qt4/src/dialogs/tqmessagebox.cpp b/tqtinterface/qt4/src/dialogs/tqmessagebox.cpp
index 878a618..a31c218 100644
--- a/tqtinterface/qt4/src/dialogs/tqmessagebox.cpp
+++ b/tqtinterface/qt4/src/dialogs/tqmessagebox.cpp
@@ -63,7 +63,7 @@ class TQMessageBoxLabel : public TQLabel
{
TQ_OBJECT
public:
- TQMessageBoxLabel( TQWidget* tqparent ) : TQLabel( tqparent, "messageBoxText")
+ TQMessageBoxLabel( TQWidget* parent ) : TQLabel( parent, "messageBoxText")
{
tqsetAlignment( TQt::AlignAuto|TQt::ExpandTabs );
}
@@ -1404,8 +1404,8 @@ static char * qtlogo_xpm[] = {
struct TQMessageBoxData {
- TQMessageBoxData(TQMessageBox* tqparent) :
- iconLabel( tqparent, "icon" )
+ TQMessageBoxData(TQMessageBox* parent) :
+ iconLabel( parent, "icon" )
{
}
@@ -1447,16 +1447,16 @@ const char * mb_texts[] = {
Constructs a message box with no text and a button with the label
"OK".
- If \a tqparent is 0, the message box becomes an application-global
- modal dialog box. If \a tqparent is a widget, the message box
- becomes modal relative to \a tqparent.
+ If \a parent is 0, the message box becomes an application-global
+ modal dialog box. If \a parent is a widget, the message box
+ becomes modal relative to \a parent.
- The \a tqparent and \a name arguments are passed to the TQDialog
+ The \a parent and \a name arguments are passed to the TQDialog
constructor.
*/
-TQMessageBox::TQMessageBox( TQWidget *tqparent, const char *name )
- : TQDialog( tqparent, name, TRUE, (WFlags)(WStyle_Customize | TQt::WStyle_DialogBorder | TQt::WStyle_Title | TQt::WStyle_SysMenu) )
+TQMessageBox::TQMessageBox( TQWidget *parent, const char *name )
+ : TQDialog( parent, name, TRUE, (WFlags)(WStyle_Customize | TQt::WStyle_DialogBorder | TQt::WStyle_Title | TQt::WStyle_SysMenu) )
{
init( Ok, 0, 0 );
}
@@ -1514,14 +1514,14 @@ TQMessageBox::TQMessageBox( TQWidget *tqparent, const char *name )
// try again
\endcode
- If \a tqparent is 0, the message box becomes an application-global
- modal dialog box. If \a tqparent is a widget, the message box
- becomes modal relative to \a tqparent.
+ If \a parent is 0, the message box becomes an application-global
+ modal dialog box. If \a parent is a widget, the message box
+ becomes modal relative to \a parent.
If \a modal is TRUE the message box is modal; otherwise it
is modeless.
- The \a tqparent, \a name, \a modal, and \a f arguments are passed to
+ The \a parent, \a name, \a modal, and \a f arguments are passed to
the TQDialog constructor.
\sa setCaption(), setText(), setIcon()
@@ -1530,9 +1530,9 @@ TQMessageBox::TQMessageBox( TQWidget *tqparent, const char *name )
TQMessageBox::TQMessageBox( const TQString& caption,
const TQString &text, Icon icon,
int button0, int button1, int button2,
- TQWidget *tqparent, const char *name,
+ TQWidget *parent, const char *name,
bool modal, WFlags f )
- : TQDialog( tqparent, name, modal, (WFlags)(f | (WFlags)WStyle_Customize | TQt::WStyle_DialogBorder | TQt::WStyle_Title | TQt::WStyle_SysMenu) )
+ : TQDialog( parent, name, modal, (WFlags)(f | (WFlags)WStyle_Customize | TQt::WStyle_DialogBorder | TQt::WStyle_Title | TQt::WStyle_SysMenu) )
{
init( button0, button1, button2 );
#ifndef TQT_NO_WIDGET_TOPEXTRA
@@ -2076,20 +2076,20 @@ void TQMessageBox::closeEvent( TQCloseEvent *e )
Returns the identity (TQMessageBox::Ok, or TQMessageBox::No, etc.)
of the button that was clicked.
- If \a tqparent is 0, the message box becomes an application-global
- modal dialog box. If \a tqparent is a widget, the message box
- becomes modal relative to \a tqparent.
+ If \a parent is 0, the message box becomes an application-global
+ modal dialog box. If \a parent is a widget, the message box
+ becomes modal relative to \a parent.
\sa question(), warning(), critical()
*/
-int TQMessageBox::information( TQWidget *tqparent,
+int TQMessageBox::information( TQWidget *parent,
const TQString& caption, const TQString& text,
int button0, int button1, int button2 )
{
TQMessageBox *mb = new TQMessageBox( caption, text, Information,
button0, button1, button2,
- tqparent, "qt_msgbox_information", TRUE,
+ parent, "qt_msgbox_information", TRUE,
(WFlags)TQt::WDestructiveClose);
TQ_CHECK_PTR( mb );
return mb->exec();
@@ -2123,20 +2123,20 @@ int TQMessageBox::information( TQWidget *tqparent,
Returns the identity (TQMessageBox::Yes, or TQMessageBox::No, etc.)
of the button that was clicked.
- If \a tqparent is 0, the message box becomes an application-global
- modal dialog box. If \a tqparent is a widget, the message box
- becomes modal relative to \a tqparent.
+ If \a parent is 0, the message box becomes an application-global
+ modal dialog box. If \a parent is a widget, the message box
+ becomes modal relative to \a parent.
\sa information(), warning(), critical()
*/
-int TQMessageBox::question( TQWidget *tqparent,
+int TQMessageBox::question( TQWidget *parent,
const TQString& caption, const TQString& text,
int button0, int button1, int button2 )
{
TQMessageBox *mb = new TQMessageBox( caption, text, Question,
button0, button1, button2,
- tqparent, "qt_msgbox_information", TRUE,
+ parent, "qt_msgbox_information", TRUE,
(WFlags)TQt::WDestructiveClose);
TQ_CHECK_PTR( mb );
return mb->exec();
@@ -2171,20 +2171,20 @@ int TQMessageBox::question( TQWidget *tqparent,
Returns the identity (TQMessageBox::Ok, or TQMessageBox::No, etc.)
of the button that was clicked.
- If \a tqparent is 0, the message box becomes an application-global
- modal dialog box. If \a tqparent is a widget, the message box
- becomes modal relative to \a tqparent.
+ If \a parent is 0, the message box becomes an application-global
+ modal dialog box. If \a parent is a widget, the message box
+ becomes modal relative to \a parent.
\sa information(), question(), critical()
*/
-int TQMessageBox::warning( TQWidget *tqparent,
+int TQMessageBox::warning( TQWidget *parent,
const TQString& caption, const TQString& text,
int button0, int button1, int button2 )
{
TQMessageBox *mb = new TQMessageBox( caption, text, Warning,
button0, button1, button2,
- tqparent, "qt_msgbox_warning", TRUE,
+ parent, "qt_msgbox_warning", TRUE,
(WFlags)TQt::WDestructiveClose);
TQ_CHECK_PTR( mb );
return mb->exec();
@@ -2219,20 +2219,20 @@ int TQMessageBox::warning( TQWidget *tqparent,
Returns the identity (TQMessageBox::Ok, or TQMessageBox::No, etc.)
of the button that was clicked.
- If \a tqparent is 0, the message box becomes an application-global
- modal dialog box. If \a tqparent is a widget, the message box
- becomes modal relative to \a tqparent.
+ If \a parent is 0, the message box becomes an application-global
+ modal dialog box. If \a parent is a widget, the message box
+ becomes modal relative to \a parent.
\sa information(), question(), warning()
*/
-int TQMessageBox::critical( TQWidget *tqparent,
+int TQMessageBox::critical( TQWidget *parent,
const TQString& caption, const TQString& text,
int button0, int button1, int button2 )
{
TQMessageBox *mb = new TQMessageBox( caption, text, Critical,
button0, button1, button2,
- tqparent, "qt_msgbox_critical", TRUE,
+ parent, "qt_msgbox_critical", TRUE,
(WFlags)TQt::WDestructiveClose);
TQ_CHECK_PTR( mb );
return mb->exec();
@@ -2241,12 +2241,12 @@ int TQMessageBox::critical( TQWidget *tqparent,
/*!
Displays a simple about box with caption \a caption and text \a
- text. The about box's tqparent is \a tqparent.
+ text. The about box's parent is \a parent.
about() looks for a suitable icon in four locations:
\list 1
- \i It prefers \link TQWidget::icon() tqparent->icon() \endlink if that exists.
- \i If not, it tries the top-level widget containing \a tqparent.
+ \i It prefers \link TQWidget::icon() parent->icon() \endlink if that exists.
+ \i If not, it tries the top-level widget containing \a parent.
\i If that fails, it tries the \link
TQApplication::mainWidget() main widget. \endlink
\i As a last resort it uses the Information icon.
@@ -2257,21 +2257,21 @@ int TQMessageBox::critical( TQWidget *tqparent,
\sa TQWidget::icon() TQApplication::mainWidget()
*/
-void TQMessageBox::about( TQWidget *tqparent, const TQString &caption,
+void TQMessageBox::about( TQWidget *parent, const TQString &caption,
const TQString& text )
{
TQMessageBox *mb = new TQMessageBox( caption, text,
Information,
Ok + Default, 0, 0,
- tqparent, "qt_msgbox_simple_about_box", TRUE,
+ parent, "qt_msgbox_simple_about_box", TRUE,
(WFlags)TQt::WDestructiveClose);
TQ_CHECK_PTR( mb );
#ifndef TQT_NO_WIDGET_TOPEXTRA
- const TQPixmap *pm = tqparent ? tqparent->icon() : 0;
+ const TQPixmap *pm = parent ? parent->icon() : 0;
if ( pm && !pm->isNull() )
mb->setIconPixmap( *pm );
else {
- pm = tqparent ? tqparent->tqtopLevelWidget()->icon() : 0;
+ pm = parent ? parent->tqtopLevelWidget()->icon() : 0;
if ( pm && !pm->isNull() )
mb->setIconPixmap( *pm );
else {
@@ -2297,7 +2297,7 @@ void TQMessageBox::styleChanged( TQStyle& )
}
-static int textBox( TQWidget *tqparent, TQMessageBox::Icon severity,
+static int textBox( TQWidget *parent, TQMessageBox::Icon severity,
const TQString& caption, const TQString& text,
const TQString& button0Text,
const TQString& button1Text,
@@ -2320,7 +2320,7 @@ static int textBox( TQWidget *tqparent, TQMessageBox::Icon severity,
TQMessageBox *mb = new TQMessageBox( caption, text, severity,
b[0], b[1], b[2],
- tqparent, "qt_msgbox_information", TRUE,
+ parent, "qt_msgbox_information", TRUE,
(WFlags)TQt::WDestructiveClose);
TQ_CHECK_PTR( mb );
if ( button0Text.isEmpty() )
@@ -2358,9 +2358,9 @@ static int textBox( TQWidget *tqparent, TQMessageBox::Icon severity,
supply 0, 1 or 2 to make pressing Escape equivalent to clicking
the relevant button.
- If \a tqparent is 0, the message box becomes an application-global
- modal dialog box. If \a tqparent is a widget, the message box
- becomes modal relative to \a tqparent.
+ If \a parent is 0, the message box becomes an application-global
+ modal dialog box. If \a parent is a widget, the message box
+ becomes modal relative to \a parent.
Note: If you do not specify an Escape button then if the Escape
button is pressed then -1 will be returned. It is suggested that
@@ -2369,7 +2369,7 @@ static int textBox( TQWidget *tqparent, TQMessageBox::Icon severity,
\sa question(), warning(), critical()
*/
-int TQMessageBox::information( TQWidget *tqparent, const TQString &caption,
+int TQMessageBox::information( TQWidget *parent, const TQString &caption,
const TQString& text,
const TQString& button0Text,
const TQString& button1Text,
@@ -2377,7 +2377,7 @@ int TQMessageBox::information( TQWidget *tqparent, const TQString &caption,
int defaultButtonNumber,
int escapeButtonNumber )
{
- return textBox( tqparent, Information, caption, text,
+ return textBox( parent, Information, caption, text,
button0Text, button1Text, button2Text,
defaultButtonNumber, escapeButtonNumber );
}
@@ -2401,9 +2401,9 @@ int TQMessageBox::information( TQWidget *tqparent, const TQString &caption,
supply 0, 1 or 2 to make pressing Escape equivalent to clicking
the relevant button.
- If \a tqparent is 0, the message box becomes an application-global
- modal dialog box. If \a tqparent is a widget, the message box
- becomes modal relative to \a tqparent.
+ If \a parent is 0, the message box becomes an application-global
+ modal dialog box. If \a parent is a widget, the message box
+ becomes modal relative to \a parent.
Note: If you do not specify an Escape button then if the Escape
button is pressed then -1 will be returned. It is suggested that
@@ -2411,7 +2411,7 @@ int TQMessageBox::information( TQWidget *tqparent, const TQString &caption,
\sa information(), warning(), critical()
*/
-int TQMessageBox::question( TQWidget *tqparent, const TQString &caption,
+int TQMessageBox::question( TQWidget *parent, const TQString &caption,
const TQString& text,
const TQString& button0Text,
const TQString& button1Text,
@@ -2419,7 +2419,7 @@ int TQMessageBox::question( TQWidget *tqparent, const TQString &caption,
int defaultButtonNumber,
int escapeButtonNumber )
{
- return textBox( tqparent, Question, caption, text,
+ return textBox( parent, Question, caption, text,
button0Text, button1Text, button2Text,
defaultButtonNumber, escapeButtonNumber );
}
@@ -2444,9 +2444,9 @@ int TQMessageBox::question( TQWidget *tqparent, const TQString &caption,
supply 0, 1, or 2 to make pressing Escape equivalent to clicking
the relevant button.
- If \a tqparent is 0, the message box becomes an application-global
- modal dialog box. If \a tqparent is a widget, the message box
- becomes modal relative to \a tqparent.
+ If \a parent is 0, the message box becomes an application-global
+ modal dialog box. If \a parent is a widget, the message box
+ becomes modal relative to \a parent.
Note: If you do not specify an Escape button then if the Escape
button is pressed then -1 will be returned. It is suggested that
@@ -2455,7 +2455,7 @@ int TQMessageBox::question( TQWidget *tqparent, const TQString &caption,
\sa information(), question(), critical()
*/
-int TQMessageBox::warning( TQWidget *tqparent, const TQString &caption,
+int TQMessageBox::warning( TQWidget *parent, const TQString &caption,
const TQString& text,
const TQString& button0Text,
const TQString& button1Text,
@@ -2463,7 +2463,7 @@ int TQMessageBox::warning( TQWidget *tqparent, const TQString &caption,
int defaultButtonNumber,
int escapeButtonNumber )
{
- return textBox( tqparent, Warning, caption, text,
+ return textBox( parent, Warning, caption, text,
button0Text, button1Text, button2Text,
defaultButtonNumber, escapeButtonNumber );
}
@@ -2488,14 +2488,14 @@ int TQMessageBox::warning( TQWidget *tqparent, const TQString &caption,
supply 0, 1, or 2 to make pressing Escape equivalent to clicking
the relevant button.
- If \a tqparent is 0, the message box becomes an application-global
- modal dialog box. If \a tqparent is a widget, the message box
- becomes modal relative to \a tqparent.
+ If \a parent is 0, the message box becomes an application-global
+ modal dialog box. If \a parent is a widget, the message box
+ becomes modal relative to \a parent.
\sa information(), question(), warning()
*/
-int TQMessageBox::critical( TQWidget *tqparent, const TQString &caption,
+int TQMessageBox::critical( TQWidget *parent, const TQString &caption,
const TQString& text,
const TQString& button0Text,
const TQString& button1Text,
@@ -2503,7 +2503,7 @@ int TQMessageBox::critical( TQWidget *tqparent, const TQString &caption,
int defaultButtonNumber,
int escapeButtonNumber )
{
- return textBox( tqparent, Critical, caption, text,
+ return textBox( parent, Critical, caption, text,
button0Text, button1Text, button2Text,
defaultButtonNumber, escapeButtonNumber );
}
@@ -2511,7 +2511,7 @@ int TQMessageBox::critical( TQWidget *tqparent, const TQString &caption,
/*!
Displays a simple message box about TQt, with caption \a caption
- and centered over \a tqparent (if \a tqparent is not 0). The message
+ and centered over \a parent (if \a parent is not 0). The message
includes the version number of TQt being used by the application.
This is useful for inclusion in the Help menu of an application.
@@ -2522,9 +2522,9 @@ int TQMessageBox::critical( TQWidget *tqparent, const TQString &caption,
\sa TQApplication::aboutTQt()
*/
-void TQMessageBox::aboutTQt( TQWidget *tqparent, const TQString &caption )
+void TQMessageBox::aboutTQt( TQWidget *parent, const TQString &caption )
{
- TQMessageBox *mb = new TQMessageBox( tqparent, "qt_msgbox_about_qt" );
+ TQMessageBox *mb = new TQMessageBox( parent, "qt_msgbox_about_qt" );
TQ_CHECK_PTR( mb );
mb->setWFlags( TQt::WDestructiveClose );
diff --git a/tqtinterface/qt4/src/dialogs/tqmessagebox.h b/tqtinterface/qt4/src/dialogs/tqmessagebox.h
index c567814..f9b0ac9 100644
--- a/tqtinterface/qt4/src/dialogs/tqmessagebox.h
+++ b/tqtinterface/qt4/src/dialogs/tqmessagebox.h
@@ -65,10 +65,10 @@ public:
enum Icon { NoIcon = 0, Information = 1, Warning = 2, Critical = 3,
Question = 4 };
- TQMessageBox( TQWidget* tqparent=0, const char* name=0 );
+ TQMessageBox( TQWidget* parent=0, const char* name=0 );
TQMessageBox( const TQString& caption, const TQString &text, Icon icon,
int button0, int button1, int button2,
- TQWidget* tqparent=0, const char* name=0, bool modal=TRUE,
+ TQWidget* parent=0, const char* name=0, bool modal=TRUE,
WFlags f=(WFlags)TQt::WStyle_DialogBorder );
~TQMessageBox();
@@ -76,10 +76,10 @@ public:
Retry = 6, Ignore = 7, YesAll = 8, NoAll = 9, ButtonMask = 0xff,
Default = 0x100, Escape = 0x200, FlagMask = 0x300 };
- static int information( TQWidget *tqparent, const TQString &caption,
+ static int information( TQWidget *parent, const TQString &caption,
const TQString& text,
int button0, int button1=0, int button2=0 );
- static int information( TQWidget *tqparent, const TQString &caption,
+ static int information( TQWidget *parent, const TQString &caption,
const TQString& text,
const TQString& button0Text = TQString::null,
const TQString& button1Text = TQString::null,
@@ -87,10 +87,10 @@ public:
int defaultButtonNumber = 0,
int escapeButtonNumber = -1 );
- static int question( TQWidget *tqparent, const TQString &caption,
+ static int question( TQWidget *parent, const TQString &caption,
const TQString& text,
int button0, int button1=0, int button2=0 );
- static int question( TQWidget *tqparent, const TQString &caption,
+ static int question( TQWidget *parent, const TQString &caption,
const TQString& text,
const TQString& button0Text = TQString::null,
const TQString& button1Text = TQString::null,
@@ -98,10 +98,10 @@ public:
int defaultButtonNumber = 0,
int escapeButtonNumber = -1 );
- static int warning( TQWidget *tqparent, const TQString &caption,
+ static int warning( TQWidget *parent, const TQString &caption,
const TQString& text,
int button0, int button1, int button2=0 );
- static int warning( TQWidget *tqparent, const TQString &caption,
+ static int warning( TQWidget *parent, const TQString &caption,
const TQString& text,
const TQString& button0Text = TQString::null,
const TQString& button1Text = TQString::null,
@@ -109,10 +109,10 @@ public:
int defaultButtonNumber = 0,
int escapeButtonNumber = -1 );
- static int critical( TQWidget *tqparent, const TQString &caption,
+ static int critical( TQWidget *parent, const TQString &caption,
const TQString& text,
int button0, int button1, int button2=0 );
- static int critical( TQWidget *tqparent, const TQString &caption,
+ static int critical( TQWidget *parent, const TQString &caption,
const TQString& text,
const TQString& button0Text = TQString::null,
const TQString& button1Text = TQString::null,
@@ -120,18 +120,18 @@ public:
int defaultButtonNumber = 0,
int escapeButtonNumber = -1 );
- static void about( TQWidget *tqparent, const TQString &caption,
+ static void about( TQWidget *parent, const TQString &caption,
const TQString& text );
- static void aboutTQt( TQWidget *tqparent,
+ static void aboutTQt( TQWidget *parent,
const TQString& caption=TQString::null );
/* OBSOLETE */
static int message( const TQString &caption,
const TQString& text,
const TQString& buttonText=TQString::null,
- TQWidget *tqparent=0, const char * =0 ) {
- return TQMessageBox::information( tqparent, caption, text,
+ TQWidget *parent=0, const char * =0 ) {
+ return TQMessageBox::information( parent, caption, text,
buttonText.isEmpty()
? tqtr("OK") : buttonText ) == 0;
}
@@ -141,8 +141,8 @@ public:
const TQString& text,
const TQString& yesButtonText=TQString::null,
const TQString& noButtonText=TQString::null,
- TQWidget *tqparent=0, const char * = 0 ) {
- return TQMessageBox::information( tqparent, caption, text,
+ TQWidget *parent=0, const char * = 0 ) {
+ return TQMessageBox::information( parent, caption, text,
yesButtonText.isEmpty()
? tqtr("OK") : yesButtonText,
noButtonText ) == 0;
diff --git a/tqtinterface/qt4/src/dialogs/tqprintdialog.cpp b/tqtinterface/qt4/src/dialogs/tqprintdialog.cpp
index d4f2472..2050c82 100644
--- a/tqtinterface/qt4/src/dialogs/tqprintdialog.cpp
+++ b/tqtinterface/qt4/src/dialogs/tqprintdialog.cpp
@@ -93,8 +93,8 @@
class TQPrintDialogSpinBox : public TQSpinBox
{
public:
- TQPrintDialogSpinBox(int min, int max, int steps, TQWidget *tqparent, const char *name)
- : TQSpinBox(min, max, steps, tqparent, name)
+ TQPrintDialogSpinBox(int min, int max, int steps, TQWidget *parent, const char *name)
+ : TQSpinBox(min, max, steps, parent, name)
{}
void interpretText()
@@ -856,11 +856,11 @@ static void qpd_cleanup_globaldialog()
/*! Constructs a new modal printer dialog that configures \a prn and is a
- child of \a tqparent named \a name.
+ child of \a parent named \a name.
*/
-TQPrintDialog::TQPrintDialog( TQPrinter *prn, TQWidget *tqparent, const char *name )
- : TQDialog( tqparent, name, TRUE )
+TQPrintDialog::TQPrintDialog( TQPrinter *prn, TQWidget *parent, const char *name )
+ : TQDialog( parent, name, TRUE )
{
d = new TQPrintDialogPrivate;
d->numCopies = 1;
diff --git a/tqtinterface/qt4/src/dialogs/tqprintdialog.h b/tqtinterface/qt4/src/dialogs/tqprintdialog.h
index b1d8014..48c89ef 100644
--- a/tqtinterface/qt4/src/dialogs/tqprintdialog.h
+++ b/tqtinterface/qt4/src/dialogs/tqprintdialog.h
@@ -56,7 +56,7 @@ class TQ_EXPORT TQPrintDialog : public TQDialog
Q_OBJECT
TQ_OBJECT
public:
- TQPrintDialog( TQPrinter *, TQWidget* tqparent=0, const char* name=0 );
+ TQPrintDialog( TQPrinter *, TQWidget* parent=0, const char* name=0 );
~TQPrintDialog();
static bool getPrinterSetup( TQPrinter *, TQWidget* = 0 );
diff --git a/tqtinterface/qt4/src/dialogs/tqprogressdialog.cpp b/tqtinterface/qt4/src/dialogs/tqprogressdialog.cpp
index 74bf69f..6e5da3f 100644
--- a/tqtinterface/qt4/src/dialogs/tqprogressdialog.cpp
+++ b/tqtinterface/qt4/src/dialogs/tqprogressdialog.cpp
@@ -68,10 +68,10 @@ static const int spacing = 4;
class TQProgressDialogData
{
public:
- TQProgressDialogData( TQProgressDialog* that, TQWidget* tqparent,
+ TQProgressDialogData( TQProgressDialog* that, TQWidget* parent,
const TQString& labelText,
int totalSteps ) :
- creator( tqparent ),
+ creator( parent ),
label( new TQLabel(labelText,that,"label") ),
cancel( 0 ),
bar( new TQProgressBar(totalSteps,that,"bar") ),
@@ -163,8 +163,8 @@ progress.setProgress( numFiles );
canceled() signal to a slot that stops the operation, and call \l
setProgress() at intervals. For example:
\code
-Operation::Operation( TQObject *tqparent = 0 )
- : TQObject( tqparent ), steps( 0 )
+Operation::Operation( TQObject *parent = 0 )
+ : TQObject( parent ), steps( 0 )
{
pd = new TQProgressDialog( "Operation in progress.", "Cancel", 100 );
connect( pd, TQT_SIGNAL(canceled()), this, TQT_SLOT(cancel()) );
@@ -236,7 +236,7 @@ TQProgressBar *TQProgressDialog::bar() const
\i The total number of steps is 100.
\endlist
- The \a creator argument is the widget to use as the dialog's tqparent.
+ The \a creator argument is the widget to use as the dialog's parent.
The \a name, \a modal, and the widget flags, \a f, are
passed to the TQDialog::TQDialog() constructor. If \a modal is FALSE (the
default), you must have an event loop proceeding for any redrawing
@@ -269,7 +269,7 @@ TQProgressDialog::TQProgressDialog( TQWidget *creator, const char *name,
processed call setProgress(1), setProgress(2), etc., finally
calling setProgress(50) after examining the last file.
- The \a creator argument is the widget to use as the dialog's tqparent.
+ The \a creator argument is the widget to use as the dialog's parent.
The \a name, \a modal, and widget flags, \a f, are passed to the
TQDialog::TQDialog() constructor. If \a modal is FALSE (the default),
you will must have an event loop proceeding for any redrawing of
diff --git a/tqtinterface/qt4/src/dialogs/tqprogressdialog.h b/tqtinterface/qt4/src/dialogs/tqprogressdialog.h
index 96ed191..6c5dbe7 100644
--- a/tqtinterface/qt4/src/dialogs/tqprogressdialog.h
+++ b/tqtinterface/qt4/src/dialogs/tqprogressdialog.h
@@ -67,10 +67,10 @@ class TQ_EXPORT TQProgressDialog : public TQDialog
Q_PROPERTY( TQString labelText READ labelText WRITE setLabelText )
public:
- TQProgressDialog( TQWidget* tqparent=0, const char* name=0, bool modal=FALSE,
+ TQProgressDialog( TQWidget* parent=0, const char* name=0, bool modal=FALSE,
WFlags f=0 );
TQProgressDialog( const TQString& labelText, const TQString &cancelButtonText,
- int totalSteps, TQWidget* tqparent=0, const char* name=0,
+ int totalSteps, TQWidget* parent=0, const char* name=0,
bool modal=FALSE, WFlags f=0 );
~TQProgressDialog();
diff --git a/tqtinterface/qt4/src/dialogs/tqsemimodal.h b/tqtinterface/qt4/src/dialogs/tqsemimodal.h
index fafa0af..d114b90 100644
--- a/tqtinterface/qt4/src/dialogs/tqsemimodal.h
+++ b/tqtinterface/qt4/src/dialogs/tqsemimodal.h
@@ -52,8 +52,8 @@ class TQ_EXPORT TQSemiModal : public TQDialog
Q_OBJECT
TQ_OBJECT
public:
- TQSemiModal( TQWidget* tqparent=0, const char* name=0, bool modal=FALSE, WFlags f=0 )
- : TQDialog( tqparent, name, modal, f ) { }
+ TQSemiModal( TQWidget* parent=0, const char* name=0, bool modal=FALSE, WFlags f=0 )
+ : TQDialog( parent, name, modal, f ) { }
private: // Disabled copy constructor and operator=
#if defined(TQ_DISABLE_COPY)
diff --git a/tqtinterface/qt4/src/dialogs/tqtabdialog.cpp b/tqtinterface/qt4/src/dialogs/tqtabdialog.cpp
index 66b9a64..fd91293 100644
--- a/tqtinterface/qt4/src/dialogs/tqtabdialog.cpp
+++ b/tqtinterface/qt4/src/dialogs/tqtabdialog.cpp
@@ -178,13 +178,13 @@ TQTabDialogPrivate::TQTabDialogPrivate()
/*!
Constructs a TQTabDialog with only an OK button.
- The \a tqparent, \a name, \a modal and widget flag, \a f, arguments
+ The \a parent, \a name, \a modal and widget flag, \a f, arguments
are passed on to the TQDialog constructor.
*/
-TQTabDialog::TQTabDialog( TQWidget *tqparent, const char *name, bool modal,
+TQTabDialog::TQTabDialog( TQWidget *parent, const char *name, bool modal,
WFlags f )
- : TQDialog( tqparent, name, modal, f )
+ : TQDialog( parent, name, modal, f )
{
d = new TQTabDialogPrivate;
TQ_CHECK_PTR( d );
diff --git a/tqtinterface/qt4/src/dialogs/tqtabdialog.h b/tqtinterface/qt4/src/dialogs/tqtabdialog.h
index d485dfe..6e98d16 100644
--- a/tqtinterface/qt4/src/dialogs/tqtabdialog.h
+++ b/tqtinterface/qt4/src/dialogs/tqtabdialog.h
@@ -57,7 +57,7 @@ class TQ_EXPORT TQTabDialog : public TQDialog
Q_OBJECT
TQ_OBJECT
public:
- TQTabDialog( TQWidget* tqparent=0, const char* name=0, bool modal=FALSE,
+ TQTabDialog( TQWidget* parent=0, const char* name=0, bool modal=FALSE,
WFlags f=0 );
~TQTabDialog();
diff --git a/tqtinterface/qt4/src/dialogs/tqwizard.cpp b/tqtinterface/qt4/src/dialogs/tqwizard.cpp
index 93c3173..4e3f592 100644
--- a/tqtinterface/qt4/src/dialogs/tqwizard.cpp
+++ b/tqtinterface/qt4/src/dialogs/tqwizard.cpp
@@ -157,13 +157,13 @@ public:
/*!
- Constructs an empty wizard dialog. The \a tqparent, \a name, \a
+ Constructs an empty wizard dialog. The \a parent, \a name, \a
modal and \a f arguments are passed to the TQDialog constructor.
*/
-TQWizard::TQWizard( TQWidget *tqparent, const char *name, bool modal,
+TQWizard::TQWizard( TQWidget *parent, const char *name, bool modal,
WFlags f )
- : TQDialog( tqparent, name, modal, f )
+ : TQDialog( parent, name, modal, f )
{
d = new TQWizardPrivate();
d->current = 0; // not quite true, but...
diff --git a/tqtinterface/qt4/src/dialogs/tqwizard.h b/tqtinterface/qt4/src/dialogs/tqwizard.h
index 89f69f8..f3a5fad 100644
--- a/tqtinterface/qt4/src/dialogs/tqwizard.h
+++ b/tqtinterface/qt4/src/dialogs/tqwizard.h
@@ -58,7 +58,7 @@ class TQ_EXPORT TQWizard : public TQDialog
Q_PROPERTY( TQFont titleFont READ titleFont WRITE setTitleFont )
public:
- TQWizard( TQWidget* tqparent=0, const char* name=0, bool modal=FALSE,
+ TQWizard( TQWidget* parent=0, const char* name=0, bool modal=FALSE,
WFlags f=0 );
~TQWizard();