summaryrefslogtreecommitdiffstats
path: root/src/roundbutton.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-07-22 23:33:11 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-07-22 23:33:11 +0900
commit7665c8d3f798aaf287ff14a35af74d9c303cb20c (patch)
tree00fd812583eed65f80d269255e8b662c90d1ddc7 /src/roundbutton.cpp
parent100a40e71a3f796a93675f9940c42ebe6429740e (diff)
downloadkommando-7665c8d3f798aaf287ff14a35af74d9c303cb20c.tar.gz
kommando-7665c8d3f798aaf287ff14a35af74d9c303cb20c.zip
Raw Qt->TQt conversion using tde/scripts/conversions/qt3-tqt3/convert_existing_qt3_app_to_tq
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/roundbutton.cpp')
-rw-r--r--src/roundbutton.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/roundbutton.cpp b/src/roundbutton.cpp
index c8cb9fb..7d3fafa 100644
--- a/src/roundbutton.cpp
+++ b/src/roundbutton.cpp
@@ -22,16 +22,16 @@
#include <kiconloader.h>
#include <kpixmapeffect.h>
-#include <qbitmap.h>
+#include <ntqbitmap.h>
#include "kommando.h"
-RoundButton::RoundButton( QWidget* parent, unsigned short rad, const char* name, WFlags f)
- : QButton(parent, name, f)
+RoundButton::RoundButton( TQWidget* parent, unsigned short rad, const char* name, WFlags f)
+ : TQButton(parent, name, f)
{
setRadius(rad);
//setBackgroundMode(NoBackground);
- //setBackgroundColor(QColor(0,0,0));
+ //setBackgroundColor(TQColor(0,0,0));
background.resize(width(),height());
}
@@ -40,13 +40,13 @@ RoundButton::~RoundButton()
{
}
-void RoundButton::drawButton( QPainter *Painter )
+void RoundButton::drawButton( TQPainter *Painter )
{
Painter->drawPixmap(0,0,background);
drawButtonLabel(Painter);
}
-void RoundButton::drawButtonLabel( QPainter *Painter )
+void RoundButton::drawButtonLabel( TQPainter *Painter )
{
//Do we have a pixmap?
if(!pixmap()){
@@ -58,7 +58,7 @@ void RoundButton::drawButtonLabel( QPainter *Painter )
void RoundButton::move( int x, int y )
{
- QButton::move(x-radius,y-radius);
+ TQButton::move(x-radius,y-radius);
}
void RoundButton::setRadius( int rad )
@@ -69,7 +69,7 @@ void RoundButton::setRadius( int rad )
//setIcon(mIconPath);
}
-void RoundButton::setIcon( const QString& path )
+void RoundButton::setIcon( const TQString& path )
{
mIconPath=path;
icon=MainBarIcon(path,radius*2);
@@ -82,22 +82,22 @@ void RoundButton::show()
//get the buttons part of the screenshot
copyBlt(&background,0,0,static_cast<Kommando*>(parent())->screenshot(),pos().x(),pos().y(),width(),height());
- QButton::show();
+ TQButton::show();
}
-bool RoundButton::event( QEvent * evt )
+bool RoundButton::event( TQEvent * evt )
{
switch(evt->type()){
- case QEvent::Enter:
+ case TQEvent::Enter:
emit mouseIn(this);
setActive(true);
return true;
- case QEvent::Leave:
+ case TQEvent::Leave:
emit mouseOut(this);
setActive(false);
return true;
default:
- return QButton::event(evt);
+ return TQButton::event(evt);
}
}
@@ -112,7 +112,7 @@ void RoundButton::setActive( bool mode )
//key press events need to be ignored, so that they can be captured by the menu
/* TODO execution could be placed here! */
-void RoundButton::keyPressEvent( QKeyEvent * evt )
+void RoundButton::keyPressEvent( TQKeyEvent * evt )
{
evt->ignore();
}