summaryrefslogtreecommitdiffstats
path: root/kicker-applets
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-06 11:29:10 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-07 10:53:46 +0900
commitf37c5af508b00cb3984ffbbd276387ac8f9a38ee (patch)
tree30dcbce15fc419eaaed73f0a3cdb043e5b2eeb0b /kicker-applets
parent7683c5ed7cada26ddf6254e64da3afb74ced25c0 (diff)
downloadtdeaddons-f37c5af508b00cb3984ffbbd276387ac8f9a38ee.tar.gz
tdeaddons-f37c5af508b00cb3984ffbbd276387ac8f9a38ee.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 96f327c14acd697b936e88289165e0edb57d7fb6)
Diffstat (limited to 'kicker-applets')
-rw-r--r--kicker-applets/kbinaryclock/kbinaryclock.cpp6
-rw-r--r--kicker-applets/kolourpicker/kolourpicker.cpp2
-rw-r--r--kicker-applets/kolourpicker/simplebutton.cpp4
-rw-r--r--kicker-applets/kolourpicker/simplebutton.h4
-rw-r--r--kicker-applets/ktimemon/confdlg.cpp2
-rw-r--r--kicker-applets/ktimemon/timemon.cpp6
-rw-r--r--kicker-applets/math/mathapplet.cpp6
-rw-r--r--kicker-applets/mediacontrol/mcslider.cpp4
-rw-r--r--kicker-applets/mediacontrol/mcslider.h2
-rw-r--r--kicker-applets/mediacontrol/mediacontrol.cpp16
-rw-r--r--kicker-applets/mediacontrol/simplebutton.cpp4
-rw-r--r--kicker-applets/mediacontrol/simplebutton.h4
12 files changed, 30 insertions, 30 deletions
diff --git a/kicker-applets/kbinaryclock/kbinaryclock.cpp b/kicker-applets/kbinaryclock/kbinaryclock.cpp
index 04497f4..3064179 100644
--- a/kicker-applets/kbinaryclock/kbinaryclock.cpp
+++ b/kicker-applets/kbinaryclock/kbinaryclock.cpp
@@ -264,15 +264,15 @@ void KBinaryClock::updateClock(){
*/
void KBinaryClock::mousePressEvent(TQMouseEvent *event) {
switch (event->button()) {
- case Qt::RightButton:
+ case TQt::RightButton:
TQToolTip::remove(this);
openContextMenu();
break;
- case Qt::LeftButton:
+ case TQt::LeftButton:
toggleCalendar();
TQToolTip::remove(this);
break;
- case Qt::MidButton:
+ case TQt::MidButton:
TQToolTip::remove(this);
break;
default:
diff --git a/kicker-applets/kolourpicker/kolourpicker.cpp b/kicker-applets/kolourpicker/kolourpicker.cpp
index 55b4ef4..91997b6 100644
--- a/kicker-applets/kolourpicker/kolourpicker.cpp
+++ b/kicker-applets/kolourpicker/kolourpicker.cpp
@@ -242,7 +242,7 @@ void KolourPicker::arrangeButtons()
{
int h, w, p;
- if (orientation() ==Qt::Horizontal)
+ if (orientation() ==TQt::Horizontal)
{
h = height();
if (h > 40)
diff --git a/kicker-applets/kolourpicker/simplebutton.cpp b/kicker-applets/kolourpicker/simplebutton.cpp
index 98b7570..f95fbe8 100644
--- a/kicker-applets/kolourpicker/simplebutton.cpp
+++ b/kicker-applets/kolourpicker/simplebutton.cpp
@@ -35,7 +35,7 @@
SimpleButton::SimpleButton(TQWidget *parent, const char *name)
: TQButton(parent, name),
m_highlight(false),
- m_orientation(Qt::Horizontal)
+ m_orientation(TQt::Horizontal)
{
setBackgroundOrigin( AncestorOrigin );
@@ -57,7 +57,7 @@ void SimpleButton::setPixmap(const TQPixmap &pix)
update();
}
-void SimpleButton::setOrientation(Qt::Orientation orientation)
+void SimpleButton::setOrientation(TQt::Orientation orientation)
{
m_orientation = orientation;
update();
diff --git a/kicker-applets/kolourpicker/simplebutton.h b/kicker-applets/kolourpicker/simplebutton.h
index b3ab442..7243d50 100644
--- a/kicker-applets/kolourpicker/simplebutton.h
+++ b/kicker-applets/kolourpicker/simplebutton.h
@@ -34,7 +34,7 @@ class KDE_EXPORT SimpleButton : public TQButton
public:
SimpleButton(TQWidget *parent, const char *name = 0);
void setPixmap(const TQPixmap &pix);
- void setOrientation(Qt::Orientation orientaton);
+ void setOrientation(TQt::Orientation orientaton);
TQSize sizeHint() const;
TQSize minimumSizeHint() const;
@@ -56,7 +56,7 @@ class KDE_EXPORT SimpleButton : public TQButton
TQPixmap m_normalIcon;
TQPixmap m_activeIcon;
TQPixmap m_disabledIcon;
- Qt::Orientation m_orientation;
+ TQt::Orientation m_orientation;
class SimpleButtonPrivate;
SimpleButtonPrivate* d;
};
diff --git a/kicker-applets/ktimemon/confdlg.cpp b/kicker-applets/ktimemon/confdlg.cpp
index 337f5c5..c2c9493 100644
--- a/kicker-applets/ktimemon/confdlg.cpp
+++ b/kicker-applets/ktimemon/confdlg.cpp
@@ -166,7 +166,7 @@ KConfDialog::KConfDialog(KTimeMon *t)
bl = new TQVBoxLayout(page, 0, spacingHint());
b = new TQGroupBox(i18n("Mouse Events"), page);
- b->setColumnLayout( 0, Qt::Vertical );
+ b->setColumnLayout( 0, TQt::Vertical );
bl->addWidget(b);
bl->addStretch();
diff --git a/kicker-applets/ktimemon/timemon.cpp b/kicker-applets/ktimemon/timemon.cpp
index d417ba8..3d0d3da 100644
--- a/kicker-applets/ktimemon/timemon.cpp
+++ b/kicker-applets/ktimemon/timemon.cpp
@@ -385,9 +385,9 @@ void KTimeMon::mousePressEvent(TQMouseEvent *event)
if (event == 0) return;
int index = -1;
- if (event->button() == Qt::LeftButton) index = 0;
- else if (event->button() == Qt::MidButton) index = 1;
- else if (event->button() == Qt::RightButton) index = 2;
+ if (event->button() == TQt::LeftButton) index = 0;
+ else if (event->button() == TQt::MidButton) index = 1;
+ else if (event->button() == TQt::RightButton) index = 2;
if (index == -1) return;
diff --git a/kicker-applets/math/mathapplet.cpp b/kicker-applets/math/mathapplet.cpp
index 83604ea..253ba78 100644
--- a/kicker-applets/math/mathapplet.cpp
+++ b/kicker-applets/math/mathapplet.cpp
@@ -151,7 +151,7 @@ void MathApplet::useRadians() {
void MathApplet::resizeEvent(TQResizeEvent*)
{
- if(orientation() ==Qt::Horizontal)
+ if(orientation() ==TQt::Horizontal)
{
_btn->hide();
_input->reparent(this, TQPoint(0,0), true);
@@ -269,13 +269,13 @@ void MathApplet::evaluate(const TQString& command)
}
}
- if (orientation() ==Qt::Vertical)
+ if (orientation() ==TQt::Vertical)
_hbox->hide();
}
void MathApplet::mousePressEvent(TQMouseEvent *e)
{
- if ( e->button() != Qt::RightButton )
+ if ( e->button() != TQt::RightButton )
{
KPanelApplet::mousePressEvent( e );
return;
diff --git a/kicker-applets/mediacontrol/mcslider.cpp b/kicker-applets/mediacontrol/mcslider.cpp
index 611aec4..49e29b0 100644
--- a/kicker-applets/mediacontrol/mcslider.cpp
+++ b/kicker-applets/mediacontrol/mcslider.cpp
@@ -19,7 +19,7 @@
#include "mcslider.h"
-MCSlider::MCSlider( Qt::Orientation orientation, TQWidget *parent, const char *name )
+MCSlider::MCSlider( TQt::Orientation orientation, TQWidget *parent, const char *name )
: TQSlider( orientation, parent, name )
{
setBackgroundOrigin(WidgetOrigin);
@@ -46,7 +46,7 @@ void MCSlider::setBackground()
void MCSlider::wheelEvent(TQWheelEvent *e)
{
- if (e->orientation() ==Qt::Horizontal)
+ if (e->orientation() ==TQt::Horizontal)
return;
if (e->state() == ShiftButton)
diff --git a/kicker-applets/mediacontrol/mcslider.h b/kicker-applets/mediacontrol/mcslider.h
index 26b7922..6e67ae0 100644
--- a/kicker-applets/mediacontrol/mcslider.h
+++ b/kicker-applets/mediacontrol/mcslider.h
@@ -26,7 +26,7 @@ class MCSlider : public TQSlider
public:
- MCSlider( Qt::Orientation orientation, TQWidget *parent, const char *name = 0 );
+ MCSlider( TQt::Orientation orientation, TQWidget *parent, const char *name = 0 );
~MCSlider();
void setBackground();
private:
diff --git a/kicker-applets/mediacontrol/mediacontrol.cpp b/kicker-applets/mediacontrol/mediacontrol.cpp
index fed96e9..e2d5492 100644
--- a/kicker-applets/mediacontrol/mediacontrol.cpp
+++ b/kicker-applets/mediacontrol/mediacontrol.cpp
@@ -139,7 +139,7 @@ MediaControl::MediaControl(const TQString &configFile, Type t, int actions,
playpause_button = new TrayButton (this, "PLAYPAUSE");
stop_button = new TrayButton (this, "STOP");
next_button = new TrayButton (this, "NEXT");
- time_slider = new MCSlider (Qt::Horizontal, this, "time_slider" );
+ time_slider = new MCSlider (TQt::Horizontal, this, "time_slider" );
time_slider->setRange(0,0);
time_slider->setValue(0);
time_slider->setTracking( false );
@@ -184,7 +184,7 @@ void MediaControl::dropEvent(TQDropEvent* event)
void MediaControl::setSliderPosition(int len ,int time)
{
time_slider->blockSignals(true);
- if(orientation() ==Qt::Vertical)
+ if(orientation() ==TQt::Vertical)
time = len - time;
if (mLastLen != len)
@@ -318,7 +318,7 @@ void MediaControl::reportBug()
// Fixing the orientation problem in qslider.
void MediaControl::adjustTime(int time)
{
- if(orientation() ==Qt::Vertical)
+ if(orientation() ==TQt::Vertical)
emit(newJumpToTime(mLastLen - time));
else
emit(newJumpToTime(time));
@@ -498,7 +498,7 @@ int MediaControl::heightForWidth(int width) const
void MediaControl::mousePressEvent(TQMouseEvent* e)
{
- if (e->button() == Qt::RightButton)
+ if (e->button() == TQt::RightButton)
rmbMenu->popup(e->globalPos());
}
@@ -507,7 +507,7 @@ bool MediaControl::eventFilter(TQObject *, TQEvent *e)
if (e->type() == TQEvent::MouseButtonPress)
{
TQMouseEvent *me = TQT_TQMOUSEEVENT(e);
- if (me->button() == Qt::RightButton)
+ if (me->button() == TQt::RightButton)
{
rmbMenu->popup(me->globalPos());
return true;
@@ -532,9 +532,9 @@ void MediaControl::resizeEvent( TQResizeEvent* )
// kdDebug(90200) << "resizeEvent()" << endl;
int w = width();
int h = height();
- if ( orientation() ==Qt::Vertical )
+ if ( orientation() ==TQt::Vertical )
{ // ====== VERTICAL =================================================
- time_slider->setOrientation(Qt::Vertical);
+ time_slider->setOrientation(TQt::Vertical);
int slider_width = time_slider->minimumSizeHint().width();
// some styles need more space for sliders than avilable in very small panels :(
if ( slider_width > w ) slider_width = w;
@@ -566,7 +566,7 @@ void MediaControl::resizeEvent( TQResizeEvent* )
}
else // ====== HORIZONTAL ===============================================
{
- time_slider->setOrientation(Qt::Horizontal);
+ time_slider->setOrientation(TQt::Horizontal);
int slider_height = time_slider->minimumSizeHint().height();
// some styles need more space for sliders than avilable in very small panels :(
if ( slider_height > h ) slider_height = h;
diff --git a/kicker-applets/mediacontrol/simplebutton.cpp b/kicker-applets/mediacontrol/simplebutton.cpp
index 98b7570..f95fbe8 100644
--- a/kicker-applets/mediacontrol/simplebutton.cpp
+++ b/kicker-applets/mediacontrol/simplebutton.cpp
@@ -35,7 +35,7 @@
SimpleButton::SimpleButton(TQWidget *parent, const char *name)
: TQButton(parent, name),
m_highlight(false),
- m_orientation(Qt::Horizontal)
+ m_orientation(TQt::Horizontal)
{
setBackgroundOrigin( AncestorOrigin );
@@ -57,7 +57,7 @@ void SimpleButton::setPixmap(const TQPixmap &pix)
update();
}
-void SimpleButton::setOrientation(Qt::Orientation orientation)
+void SimpleButton::setOrientation(TQt::Orientation orientation)
{
m_orientation = orientation;
update();
diff --git a/kicker-applets/mediacontrol/simplebutton.h b/kicker-applets/mediacontrol/simplebutton.h
index b3ab442..7243d50 100644
--- a/kicker-applets/mediacontrol/simplebutton.h
+++ b/kicker-applets/mediacontrol/simplebutton.h
@@ -34,7 +34,7 @@ class KDE_EXPORT SimpleButton : public TQButton
public:
SimpleButton(TQWidget *parent, const char *name = 0);
void setPixmap(const TQPixmap &pix);
- void setOrientation(Qt::Orientation orientaton);
+ void setOrientation(TQt::Orientation orientaton);
TQSize sizeHint() const;
TQSize minimumSizeHint() const;
@@ -56,7 +56,7 @@ class KDE_EXPORT SimpleButton : public TQButton
TQPixmap m_normalIcon;
TQPixmap m_activeIcon;
TQPixmap m_disabledIcon;
- Qt::Orientation m_orientation;
+ TQt::Orientation m_orientation;
class SimpleButtonPrivate;
SimpleButtonPrivate* d;
};