summaryrefslogtreecommitdiffstats
path: root/twin-styles/cde
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-06 11:29:31 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-07 09:57:47 +0900
commit96f53316c2d7b72477825b53206998efc9bfd315 (patch)
treebccae9b5638d64deb8a0bdf749bf9a1597021fdb /twin-styles/cde
parentf0e925909a8e02822e322d87db8d4af43284d298 (diff)
downloadtdeartwork-96f53316c2d7b72477825b53206998efc9bfd315.tar.gz
tdeartwork-96f53316c2d7b72477825b53206998efc9bfd315.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'twin-styles/cde')
-rw-r--r--twin-styles/cde/cdeclient.cpp16
-rw-r--r--twin-styles/cde/cdeclient.h2
-rw-r--r--twin-styles/cde/config/config.cpp2
3 files changed, 10 insertions, 10 deletions
diff --git a/twin-styles/cde/cdeclient.cpp b/twin-styles/cde/cdeclient.cpp
index 040b00ef..eaea2002 100644
--- a/twin-styles/cde/cdeclient.cpp
+++ b/twin-styles/cde/cdeclient.cpp
@@ -328,7 +328,7 @@ void CdeClient::addClientButtons( const TQString& s )
case 'M':
if ( ! button[BtnMenu] )
{
- button[BtnMenu] = new CdeButton( this, "menu", BtnMenu, i18n("Menu"), Qt::LeftButton|Qt::RightButton );
+ button[BtnMenu] = new CdeButton( this, "menu", BtnMenu, i18n("Menu"), TQt::LeftButton|TQt::RightButton );
connect( button[BtnMenu], TQT_SIGNAL(pressed()), TQT_SLOT(menuButtonPressed()) );
connect( button[BtnMenu], TQT_SIGNAL(released()), TQT_SLOT(menuButtonReleased()) );
titleLayout->addWidget( button[BtnMenu] );
@@ -361,7 +361,7 @@ void CdeClient::addClientButtons( const TQString& s )
case 'A':
if ( (! button[BtnMax] ) && isMaximizable() )
{
- button[BtnMax] = new CdeButton(this, "maximize", BtnMax, i18n("Maximize"), Qt::LeftButton|Qt::MidButton|Qt::RightButton);
+ button[BtnMax] = new CdeButton(this, "maximize", BtnMax, i18n("Maximize"), TQt::LeftButton|TQt::MidButton|TQt::RightButton);
connect(button[BtnMax], TQT_SIGNAL(clicked()),
TQT_SLOT(maximizeButtonClicked()));
titleLayout->addWidget( button[BtnMax] );
@@ -715,7 +715,7 @@ KDecoration::Position CdeClient::mousePosition( const TQPoint& p ) const
void CdeClient::mouseDoubleClickEvent( TQMouseEvent * e )
{
- if ( e->button() == Qt::LeftButton && titlebar->geometry().contains( e->pos() ) )
+ if ( e->button() == TQt::LeftButton && titlebar->geometry().contains( e->pos() ) )
titlebarDblClickOperation();
}
@@ -727,7 +727,7 @@ void CdeClient::wheelEvent( TQWheelEvent * e )
void CdeClient::mousePressEvent( TQMouseEvent * e )
{
- if ( e->button() == Qt::LeftButton && titlebar->geometry().contains( e->pos() ) )
+ if ( e->button() == TQt::LeftButton && titlebar->geometry().contains( e->pos() ) )
{
if ( titlebarButtonMode )
{
@@ -745,7 +745,7 @@ void CdeClient::borders(int &left, int &right, int &top, int &bottom) const
void CdeClient::mouseReleaseEvent( TQMouseEvent * e )
{
- if ( e->button() == Qt::LeftButton && titlebarPressed )
+ if ( e->button() == TQt::LeftButton && titlebarPressed )
{
titlebarPressed = false;
widget()->repaint(titlebar->geometry(), false);
@@ -785,7 +785,7 @@ bool CdeClient::eventFilter(TQObject *o, TQEvent *e)
CdeButton::CdeButton(CdeClient* parent,
const char* name, int btnType, const TQString& tip, int realize_btns)
- : TQButton(parent->widget(), name), m_btnType(btnType), last_button(Qt::NoButton)
+ : TQButton(parent->widget(), name), m_btnType(btnType), last_button(TQt::NoButton)
{
setBackgroundMode( TQWidget::NoBackground );
setFixedSize( s_buttonSize, s_buttonSize );
@@ -847,7 +847,7 @@ void CdeButton::mousePressEvent(TQMouseEvent *e)
{
last_button = e->button();
TQMouseEvent me(e->type(), e->pos(),
- e->globalPos(), (e->button()&m_realize_buttons)?Qt::LeftButton:Qt::NoButton, e->state());
+ e->globalPos(), (e->button()&m_realize_buttons)?TQt::LeftButton:TQt::NoButton, e->state());
TQButton::mousePressEvent(&me);
}
@@ -855,7 +855,7 @@ void CdeButton::mouseReleaseEvent(TQMouseEvent * e)
{
last_button = e->button();
TQMouseEvent me(e->type(), e->pos(),
- e->globalPos(), (e->button()&m_realize_buttons)?Qt::LeftButton:Qt::NoButton, e->state());
+ e->globalPos(), (e->button()&m_realize_buttons)?TQt::LeftButton:TQt::NoButton, e->state());
TQButton::mouseReleaseEvent(&me);
}
diff --git a/twin-styles/cde/cdeclient.h b/twin-styles/cde/cdeclient.h
index 5b1deb73..be4a9752 100644
--- a/twin-styles/cde/cdeclient.h
+++ b/twin-styles/cde/cdeclient.h
@@ -39,7 +39,7 @@ class CdeButton : public TQButton
{
public:
CdeButton( CdeClient* parent=0, const char* name=0, int btnType=0,
- const TQString& tip=NULL, int realize_btns = Qt::LeftButton );
+ const TQString& tip=NULL, int realize_btns = TQt::LeftButton );
void reset();
ButtonState lastButton() { return last_button; }
diff --git a/twin-styles/cde/config/config.cpp b/twin-styles/cde/config/config.cpp
index 1776df24..48b5c791 100644
--- a/twin-styles/cde/config/config.cpp
+++ b/twin-styles/cde/config/config.cpp
@@ -29,7 +29,7 @@ CdeConfig::CdeConfig( TDEConfig* conf, TQWidget* parent )
groupBox = new TQVBox( parent );
- bgAlign = new TQButtonGroup( 3, Qt::Horizontal, i18n("Text &Alignment"), groupBox );
+ bgAlign = new TQButtonGroup( 3, TQt::Horizontal, i18n("Text &Alignment"), groupBox );
bgAlign->setExclusive( true );
TQWhatsThis::add( bgAlign, i18n("Use these buttons to set the alignment of the titlebar caption text.") );
new TQRadioButton( i18n("Left"), bgAlign, "AlignLeft" );