diff --git a/client/config/crystalconfig.cc b/client/config/crystalconfig.cc index a9347ba..cc16e3e 100644 --- a/client/config/crystalconfig.cc +++ b/client/config/crystalconfig.cc @@ -45,12 +45,12 @@ #include "crystalconfig.h" -CrystalConfig::CrystalConfig(KConfig*, TQWidget* tqparent) - : TQObject(tqparent), config_(0), dialog_(0) +CrystalConfig::CrystalConfig(KConfig*, TQWidget* parent) + : TQObject(parent), config_(0), dialog_(0) { config_ = new KConfig("kwincrystalrc"); - dialog_ = new ConfigDialog(tqparent); + dialog_ = new ConfigDialog(parent); dialog_->show(); connect(dialog_->titlealign, TQT_SIGNAL(clicked(int)),this, TQT_SLOT(selectionChanged(int))); @@ -376,8 +376,8 @@ void CrystalConfig::defaults() extern "C" { - TQObject* allocate_config(KConfig* config, TQWidget* tqparent) { - return (new CrystalConfig(config, tqparent)); + TQObject* allocate_config(KConfig* config, TQWidget* parent) { + return (new CrystalConfig(config, parent)); } } diff --git a/client/config/crystalconfig.h b/client/config/crystalconfig.h index 24e496e..f4ea47b 100644 --- a/client/config/crystalconfig.h +++ b/client/config/crystalconfig.h @@ -37,7 +37,7 @@ class CrystalConfig : public TQObject Q_OBJECT TQ_OBJECT public: - CrystalConfig(KConfig* config, TQWidget* tqparent); + CrystalConfig(KConfig* config, TQWidget* parent); ~CrystalConfig(); signals: diff --git a/client/crystalbutton.cpp b/client/crystalbutton.cpp index d38cbee..51d366e 100644 --- a/client/crystalbutton.cpp +++ b/client/crystalbutton.cpp @@ -29,10 +29,10 @@ #include "imageholder.h" -CrystalButton::CrystalButton(CrystalClient *tqparent, const char *name, +CrystalButton::CrystalButton(CrystalClient *parent, const char *name, const TQString& tip, ButtonType type, ButtonImage *vimage) -: TQButton(tqparent->widget(), name), client_(tqparent), type_(type), image(vimage), lastmouse_(0) +: TQButton(parent->widget(), name), client_(parent), type_(type), image(vimage), lastmouse_(0) { setBackgroundMode(NoBackground); resetSize(false); diff --git a/client/crystalbutton.h b/client/crystalbutton.h index ad2cb95..84f967e 100644 --- a/client/crystalbutton.h +++ b/client/crystalbutton.h @@ -34,7 +34,7 @@ class CrystalButton : public TQButton TQ_OBJECT public: - CrystalButton(CrystalClient *tqparent=0, const char *name=0, + CrystalButton(CrystalClient *parent=0, const char *name=0, const TQString &tip=NULL, ButtonType type=ButtonHelp, ButtonImage *vimage=NULL); diff --git a/client/crystalclient.cc b/client/crystalclient.cc index 6b8a944..8beedd7 100644 --- a/client/crystalclient.cc +++ b/client/crystalclient.cc @@ -818,40 +818,40 @@ void CrystalClient::updateMask() int cornersFlag = ::factory->roundCorners; int r(width()); int b(height()); - TQRegion tqmask; + TQRegion mask; - tqmask=TQRegion(widget()->rect()); + mask=TQRegion(widget()->rect()); // Remove top-left corner. if(cornersFlag & TOP_LEFT) { - tqmask -= TQRegion(0, 0, 5, 1); - tqmask -= TQRegion(0, 1, 3, 1); - tqmask -= TQRegion(0, 2, 2, 1); - tqmask -= TQRegion(0, 3, 1, 2); + mask -= TQRegion(0, 0, 5, 1); + mask -= TQRegion(0, 1, 3, 1); + mask -= TQRegion(0, 2, 2, 1); + mask -= TQRegion(0, 3, 1, 2); } // Remove top-right corner. if(cornersFlag & TOP_RIGHT) { - tqmask -= TQRegion(r - 5, 0, 5, 1); - tqmask -= TQRegion(r - 3, 1, 3, 1); - tqmask -= TQRegion(r - 2, 2, 2, 1); - tqmask -= TQRegion(r - 1, 3, 1, 2); + mask -= TQRegion(r - 5, 0, 5, 1); + mask -= TQRegion(r - 3, 1, 3, 1); + mask -= TQRegion(r - 2, 2, 2, 1); + mask -= TQRegion(r - 1, 3, 1, 2); } // Remove bottom-left corner. if(cornersFlag & BOT_LEFT) { - tqmask -= TQRegion(0, b - 5, 1, 3); - tqmask -= TQRegion(0, b - 3, 2, 1); - tqmask -= TQRegion(0, b - 2, 3, 1); - tqmask -= TQRegion(0, b - 1, 5, 1); + mask -= TQRegion(0, b - 5, 1, 3); + mask -= TQRegion(0, b - 3, 2, 1); + mask -= TQRegion(0, b - 2, 3, 1); + mask -= TQRegion(0, b - 1, 5, 1); } // Remove bottom-right corner. if(cornersFlag & BOT_RIGHT) { - tqmask -= TQRegion(r - 5, b - 1, 5, 1); - tqmask -= TQRegion(r - 3, b - 2, 3, 1); - tqmask -= TQRegion(r - 2, b - 3, 2, 1); - tqmask -= TQRegion(r - 1, b - 5, 1, 2); + mask -= TQRegion(r - 5, b - 1, 5, 1); + mask -= TQRegion(r - 3, b - 2, 3, 1); + mask -= TQRegion(r - 2, b - 3, 2, 1); + mask -= TQRegion(r - 1, b - 5, 1, 2); } - setMask(tqmask); + setMask(mask); } CrystalButton* CrystalClient::addButtons(TQBoxLayout *tqlayout, const TQString& s) @@ -1147,19 +1147,19 @@ bool CrystalClient::eventFilter(TQObject *obj, TQEvent *e) void CrystalClient::ClientWindows(Window* v_frame,Window* v_wrapper,Window *v_client) { - Window root=0,frame=0,wrapper=0,client=0,tqparent=0,*tqchildren=NULL; + Window root=0,frame=0,wrapper=0,client=0,parent=0,*tqchildren=NULL; uint numc; if (v_frame) *v_frame=0; if (v_wrapper) *v_wrapper=0; if (v_client) *v_client=0; - // Our Deco is the child of a frame, get our tqparent + // Our Deco is the child of a frame, get our parent if (XQueryTree(qt_xdisplay(),widget()->winId(),&root,&frame,&tqchildren,&numc) == 0) return; if (tqchildren!=NULL)XFree(tqchildren); tqchildren=NULL; // frame has two tqchildren, us and a wrapper, get the wrapper - if (XQueryTree(qt_xdisplay(),frame,&root,&tqparent,&tqchildren,&numc)==0) + if (XQueryTree(qt_xdisplay(),frame,&root,&parent,&tqchildren,&numc)==0) return; for (uint i=0;i