summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-08 11:05:29 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-08 18:02:03 +0900
commitebce9b53863b1ccf1cc2f84eb556d50ec28beeaf (patch)
tree085cc3e369c38c74d5200933bb503d3170b58495
parenta876313d64876005fc672d1362a2032c2b28dd21 (diff)
downloadtdetoys-ebce9b53.tar.gz
tdetoys-ebce9b53.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
-rw-r--r--amor/amordialog.cpp2
-rw-r--r--amor/amorwidget.cpp4
-rw-r--r--fifteenapplet/fifteenapplet.cpp2
-rw-r--r--fifteenapplet/qttableview.cpp4
-rw-r--r--kmoon/kmoonapplet.cpp4
-rw-r--r--kmoon/kmoondlg.cpp2
-rw-r--r--kodo/kodometer.cpp4
-rw-r--r--kteatime/toplevel.cpp10
-rw-r--r--ktux/sprite.cpp2
-rw-r--r--kweather/dockwidget.cpp2
-rw-r--r--kweather/dockwidget.h2
-rw-r--r--kweather/kweather.cpp6
-rw-r--r--kworldwatch/applet.cpp2
-rw-r--r--kworldwatch/mapwidget.cpp2
-rw-r--r--kworldwatch/zoneclock.cpp2
15 files changed, 25 insertions, 25 deletions
diff --git a/amor/amordialog.cpp b/amor/amordialog.cpp
index 5abb0e3..53d4d7a 100644
--- a/amor/amordialog.cpp
+++ b/amor/amordialog.cpp
@@ -74,7 +74,7 @@ AmorDialog::AmorDialog()
label = new TQLabel(i18n("Offset:"), offsetBox);
TQSlider *slider = new TQSlider(-40, 40, 5, mConfig.mOffset,
- Qt::Vertical, offsetBox);
+ TQt::Vertical, offsetBox);
connect(slider, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotOffset(int)));
// Always on top
diff --git a/amor/amorwidget.cpp b/amor/amorwidget.cpp
index 38dd0d3..c60cd5d 100644
--- a/amor/amorwidget.cpp
+++ b/amor/amorwidget.cpp
@@ -98,7 +98,7 @@ void AmorWidget::mousePressEvent(TQMouseEvent *me)
//
void AmorWidget::mouseMoveEvent(TQMouseEvent *me)
{
- if ( me->state() == Qt::LeftButton ) {
+ if ( me->state() == TQt::LeftButton ) {
if ( !dragging && (clickPos-me->globalPos()).manhattanLength() > 3 )
dragging = true;
if ( dragging ) {
@@ -116,7 +116,7 @@ void AmorWidget::mouseReleaseEvent(TQMouseEvent *me)
{
if ( dragging )
emit dragged( me->globalPos() - clickPos, true );
- else if ( me->state() == Qt::RightButton )
+ else if ( me->state() == TQt::RightButton )
emit mouseClicked(clickPos);
clickPos = TQPoint();
diff --git a/fifteenapplet/fifteenapplet.cpp b/fifteenapplet/fifteenapplet.cpp
index 787c8a1..dd350cb 100644
--- a/fifteenapplet/fifteenapplet.cpp
+++ b/fifteenapplet/fifteenapplet.cpp
@@ -227,7 +227,7 @@ void PiecesTable::mousePressEvent(TQMouseEvent* e)
{
QtTableView::mousePressEvent(e);
- if (e->button() == Qt::RightButton) {
+ if (e->button() == TQt::RightButton) {
// execute RMB popup and check result
_menu->exec(mapToGlobal(e->pos()));
e->accept();
diff --git a/fifteenapplet/qttableview.cpp b/fifteenapplet/qttableview.cpp
index f30843c..136247e 100644
--- a/fifteenapplet/qttableview.cpp
+++ b/fifteenapplet/qttableview.cpp
@@ -1439,7 +1439,7 @@ TQScrollBar *QtTableView::verticalScrollBar() const
{
QtTableView *that = (QtTableView*)this; // semantic const
if ( !vScrollBar ) {
- TQScrollBar *sb = new TQScrollBar( Qt::Vertical, that );
+ TQScrollBar *sb = new TQScrollBar( TQt::Vertical, that );
#ifndef TQT_NO_CURSOR
sb->setCursor( arrowCursor );
#endif
@@ -1470,7 +1470,7 @@ TQScrollBar *QtTableView::horizontalScrollBar() const
{
QtTableView *that = (QtTableView*)this; // semantic const
if ( !hScrollBar ) {
- TQScrollBar *sb = new TQScrollBar( Qt::Horizontal, that );
+ TQScrollBar *sb = new TQScrollBar( TQt::Horizontal, that );
#ifndef TQT_NO_CURSOR
sb->setCursor( arrowCursor );
#endif
diff --git a/kmoon/kmoonapplet.cpp b/kmoon/kmoonapplet.cpp
index 706a550..e4f5509 100644
--- a/kmoon/kmoonapplet.cpp
+++ b/kmoon/kmoonapplet.cpp
@@ -134,11 +134,11 @@ void MoonPAWidget::mousePressEvent( TQMouseEvent *e)
if (!popup)
return;
- if (e->button() == Qt::RightButton) {
+ if (e->button() == TQt::RightButton) {
popup->popup(mapToGlobal(e->pos()));
popup->exec();
}
- if (e->button() == Qt::LeftButton) {
+ if (e->button() == TQt::LeftButton) {
showAbout();
}
}
diff --git a/kmoon/kmoondlg.cpp b/kmoon/kmoondlg.cpp
index 5473a30..db4b9b3 100644
--- a/kmoon/kmoondlg.cpp
+++ b/kmoon/kmoondlg.cpp
@@ -54,7 +54,7 @@ KMoonDlg::KMoonDlg(int a, bool n, bool m, TQWidget *parent, const char *name)
"at this angle.");
TQWhatsThis::add(label, text);
- slider = new TQSlider( -90, 90, 2, angle, Qt::Horizontal, hbox1, "slider" );
+ slider = new TQSlider( -90, 90, 2, angle, TQt::Horizontal, hbox1, "slider" );
slider->setTickmarks(TQSlider::Above);
slider->setTickInterval(45);
slider->setEnabled(TQPixmap::defaultDepth() > 8);
diff --git a/kodo/kodometer.cpp b/kodo/kodometer.cpp
index 8468190..032d332 100644
--- a/kodo/kodometer.cpp
+++ b/kodo/kodometer.cpp
@@ -156,9 +156,9 @@ void Kodometer::FindAllScreens(void)
vPixelsPerMM = (double)Dh / (double)DhMM;
hPixelsPerMM = (double)Dw / (double)DwMM;
screenInfo[i].PixelsPerMM = (vPixelsPerMM + hPixelsPerMM) / 2.0;
-// kdDebug() << " Qt::Vertical pixels/mm are " << vPixelsPerMM <<
+// kdDebug() << " Vertical pixels/mm are " << vPixelsPerMM <<
// "mm" << endl;
-// kdDebug() << " Qt::Horizontal pixels/mm are " << hPixelsPerMM <<
+// kdDebug() << " Horizontal pixels/mm are " << hPixelsPerMM <<
// "mm" << endl;
// kdDebug() << " Average pixels/mm are " <<
// screenInfo[i].PixelsPerMM << "mm" << endl;
diff --git a/kteatime/toplevel.cpp b/kteatime/toplevel.cpp
index 2d0ee03..df943d8 100644
--- a/kteatime/toplevel.cpp
+++ b/kteatime/toplevel.cpp
@@ -225,7 +225,7 @@ void TopLevel::showEvent ( TQShowEvent * )
/** Handle mousePressEvent */
void TopLevel::mousePressEvent(TQMouseEvent *event)
{
- if (event->button() == Qt::LeftButton) {
+ if (event->button() == TQt::LeftButton) {
if (ready) {
stop(); // reset tooltip and stop animation
} else {
@@ -234,7 +234,7 @@ void TopLevel::mousePressEvent(TQMouseEvent *event)
else
start_menu->popup(TQCursor::pos());
}
- } else if (event->button() == Qt::RightButton)
+ } else if (event->button() == TQt::RightButton)
menu->popup(TQCursor::pos());
// else if (event->button() == MidButton) // currently unused
}
@@ -682,7 +682,7 @@ void TopLevel::config()
/* left side - tea list and list-modifying buttons */
TQBoxLayout *leftside = new TQVBoxLayout(box);
- TQGroupBox *listgroup = new TQGroupBox(2,Qt::Vertical, i18n("Tea List"), page);
+ TQGroupBox *listgroup = new TQGroupBox(2,TQt::Vertical, i18n("Tea List"), page);
leftside->addWidget(listgroup, 0, 0);
listbox = new TQListView(listgroup, "listBox");
@@ -729,7 +729,7 @@ void TopLevel::config()
/* right side - tea properties */
TQBoxLayout *rightside = new TQVBoxLayout(box);
- editgroup = new TQGroupBox(2,Qt::Vertical, i18n("Tea Properties"), page);
+ editgroup = new TQGroupBox(2,TQt::Vertical, i18n("Tea Properties"), page);
rightside->addWidget(editgroup, 0, 0);
TQHBox *propbox = new TQHBox(editgroup);
@@ -751,7 +751,7 @@ void TopLevel::config()
connect(timeEdit, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(spinBoxValueChanged(int)));
/* bottom - timeout actions */
- TQGroupBox *actiongroup = new TQGroupBox(4,Qt::Vertical, i18n("Action"), page);
+ TQGroupBox *actiongroup = new TQGroupBox(4,TQt::Vertical, i18n("Action"), page);
top_box->addWidget(actiongroup, 0, 0);
TQWidget *actionconf_widget = new TQWidget(actiongroup);
diff --git a/ktux/sprite.cpp b/ktux/sprite.cpp
index a59b6f4..292a013 100644
--- a/ktux/sprite.cpp
+++ b/ktux/sprite.cpp
@@ -64,7 +64,7 @@ KSpriteSetup::KSpriteSetup( TQWidget *parent, const char *name )
tl11->addStretch(1);
tl11->addWidget(label);
- TQSlider *sb = new TQSlider(0, 100, 10, speed, Qt::Horizontal, this );
+ TQSlider *sb = new TQSlider(0, 100, 10, speed, TQt::Horizontal, this );
tl11->addWidget(sb);
connect( sb, TQT_SIGNAL( valueChanged( int ) ), TQT_SLOT( slotSpeed( int ) ) );
diff --git a/kweather/dockwidget.cpp b/kweather/dockwidget.cpp
index 744ab91..11d45ea 100644
--- a/kweather/dockwidget.cpp
+++ b/kweather/dockwidget.cpp
@@ -32,7 +32,7 @@
#include <kiconloader.h>
dockwidget::dockwidget(const TQString &location, TQWidget *parent,
- const char *name) : TQWidget(parent,name), m_locationCode( location ), m_orientation(Qt::Horizontal )
+ const char *name) : TQWidget(parent,name), m_locationCode( location ), m_orientation(TQt::Horizontal )
{
m_font = TDEGlobalSettings::generalFont();
setBackgroundOrigin( AncestorOrigin );
diff --git a/kweather/dockwidget.h b/kweather/dockwidget.h
index dfdca05..89c5133 100644
--- a/kweather/dockwidget.h
+++ b/kweather/dockwidget.h
@@ -41,7 +41,7 @@ public:
void setLocationCode(const TQString &locationCode);
void setViewMode(int);
- void setOrientation(Qt::Orientation o) { m_orientation = o; }
+ void setOrientation(TQt::Orientation o) { m_orientation = o; }
/** resize the view **/
void resizeView(const TQSize &size);
int widthForHeight(int h);
diff --git a/kweather/kweather.cpp b/kweather/kweather.cpp
index 8d0b618..1a215f4 100644
--- a/kweather/kweather.cpp
+++ b/kweather/kweather.cpp
@@ -302,7 +302,7 @@ void kweather::timeout()
int kweather::widthForHeight(int h) const
{
//kdDebug(12004) << "widthForHeight " << h << endl;
- dockWidget->setOrientation(Qt::Horizontal);
+ dockWidget->setOrientation(TQt::Horizontal);
int w = dockWidget->widthForHeight(h);
return w;
}
@@ -310,7 +310,7 @@ int kweather::widthForHeight(int h) const
int kweather::heightForWidth(int w) const
{
kdDebug(12004) << "heightForWidth " << w<< endl;
- dockWidget->setOrientation(Qt::Vertical);
+ dockWidget->setOrientation(TQt::Vertical);
int h = dockWidget->heightForWidth( w );
return h;
}
@@ -373,7 +373,7 @@ void kweather::slotPrefsAccepted()
void kweather::mousePressEvent(TQMouseEvent *e)
{
- if ( e->button() != Qt::RightButton )
+ if ( e->button() != TQt::RightButton )
{
KPanelApplet::mousePressEvent( e );
return;
diff --git a/kworldwatch/applet.cpp b/kworldwatch/applet.cpp
index f358dac..8ce7560 100644
--- a/kworldwatch/applet.cpp
+++ b/kworldwatch/applet.cpp
@@ -115,7 +115,7 @@ void KWWApplet::mousePressEvent(TQMouseEvent *e)
clicked = e->type() == TQMouseEvent::MouseButtonDblClick;
}
- if (clicked && e->button() == Qt::LeftButton)
+ if (clicked && e->button() == TQt::LeftButton)
{
KRun::run("kworldclock", KURL::List());
}
diff --git a/kworldwatch/mapwidget.cpp b/kworldwatch/mapwidget.cpp
index 5acc5ce..ba1bba5 100644
--- a/kworldwatch/mapwidget.cpp
+++ b/kworldwatch/mapwidget.cpp
@@ -410,7 +410,7 @@ void MapWidget::themeSelected(int index)
void MapWidget::mousePressEvent(TQMouseEvent *ev)
{
- if (ev->button() == Qt::RightButton)
+ if (ev->button() == TQt::RightButton)
{
_flagPos = ev->pos();
_popup->exec(ev->globalPos());
diff --git a/kworldwatch/zoneclock.cpp b/kworldwatch/zoneclock.cpp
index a2279c2..7d0ad6b 100644
--- a/kworldwatch/zoneclock.cpp
+++ b/kworldwatch/zoneclock.cpp
@@ -138,7 +138,7 @@ bool ZoneClock::eventFilter(TQObject *obj, TQEvent *ev)
if (ev->type() == TQEvent::MouseButtonPress)
{
TQMouseEvent *e = (TQMouseEvent*)ev;
- if (e->button() == Qt::RightButton)
+ if (e->button() == TQt::RightButton)
_popup->exec(e->globalPos());
}