summaryrefslogtreecommitdiffstats
path: root/kmix/kledbutton.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kmix/kledbutton.cpp')
-rw-r--r--kmix/kledbutton.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kmix/kledbutton.cpp b/kmix/kledbutton.cpp
index f788f8ea..e0a7bff1 100644
--- a/kmix/kledbutton.cpp
+++ b/kmix/kledbutton.cpp
@@ -19,12 +19,12 @@
* Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
-#include <qsizepolicy.h>
+#include <tqsizepolicy.h>
#include "kledbutton.h"
-KLedButton::KLedButton(const QColor &col, QWidget *parent, const char *name)
+KLedButton::KLedButton(const TQColor &col, TQWidget *parent, const char *name)
: KLed( col, parent, name )
{
// KLed and thus KLedButtung does not do proper positioning in QLayout's.
@@ -32,8 +32,8 @@ KLedButton::KLedButton(const QColor &col, QWidget *parent, const char *name)
installEventFilter(parent);
}
-KLedButton::KLedButton(const QColor& col, KLed::State st, KLed::Look look,
- KLed::Shape shape, QWidget *parent, const char *name)
+KLedButton::KLedButton(const TQColor& col, KLed::State st, KLed::Look look,
+ KLed::Shape shape, TQWidget *parent, const char *name)
: KLed( col, st, look, shape, parent, name )
{
}
@@ -42,7 +42,7 @@ KLedButton::~KLedButton()
{
}
-void KLedButton::mousePressEvent( QMouseEvent *e )
+void KLedButton::mousePressEvent( TQMouseEvent *e )
{
if (e->button() == LeftButton)
{
@@ -51,12 +51,12 @@ void KLedButton::mousePressEvent( QMouseEvent *e )
}
}
-bool KLedButton::eventFilter( QObject* /*obj*/ , QEvent* /*ev*/ ) {
+bool KLedButton::eventFilter( TQObject* /*obj*/ , TQEvent* /*ev*/ ) {
// KLed and thus KLedButtung does not do proper positioning in QLayout's.
// Thus I listen to my parents resize events and do it here ... OUCH, that's ugly
/* No, this cannot work !
- if ( ev->type() == QEvent::Resize ) {
- QResizeEvent* qre = (QResizeEvent*)ev;
+ if ( ev->type() == TQEvent::Resize ) {
+ TQResizeEvent* qre = (TQResizeEvent*)ev;
this->move( qre->size().width() - width()/2,
qre->size().height() - height()/2 );
}
@@ -66,14 +66,14 @@ bool KLedButton::eventFilter( QObject* /*obj*/ , QEvent* /*ev*/ ) {
}
-QSize KLedButton::sizeHint() const
+TQSize KLedButton::sizeHint() const
{
return size();
}
-QSizePolicy KLedButton::sizePolicy () const
+TQSizePolicy KLedButton::sizePolicy () const
{
- return QSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
+ return TQSizePolicy(TQSizePolicy::Fixed, TQSizePolicy::Fixed);
}
#include "kledbutton.moc"