rename the following methods:

tqparent parent
tqmask mask


git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdetoys@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
v3.5.13-sru
tpearson 13 years ago
parent 1d14c95a77
commit 49f9b29028

@ -562,14 +562,14 @@ void Amor::restack()
#endif #endif
Window sibling = mTargetWin; Window sibling = mTargetWin;
Window dw, tqparent = None, *wins; Window dw, parent = None, *wins;
do { do {
unsigned int nwins = 0; unsigned int nwins = 0;
// We must use the target window's tqparent as our sibling. // We must use the target window's parent as our sibling.
// Is there a faster way to get tqparent window than XQueryTree? // Is there a faster way to get parent window than XQueryTree?
if (XQueryTree(qt_xdisplay(), sibling, &dw, &tqparent, &wins, &nwins)) if (XQueryTree(qt_xdisplay(), sibling, &dw, &parent, &wins, &nwins))
{ {
if (nwins) if (nwins)
{ {
@ -577,9 +577,9 @@ void Amor::restack()
} }
} }
if (tqparent != None && tqparent != dw ) if (parent != None && parent != dw )
sibling = tqparent; sibling = parent;
} while ( tqparent != None && tqparent != dw ); } while ( parent != None && parent != dw );
// Set animation's stacking order to be above the window manager's // Set animation's stacking order to be above the window manager's
// decoration of target window. // decoration of target window.

