diff options
Diffstat (limited to 'twin-styles')
-rw-r--r-- | twin-styles/cde/cdeclient.cpp | 16 | ||||
-rw-r--r-- | twin-styles/cde/cdeclient.h | 2 | ||||
-rw-r--r-- | twin-styles/cde/config/config.cpp | 2 | ||||
-rw-r--r-- | twin-styles/glow/config/glowconfigdialog.cpp | 2 | ||||
-rw-r--r-- | twin-styles/glow/glowbutton.cpp | 4 | ||||
-rw-r--r-- | twin-styles/glow/glowbutton.h | 2 | ||||
-rw-r--r-- | twin-styles/glow/glowclient.cpp | 6 | ||||
-rw-r--r-- | twin-styles/icewm/icewm.cpp | 14 | ||||
-rw-r--r-- | twin-styles/icewm/icewm.h | 2 | ||||
-rw-r--r-- | twin-styles/kde1/kde1client.cpp | 4 | ||||
-rw-r--r-- | twin-styles/kde1/kde1client.h | 4 | ||||
-rw-r--r-- | twin-styles/kstep/nextclient.cpp | 12 | ||||
-rw-r--r-- | twin-styles/kstep/nextclient.h | 2 | ||||
-rw-r--r-- | twin-styles/openlook/OpenLook.cpp | 2 | ||||
-rw-r--r-- | twin-styles/riscos/Button.cpp | 6 | ||||
-rw-r--r-- | twin-styles/riscos/Button.h | 2 | ||||
-rw-r--r-- | twin-styles/riscos/Manager.cpp | 2 | ||||
-rw-r--r-- | twin-styles/riscos/MaximiseButton.cpp | 2 | ||||
-rw-r--r-- | twin-styles/smooth-blend/client/smoothblend.cpp | 14 | ||||
-rw-r--r-- | twin-styles/system/systemclient.cpp | 6 |
20 files changed, 53 insertions, 53 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" ); diff --git a/twin-styles/glow/config/glowconfigdialog.cpp b/twin-styles/glow/config/glowconfigdialog.cpp index 3aa1d63a..f28e31c1 100644 --- a/twin-styles/glow/config/glowconfigdialog.cpp +++ b/twin-styles/glow/config/glowconfigdialog.cpp @@ -78,7 +78,7 @@ GlowConfigDialog::GlowConfigDialog( TDEConfig * conf, TQWidget * parent ) slotLoadThemeList(); _button_glow_color_group_box = new TQGroupBox( - 0, Qt::Horizontal, i18n("Button Glow Colors"), _main_group_box); + 0, TQt::Horizontal, i18n("Button Glow Colors"), _main_group_box); TQHBoxLayout *colorHBoxLayout = new TQHBoxLayout(_button_glow_color_group_box->layout()); diff --git a/twin-styles/glow/glowbutton.cpp b/twin-styles/glow/glowbutton.cpp index 6dbe2df3..9baa98a3 100644 --- a/twin-styles/glow/glowbutton.cpp +++ b/twin-styles/glow/glowbutton.cpp @@ -184,7 +184,7 @@ void GlowButton::mousePressEvent( TQMouseEvent *e ) // without pretending LeftButton, clicking on the button with MidButton // or RightButton would cause unwanted titlebar action TQMouseEvent me (e->type(), e->pos(), e->globalPos(), - (e->button()&m_realizeButtons)?Qt::LeftButton:Qt::NoButton, e->state()); + (e->button()&m_realizeButtons)?TQt::LeftButton:TQt::NoButton, e->state()); TQButton::mousePressEvent(&me); } @@ -199,7 +199,7 @@ void GlowButton::mouseReleaseEvent( TQMouseEvent *e ) m_timerStatus = Stop; } TQMouseEvent me (e->type(), e->pos(), e->globalPos(), - (e->button()&m_realizeButtons)?Qt::LeftButton:Qt::NoButton, e->state()); + (e->button()&m_realizeButtons)?TQt::LeftButton:TQt::NoButton, e->state()); TQButton::mouseReleaseEvent(&me); } diff --git a/twin-styles/glow/glowbutton.h b/twin-styles/glow/glowbutton.h index 9bd56de6..31e185c1 100644 --- a/twin-styles/glow/glowbutton.h +++ b/twin-styles/glow/glowbutton.h @@ -118,7 +118,7 @@ public: const TQColor & glow_color); GlowButton* createGlowButton( - TQWidget *parent, const char* name, const TQString& tip, const int realizeBtns = Qt::LeftButton); + TQWidget *parent, const char* name, const TQString& tip, const int realizeBtns = TQt::LeftButton); private: int _steps; diff --git a/twin-styles/glow/glowclient.cpp b/twin-styles/glow/glowclient.cpp index 4c911194..f2df7b4b 100644 --- a/twin-styles/glow/glowclient.cpp +++ b/twin-styles/glow/glowclient.cpp @@ -529,7 +529,7 @@ void GlowClient::showEvent( TQShowEvent * ) void GlowClient::mouseDoubleClickEvent( TQMouseEvent *e ) { - if(e->button() == Qt::LeftButton && _title_spacer->geometry().contains(e->pos())) + if(e->button() == TQt::LeftButton && _title_spacer->geometry().contains(e->pos())) titlebarDblClickOperation(); } @@ -652,7 +652,7 @@ void GlowClient::createButtons() TQSize size = globals->theme()->buttonSize; m_stickyButton = factory->createGlowButton(widget(), - "StickyButton", isOnAllDesktops()?i18n("Not on all desktops"):i18n("On all desktops"), Qt::LeftButton|Qt::RightButton); + "StickyButton", isOnAllDesktops()?i18n("Not on all desktops"):i18n("On all desktops"), TQt::LeftButton|TQt::RightButton); m_stickyButton->setFixedSize(size); connect(m_stickyButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(toggleOnAllDesktops())); m_buttonList.insert(m_buttonList.end(), m_stickyButton); @@ -670,7 +670,7 @@ void GlowClient::createButtons() m_buttonList.insert(m_buttonList.end(), m_minimizeButton); m_maximizeButton=factory->createGlowButton(widget(), - "MaximizeButton", i18n("Maximize"), Qt::LeftButton|Qt::MidButton|Qt::RightButton); + "MaximizeButton", i18n("Maximize"), TQt::LeftButton|TQt::MidButton|TQt::RightButton); m_maximizeButton->setFixedSize(size); connect(m_maximizeButton, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotMaximize())); m_buttonList.insert(m_buttonList.end(), m_maximizeButton); diff --git a/twin-styles/icewm/icewm.cpp b/twin-styles/icewm/icewm.cpp index 324a736a..3c8441ee 100644 --- a/twin-styles/icewm/icewm.cpp +++ b/twin-styles/icewm/icewm.cpp @@ -388,8 +388,8 @@ void ThemeHandler::initTheme() setPixmap( frameTR, "frame", "TR.xpm" ); // Sides - setPixmap( frameL, "frame", "L.xpm", true,Qt::Vertical ); - setPixmap( frameR, "frame", "R.xpm", true,Qt::Vertical ); + setPixmap( frameL, "frame", "L.xpm", true,TQt::Vertical ); + setPixmap( frameR, "frame", "R.xpm", true,TQt::Vertical ); // Bottom setPixmap( frameBL, "frame", "BL.xpm" ); @@ -843,7 +843,7 @@ void IceWMButton::mousePressEvent( TQMouseEvent* e ) { last_button = e->button(); TQMouseEvent me ( e->type(), e->pos(), e->globalPos(), - (e->button()&m_realizeButtons)?Qt::LeftButton:Qt::NoButton, e->state() ); + (e->button()&m_realizeButtons)?TQt::LeftButton:TQt::NoButton, e->state() ); TQButton::mousePressEvent( &me ); } @@ -852,7 +852,7 @@ void IceWMButton::mouseReleaseEvent( TQMouseEvent* e ) { last_button = e->button(); TQMouseEvent me ( e->type(), e->pos(), e->globalPos(), - (e->button()&m_realizeButtons)?Qt::LeftButton:Qt::NoButton, e->state() ); + (e->button()&m_realizeButtons)?TQt::LeftButton:TQt::NoButton, e->state() ); TQButton::mouseReleaseEvent( &me ); } @@ -976,7 +976,7 @@ void IceWMClient::addClientButtons( const TQString& s ) if (showMenuButtonIcon) { renderMenuIcons(); button[BtnSysMenu] = new IceWMButton(this, "menu", - &menuButtonWithIconPix, false, i18n("Menu"), Qt::LeftButton|Qt::RightButton); + &menuButtonWithIconPix, false, i18n("Menu"), TQt::LeftButton|TQt::RightButton); } else button[BtnSysMenu] = new IceWMButton(this, "menu", @@ -1005,7 +1005,7 @@ void IceWMClient::addClientButtons( const TQString& s ) if ( validPixmaps(maximizePix) && !button[BtnMaximize] && isMaximizable() ) { button[BtnMaximize] = new IceWMButton(this, "maximize", - &maximizePix, false, i18n("Maximize"), Qt::LeftButton|Qt::MidButton|Qt::RightButton); + &maximizePix, false, i18n("Maximize"), TQt::LeftButton|TQt::MidButton|TQt::RightButton); hb->addWidget( button[BtnMaximize] ); connect( button[BtnMaximize], TQT_SIGNAL(clicked()), this, TQT_SLOT(slotMaximize())); @@ -1456,7 +1456,7 @@ void IceWMClient::showEvent(TQShowEvent *ev) void IceWMClient::mouseDoubleClickEvent( TQMouseEvent * e ) { - if( e->button() != Qt::LeftButton ) + if( e->button() != TQt::LeftButton ) return; TQRect r; diff --git a/twin-styles/icewm/icewm.h b/twin-styles/icewm/icewm.h index debfbfb1..ef667f1e 100644 --- a/twin-styles/icewm/icewm.h +++ b/twin-styles/icewm/icewm.h @@ -101,7 +101,7 @@ class IceWMButton : public TQButton public: IceWMButton( IceWMClient *parent=0, const char *name=0, TQPixmap* (*p)[2]=0L, bool isToggle=false, - const TQString& tip=NULL, const int realizeBtns = Qt::LeftButton ); + const TQString& tip=NULL, const int realizeBtns = TQt::LeftButton ); void setTipText(const TQString &tip); void usePixmap( TQPixmap* (*p)[2] ); TQSize sizeHint() const; diff --git a/twin-styles/kde1/kde1client.cpp b/twin-styles/kde1/kde1client.cpp index 1eff9939..5e569d42 100644 --- a/twin-styles/kde1/kde1client.cpp +++ b/twin-styles/kde1/kde1client.cpp @@ -495,7 +495,7 @@ void StdClient::paintEvent( TQPaintEvent* ) void StdClient::mouseDoubleClickEvent( TQMouseEvent * e ) { - if ( e->button() == Qt::LeftButton && titlebar->geometry().contains( e->pos() ) ) + if ( e->button() == TQt::LeftButton && titlebar->geometry().contains( e->pos() ) ) titlebarDblClickOperation(); } @@ -666,7 +666,7 @@ void StdToolClient::paintEvent( TQPaintEvent* ) void StdToolClient::mouseDoubleClickEvent( TQMouseEvent * e ) { - if ( e->button() == Qt::LeftButton && titlebar->geometry().contains( e->pos() ) ) + if ( e->button() == TQt::LeftButton && titlebar->geometry().contains( e->pos() ) ) titlebarDblClickOperation(); } diff --git a/twin-styles/kde1/kde1client.h b/twin-styles/kde1/kde1client.h index 56eb2ac5..407c3993 100644 --- a/twin-styles/kde1/kde1client.h +++ b/twin-styles/kde1/kde1client.h @@ -122,13 +122,13 @@ protected: void mousePressEvent( TQMouseEvent* e ) { last_button = e->button(); - TQMouseEvent me ( e->type(), e->pos(), e->globalPos(), Qt::LeftButton, e->state() ); + TQMouseEvent me ( e->type(), e->pos(), e->globalPos(), TQt::LeftButton, e->state() ); TQToolButton::mousePressEvent( &me ); } void mouseReleaseEvent( TQMouseEvent* e ) { - TQMouseEvent me ( e->type(), e->pos(), e->globalPos(), Qt::LeftButton, e->state() ); + TQMouseEvent me ( e->type(), e->pos(), e->globalPos(), TQt::LeftButton, e->state() ); TQToolButton::mouseReleaseEvent( &me ); } diff --git a/twin-styles/kstep/nextclient.cpp b/twin-styles/kstep/nextclient.cpp index b9953459..5bd5b0fd 100644 --- a/twin-styles/kstep/nextclient.cpp +++ b/twin-styles/kstep/nextclient.cpp @@ -325,7 +325,7 @@ NextButton::NextButton(NextClient *parent, const char *name, const unsigned char *bitmap, int bw, int bh, const TQString& tip, const int realizeBtns) : TQButton(parent->widget(), name), - deco(NULL), client(parent), last_button(Qt::NoButton) + deco(NULL), client(parent), last_button(TQt::NoButton) { realizeButtons = realizeBtns; @@ -377,7 +377,7 @@ void NextButton::mousePressEvent( TQMouseEvent* e ) { last_button = e->button(); TQMouseEvent me( e->type(), e->pos(), e->globalPos(), - (e->button()&realizeButtons)?Qt::LeftButton:Qt::NoButton, e->state() ); + (e->button()&realizeButtons)?TQt::LeftButton:TQt::NoButton, e->state() ); TQButton::mousePressEvent( &me ); } @@ -385,7 +385,7 @@ void NextButton::mouseReleaseEvent( TQMouseEvent* e ) { last_button = e->button(); TQMouseEvent me( e->type(), e->pos(), e->globalPos(), - (e->button()&realizeButtons)?Qt::LeftButton:Qt::NoButton, e->state() ); + (e->button()&realizeButtons)?TQt::LeftButton:TQt::NoButton, e->state() ); TQButton::mouseReleaseEvent( &me ); } @@ -479,7 +479,7 @@ void NextClient::addButtons(TQBoxLayout* titleLayout, const TQString& spec) if (isMaximizable()) { button[MAXIMIZE_IDX] = new NextButton(this, "maximize", maximize_bits, 10, 10, - i18n("Maximize"), Qt::LeftButton|Qt::MidButton|Qt::RightButton); + i18n("Maximize"), TQt::LeftButton|TQt::MidButton|TQt::RightButton); titleLayout->addWidget( button[MAXIMIZE_IDX] ); connect( button[MAXIMIZE_IDX], TQT_SIGNAL(clicked()), this, TQT_SLOT(maximizeButtonClicked()) ); @@ -509,7 +509,7 @@ void NextClient::addButtons(TQBoxLayout* titleLayout, const TQString& spec) case 'M': button[MENU_IDX] = - new NextButton(this, "menu", NULL, 10, 10, i18n("Menu"), Qt::LeftButton|Qt::RightButton); + new NextButton(this, "menu", NULL, 10, 10, i18n("Menu"), TQt::LeftButton|TQt::RightButton); titleLayout->addWidget( button[MENU_IDX] ); // NOTE DIFFERENCE: capture pressed(), not clicked() connect( button[MENU_IDX], TQT_SIGNAL(pressed()), @@ -742,7 +742,7 @@ void NextClient::paintEvent( TQPaintEvent* ) void NextClient::mouseDoubleClickEvent( TQMouseEvent * e ) { - if (e->button() == Qt::LeftButton && titlebar->geometry().contains( e->pos() ) ) + if (e->button() == TQt::LeftButton && titlebar->geometry().contains( e->pos() ) ) titlebarDblClickOperation(); } diff --git a/twin-styles/kstep/nextclient.h b/twin-styles/kstep/nextclient.h index e7660cc9..34f74b4d 100644 --- a/twin-styles/kstep/nextclient.h +++ b/twin-styles/kstep/nextclient.h @@ -21,7 +21,7 @@ class NextButton : public TQButton public: NextButton(NextClient *parent=0, const char *name=0, const unsigned char *bitmap=NULL, int bw=0, int bh=0, - const TQString& tip=NULL, const int realizeBtns = Qt::LeftButton); + const TQString& tip=NULL, const int realizeBtns = TQt::LeftButton); void setBitmap(const unsigned char *bitmap, int bw, int bh); void reset(); ButtonState lastButton() { return last_button; } diff --git a/twin-styles/openlook/OpenLook.cpp b/twin-styles/openlook/OpenLook.cpp index fd07a70a..71489d91 100644 --- a/twin-styles/openlook/OpenLook.cpp +++ b/twin-styles/openlook/OpenLook.cpp @@ -281,7 +281,7 @@ OpenLook::showEvent(TQShowEvent *) void OpenLook::mouseDoubleClickEvent(TQMouseEvent * e) { - if (e->button() == Qt::LeftButton && titleRect().contains(e->pos())) + if (e->button() == TQt::LeftButton && titleRect().contains(e->pos())) { titlebarDblClickOperation(); } diff --git a/twin-styles/riscos/Button.cpp b/twin-styles/riscos/Button.cpp index f1f150d1..4d11e0c7 100644 --- a/twin-styles/riscos/Button.cpp +++ b/twin-styles/riscos/Button.cpp @@ -31,7 +31,7 @@ Button::Button(TQWidget *parent, const TQString& tip, const ButtonState realizeButtons) : TQWidget(parent, "Button", 0), realizeButtons_(realizeButtons), - lastButton_(Qt::NoButton), + lastButton_(TQt::NoButton), alignment_(Left), down_ (false), active_ (false) @@ -72,7 +72,7 @@ void Button::mousePressEvent(TQMouseEvent *e) repaint(); TQMouseEvent me(e->type(), e->pos(), e->globalPos(), - (e->button()&realizeButtons_) ? Qt::LeftButton : Qt::NoButton, + (e->button()&realizeButtons_) ? TQt::LeftButton : TQt::NoButton, e->state()); TQWidget::mousePressEvent(&me); } @@ -83,7 +83,7 @@ void Button::mouseReleaseEvent(TQMouseEvent *e) lastButton_ = e->button(); repaint(); TQMouseEvent me(e->type(), e->pos(), e->globalPos(), - (e->button()&realizeButtons_) ? Qt::LeftButton : Qt::NoButton, + (e->button()&realizeButtons_) ? TQt::LeftButton : TQt::NoButton, e->state()); TQWidget::mouseReleaseEvent(&me); } diff --git a/twin-styles/riscos/Button.h b/twin-styles/riscos/Button.h index 5d20e9a6..afff9925 100644 --- a/twin-styles/riscos/Button.h +++ b/twin-styles/riscos/Button.h @@ -43,7 +43,7 @@ class Button : public TQWidget enum Alignment { Left, Right }; Button(TQWidget *parent, const TQString &tip, - const ButtonState realizeButton = Qt::LeftButton); + const ButtonState realizeButton = TQt::LeftButton); virtual ~Button(); void setAlignment(Alignment); diff --git a/twin-styles/riscos/Manager.cpp b/twin-styles/riscos/Manager.cpp index 14c81a84..ada3336f 100644 --- a/twin-styles/riscos/Manager.cpp +++ b/twin-styles/riscos/Manager.cpp @@ -352,7 +352,7 @@ KDecoration::Position Manager::mousePosition(const TQPoint& p) const void Manager::mouseDoubleClickEvent(TQMouseEvent *e) { - if (e->button() == Qt::LeftButton && titleSpacer_->geometry().contains(e->pos())) + if (e->button() == TQt::LeftButton && titleSpacer_->geometry().contains(e->pos())) titlebarDblClickOperation(); } diff --git a/twin-styles/riscos/MaximiseButton.cpp b/twin-styles/riscos/MaximiseButton.cpp index aa54b52a..524c2a8a 100644 --- a/twin-styles/riscos/MaximiseButton.cpp +++ b/twin-styles/riscos/MaximiseButton.cpp @@ -67,7 +67,7 @@ static const char * const unmaximise_xpm[] = { MaximiseButton::MaximiseButton(TQWidget * parent) : Button(parent, i18n("Maximize"), - (ButtonState)(Qt::LeftButton|Qt::MidButton|Qt::RightButton)), + (ButtonState)(TQt::LeftButton|TQt::MidButton|TQt::RightButton)), on_(false) { setPixmap(TQPixmap((const char **)maximise_xpm)); diff --git a/twin-styles/smooth-blend/client/smoothblend.cpp b/twin-styles/smooth-blend/client/smoothblend.cpp index 004a4264..b097a32b 100644 --- a/twin-styles/smooth-blend/client/smoothblend.cpp +++ b/twin-styles/smooth-blend/client/smoothblend.cpp @@ -168,7 +168,7 @@ smoothblendButton::smoothblendButton(smoothblendClient *parent, const char *name type_(type), size_(button_size), deco_(0), - lastmouse_(Qt::NoButton), + lastmouse_(TQt::NoButton), hover_(false) { setBackgroundMode(NoBackground); @@ -282,9 +282,9 @@ void smoothblendButton::mousePressEvent(TQMouseEvent* e) { lastmouse_ = e->button(); // translate and pass on mouse event - int button = Qt::LeftButton; - if ((type_ != ButtonMax) && (e->button() != Qt::LeftButton)) { - button = Qt::NoButton; // middle & right buttons inappropriate + int button = TQt::LeftButton; + if ((type_ != ButtonMax) && (e->button() != TQt::LeftButton)) { + button = TQt::NoButton; // middle & right buttons inappropriate } TQMouseEvent me(e->type(), e->pos(), e->globalPos(), button, e->state()); @@ -300,9 +300,9 @@ void smoothblendButton::mouseReleaseEvent(TQMouseEvent* e) { lastmouse_ = e->button(); // translate and pass on mouse event - int button = Qt::LeftButton; - if ((type_ != ButtonMax) && (e->button() != Qt::LeftButton)) { - button = Qt::NoButton; // middle & right buttons inappropriate + int button = TQt::LeftButton; + if ((type_ != ButtonMax) && (e->button() != TQt::LeftButton)) { + button = TQt::NoButton; // middle & right buttons inappropriate } TQMouseEvent me(e->type(), e->pos(), e->globalPos(), button, e->state()); TQButton::mouseReleaseEvent(&me); diff --git a/twin-styles/system/systemclient.cpp b/twin-styles/system/systemclient.cpp index 869b925e..822fb6df 100644 --- a/twin-styles/system/systemclient.cpp +++ b/twin-styles/system/systemclient.cpp @@ -272,14 +272,14 @@ void SystemButton::drawButton(TQPainter *p) void SystemButton::mousePressEvent( TQMouseEvent* e ) { last_button = e->button(); - TQMouseEvent me ( e->type(), e->pos(), e->globalPos(), Qt::LeftButton, e->state() ); + TQMouseEvent me ( e->type(), e->pos(), e->globalPos(), TQt::LeftButton, e->state() ); TQButton::mousePressEvent( &me ); } void SystemButton::mouseReleaseEvent( TQMouseEvent* e ) { last_button = e->button(); - TQMouseEvent me ( e->type(), e->pos(), e->globalPos(), Qt::LeftButton, e->state() ); + TQMouseEvent me ( e->type(), e->pos(), e->globalPos(), TQt::LeftButton, e->state() ); TQButton::mouseReleaseEvent( &me ); } @@ -608,7 +608,7 @@ void SystemClient::showEvent(TQShowEvent *) void SystemClient::mouseDoubleClickEvent( TQMouseEvent * e ) { - if ( e->button() == Qt::LeftButton && titlebar->geometry().contains( e->pos() ) ) + if ( e->button() == TQt::LeftButton && titlebar->geometry().contains( e->pos() ) ) titlebarDblClickOperation(); } |