summaryrefslogtreecommitdiffstats
path: root/src/gui/kdeext
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/kdeext')
-rw-r--r--src/gui/kdeext/KLedButton.cpp8
-rw-r--r--src/gui/kdeext/KLedButton.h4
-rw-r--r--src/gui/kdeext/KStartupLogo.cpp4
-rw-r--r--src/gui/kdeext/KStartupLogo.h2
-rw-r--r--src/gui/kdeext/RGLed.cpp14
-rw-r--r--src/gui/kdeext/klearlook.cpp52
6 files changed, 42 insertions, 42 deletions
diff --git a/src/gui/kdeext/KLedButton.cpp b/src/gui/kdeext/KLedButton.cpp
index 03945b0..3e2f460 100644
--- a/src/gui/kdeext/KLedButton.cpp
+++ b/src/gui/kdeext/KLedButton.cpp
@@ -36,13 +36,13 @@
namespace Rosegarden
{
-KLedButton::KLedButton(const TQColor &col, TQWidget *tqparent, const char *name)
- : KLed( col, tqparent, name )
+KLedButton::KLedButton(const TQColor &col, TQWidget *parent, const char *name)
+ : KLed( col, parent, name )
{}
KLedButton::KLedButton(const TQColor& col, KLed::State st, KLed::Look look,
- KLed::Shape tqshape, TQWidget *tqparent, const char *name)
- : KLed( col, st, look, tqshape, tqparent, name )
+ KLed::Shape tqshape, TQWidget *parent, const char *name)
+ : KLed( col, st, look, tqshape, parent, name )
{}
KLedButton::~KLedButton()
diff --git a/src/gui/kdeext/KLedButton.h b/src/gui/kdeext/KLedButton.h
index 3bd8c5c..197f96b 100644
--- a/src/gui/kdeext/KLedButton.h
+++ b/src/gui/kdeext/KLedButton.h
@@ -51,9 +51,9 @@ class KLedButton : public KLed {
Q_OBJECT
TQ_OBJECT
public:
- KLedButton(const TQColor &col=TQt::green, TQWidget *tqparent=0, const char *name=0);
+ KLedButton(const TQColor &col=TQt::green, TQWidget *parent=0, const char *name=0);
KLedButton(const TQColor& col, KLed::State st, KLed::Look look, KLed::Shape tqshape,
- TQWidget *tqparent=0, const char *name=0);
+ TQWidget *parent=0, const char *name=0);
~KLedButton();
signals:
diff --git a/src/gui/kdeext/KStartupLogo.cpp b/src/gui/kdeext/KStartupLogo.cpp
index 689c657..f368d96 100644
--- a/src/gui/kdeext/KStartupLogo.cpp
+++ b/src/gui/kdeext/KStartupLogo.cpp
@@ -36,8 +36,8 @@
#include "KStartupLogo.h"
#include "misc/Debug.h"
-KStartupLogo::KStartupLogo(TQWidget * tqparent, const char *name)
- : TQWidget(tqparent, name,
+KStartupLogo::KStartupLogo(TQWidget * parent, const char *name)
+ : TQWidget(parent, name,
WStyle_Customize |
WStyle_Splash
),
diff --git a/src/gui/kdeext/KStartupLogo.h b/src/gui/kdeext/KStartupLogo.h
index 154a749..04e6f73 100644
--- a/src/gui/kdeext/KStartupLogo.h
+++ b/src/gui/kdeext/KStartupLogo.h
@@ -47,7 +47,7 @@ public slots:
protected:
- KStartupLogo(TQWidget *tqparent=0, const char *name=0);
+ KStartupLogo(TQWidget *parent=0, const char *name=0);
~KStartupLogo();
virtual void paintEvent(TQPaintEvent*);
diff --git a/src/gui/kdeext/RGLed.cpp b/src/gui/kdeext/RGLed.cpp
index 9d34dcb..3ffa38a 100644
--- a/src/gui/kdeext/RGLed.cpp
+++ b/src/gui/kdeext/RGLed.cpp
@@ -81,7 +81,7 @@
*
* Revision 1.14 2000/06/03 01:04:42 gehrmab
* * Made drawing routines available for overriding
- * * Added a tqparent/name constructor
+ * * Added a parent/name constructor
* * Propertyfication
*
* Revision 1.13 2000/05/08 19:38:49 sschiman
@@ -156,8 +156,8 @@ class KLed::KLedPrivate
-KLed::KLed(TQWidget *tqparent, const char *name)
- : TQWidget( tqparent, name),
+KLed::KLed(TQWidget *parent, const char *name)
+ : TQWidget( parent, name),
led_state(On),
led_look(Raised),
led_tqshape(Circular)
@@ -173,8 +173,8 @@ KLed::KLed(TQWidget *tqparent, const char *name)
}
-KLed::KLed(const TQColor& col, TQWidget *tqparent, const char *name)
- : TQWidget( tqparent, name),
+KLed::KLed(const TQColor& col, TQWidget *parent, const char *name)
+ : TQWidget( parent, name),
led_state(On),
led_look(Raised),
led_tqshape(Circular)
@@ -190,8 +190,8 @@ KLed::KLed(const TQColor& col, TQWidget *tqparent, const char *name)
}
KLed::KLed(const TQColor& col, KLed::State state,
- KLed::Look look, KLed::Shape tqshape, TQWidget *tqparent, const char *name )
- : TQWidget(tqparent, name),
+ KLed::Look look, KLed::Shape tqshape, TQWidget *parent, const char *name )
+ : TQWidget(parent, name),
led_state(state),
led_look(look),
led_tqshape(tqshape)
diff --git a/src/gui/kdeext/klearlook.cpp b/src/gui/kdeext/klearlook.cpp
index 17d37ad..adfe33e 100644
--- a/src/gui/kdeext/klearlook.cpp
+++ b/src/gui/kdeext/klearlook.cpp
@@ -664,38 +664,38 @@ void KlearlookStyle::unPolish( TQWidget *widget ) {
}
bool KlearlookStyle::eventFilter( TQObject *object, TQEvent *event ) {
- if ( object->tqparent() && 0 == qstrcmp( object->name(), kdeToolbarWidget ) ) {
+ if ( object->parent() && 0 == qstrcmp( object->name(), kdeToolbarWidget ) ) {
// Draw background for custom widgets in the toolbar that have specified a "kde toolbar widget" name.
if ( TQEvent::Paint == event->type() ) {
TQWidget * widget = TQT_TQWIDGET( object ),
- *tqparent = TQT_TQWIDGET( object->tqparent() );
+ *parent = TQT_TQWIDGET( object->parent() );
#ifdef TQTC_GRADIENT_TOOLBARS_AND_MENUBARS
// Find the top-level toolbar of this widget, since it may be nested in other
// widgets that are on the toolbar.
int x_offset = widget->x(),
y_offset = widget->y();
- while ( tqparent && tqparent->tqparent() && !qstrcmp( tqparent->name(), kdeToolbarWidget ) ) {
- x_offset += tqparent->x();
- y_offset += tqparent->y();
- tqparent = TQT_TQWIDGET( tqparent->tqparent() );
+ while ( parent && parent->parent() && !qstrcmp( parent->name(), kdeToolbarWidget ) ) {
+ x_offset += parent->x();
+ y_offset += parent->y();
+ parent = TQT_TQWIDGET( parent->parent() );
}
- TQRect pr( tqparent->rect() );
+ TQRect pr( parent->rect() );
bool horiz_grad = pr.width() < pr.height();
- // Check if the tqparent is a TQToolbar, and use its orientation, else guess.
- TQToolBar *toolbar = dynamic_cast<TQToolBar*>( tqparent );
+ // Check if the parent is a TQToolbar, and use its orientation, else guess.
+ TQToolBar *toolbar = dynamic_cast<TQToolBar*>( parent );
if ( toolbar )
horiz_grad = toolbar->orientation() == TQt::Vertical;
- drawBevelGradient( tqparent->tqcolorGroup().background(), true, 1, &TQPainter( widget ),
+ drawBevelGradient( parent->tqcolorGroup().background(), true, 1, &TQPainter( widget ),
TQRect( x_offset, y_offset, pr.width(), pr.height() ),
horiz_grad, SHADE_BAR_LIGHT, SHADE_BAR_DARK );
#else
- TQPainter( widget ).fillRect( widget->rect(), tqparent->tqcolorGroup().background() );
+ TQPainter( widget ).fillRect( widget->rect(), parent->tqcolorGroup().background() );
#endif
return false; // Now draw the contents
@@ -1478,8 +1478,8 @@ void KlearlookStyle::tqdrawPrimitive( TQ_PrimitiveElement pe, TQPainter *p, cons
: lv->tqpalette().color( TQPalette::Disabled, TQColorGroup::Text ) ) );
if ( flags & Style_Selected && !lv->rootIsDecorated() &&
- !( ( item->tqparent() && 1 == item->tqparent() ->rtti() &&
- TQCheckListItem::Controller == ( ( TQCheckListItem* ) item->tqparent() ) ->type() ) )) {
+ !( ( item->parent() && 1 == item->parent() ->rtti() &&
+ TQCheckListItem::Controller == ( ( TQCheckListItem* ) item->parent() ) ->type() ) )) {
p->fillRect( 0, 0, x + marg + w + 4, item->height(),
cg.brush( TQColorGroup::Highlight ) );
if ( item->isEnabled() )
@@ -1504,9 +1504,9 @@ void KlearlookStyle::tqdrawPrimitive( TQ_PrimitiveElement pe, TQPainter *p, cons
if ( flags & Style_Selected ) {
flags -= Style_Selected;
if ( !lv->rootIsDecorated() &&
- !( ( item->tqparent() && 1 == item->tqparent() ->rtti() &&
+ !( ( item->parent() && 1 == item->parent() ->rtti() &&
TQCheckListItem::Controller ==
- ( ( TQCheckListItem* ) item->tqparent() ) ->type() ) ) ) {
+ ( ( TQCheckListItem* ) item->parent() ) ->type() ) ) ) {
p->fillRect( 0, 0, r.x() + lv->itemMargin() + r.width() + 4, item->height(),
cg.brush( TQColorGroup::Highlight ) );
if ( item->isEnabled() ) {
@@ -2212,8 +2212,8 @@ void KlearlookStyle::tqdrawControl(
bool cornerWidget = false,
firstTab = 0 == tb->indexOf( data.tab() ->identifier() );
- if ( ::tqqt_cast<const TQTabWidget *>( tb->tqparent() ) ) {
- const TQTabWidget * tw = ( const TQTabWidget* ) tb->tqparent();
+ if ( ::tqqt_cast<const TQTabWidget *>( tb->parent() ) ) {
+ const TQTabWidget * tw = ( const TQTabWidget* ) tb->parent();
// is there a corner widget in the (top) left edge?
if ( tw->cornerWidget( TQt::TopLeft ) )
@@ -3127,22 +3127,22 @@ void KlearlookStyle::tqdrawComplexControl(
!toolbutton->parentWidget() ->backgroundPixmap() ->isNull() ) {
p->drawTiledPixmap( r,
*( toolbutton->parentWidget() ->backgroundPixmap() ), toolbutton->pos() );
- } else if ( widget->tqparent() ) {
- if ( ::tqqt_cast<const TQToolBar *>( widget->tqparent() ) ) {
- TQToolBar * tqparent = ( TQToolBar* ) widget->tqparent();
+ } else if ( widget->parent() ) {
+ if ( ::tqqt_cast<const TQToolBar *>( widget->parent() ) ) {
+ TQToolBar * parent = ( TQToolBar* ) widget->parent();
#ifdef TQTC_GRADIENT_TOOLBARS_AND_MENUBARS
if ( APPEARANCE_FLAT != appearance )
drawBevelGradient( cg.background(), true, 0,
- p, tqparent->rect(), true, SHADE_BAR_LIGHT, SHADE_BAR_DARK );
+ p, parent->rect(), true, SHADE_BAR_LIGHT, SHADE_BAR_DARK );
else
#endif
- p->fillRect( tqparent->rect(), cg.background() );
- } else if ( widget->tqparent() ->inherits( "TQToolBarExtensionWidget" ) ) {
- TQWidget * tqparent = ( TQWidget* ) widget->tqparent();
- TQToolBar *toolbar = ( TQToolBar* ) tqparent->tqparent();
+ p->fillRect( parent->rect(), cg.background() );
+ } else if ( widget->parent() ->inherits( "TQToolBarExtensionWidget" ) ) {
+ TQWidget * parent = ( TQWidget* ) widget->parent();
+ TQToolBar *toolbar = ( TQToolBar* ) parent->parent();
#ifdef TQTC_GRADIENT_TOOLBARS_AND_MENUBARS
@@ -3555,7 +3555,7 @@ TQSize KlearlookStyle::tqsizeFromContents( ContentsType t,
}
case CT_ToolButton: {
- if ( widget->tqparent() && ::tqqt_cast<TQToolBar*>( widget->tqparent() ) )
+ if ( widget->parent() && ::tqqt_cast<TQToolBar*>( widget->parent() ) )
return TQSize( s.width() + 2 * 4, s.height() + 2 * 4 );
else {
return KStyle::tqsizeFromContents ( t, widget, s, opt );