@ -99,7 +99,7 @@ void AmorBubble::setMessage(const TQString& message)
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
// //
// Calculates the size, position and tqmask of the bubble // Calculates the size, position and mask of the bubble
// //
void AmorBubble::calcGeometry() void AmorBubble::calcGeometry()
{ {
@ -141,7 +141,7 @@ void AmorBubble::calcGeometry()
setGeometry(xpos, ypos, w, h); setGeometry(xpos, ypos, w, h);
mBrowser->setGeometry( mBound ); mBrowser->setGeometry( mBound );
// create and apply the tqshape tqmask // create and apply the tqshape mask
mMask.resize(w, h); mMask.resize(w, h);
mMask.fill(color0); mMask.fill(color0);
TQPainter maskPainter(&mMask); TQPainter maskPainter(&mMask);

@ -70,7 +70,7 @@ protected:
int mOriginX; // X origin of bubble arrow int mOriginX; // X origin of bubble arrow
int mOriginY; // Y origin of bubble arrow int mOriginY; // Y origin of bubble arrow
TQRect mBound; // bounds of the text TQRect mBound; // bounds of the text
TQBitmap mMask; // tqshape tqmask TQBitmap mMask; // tqshape mask
VertPos mArrowVert; // vertical position of the arrow VertPos mArrowVert; // vertical position of the arrow
HorzPos mArrowHorz; // horizontal position of the arrow HorzPos mArrowHorz; // horizontal position of the arrow
TQTextBrowser *mBrowser; // displays the message TQTextBrowser *mBrowser; // displays the message

@ -60,10 +60,10 @@ void AmorWidget::setPixmap(const TQPixmap *pixmap)
if (mPixmap) if (mPixmap)
{ {
if (mPixmap->tqmask()) if (mPixmap->mask())
{ {
XShapeCombineMask( x11Display(), winId(), ShapeBounding, 0, 0, XShapeCombineMask( x11Display(), winId(), ShapeBounding, 0, 0,
mPixmap->tqmask()->handle(), ShapeSet ); mPixmap->mask()->handle(), ShapeSet );
tqrepaint(false); tqrepaint(false);
} }

@ -33,17 +33,17 @@
extern "C" extern "C"
{ {
KDE_EXPORT KPanelApplet* init(TQWidget *tqparent, const TQString& configFile) KDE_EXPORT KPanelApplet* init(TQWidget *parent, const TQString& configFile)
{ {
KGlobal::locale()->insertCatalogue("keyesapplet"); KGlobal::locale()->insertCatalogue("keyesapplet");
EyesApplet *applet = new EyesApplet(configFile, KPanelApplet::Normal, 0, tqparent, "keyesapplet"); EyesApplet *applet = new EyesApplet(configFile, KPanelApplet::Normal, 0, parent, "keyesapplet");
return applet; return applet;
} }
} }
EyesApplet::EyesApplet(const TQString& configFile, Type t, int actions, EyesApplet::EyesApplet(const TQString& configFile, Type t, int actions,
TQWidget *tqparent, const char *name) TQWidget *parent, const char *name)
: KPanelApplet( configFile, t, actions, tqparent, name ) : KPanelApplet( configFile, t, actions, parent, name )
{ {
setWFlags(WNoAutoErase); setWFlags(WNoAutoErase);
setBackgroundOrigin(AncestorOrigin); setBackgroundOrigin(AncestorOrigin);

@ -29,7 +29,7 @@ class EyesApplet : public KPanelApplet
public: public:
EyesApplet(const TQString& configFile, Type t = Normal, int actions = 0, EyesApplet(const TQString& configFile, Type t = Normal, int actions = 0,
TQWidget *tqparent = 0, const char *name = 0); TQWidget *parent = 0, const char *name = 0);
int widthForHeight(int height) const; int widthForHeight(int height) const;
int heightForWidth(int width) const; int heightForWidth(int width) const;

@ -38,17 +38,17 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
extern "C" extern "C"
{ {
KDE_EXPORT KPanelApplet* init(TQWidget *tqparent, const TQString& configFile) KDE_EXPORT KPanelApplet* init(TQWidget *parent, const TQString& configFile)
{ {
KGlobal::locale()->insertCatalogue("kfifteenapplet"); KGlobal::locale()->insertCatalogue("kfifteenapplet");
return new FifteenApplet(configFile, KPanelApplet::Normal, return new FifteenApplet(configFile, KPanelApplet::Normal,
KPanelApplet::About, tqparent, "kfifteenapplet"); KPanelApplet::About, parent, "kfifteenapplet");
} }
} }
FifteenApplet::FifteenApplet(const TQString& configFile, Type type, int actions, FifteenApplet::FifteenApplet(const TQString& configFile, Type type, int actions,
TQWidget *tqparent, const char *name) TQWidget *parent, const char *name)
: KPanelApplet(configFile, type, actions, tqparent, name), _aboutData(0) : KPanelApplet(configFile, type, actions, parent, name), _aboutData(0)
{ {
// setup table // setup table
_table = new PiecesTable(this); _table = new PiecesTable(this);
@ -87,8 +87,8 @@ void FifteenApplet::about()
dialog.exec(); dialog.exec();
} }
PiecesTable::PiecesTable(TQWidget* tqparent, const char* name ) PiecesTable::PiecesTable(TQWidget* parent, const char* name )
: QtTableView(tqparent, name), _activeRow(-1), _activeCol(-1), _randomized(false) : QtTableView(parent, name), _activeRow(-1), _activeCol(-1), _randomized(false)
{ {
_menu = new TQPopupMenu(this); _menu = new TQPopupMenu(this);
_menu->insertItem(i18n("R&andomize Pieces"), this, TQT_SLOT(randomizeMap())); _menu->insertItem(i18n("R&andomize Pieces"), this, TQT_SLOT(randomizeMap()));

@ -38,7 +38,7 @@ class PiecesTable : public QtTableView
TQ_OBJECT TQ_OBJECT
public: public:
PiecesTable(TQWidget* tqparent = 0, const char* name = 0); PiecesTable(TQWidget* parent = 0, const char* name = 0);
TQPopupMenu* popup() { return _menu; } TQPopupMenu* popup() { return _menu; }
protected: protected:
@ -71,7 +71,7 @@ class FifteenApplet : public KPanelApplet
public: public:
FifteenApplet(const TQString& configFile, Type t = Stretch, int actions = 0, FifteenApplet(const TQString& configFile, Type t = Stretch, int actions = 0,
TQWidget *tqparent = 0, const char *name = 0); TQWidget *parent = 0, const char *name = 0);
int widthForHeight(int height) const; int widthForHeight(int height) const;
int heightForWidth(int width) const; int heightForWidth(int width) const;

@ -45,8 +45,8 @@ public:
void paintEvent( TQPaintEvent * ); void paintEvent( TQPaintEvent * );
}; };
QCornerSquare::QCornerSquare( TQWidget *tqparent, const char *name ) QCornerSquare::QCornerSquare( TQWidget *parent, const char *name )
: TQWidget( tqparent, name ) : TQWidget( parent, name )
{ {
} }
@ -125,7 +125,7 @@ void QCornerSquare::paintEvent( TQPaintEvent * )
/*! /*!
Constructs a table view. The \a tqparent, \a name and \f arguments Constructs a table view. The \a parent, \a name and \f arguments
are passed to the TQFrame constructor. are passed to the TQFrame constructor.
The \link setTableFlags() table flags\endlink are all cleared (set to 0). The \link setTableFlags() table flags\endlink are all cleared (set to 0).
@ -144,8 +144,8 @@ void QCornerSquare::paintEvent( TQPaintEvent * )
*/ */
QtTableView::QtTableView( TQWidget *tqparent, const char *name, WFlags f ) QtTableView::QtTableView( TQWidget *parent, const char *name, WFlags f )
: TQFrame( tqparent, name, f ) : TQFrame( parent, name, f )
{ {
nRows = nCols = 0; // zero rows/cols nRows = nCols = 0; // zero rows/cols
xCellOffs = yCellOffs = 0; // zero offset xCellOffs = yCellOffs = 0; // zero offset

@ -39,7 +39,7 @@ public:
void tqrepaint( const TQRect &, bool erase=TRUE ); void tqrepaint( const TQRect &, bool erase=TRUE );
protected: protected:
QtTableView( TQWidget *tqparent=0, const char *name=0, WFlags f=0 ); QtTableView( TQWidget *parent=0, const char *name=0, WFlags f=0 );
~QtTableView(); ~QtTableView();
int numRows() const; int numRows() const;

@ -53,18 +53,18 @@ const char *description = I18N_NOOP("Moon Phase Indicator for KDE");
extern "C" extern "C"
{ {
KDE_EXPORT KPanelApplet *init(TQWidget *tqparent, const TQString& configFile) KDE_EXPORT KPanelApplet *init(TQWidget *parent, const TQString& configFile)
{ {
KGlobal::locale()->insertCatalogue("kmoon"); KGlobal::locale()->insertCatalogue("kmoon");
return new MoonPAWidget(configFile, KPanelApplet::Normal, return new MoonPAWidget(configFile, KPanelApplet::Normal,
KPanelApplet::About|KPanelApplet::Preferences, KPanelApplet::About|KPanelApplet::Preferences,
tqparent, "kmoonapplet"); parent, "kmoonapplet");
} }
} }
MoonPAWidget::MoonPAWidget(const TQString& configFile, Type type, int actions, MoonPAWidget::MoonPAWidget(const TQString& configFile, Type type, int actions,
TQWidget *tqparent, const char *name) TQWidget *parent, const char *name)
: KPanelApplet(configFile, type, actions, tqparent, name) : KPanelApplet(configFile, type, actions, parent, name)
{ {
KConfig *config = KGlobal::config(); KConfig *config = KGlobal::config();
config->setGroup("General"); config->setGroup("General");
@ -123,7 +123,7 @@ void MoonPAWidget::showAbout()
void MoonPAWidget::settings() void MoonPAWidget::settings()
{ {
KMoonDlg dlg(moon->angle(), moon->northHemi(), moon->tqmask(), KMoonDlg dlg(moon->angle(), moon->northHemi(), moon->mask(),
this, "moondlg"); this, "moondlg");
if (dlg.exec() == KMoonDlg::Accepted) { if (dlg.exec() == KMoonDlg::Accepted) {
moon->setAngle(dlg.getAngle()); moon->setAngle(dlg.getAngle());
@ -133,7 +133,7 @@ void MoonPAWidget::settings()
config->setGroup("General"); config->setGroup("General");
config->writeEntry("Rotation", moon->angle()); config->writeEntry("Rotation", moon->angle());
config->writeEntry("Northern", moon->northHemi()); config->writeEntry("Northern", moon->northHemi());
config->writeEntry("Mask", moon->tqmask()); config->writeEntry("Mask", moon->mask());
config->sync(); config->sync();
} }
tqrepaint(); tqrepaint();

@ -41,7 +41,7 @@ class MoonPAWidget : public KPanelApplet
public: public:
MoonPAWidget(const TQString& configFile, Type t = Normal, int actions = 0, MoonPAWidget(const TQString& configFile, Type t = Normal, int actions = 0,
TQWidget *tqparent = 0, const char *name = 0); TQWidget *parent = 0, const char *name = 0);
~MoonPAWidget(); ~MoonPAWidget();
int widthForHeight(int height) const { return height; } int widthForHeight(int height) const { return height; }

@ -29,9 +29,9 @@
#include "kmoondlg.h" #include "kmoondlg.h"
#include "kmoonwidget.h" #include "kmoonwidget.h"
KMoonDlg::KMoonDlg(int a, bool n, bool m, TQWidget *tqparent, const char *name) KMoonDlg::KMoonDlg(int a, bool n, bool m, TQWidget *parent, const char *name)
: KDialogBase(tqparent, name, true, i18n("Change View"), : KDialogBase(parent, name, true, i18n("Change View"),
Ok|Cancel|Help), angle(a), north(n), tqmask(m) Ok|Cancel|Help), angle(a), north(n), mask(m)
{ {
TQWidget *page = new TQWidget( this ); TQWidget *page = new TQWidget( this );
setMainWidget(page); setMainWidget(page);
@ -72,7 +72,7 @@ KMoonDlg::KMoonDlg(int a, bool n, bool m, TQWidget *tqparent, const char *name)
connect(hemitoggle, TQT_SIGNAL(clicked()), TQT_SLOT(toggleHemi())); connect(hemitoggle, TQT_SIGNAL(clicked()), TQT_SLOT(toggleHemi()));
masktoggle = new TQPushButton(hbox2); masktoggle = new TQPushButton(hbox2);
masktoggle->setText(tqmask ? i18n("Switch Masking Off") : masktoggle->setText(mask ? i18n("Switch Masking Off") :
i18n("Switch Masking On")); i18n("Switch Masking On"));
connect(masktoggle, TQT_SIGNAL(clicked()), TQT_SLOT(toggleMask())); connect(masktoggle, TQT_SIGNAL(clicked()), TQT_SLOT(toggleMask()));
@ -105,9 +105,9 @@ void KMoonDlg::toggleHemi() {
} }
void KMoonDlg::toggleMask() { void KMoonDlg::toggleMask() {
moon->setMask(!moon->tqmask()); moon->setMask(!moon->mask());
tqmask = moon->tqmask(); mask = moon->mask();
masktoggle->setText(tqmask ? i18n("Switch Masking Off") : masktoggle->setText(mask ? i18n("Switch Masking Off") :
i18n("Switch Masking On")); i18n("Switch Masking On"));
} }

@ -32,17 +32,17 @@ class KMoonDlg : public KDialogBase {
TQ_OBJECT TQ_OBJECT
public: public:
KMoonDlg(int angle, bool north, bool tqmask, TQWidget *tqparent, const char *name); KMoonDlg(int angle, bool north, bool mask, TQWidget *parent, const char *name);
int getAngle() const { return angle; } int getAngle() const { return angle; }
bool getNorthHemi() const { return north; } bool getNorthHemi() const { return north; }
bool getMask() const { return tqmask; } bool getMask() const { return mask; }
private: private:
TQSlider *slider; TQSlider *slider;
MoonWidget *moon; MoonWidget *moon;
int angle; int angle;
bool north; bool north;
bool tqmask; bool mask;
TQPushButton *hemitoggle; TQPushButton *hemitoggle;
TQPushButton *masktoggle; TQPushButton *masktoggle;

@ -50,8 +50,8 @@
extern double moonphasebylunation(int lun, int phi); extern double moonphasebylunation(int lun, int phi);
extern time_t JDtoDate(double jd, struct tm *event_date); extern time_t JDtoDate(double jd, struct tm *event_date);
MoonWidget::MoonWidget(TQWidget *tqparent, const char *name) MoonWidget::MoonWidget(TQWidget *parent, const char *name)
: TQWidget(tqparent, name) : TQWidget(parent, name)
{ {
struct tm * t; struct tm * t;
time_t clock; time_t clock;
@ -61,10 +61,10 @@ MoonWidget::MoonWidget(TQWidget *tqparent, const char *name)
config->setGroup("General"); config->setGroup("General");
_angle = config->readNumEntry("Rotation", 0); _angle = config->readNumEntry("Rotation", 0);
_north = config->readBoolEntry("Northern", true); _north = config->readBoolEntry("Northern", true);
_tqmask = config->readBoolEntry("Mask", true); _mask = config->readBoolEntry("Mask", true);
old_angle = old_w = old_h = old_counter = -1; old_angle = old_w = old_h = old_counter = -1;
old_north = false; old_north = false;
old_tqmask = false; old_mask = false;
startTimer(1000 * 60 * 20); startTimer(1000 * 60 * 20);
time(&clock); time(&clock);
@ -250,7 +250,7 @@ void MoonWidget::setNorthHemi(bool n)
void MoonWidget::setMask(bool value) void MoonWidget::setMask(bool value)
{ {
_tqmask = value; _mask = value;
renderGraphic(); renderGraphic();
tqrepaint(); tqrepaint();
} }
@ -328,7 +328,7 @@ void MoonWidget::renderGraphic()
} else { } else {
dest = im.smoothScale(mw, mw).convertDepth(32); dest = im.smoothScale(mw, mw).convertDepth(32);
} }
if (_tqmask) { if (_mask) {
// generate alpha-channel // generate alpha-channel
int dmw = mw*2; int dmw = mw*2;
TQBitmap dMask(dmw, dmw); TQBitmap dMask(dmw, dmw);

@ -34,7 +34,7 @@ class MoonWidget : public TQWidget
TQ_OBJECT TQ_OBJECT
public: public:
MoonWidget(TQWidget *tqparent = 0, const char *name = 0); MoonWidget(TQWidget *parent = 0, const char *name = 0);
~MoonWidget(); ~MoonWidget();
void calctqStatus( time_t time ); void calctqStatus( time_t time );
@ -45,14 +45,14 @@ public:
bool northHemi() const { return _north; } bool northHemi() const { return _north; }
void setNorthHemi(bool b); void setNorthHemi(bool b);
bool tqmask() const { return _tqmask; } bool mask() const { return _mask; }
void setMask(bool b); void setMask(bool b);
protected: protected:
int old_w, old_h; int old_w, old_h;
int counter, old_counter; int counter, old_counter;
int _angle, old_angle; int _angle, old_angle;
int _tqmask, old_tqmask; int _mask, old_mask;
bool old_north, _north; bool old_north, _north;
TQPixmap pixmap; TQPixmap pixmap;

@ -168,7 +168,7 @@ double torad(double x)
** int phi: another phase parameter, selecting the phase of the ** int phi: another phase parameter, selecting the phase of the
** moon. 0 = New, 1 = First TQtr, 2 = Full, 3 = Last TQtr ** moon. 0 = New, 1 = First TQtr, 2 = Full, 3 = Last TQtr
** **
** Return: Aptqparent JD of the needed phase ** Return: Apparent JD of the needed phase
*/ */
#include <stdio.h> #include <stdio.h>

@ -25,8 +25,8 @@
#include "kimagenumber.h" #include "kimagenumber.h"
KImageNumber::KImageNumber(const TQString& font, TQWidget* tqparent,const char* name) : KImageNumber::KImageNumber(const TQString& font, TQWidget* parent,const char* name) :
TQFrame(tqparent,name), TQFrame(parent,name),
m_value(0) m_value(0)
{ {
fontPix = new TQPixmap(font); fontPix = new TQPixmap(font);

@ -35,7 +35,7 @@ class KImageNumber : public TQFrame
TQ_OBJECT TQ_OBJECT
TQ_PROPERTY( double m_value READ value WRITE setValue ) TQ_PROPERTY( double m_value READ value WRITE setValue )
public: public:
KImageNumber(const TQString& font, TQWidget* tqparent=0, const char* name=0); KImageNumber(const TQString& font, TQWidget* parent=0, const char* name=0);
virtual ~KImageNumber(); virtual ~KImageNumber();

@ -42,8 +42,8 @@ static struct conversionEntry ConversionTable[MAX_UNIT] = {
* Note that we use installEventFilter on the two KImageNumber's * Note that we use installEventFilter on the two KImageNumber's
* to make clicks on them bring up the context-menu. * to make clicks on them bring up the context-menu.
*/ */
Kodometer::Kodometer(TQWidget* tqparent, const char* name) Kodometer::Kodometer(TQWidget* parent, const char* name)
: TQFrame(tqparent, name), : TQFrame(parent, name),
dontRefresh(false), dontRefresh(false),
speed(0.0), speed(0.0),
lastDistance(0.0), lastDistance(0.0),

@ -25,14 +25,14 @@ TQString int2time(int time)
} }
TeaListItem::TeaListItem(TQListView * tqparent) TeaListItem::TeaListItem(TQListView * parent)
:TQListViewItem(tqparent) :TQListViewItem(parent)
{ {
} }
TeaListItem::TeaListItem(TQListView * tqparent, TQListViewItem *after) TeaListItem::TeaListItem(TQListView * parent, TQListViewItem *after)
:TQListViewItem(tqparent, after) :TQListViewItem(parent, after)
{ {
} }

@ -18,8 +18,8 @@ class TeaListItem : public TQListViewItem
{ {
public: public:
TeaListItem(TQListView *tqparent); TeaListItem(TQListView *parent);
TeaListItem(TQListView *tqparent, TQListViewItem *after); TeaListItem(TQListView *parent, TQListViewItem *after);
~TeaListItem(); ~TeaListItem();
int time(); int time();

@ -13,8 +13,8 @@
#include "timeedit.h" #include "timeedit.h"
#include "timeedit.moc" #include "timeedit.moc"
WrappingSpinBox::WrappingSpinBox(int minValue, int maxValue, int step, TQWidget *tqparent, const char *name) WrappingSpinBox::WrappingSpinBox(int minValue, int maxValue, int step, TQWidget *parent, const char *name)
: TQSpinBox(minValue, maxValue, step, tqparent, name) : TQSpinBox(minValue, maxValue, step, parent, name)
{ {
} }
@ -49,8 +49,8 @@ void WrappingSpinBox::stepDown()
// ------------------------------------------------------------------------- // -------------------------------------------------------------------------
TimeEdit::TimeEdit(TQWidget* tqparent, const char* name) TimeEdit::TimeEdit(TQWidget* parent, const char* name)
: TQWidget(tqparent, name) : TQWidget(parent, name)
{ {
tqlayout = new TQHBoxLayout(this); tqlayout = new TQHBoxLayout(this);
minuteBox = new TQSpinBox(0, 300, 1, this); minuteBox = new TQSpinBox(0, 300, 1, this);

@ -24,7 +24,7 @@ class WrappingSpinBox : public TQSpinBox
TQ_OBJECT TQ_OBJECT
public: public:
WrappingSpinBox(int minValue, int maxValue, int step = 1, TQWidget *tqparent=0, const char *name=0); WrappingSpinBox(int minValue, int maxValue, int step = 1, TQWidget *parent=0, const char *name=0);
~WrappingSpinBox(); ~WrappingSpinBox();
void stepUp(); void stepUp();
@ -46,7 +46,7 @@ class TimeEdit : public TQWidget
TQ_OBJECT TQ_OBJECT
public: public:
TimeEdit(TQWidget* tqparent = 0, const char* name = 0); TimeEdit(TQWidget* parent = 0, const char* name = 0);
~TimeEdit(); ~TimeEdit();
void setValue(int value); void setValue(int value);

@ -251,15 +251,15 @@ void TopLevel::paintEvent(TQPaintEvent *)
// overlay pie chart onto tray icon // overlay pie chart onto tray icon
TQPixmap base(*pm); // make copy of base pixmap TQPixmap base(*pm); // make copy of base pixmap
if (useTrayVis && running) { if (useTrayVis && running) {
// extend tqmask // extend mask
TQBitmap tqmask = *(base.tqmask()); TQBitmap mask = *(base.mask());
TQPainter pm(&tqmask); TQPainter pm(&mask);
pm.setBrush(TQt::color1); // fill with "foreground-colour" pm.setBrush(TQt::color1); // fill with "foreground-colour"
pm.setPen(TQt::NoPen); // no border needed/wanted pm.setPen(TQt::NoPen); // no border needed/wanted
pm.drawPie(0+1, ((float) width()/(float) 2.44444444444)+1, (width()/2), (width()/2), 90*16, -360*16); // full circle of small size pm.drawPie(0+1, ((float) width()/(float) 2.44444444444)+1, (width()/2), (width()/2), 90*16, -360*16); // full circle of small size
pm.drawPie(0, ((float) width()/(float) 2.44444444444), ((float) width()/(float) 1.69230769231), ((float) width()/(float) 1.69230769231), 90*16, percentDone*16); // pie part of big size pm.drawPie(0, ((float) width()/(float) 2.44444444444), ((float) width()/(float) 1.69230769231), ((float) width()/(float) 1.69230769231), 90*16, percentDone*16); // pie part of big size
pm.end(); pm.end();
base.setMask(tqmask); base.setMask(mask);
// draw pie chart // draw pie chart
TQPainter px(&base); TQPainter px(&base);

@ -43,8 +43,8 @@ extern "C"
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
KSpriteSetup::KSpriteSetup( TQWidget *tqparent, const char *name ) KSpriteSetup::KSpriteSetup( TQWidget *parent, const char *name )
: TQDialog( tqparent, name, TRUE ) : TQDialog( parent, name, TRUE )
{ {
KGlobal::locale()->insertCatalogue("ktux"); KGlobal::locale()->insertCatalogue("ktux");
saver = 0; saver = 0;

@ -52,7 +52,7 @@ class KSpriteSetup : public TQDialog
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
KSpriteSetup( TQWidget *tqparent = NULL, const char *name = NULL ); KSpriteSetup( TQWidget *parent = NULL, const char *name = NULL );
~KSpriteSetup(); ~KSpriteSetup();
protected: protected:

@ -30,8 +30,8 @@
#include <kglobalsettings.h> #include <kglobalsettings.h>
#include <klocale.h> #include <klocale.h>
dockwidget::dockwidget(const TQString &location, TQWidget *tqparent, dockwidget::dockwidget(const TQString &location, TQWidget *parent,
const char *name) : TQWidget(tqparent,name), m_locationCode( location ), m_orientation(Qt::Horizontal ) const char *name) : TQWidget(parent,name), m_locationCode( location ), m_orientation(Qt::Horizontal )
{ {
m_font = KGlobalSettings::generalFont(); m_font = KGlobalSettings::generalFont();
setBackgroundOrigin( AncestorOrigin ); setBackgroundOrigin( AncestorOrigin );

@ -34,7 +34,7 @@ class dockwidget : public TQWidget
TQ_OBJECT TQ_OBJECT
public: public:
dockwidget(const TQString &location, TQWidget *tqparent=0, const char *name=0); dockwidget(const TQString &location, TQWidget *parent=0, const char *name=0);
~dockwidget(); ~dockwidget();
enum {ShowIconOnly=1, ShowTempOnly=2, ShowAll=3 }; enum {ShowIconOnly=1, ShowTempOnly=2, ShowAll=3 };

@ -43,14 +43,14 @@
extern "C" extern "C"
{ {
KDE_EXPORT KCModule *create_weather( TQWidget *tqparent, const char * ) KDE_EXPORT KCModule *create_weather( TQWidget *parent, const char * )
{ {
return new KCMWeather( tqparent, "kweather" ); return new KCMWeather( parent, "kweather" );
} }
} }
KCMWeather::KCMWeather( TQWidget *tqparent, const char *name ) KCMWeather::KCMWeather( TQWidget *parent, const char *name )
: KCModule( tqparent, name ) : KCModule( parent, name )
{ {
mWeatherService = new WeatherService_stub( "KWeatherService", mWeatherService = new WeatherService_stub( "KWeatherService",
"WeatherService" ); "WeatherService" );

@ -33,7 +33,7 @@ class KCMWeather : public KCModule
TQ_OBJECT TQ_OBJECT
public: public:
KCMWeather( TQWidget *tqparent = 0, const char *name = 0 ); KCMWeather( TQWidget *parent = 0, const char *name = 0 );
~KCMWeather(); ~KCMWeather();
virtual void load(); virtual void load();

@ -33,13 +33,13 @@
extern "C" extern "C"
{ {
KDE_EXPORT KCModule *create_weatherservice( TQWidget *tqparent, const char * ) { KDE_EXPORT KCModule *create_weatherservice( TQWidget *parent, const char * ) {
return new KCMWeatherService( tqparent, "kweather" ); return new KCMWeatherService( parent, "kweather" );
} }
} }
KCMWeatherService::KCMWeatherService( TQWidget *tqparent, const char *name ) KCMWeatherService::KCMWeatherService( TQWidget *parent, const char *name )
: KCModule( tqparent, name ) : KCModule( parent, name )
{ {
TQVBoxLayout *tqlayout = new TQVBoxLayout( this ); TQVBoxLayout *tqlayout = new TQVBoxLayout( this );
mWidget = new ServiceConfigWidget( this ); mWidget = new ServiceConfigWidget( this );

@ -34,7 +34,7 @@ class KCMWeatherService : public KCModule
TQ_OBJECT TQ_OBJECT
public: public:
KCMWeatherService( TQWidget *tqparent = 0, const char *name = 0 ); KCMWeatherService( TQWidget *parent = 0, const char *name = 0 );
virtual void load(); virtual void load();
virtual void save(); virtual void save();

@ -40,18 +40,18 @@
extern "C" extern "C"
{ {
KDE_EXPORT KPanelApplet* init(TQWidget *tqparent, const TQString& configFile) KDE_EXPORT KPanelApplet* init(TQWidget *parent, const TQString& configFile)
{ {
KGlobal::locale()->insertCatalogue("kweather"); KGlobal::locale()->insertCatalogue("kweather");
kweather *theApplet = new kweather(configFile, KPanelApplet::Normal, kweather *theApplet = new kweather(configFile, KPanelApplet::Normal,
0, tqparent, "kweather"); 0, parent, "kweather");
return theApplet; return theApplet;
} }
} }
kweather::kweather(const TQString& configFile, Type t, int actions, kweather::kweather(const TQString& configFile, Type t, int actions,
TQWidget *tqparent, const char *name): TQWidget *parent, const char *name):
KPanelApplet(configFile, t, actions, tqparent, name), weatherIface(), KPanelApplet(configFile, t, actions, parent, name), weatherIface(),
mFirstRun( false ), mReport( 0 ), mClient( 0 ), mFirstRun( false ), mReport( 0 ), mClient( 0 ),
mContextMenu( 0 ), mWeatherService( 0 ), settingsDialog( 0 ), mTextColor(TQt::black) mContextMenu( 0 ), mWeatherService( 0 ), settingsDialog( 0 ), mTextColor(TQt::black)
{ {

@ -36,7 +36,7 @@ class kweather : public KPanelApplet, public weatherIface
TQ_OBJECT TQ_OBJECT
public: public:
kweather(const TQString& configFile, Type t = Normal, int actions = 0, TQWidget *tqparent = 0, const char *name = 0); kweather(const TQString& configFile, Type t = Normal, int actions = 0, TQWidget *parent = 0, const char *name = 0);
~kweather(); ~kweather();
void help(); void help();
void resizeEvent(TQResizeEvent*); void resizeEvent(TQResizeEvent*);

@ -55,7 +55,7 @@ reportView::reportView(const TQString &reportLocation)
reportView::~reportView(){ reportView::~reportView(){
delete m_weatherService; delete m_weatherService;
// we do not have to delete m_reportView because this class is // we do not have to delete m_reportView because this class is
// the tqparent of the TQVBox, and that is the tqparent of the KHTMLPart. // the parent of the TQVBox, and that is the parent of the KHTMLPart.
KConfig config( "weather_panelappletrc" ); KConfig config( "weather_panelappletrc" );
config.setGroup( "General Options" ); config.setGroup( "General Options" );

@ -55,8 +55,8 @@ class StationItem : public TQListViewItem
static void parseStationEntry( const TQString &line, TQString &name, TQString &uid ); static void parseStationEntry( const TQString &line, TQString &name, TQString &uid );
ServiceConfigWidget::ServiceConfigWidget( TQWidget *tqparent, const char *name ) ServiceConfigWidget::ServiceConfigWidget( TQWidget *parent, const char *name )
: wsPrefs( tqparent, name ), mService(0) : wsPrefs( parent, name ), mService(0)
{ {
mService = new WeatherService_stub( "KWeatherService", "WeatherService" ); mService = new WeatherService_stub( "KWeatherService", "WeatherService" );
connect( mAllStations, TQT_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int ) ), TQT_SLOT( addStation() ) ); connect( mAllStations, TQT_SIGNAL( doubleClicked ( TQListViewItem *, const TQPoint &, int ) ), TQT_SLOT( addStation() ) );

@ -31,7 +31,7 @@ class ServiceConfigWidget : public wsPrefs
TQ_OBJECT TQ_OBJECT
public: public:
ServiceConfigWidget( TQWidget *tqparent, const char *name = 0 ); ServiceConfigWidget( TQWidget *parent, const char *name = 0 );
virtual ~ServiceConfigWidget(); virtual ~ServiceConfigWidget();
signals: signals:

@ -22,8 +22,8 @@
#include "sidebarwidget.h" #include "sidebarwidget.h"
#include <tqscrollview.h> #include <tqscrollview.h>
sidebarwidget::sidebarwidget(TQWidget* tqparent, const char* name) : sidebarwidget::sidebarwidget(TQWidget* parent, const char* name) :
sidebarwidgetbase(tqparent,name) sidebarwidgetbase(parent,name)
{ {
view = new TQVBox(reportGrid->viewport()); view = new TQVBox(reportGrid->viewport());
reportGrid->addChild(view); reportGrid->addChild(view);

@ -31,7 +31,7 @@ class sidebarwidget : public sidebarwidgetbase
Q_OBJECT Q_OBJECT
TQ_OBJECT TQ_OBJECT
public: public:
sidebarwidget(TQWidget* tqparent, const char* name = 0); sidebarwidget(TQWidget* parent, const char* name = 0);
virtual ~sidebarwidget(); virtual ~sidebarwidget();
void addWidget(TQWidget *w, const TQString &s); void addWidget(TQWidget *w, const TQString &s);
TQWidget *viewport(); TQWidget *viewport();

@ -282,7 +282,7 @@ static int __sunriset__( int year, int month, int day, double lon, double lat,
double sr; /* Solar distance, astronomical units */ double sr; /* Solar distance, astronomical units */
double sRA; /* Sun's Right Ascension */ double sRA; /* Sun's Right Ascension */
double sdec; /* Sun's declination */ double sdec; /* Sun's declination */
double sradius; /* Sun's aptqparent radius */ double sradius; /* Sun's apparent radius */
double t; /* Diurnal arc */ double t; /* Diurnal arc */
double tsouth; /* Time when Sun is at south */ double tsouth; /* Time when Sun is at south */
double sidtime; /* Local sidereal time */ double sidtime; /* Local sidereal time */
@ -303,7 +303,7 @@ static int __sunriset__( int year, int month, int day, double lon, double lat,
/* Compute time when Sun is at south - in hours UT */ /* Compute time when Sun is at south - in hours UT */
tsouth = 12.0 - rev180(sidtime - sRA) / 15.0; tsouth = 12.0 - rev180(sidtime - sRA) / 15.0;
/* Compute the Sun's aptqparent radius, degrees */ /* Compute the Sun's apparent radius, degrees */
sradius = 0.2666 / sr; sradius = 0.2666 / sr;
/* Do correction to upper limb, if necessary */ /* Do correction to upper limb, if necessary */

@ -36,11 +36,11 @@
#include <dcopref.h> #include <dcopref.h>
KonqSidebarWeather::KonqSidebarWeather(KInstance* inst, TQObject* tqparent, KonqSidebarWeather::KonqSidebarWeather(KInstance* inst, TQObject* parent,
TQWidget* widgetParent, TQWidget* widgetParent,
TQString& desktopName, const char* name) TQString& desktopName, const char* name)
: KonqSidebarPlugin(inst, tqparent, widgetParent, desktopName, name), : KonqSidebarPlugin(inst, parent, widgetParent, desktopName, name),
DCOPObject(name) DCOPObject(name)
{ {

@ -40,7 +40,7 @@ class KonqSidebarWeather: public KonqSidebarPlugin, virtual public DCOPObject
TQ_OBJECT TQ_OBJECT
K_DCOP K_DCOP
public: public:
KonqSidebarWeather(KInstance* inst, TQObject* tqparent, TQWidget* widgetParent, KonqSidebarWeather(KInstance* inst, TQObject* parent, TQWidget* widgetParent,
TQString& desktopName_, const char* name = 0); TQString& desktopName_, const char* name = 0);
~KonqSidebarWeather(); ~KonqSidebarWeather();

@ -29,8 +29,8 @@
#include <kipc.h> #include <kipc.h>
#include <kstandarddirs.h> #include <kstandarddirs.h>
WeatherButton::WeatherButton( TQWidget *tqparent, const char *name ) WeatherButton::WeatherButton( TQWidget *parent, const char *name )
: TQButton( tqparent, name ), m_highlight( false ) : TQButton( parent, name ), m_highlight( false )
{ {
setBackgroundOrigin( AncestorOrigin ); setBackgroundOrigin( AncestorOrigin );

@ -29,7 +29,7 @@ class WeatherButton : public TQButton
TQ_OBJECT TQ_OBJECT
public: public:
WeatherButton( TQWidget *tqparent, const char *name ); WeatherButton( TQWidget *parent, const char *name );
void setPixmap( const TQPixmap &pix ); void setPixmap( const TQPixmap &pix );
protected: protected:

@ -77,8 +77,8 @@ void WeatherLib::Data::clear()
} }
} }
WeatherLib::WeatherLib(StationDatabase *stationDB, TQObject *tqparent, const char *name) WeatherLib::WeatherLib(StationDatabase *stationDB, TQObject *parent, const char *name)
: TQObject (tqparent, name) : TQObject (parent, name)
{ {
KGlobal::locale()->insertCatalogue("kweather"); KGlobal::locale()->insertCatalogue("kweather");

@ -37,7 +37,7 @@ class WeatherLib : public TQObject
public: public:
class Data; class Data;
WeatherLib(StationDatabase *stationDB, TQObject *tqparent =0L, const char *name =0L); WeatherLib(StationDatabase *stationDB, TQObject *parent =0L, const char *name =0L);
virtual ~WeatherLib(); virtual ~WeatherLib();
TQString temperature(const TQString &stationID); TQString temperature(const TQString &stationID);

@ -31,7 +31,7 @@
#include "stationdatabase.h" #include "stationdatabase.h"
#include "sun.h" #include "sun.h"
WeatherService::WeatherService(TQObject *tqparent, const char *name) : TQObject (tqparent, name), DCOPObject("WeatherService") WeatherService::WeatherService(TQObject *parent, const char *name) : TQObject (parent, name), DCOPObject("WeatherService")
{ {
kdDebug(12006) << "Starting new service... " << endl; kdDebug(12006) << "Starting new service... " << endl;

@ -44,7 +44,7 @@ class WeatherService : public TQObject, public DCOPObject
void slotStationRemoved(const TQString &stationID); void slotStationRemoved(const TQString &stationID);
public: public:
WeatherService(TQObject *tqparent, const char *name); WeatherService(TQObject *parent, const char *name);
~WeatherService(); ~WeatherService();
k_dcop_signals: k_dcop_signals:

@ -42,20 +42,20 @@
extern "C" extern "C"
{ {
KDE_EXPORT KPanelApplet *init(TQWidget *tqparent, const TQString& configFile) KDE_EXPORT KPanelApplet *init(TQWidget *parent, const TQString& configFile)
{ {
KGlobal::locale()->insertCatalogue("kworldclock"); KGlobal::locale()->insertCatalogue("kworldclock");
KGlobal::locale()->insertCatalogue("timezones"); // For time zone translation KGlobal::locale()->insertCatalogue("timezones"); // For time zone translation
return new KWWApplet(configFile, KPanelApplet::Normal, return new KWWApplet(configFile, KPanelApplet::Normal,
0, 0,
tqparent, "kwwapplet"); parent, "kwwapplet");
} }
} }
KWWApplet::KWWApplet(const TQString& configFile, Type type, int actions, KWWApplet::KWWApplet(const TQString& configFile, Type type, int actions,
TQWidget *tqparent, const char *name) TQWidget *parent, const char *name)
: KPanelApplet(configFile, type, actions, tqparent, name) : KPanelApplet(configFile, type, actions, parent, name)
{ {
// make use of the icons installed for ksaferppp // make use of the icons installed for ksaferppp
KGlobal::iconLoader()->addAppDir("kworldwatch"); KGlobal::iconLoader()->addAppDir("kworldwatch");

@ -47,7 +47,7 @@ class KWWApplet : public KPanelApplet
public: public:
KWWApplet(const TQString& configFile, Type t = Normal, int actions = 0, KWWApplet(const TQString& configFile, Type t = Normal, int actions = 0,
TQWidget *tqparent = 0, const char *name = 0); TQWidget *parent = 0, const char *name = 0);
~KWWApplet(); ~KWWApplet();
int widthForHeight(int height) const; int widthForHeight(int height) const;

@ -7,7 +7,7 @@
long jdate(struct tm *); long jdate(struct tm *);
double jtime(struct tm *); double jtime(struct tm *);
double kepler(double m, double ecc); double kepler(double m, double ecc);
void sunpos(double jd, int aptqparent, double *ra, double *dec, double *rv, double *slong); void sunpos(double jd, int apparent, double *ra, double *dec, double *rv, double *slong);
double gmst(double jd); double gmst(double jd);
/* JDATE -- Convert internal GMT date and time to Julian day /* JDATE -- Convert internal GMT date and time to Julian day
@ -65,19 +65,19 @@ double m, ecc;
/* SUNPOS -- Calculate position of the Sun. JD is the Julian date /* SUNPOS -- Calculate position of the Sun. JD is the Julian date
of the instant for which the position is desired and of the instant for which the position is desired and
APPARENT should be nonzero if the aptqparent position APPARENT should be nonzero if the apparent position
(corrected for nutation and aberration) is desired. (corrected for nutation and aberration) is desired.
The Sun's co-ordinates are returned in RA and DEC, The Sun's co-ordinates are returned in RA and DEC,
both specified in degrees (divide RA by 15 to obtain both specified in degrees (divide RA by 15 to obtain
hours). The radius vector to the Sun in astronomical hours). The radius vector to the Sun in astronomical
units is returned in RV and the Sun's longitude (true units is returned in RV and the Sun's longitude (true
or aptqparent, as desired) is returned as degrees in or apparent, as desired) is returned as degrees in
SLONG. */ SLONG. */
void void
sunpos(jd, aptqparent, ra, dec, rv, slong) sunpos(jd, apparent, ra, dec, rv, slong)
double jd; double jd;
int aptqparent; int apparent;
double *ra, *dec, *rv, *slong; double *ra, *dec, *rv, *slong;
{ {
double t, t2, t3, l, m, e, ea, v, theta, omega, double t, t2, t3, l, m, e, ea, v, theta, omega,
@ -119,9 +119,9 @@ double *ra, *dec, *rv, *slong;
eps = 23.452294 - 0.0130125 * t - 0.00000164 * t2 + 0.000000503 * t3; eps = 23.452294 - 0.0130125 * t - 0.00000164 * t2 + 0.000000503 * t3;
/* Corrections for Sun's aptqparent longitude, if desired. */ /* Corrections for Sun's apparent longitude, if desired. */
if (aptqparent) { if (apparent) {
omega = fixangle(259.18 - 1934.142 * t); omega = fixangle(259.18 - 1934.142 * t);
theta = theta - 0.00569 - 0.00479 * sin(dtr(omega)); theta = theta - 0.00569 - 0.00479 * sin(dtr(omega));
eps += 0.00256 * cos(dtr(omega)); eps += 0.00256 * cos(dtr(omega));

@ -34,7 +34,7 @@
extern "C" { extern "C" {
double jtime(struct tm *t); double jtime(struct tm *t);
double kepler(double m, double ecc); double kepler(double m, double ecc);
void sunpos(double jd, int aptqparent, double *ra, double *dec, double *rv, double *slong); void sunpos(double jd, int apparent, double *ra, double *dec, double *rv, double *slong);
void projillum(short *wtab, int xdots, int ydots, double dec); void projillum(short *wtab, int xdots, int ydots, double dec);
} }

@ -39,7 +39,7 @@ FlagList::FlagList()
_flags.setAutoDelete(true); _flags.setAutoDelete(true);
_flagPixmap = TQPixmap(locate("data", "kworldclock/pics/flag.png")); _flagPixmap = TQPixmap(locate("data", "kworldclock/pics/flag.png"));
_flagMask = TQPixmap(locate("data", "kworldclock/pics/flag-tqmask.xpm"), 0, TQPixmap::ThresholdDither); _flagMask = TQPixmap(locate("data", "kworldclock/pics/flag-mask.xpm"), 0, TQPixmap::ThresholdDither);
_flagMask.setMask(_flagMask.createHeuristicMask()); _flagMask.setMask(_flagMask.createHeuristicMask());
} }

@ -21,12 +21,12 @@
class SimpleFlow : public TQLayout class SimpleFlow : public TQLayout
{ {
public: public:
SimpleFlow( TQWidget *tqparent, int border=0, int space=-1, SimpleFlow( TQWidget *parent, int border=0, int space=-1,
const char *name=0 ) const char *name=0 )
: TQLayout( tqparent, border, space, name ), : TQLayout( parent, border, space, name ),
cached_width(0), cached_hfw(0) {} cached_width(0), cached_hfw(0) {}
SimpleFlow( TQLayout* tqparent, int space=-1, const char *name=0 ) SimpleFlow( TQLayout* parent, int space=-1, const char *name=0 )
: TQLayout( tqparent, space, name ), : TQLayout( parent, space, name ),
cached_width(0), cached_hfw(0) {} cached_width(0), cached_hfw(0) {}
SimpleFlow( int space=-1, const char *name=0 ) SimpleFlow( int space=-1, const char *name=0 )
: TQLayout( space, name ), : TQLayout( space, name ),

@ -48,8 +48,8 @@
#include "zoneclock.h" #include "zoneclock.h"
WorldWideWatch::WorldWideWatch(bool restore, TQWidget *tqparent, const char *name) WorldWideWatch::WorldWideWatch(bool restore, TQWidget *parent, const char *name)
: KMainWindow(tqparent, name) : KMainWindow(parent, name)
{ {
KGlobal::locale()->insertCatalogue("timezones"); // For time zone translation KGlobal::locale()->insertCatalogue("timezones"); // For time zone translation

@ -44,7 +44,7 @@ class WorldWideWatch : public KMainWindow
public: public:
WorldWideWatch(bool restore=false, TQWidget *tqparent=0, const char *name=0); WorldWideWatch(bool restore=false, TQWidget *parent=0, const char *name=0);
void save(KConfig *config); void save(KConfig *config);
void load(KConfig *load); void load(KConfig *load);

@ -56,8 +56,8 @@
#include "mapwidget.moc" #include "mapwidget.moc"
MapWidget::MapWidget(bool applet, bool restore, TQWidget *tqparent, const char *name) MapWidget::MapWidget(bool applet, bool restore, TQWidget *parent, const char *name)
: TQWidget(tqparent, name), _loader(), _illumination(true), _cities(true), _flags(true), _cityList(0), : TQWidget(parent, name), _loader(), _illumination(true), _cities(true), _flags(true), _cityList(0),
_applet(applet), _width(0), _height(0) _applet(applet), _width(0), _height(0)
{ {
// this ugly construction is necessary so we don't load // this ugly construction is necessary so we don't load

@ -60,7 +60,7 @@ class MapWidget : public TQWidget
public: public:
MapWidget(bool applet=false, bool restore=false, TQWidget *tqparent=0, const char *name=0); MapWidget(bool applet=false, bool restore=false, TQWidget *parent=0, const char *name=0);
~MapWidget(); ~MapWidget();
void setTheme(const TQString &theme); void setTheme(const TQString &theme);

@ -51,8 +51,8 @@
#include "zoneclock.moc" #include "zoneclock.moc"
#include <kdebug.h> #include <kdebug.h>
ZoneClock::ZoneClock(const TQString &zone, const TQString &name, TQWidget *tqparent, const char *n) ZoneClock::ZoneClock(const TQString &zone, const TQString &name, TQWidget *parent, const char *n)
: TQFrame(tqparent, n), _zone(zone), _name(name) : TQFrame(parent, n), _zone(zone), _name(name)
{ {
setFrameStyle(TQFrame::Panel | TQFrame::Raised); setFrameStyle(TQFrame::Panel | TQFrame::Raised);
TQHBoxLayout *hbox = new TQHBoxLayout(this, 2,2); TQHBoxLayout *hbox = new TQHBoxLayout(this, 2,2);
@ -162,8 +162,8 @@ void ZoneClock::updateTime()
} }
ZoneClockPanel::ZoneClockPanel(TQWidget *tqparent, const char *name) ZoneClockPanel::ZoneClockPanel(TQWidget *parent, const char *name)
: TQFrame(tqparent, name), _dlg(0) : TQFrame(parent, name), _dlg(0)
{ {
_flow = new SimpleFlow(this,1,1); _flow = new SimpleFlow(this,1,1);

@ -50,7 +50,7 @@ class ZoneClock : public TQFrame
public: public:
ZoneClock(const TQString &zone, const TQString &name, TQWidget *tqparent=0, const char *n=0); ZoneClock(const TQString &zone, const TQString &name, TQWidget *parent=0, const char *n=0);
TQString zone() const { return _zone; }; TQString zone() const { return _zone; };
@ -102,7 +102,7 @@ class ZoneClockPanel : public TQFrame
public: public:
ZoneClockPanel(TQWidget *tqparent=0, const char *name=0); ZoneClockPanel(TQWidget *parent=0, const char *name=0);
void addClock(const TQString &zone, const TQString &name); void addClock(const TQString &zone, const TQString &name);

Loading…
Cancel
Save