diff options
Diffstat (limited to 'experimental/tqtinterface/qt4/src/dialogs/tqcolordialog.cpp')
-rw-r--r-- | experimental/tqtinterface/qt4/src/dialogs/tqcolordialog.cpp | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/experimental/tqtinterface/qt4/src/dialogs/tqcolordialog.cpp b/experimental/tqtinterface/qt4/src/dialogs/tqcolordialog.cpp index cd1347694..d99c63f4b 100644 --- a/experimental/tqtinterface/qt4/src/dialogs/tqcolordialog.cpp +++ b/experimental/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 |