summaryrefslogtreecommitdiffstats
path: root/src/newui
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commit32b67ac0690de411b26b1d5e715b188c27442248 (patch)
tree43167816a3df6b3a877d71c9a7963ed270dcc8c9 /src/newui
parent330c33ab6f97b279737bf9527c9add7bb1475450 (diff)
downloadtdevelop-32b67ac0690de411b26b1d5e715b188c27442248.tar.gz
tdevelop-32b67ac0690de411b26b1d5e715b188c27442248.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/newui')
-rw-r--r--src/newui/button.cpp6
-rw-r--r--src/newui/button.h2
-rw-r--r--src/newui/buttonbar.cpp8
-rw-r--r--src/newui/buttonbar.h4
-rw-r--r--src/newui/ddockwindow.cpp8
-rw-r--r--src/newui/ddockwindow.h2
-rw-r--r--src/newui/dmainwindow.cpp4
-rw-r--r--src/newui/dmainwindow.h2
-rw-r--r--src/newui/docksplitter.cpp4
-rw-r--r--src/newui/docksplitter.h2
-rw-r--r--src/newui/dtabwidget.cpp4
-rw-r--r--src/newui/dtabwidget.h2
12 files changed, 24 insertions, 24 deletions
diff --git a/src/newui/button.cpp b/src/newui/button.cpp
index 1e28a827..610f545e 100644
--- a/src/newui/button.cpp
+++ b/src/newui/button.cpp
@@ -39,10 +39,10 @@
namespace Ideal {
-Button::Button(ButtonBar *tqparent, const TQString text, const TQIconSet &icon,
+Button::Button(ButtonBar *parent, const TQString text, const TQIconSet &icon,
const TQString &description)
- :TQPushButton(icon, text, tqparent), m_buttonBar(tqparent), m_description(description),
- m_place(tqparent->place()), m_realText(text), m_realIconSet(icon)
+ :TQPushButton(icon, text, parent), m_buttonBar(parent), m_description(description),
+ m_place(parent->place()), m_realText(text), m_realIconSet(icon)
{
hide();
setFlat(true);
diff --git a/src/newui/button.h b/src/newui/button.h
index 3dbc63ca..ecb4d2ab 100644
--- a/src/newui/button.h
+++ b/src/newui/button.h
@@ -41,7 +41,7 @@ class Button : public TQPushButton {
Q_OBJECT
TQ_OBJECT
public:
- Button(ButtonBar *tqparent, const TQString text, const TQIconSet &icon = TQIconSet(),
+ Button(ButtonBar *parent, const TQString text, const TQIconSet &icon = TQIconSet(),
const TQString &description = TQString());
/**Sets the description used as a tooltip.*/
diff --git a/src/newui/buttonbar.cpp b/src/newui/buttonbar.cpp
index 55f55fb4..efc504a7 100644
--- a/src/newui/buttonbar.cpp
+++ b/src/newui/buttonbar.cpp
@@ -32,8 +32,8 @@ namespace Ideal {
//ButtonLayout class
-ButtonLayout::ButtonLayout(ButtonBar *tqparent, Direction d, int margin, int spacing, const char *name)
- :TQBoxLayout(tqparent, d, margin, spacing, name), m_buttonBar(tqparent)
+ButtonLayout::ButtonLayout(ButtonBar *parent, Direction d, int margin, int spacing, const char *name)
+ :TQBoxLayout(parent, d, margin, spacing, name), m_buttonBar(parent)
{
}
@@ -62,8 +62,8 @@ TQSize ButtonLayout::tqminimumSize() const
//ButtonBar class
-ButtonBar::ButtonBar(Place place, ButtonMode mode, TQWidget *tqparent, const char *name)
- :TQWidget(tqparent, name), m_place(place), l(0), m_shrinked(false), m_autoResize(true)
+ButtonBar::ButtonBar(Place place, ButtonMode mode, TQWidget *parent, const char *name)
+ :TQWidget(parent, name), m_place(place), l(0), m_shrinked(false), m_autoResize(true)
{
switch (m_place)
{
diff --git a/src/newui/buttonbar.h b/src/newui/buttonbar.h
index f8f13868..156b2c6d 100644
--- a/src/newui/buttonbar.h
+++ b/src/newui/buttonbar.h
@@ -37,7 +37,7 @@ class ButtonBar;
Overrides tqminimumSize method to allow shrinking button bar buttons.*/
class ButtonLayout: public TQBoxLayout{
public:
- ButtonLayout(ButtonBar *tqparent, Direction d, int margin = 0, int spacing = -1, const char * name = 0);
+ ButtonLayout(ButtonBar *parent, Direction d, int margin = 0, int spacing = -1, const char * name = 0);
virtual TQSize tqminimumSize() const;
@@ -56,7 +56,7 @@ class ButtonBar : public TQWidget {
TQ_OBJECT
public:
ButtonBar(Place place, ButtonMode mode = IconsAndText,
- TQWidget *tqparent = 0, const char *name = 0);
+ TQWidget *parent = 0, const char *name = 0);
virtual ~ButtonBar();
/**Adds a button to the bar.*/
diff --git a/src/newui/ddockwindow.cpp b/src/newui/ddockwindow.cpp
index 8394b00f..bf7cc627 100644
--- a/src/newui/ddockwindow.cpp
+++ b/src/newui/ddockwindow.cpp
@@ -39,9 +39,9 @@
#include "button.h"
#include "dmainwindow.h"
-DDockWindow::DDockWindow(DMainWindow *tqparent, Position position)
- :TQDockWindow(TQDockWindow::InDock, tqparent), m_position(position), m_visible(false),
- m_mainWindow(tqparent), m_doNotCloseActiveWidget(false), m_toggledButton(0), m_lastContextMenuButton(0)
+DDockWindow::DDockWindow(DMainWindow *parent, Position position)
+ :TQDockWindow(TQDockWindow::InDock, parent), m_position(position), m_visible(false),
+ m_mainWindow(parent), m_doNotCloseActiveWidget(false), m_toggledButton(0), m_lastContextMenuButton(0)
{
setMovingEnabled(false);
setResizeEnabled(true);
@@ -347,7 +347,7 @@ bool DDockWindow::isActive()
else
{
do {
- w = (TQWidget*)w->tqparent();
+ w = (TQWidget*)w->parent();
if (w && (w == toolWidget)) return true;
} while (w);
}
diff --git a/src/newui/ddockwindow.h b/src/newui/ddockwindow.h
index e9850d2f..d98aa375 100644
--- a/src/newui/ddockwindow.h
+++ b/src/newui/ddockwindow.h
@@ -44,7 +44,7 @@ class DDockWindow : public TQDockWindow {
public:
enum Position { Bottom, Left, Right };
- DDockWindow(DMainWindow *tqparent, Position position);
+ DDockWindow(DMainWindow *parent, Position position);
virtual ~DDockWindow();
virtual void setVisible(bool v);
diff --git a/src/newui/dmainwindow.cpp b/src/newui/dmainwindow.cpp
index 68e8883d..32d47244 100644
--- a/src/newui/dmainwindow.cpp
+++ b/src/newui/dmainwindow.cpp
@@ -29,8 +29,8 @@
#include "dtabwidget.h"
#include "docksplitter.h"
-DMainWindow::DMainWindow(TQWidget *tqparent, const char *name)
- :KParts::MainWindow(tqparent, name), m_firstRemoved(false), m_currentWidget(0)
+DMainWindow::DMainWindow(TQWidget *parent, const char *name)
+ :KParts::MainWindow(parent, name), m_firstRemoved(false), m_currentWidget(0)
{
loadSettings();
createToolWindows();
diff --git a/src/newui/dmainwindow.h b/src/newui/dmainwindow.h
index f20cfec9..28e0340f 100644
--- a/src/newui/dmainwindow.h
+++ b/src/newui/dmainwindow.h
@@ -35,7 +35,7 @@ class DMainWindow: public KParts::MainWindow {
Q_OBJECT
TQ_OBJECT
public:
- DMainWindow(TQWidget *tqparent = 0, const char *name = 0);
+ DMainWindow(TQWidget *parent = 0, const char *name = 0);
virtual ~DMainWindow();
/**@return The tool window in given @p position.*/
diff --git a/src/newui/docksplitter.cpp b/src/newui/docksplitter.cpp
index c22f2723..647c5f43 100644
--- a/src/newui/docksplitter.cpp
+++ b/src/newui/docksplitter.cpp
@@ -23,8 +23,8 @@
namespace Ideal {
-DockSplitter::DockSplitter(Qt::Orientation orientation, TQWidget *tqparent, const char *name)
- :TQSplitter(tqparent, name), m_orientation(orientation)
+DockSplitter::DockSplitter(Qt::Orientation orientation, TQWidget *parent, const char *name)
+ :TQSplitter(parent, name), m_orientation(orientation)
{
switch (m_orientation)
{
diff --git a/src/newui/docksplitter.h b/src/newui/docksplitter.h
index c5450b1a..fc66387c 100644
--- a/src/newui/docksplitter.h
+++ b/src/newui/docksplitter.h
@@ -34,7 +34,7 @@ class DockSplitter: public TQSplitter {
Q_OBJECT
TQ_OBJECT
public:
- DockSplitter(Qt::Orientation orientation, TQWidget *tqparent = 0, const char *name = 0);
+ DockSplitter(Qt::Orientation orientation, TQWidget *parent = 0, const char *name = 0);
~DockSplitter();
void addDock(uint row, uint col, TQWidget *dock);
diff --git a/src/newui/dtabwidget.cpp b/src/newui/dtabwidget.cpp
index 7ee27915..54fbee41 100644
--- a/src/newui/dtabwidget.cpp
+++ b/src/newui/dtabwidget.cpp
@@ -26,8 +26,8 @@
#include <kiconloader.h>
#include <kapplication.h>
-DTabWidget::DTabWidget(TQWidget *tqparent, const char *name)
- :KTabWidget(tqparent, name), m_closeButton(0)
+DTabWidget::DTabWidget(TQWidget *parent, const char *name)
+ :KTabWidget(parent, name), m_closeButton(0)
{
setFocusPolicy(TQ_NoFocus);
setMargin(0);
diff --git a/src/newui/dtabwidget.h b/src/newui/dtabwidget.h
index fd480c73..4c52a517 100644
--- a/src/newui/dtabwidget.h
+++ b/src/newui/dtabwidget.h
@@ -28,7 +28,7 @@ class DTabWidget: public KTabWidget {
Q_OBJECT
TQ_OBJECT
public:
- DTabWidget(TQWidget *tqparent=0, const char *name=0);
+ DTabWidget(TQWidget *parent=0, const char *name=0);
/**@return The close button at the top right corner.
May be 0 if the configuration do not allow close buttons or the tabbar.*/