diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-08 11:05:40 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-08 11:05:40 +0900 |
commit | 007026cdc4d51e217ce6317b87c0ff2b2d120c83 (patch) | |
tree | e44642c9aa2755473430d44da4e3ce6d7a892fc8 | |
parent | a2da8d06203ef630594a41222c0c3a16bedb86c4 (diff) | |
download | tdeutils-007026cdc4d51e217ce6317b87c0ff2b2d120c83.tar.gz tdeutils-007026cdc4d51e217ce6317b87c0ff2b2d120c83.zip |
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
48 files changed, 106 insertions, 106 deletions
diff --git a/ark/filelistview.cpp b/ark/filelistview.cpp index 47a4d6f..4a0786b 100644 --- a/ark/filelistview.cpp +++ b/ark/filelistview.cpp @@ -162,7 +162,7 @@ void FileLVI::setText( int column, const TQString &text ) TQListViewItem::setText(column, text); else { - m_timeStamp = TQDateTime::fromString( text, Qt::ISODate ); + m_timeStamp = TQDateTime::fromString( text, TQt::ISODate ); TQListViewItem::setText( column, TDEGlobal::locale()->formatDateTime( m_timeStamp ) ); } } @@ -342,7 +342,7 @@ bool FileListView::isSelectionEmpty() void FileListView::contentsMousePressEvent(TQMouseEvent *e) { - if( e->button()==Qt::LeftButton ) + if( e->button()==TQt::LeftButton ) { m_pressed = true; m_presspos = e->pos(); diff --git a/ark/tarlistingthread.cpp b/ark/tarlistingthread.cpp index 9d903c3..2cd7ef7 100644 --- a/ark/tarlistingthread.cpp +++ b/ark/tarlistingthread.cpp @@ -148,7 +148,7 @@ void TarListingThread::processDir( const KTarDirectory *tardir, const TQString & strSize.sprintf("%d", ((KTarFile *)tarEntry)->size()); } col_list.append(strSize); - TQString timestamp = tarEntry->datetime().toString(Qt::ISODate); + TQString timestamp = tarEntry->datetime().toString(TQt::ISODate); col_list.append(timestamp); col_list.append(tarEntry->symlink()); diff --git a/charselectapplet/charselectapplet.cpp b/charselectapplet/charselectapplet.cpp index cd2e0f5..548e7f7 100644 --- a/charselectapplet/charselectapplet.cpp +++ b/charselectapplet/charselectapplet.cpp @@ -285,7 +285,7 @@ void CharTable::mousePressEvent(TQMouseEvent *e) void CharTable::mouseMoveEvent(TQMouseEvent *e) { - if(!(e->state() & (Qt::LeftButton | Qt::RightButton | Qt::MidButton))) return; + if(!(e->state() & (TQt::LeftButton | TQt::RightButton | TQt::MidButton))) return; int row = findRow(e->y()); if (row == -1) return; diff --git a/kcalc/kcalcdisplay.cpp b/kcalc/kcalcdisplay.cpp index a335458..1c620b0 100644 --- a/kcalc/kcalcdisplay.cpp +++ b/kcalc/kcalcdisplay.cpp @@ -150,7 +150,7 @@ void KCalcDisplay::slotPaste(bool bClipboard) void KCalcDisplay::slotDisplaySelected(void) { - if(_button == Qt::LeftButton) { + if(_button == TQt::LeftButton) { if(_lit) { slotCopy(); selection_timer->start(100); @@ -182,11 +182,11 @@ void KCalcDisplay::invertColors() void KCalcDisplay::mousePressEvent(TQMouseEvent *e) { - if(e->button() == Qt::LeftButton) { + if(e->button() == TQt::LeftButton) { _lit = !_lit; - _button = Qt::LeftButton; + _button = TQt::LeftButton; } else { - _button = Qt::MidButton; + _button = TQt::MidButton; } emit clicked(); diff --git a/kdf/kdfconfig.cpp b/kdf/kdfconfig.cpp index 1180d6d..d1f5c15 100644 --- a/kdf/kdfconfig.cpp +++ b/kdf/kdfconfig.cpp @@ -99,7 +99,7 @@ KDFConfigWidget::KDFConfigWidget(TQWidget *parent, const char *name, bool init) mScroll = new TQScrollBar( this ); TQ_CHECK_PTR(mScroll); - mScroll->setOrientation( Qt::Horizontal ); + mScroll->setOrientation( TQt::Horizontal ); mScroll->setSteps(1,20); mScroll->setRange(0, 180 ); gl->addWidget( mScroll, 1, 1 ); diff --git a/kfloppy/floppy.cpp b/kfloppy/floppy.cpp index 91593a6..a75de45 100644 --- a/kfloppy/floppy.cpp +++ b/kfloppy/floppy.cpp @@ -184,7 +184,7 @@ FloppyData::FloppyData(TQWidget * parent, const char * name) v1->addSpacing( 10 ); - buttongroup = new TQButtonGroup( 3, Qt::Vertical, i18n("&Formatting"), this, "ButtonGroup_1" ); + buttongroup = new TQButtonGroup( 3, TQt::Vertical, i18n("&Formatting"), this, "ButtonGroup_1" ); quick = new TQRadioButton( i18n( "Q&uick format" ), buttongroup, "RadioButton_2" ); diff --git a/kgpg/keyinfowidget.cpp b/kgpg/keyinfowidget.cpp index 578bd0c..cad6910 100644 --- a/kgpg/keyinfowidget.cpp +++ b/kgpg/keyinfowidget.cpp @@ -235,7 +235,7 @@ void KgpgKeyInfo::loadKey(TQString Keyid) date = timestamp.date(); } else { - date = TQDate::fromString(gpgOutput.section(':',5,5), Qt::ISODate); + date = TQDate::fromString(gpgOutput.section(':',5,5), TQt::ISODate); } Q_ASSERT ( date.isValid())/* tqWarning("create date is not valid")*/; @@ -250,7 +250,7 @@ void KgpgKeyInfo::loadKey(TQString Keyid) date = timestamp.date(); } else { - date = TQDate::fromString(gpgOutput.section(':',6,6), Qt::ISODate); + date = TQDate::fromString(gpgOutput.section(':',6,6), TQt::ISODate); } Q_ASSERT (date.isValid()) /* tqWarning("Expirationdate date is not valid")*/; expirationDate=TDEGlobal::locale()->formatDate(date); diff --git a/kgpg/keyservers.cpp b/kgpg/keyservers.cpp index 23eb79a..639ca67 100644 --- a/kgpg/keyservers.cpp +++ b/kgpg/keyservers.cpp @@ -414,7 +414,7 @@ void keyServer::slotsearchresult(TDEProcess *) date = timestamp.date(); } else { - date = TQDate::fromString(keyString[5], Qt::ISODate); + date = TQDate::fromString(keyString[5], TQt::ISODate); } Q_ASSERT (date.isValid()) /*tqWarning("create date is not valid")*/; if (date < TQDate::currentDate() ) { @@ -446,7 +446,7 @@ void keyServer::slotsearchresult(TDEProcess *) date = timestamp.date(); } else { - date = TQDate::fromString(keyString[4], Qt::ISODate); + date = TQDate::fromString(keyString[4], TQt::ISODate); } created=TDEGlobal::locale()->formatDate(date, true); } @@ -463,7 +463,7 @@ void keyServer::slotsearchresult(TDEProcess *) date = timestamp.date(); } else { - date = TQDate::fromString(keyString[2], Qt::ISODate); + date = TQDate::fromString(keyString[2], TQt::ISODate); } created=TDEGlobal::locale()->formatDate(date, true); } @@ -719,7 +719,7 @@ void keyServer::slotksearchprocresult(TDEProcess *) { date = timestamp.date(); } else { - date = TQDate::fromString(keyString[5], Qt::ISODate); + date = TQDate::fromString(keyString[5], TQt::ISODate); } Q_ASSERT (date.isValid()) /*tqWarning("create date is not valid")*/; if (date < TQDate::currentDate() ) { diff --git a/kgpg/kgpgview.cpp b/kgpg/kgpgview.cpp index 0c044f7..974949b 100644 --- a/kgpg/kgpgview.cpp +++ b/kgpg/kgpgview.cpp @@ -205,7 +205,7 @@ KgpgView::KgpgView(TQWidget *parent, const char *name) : TQWidget(parent, name) setAcceptDrops(true); - KButtonBox *boutonbox=new KButtonBox(this,Qt::Horizontal,15,12); + KButtonBox *boutonbox=new KButtonBox(this,TQt::Horizontal,15,12); boutonbox->addStretch(1); bouton0=boutonbox->addButton(i18n("S&ign/Verify"),TQT_TQOBJECT(this),TQT_SLOT(clearSign()),TRUE); diff --git a/kgpg/listkeys.cpp b/kgpg/listkeys.cpp index c0f53a3..9a5207d 100644 --- a/kgpg/listkeys.cpp +++ b/kgpg/listkeys.cpp @@ -3420,7 +3420,7 @@ gpgKey KeyView::extractKey(TQString keyColon) date = timestamp.date(); } else { - date = TQDate::fromString(ret.gpgkeycreation, Qt::ISODate); + date = TQDate::fromString(ret.gpgkeycreation, TQt::ISODate); } Q_ASSERT (date.isValid()) /*tqWarning("create date is not valid")*/; ret.gpgkeycreation=TDEGlobal::locale()->formatDate(date, true); @@ -3439,7 +3439,7 @@ gpgKey KeyView::extractKey(TQString keyColon) date = timestamp.date(); } else { - date = TQDate::fromString(ret.gpgkeyexpiration, Qt::ISODate); + date = TQDate::fromString(ret.gpgkeyexpiration, TQt::ISODate); } Q_ASSERT (date.isValid()) /*tqWarning("expire date is not valid")*/; ret.gpgkeyexpiration=TDEGlobal::locale()->formatDate(date, true); diff --git a/kgpg/popuppublic.cpp b/kgpg/popuppublic.cpp index 8ee67fb..a3e0847 100644 --- a/kgpg/popuppublic.cpp +++ b/kgpg/popuppublic.cpp @@ -147,7 +147,7 @@ KDialogBase( Plain, i18n("Select Public Key"), Details | Ok | Cancel, Ok, parent keysList->setColumnWidth(0,210); keysList->setColumnWidth(1,210); - boutonboxoptions=new TQButtonGroup(5,Qt::Vertical ,page,0); + boutonboxoptions=new TQButtonGroup(5,TQt::Vertical ,page,0); TDEActionCollection *actcol=new TDEActionCollection(this); (void) new TDEAction(i18n("&Go to Default Key"),goDefaultKey, TQT_TQOBJECT(this), TQT_SLOT(slotGotoDefaultKey()),actcol,"go_default_key"); diff --git a/khexedit/draglabel.cpp b/khexedit/draglabel.cpp index dfca9a6..fd38d7b 100644 --- a/khexedit/draglabel.cpp +++ b/khexedit/draglabel.cpp @@ -44,7 +44,7 @@ CDragLabel::~CDragLabel( void ) void CDragLabel::mousePressEvent( TQMouseEvent *e ) { - if( mValid == false || e->button() != Qt::LeftButton || mUrl.isEmpty() == true ) + if( mValid == false || e->button() != TQt::LeftButton || mUrl.isEmpty() == true ) { return; } diff --git a/khexedit/hexviewwidget.cpp b/khexedit/hexviewwidget.cpp index 28335af..16a3ffd 100644 --- a/khexedit/hexviewwidget.cpp +++ b/khexedit/hexviewwidget.cpp @@ -193,9 +193,9 @@ CHexViewWidget::CHexViewWidget( TQWidget *parent, const char *name, // signal whenever is receives a TQHideEvent. // - mVertScroll = new CScrollBar( Qt::Vertical, this ); + mVertScroll = new CScrollBar( TQt::Vertical, this ); if( mVertScroll == 0 ) { return; } - mHorzScroll = new CScrollBar( Qt::Horizontal, this ); + mHorzScroll = new CScrollBar( TQt::Horizontal, this ); if( mHorzScroll == 0 ) { return; } mCorner = new TQWidget( this ); if( mCorner == 0 ) { return; } @@ -1534,7 +1534,7 @@ void CHexViewWidget::mousePressEvent( TQMouseEvent *e ) // The RMB popup menu is managed by the KContextMenuManager // - if( e->button() == Qt::LeftButton ) + if( e->button() == TQt::LeftButton ) { if( e->state() & ControlButton ) { @@ -1550,7 +1550,7 @@ void CHexViewWidget::mousePressEvent( TQMouseEvent *e ) setCursorPosition( e->x(), e->y(), true, cellLevel ); } } - else if( e->button() == Qt::MidButton ) + else if( e->button() == TQt::MidButton ) { paste(); } @@ -1559,7 +1559,7 @@ void CHexViewWidget::mousePressEvent( TQMouseEvent *e ) void CHexViewWidget::mouseMoveEvent( TQMouseEvent *e ) { - if( e->state() & Qt::LeftButton ) + if( e->state() & TQt::LeftButton ) { if( mDragManager->start( e ) == false ) { @@ -1575,7 +1575,7 @@ void CHexViewWidget::mouseReleaseEvent( TQMouseEvent *e ) // The RMB popup menu is managed by the KContextMenuManager // - if( e->button() == Qt::LeftButton ) + if( e->button() == TQt::LeftButton ) { if( e->state() & ControlButton ) { diff --git a/khexedit/hexviewwidget.h b/khexedit/hexviewwidget.h index c439635..1b73ec1 100644 --- a/khexedit/hexviewwidget.h +++ b/khexedit/hexviewwidget.h @@ -43,7 +43,7 @@ class CScrollBar : public TQScrollBar public: - CScrollBar( Qt::Orientation o, TQWidget *parent, const char *name = 0 ) + CScrollBar( TQt::Orientation o, TQWidget *parent, const char *name = 0 ) : TQScrollBar( o, parent, name ) { } diff --git a/khexedit/lib/khexedit.cpp b/khexedit/lib/khexedit.cpp index eaedc9d..b60ad7e 100644 --- a/khexedit/lib/khexedit.cpp +++ b/khexedit/lib/khexedit.cpp @@ -1548,7 +1548,7 @@ void KHexEdit::contentsMousePressEvent( TQMouseEvent *e ) pauseCursor( true ); // care about a left button press? - if( e->button() == Qt::LeftButton ) + if( e->button() == TQt::LeftButton ) { MousePressed = true; @@ -1601,7 +1601,7 @@ void KHexEdit::contentsMousePressEvent( TQMouseEvent *e ) BufferRanges->removeFurtherSelections(); } - else if( e->button() == Qt::MidButton ) + else if( e->button() == TQt::MidButton ) BufferRanges->removeSelection(); if( BufferRanges->isModified() ) @@ -1684,7 +1684,7 @@ void KHexEdit::contentsMouseReleaseEvent( TQMouseEvent *e ) } } // middle mouse button paste? - else if( e->button() == Qt::MidButton && !isReadOnly() ) + else if( e->button() == TQt::MidButton && !isReadOnly() ) { pauseCursor(); @@ -1723,7 +1723,7 @@ void KHexEdit::contentsMouseReleaseEvent( TQMouseEvent *e ) void KHexEdit::contentsMouseDoubleClickEvent( TQMouseEvent *e ) { // we are only interested in LMB doubleclicks - if( e->button() != Qt::LeftButton ) + if( e->button() != TQt::LeftButton ) { e->ignore(); return; diff --git a/kjots/kjotsedit.cpp b/kjots/kjotsedit.cpp index 420f715..562947a 100644 --- a/kjots/kjotsedit.cpp +++ b/kjots/kjotsedit.cpp @@ -55,7 +55,7 @@ KJotsEdit::~KJotsEdit() void KJotsEdit::mousePressEvent( TQMouseEvent *e ) { - if(e->button() == Qt::RightButton && + if(e->button() == TQt::RightButton && hasSelectedText()) { KURL url(selectedText()); diff --git a/klaptopdaemon/buttons.cpp b/klaptopdaemon/buttons.cpp index eed4b8d..5c453de 100644 --- a/klaptopdaemon/buttons.cpp +++ b/klaptopdaemon/buttons.cpp @@ -152,7 +152,7 @@ ButtonsConfig::ButtonsConfig (TQWidget * parent, const char *name) TQWidget *wp = new TQWidget(lidBox); TQHBoxLayout *xl = new TQHBoxLayout( wp); xl->addWidget(new TQLabel("-", wp)); - lidValBrightness = new TQSlider(0, 255, 16, 255, Qt::Horizontal, wp); + lidValBrightness = new TQSlider(0, 255, 16, 255, TQt::Horizontal, wp); lidValBrightness->setEnabled(0); TQToolTip::add( lidValBrightness, i18n( "How bright the back panel will be set to" ) ); connect (lidValBrightness, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(configChanged())); @@ -228,7 +228,7 @@ ButtonsConfig::ButtonsConfig (TQWidget * parent, const char *name) TQWidget *wp = new TQWidget(powerBox); TQHBoxLayout *xl = new TQHBoxLayout( wp); xl->addWidget(new TQLabel("-", wp)); - powerValBrightness = new TQSlider(0, 255, 16, 255, Qt::Horizontal, wp); + powerValBrightness = new TQSlider(0, 255, 16, 255, TQt::Horizontal, wp); TQToolTip::add( powerValBrightness, i18n( "How bright the back panel will be set to" ) ); powerValBrightness->setEnabled(0); connect (powerValBrightness, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(configChanged())); diff --git a/klaptopdaemon/daemondock.cpp b/klaptopdaemon/daemondock.cpp index 90a29aa..affe7b4 100644 --- a/klaptopdaemon/daemondock.cpp +++ b/klaptopdaemon/daemondock.cpp @@ -198,7 +198,7 @@ laptop_dock::invokeBrightness() brightness_widget = new TQVBox(0L, "Brightness", WStyle_Customize | WType_Popup); brightness_widget->setFrameStyle(TQFrame::PopupPanel); brightness_widget->setMargin(KDialog::marginHint()); - brightness_slider = new TQSlider(0, 255, 16, 255-brightness, Qt::Vertical, brightness_widget, 0); + brightness_slider = new TQSlider(0, 255, 16, 255-brightness, TQt::Vertical, brightness_widget, 0); brightness_slider->setMinimumHeight(40); brightness_slider->setMinimumWidth(15); connect(brightness_slider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(invokeBrightnessSlider(int))); @@ -362,7 +362,7 @@ KPCMCIAInfo *f = new KPCMCIAInfo(_pcmcia); void laptop_dock::mousePressEvent( TQMouseEvent *event ) { - if(event->button() == Qt::LeftButton) { + if(event->button() == TQt::LeftButton) { TQPopupMenu *popup = new TQPopupMenu(0, "popup"); if (!pdaemon->exists()) { @@ -473,11 +473,11 @@ void laptop_dock::mouseReleaseEvent( TQMouseEvent *e ) return; switch ( e->button() ) { - case Qt::LeftButton: + case TQt::LeftButton: break; - case Qt::MidButton: + case TQt::MidButton: // fall through - case Qt::RightButton: + case TQt::RightButton: { TDEPopupMenu *menu = contextMenu(); contextMenuAboutToShow( menu ); diff --git a/klaptopdaemon/power.cpp b/klaptopdaemon/power.cpp index c29c425..89c25dc 100644 --- a/klaptopdaemon/power.cpp +++ b/klaptopdaemon/power.cpp @@ -145,7 +145,7 @@ PowerConfig::PowerConfig (TQWidget * parent, const char *name) TQWidget *wp = new TQWidget(nopowerBox); TQHBoxLayout *xl = new TQHBoxLayout( wp); xl->addWidget(new TQLabel("-", wp)); - nopowerValBrightness = new TQSlider(0, 255, 16, 255, Qt::Horizontal, wp); + nopowerValBrightness = new TQSlider(0, 255, 16, 255, TQt::Horizontal, wp); TQToolTip::add( nopowerValBrightness, i18n( "How bright to change the back panel" ) ); nopowerValBrightness->setEnabled(0); connect(nopowerValBrightness, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(changed())); @@ -238,7 +238,7 @@ PowerConfig::PowerConfig (TQWidget * parent, const char *name) TQWidget *wp = new TQWidget(powerBox); TQHBoxLayout *xl = new TQHBoxLayout( wp); xl->addWidget(new TQLabel("-", wp)); - powerValBrightness = new TQSlider(0, 255, 16, 255, Qt::Horizontal, wp); + powerValBrightness = new TQSlider(0, 255, 16, 255, TQt::Horizontal, wp); TQToolTip::add( powerValBrightness, i18n( "How bright to change the back panel" ) ); powerValBrightness->setEnabled(0); connect(powerValBrightness, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(changed())); diff --git a/klaptopdaemon/profile.cpp b/klaptopdaemon/profile.cpp index e60109e..492b136 100644 --- a/klaptopdaemon/profile.cpp +++ b/klaptopdaemon/profile.cpp @@ -84,7 +84,7 @@ ProfileConfig::ProfileConfig(TQWidget * parent, const char *name) connect (poff, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(poff_changed(bool))); xl->addWidget(new TQLabel("-", wp)); - soff = new TQSlider(0, 255, 16, 160, Qt::Horizontal, wp); + soff = new TQSlider(0, 255, 16, 160, TQt::Horizontal, wp); soff->setEnabled(0); TQToolTip::add( soff, i18n( "How bright it should be when it is changed" ) ); connect (soff, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(configChanged())); @@ -148,7 +148,7 @@ ProfileConfig::ProfileConfig(TQWidget * parent, const char *name) connect (pon, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(pon_changed(bool))); xl->addWidget(new TQLabel("-", wp)); - son = new TQSlider(0, 255, 16, 255, Qt::Horizontal, wp); + son = new TQSlider(0, 255, 16, 255, TQt::Horizontal, wp); son->setEnabled(0); TQToolTip::add( son, i18n( "How bright it should be when it is changed" ) ); connect (son, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(configChanged())); diff --git a/klaptopdaemon/warning.cpp b/klaptopdaemon/warning.cpp index 5152d05..bc129a4 100644 --- a/klaptopdaemon/warning.cpp +++ b/klaptopdaemon/warning.cpp @@ -170,7 +170,7 @@ WarningConfig::WarningConfig (int t, TQWidget * parent, const char *name) connect(checkBrightness, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(brightness_changed(bool))); TQHBoxLayout *v = new TQHBoxLayout(); v->addWidget(new TQLabel("-", this)); - valueBrightness = new TQSlider(0, 255, 16, 160, Qt::Horizontal, this); + valueBrightness = new TQSlider(0, 255, 16, 160, TQt::Horizontal, this); TQToolTip::add( valueBrightness, i18n( "How bright or dim to make the back panel" ) ); valueBrightness->setMaximumWidth(70); v->addWidget(valueBrightness); diff --git a/kregexpeditor/KMultiFormListBox/ccp.cpp b/kregexpeditor/KMultiFormListBox/ccp.cpp index 078ee7f..7b21f51 100644 --- a/kregexpeditor/KMultiFormListBox/ccp.cpp +++ b/kregexpeditor/KMultiFormListBox/ccp.cpp @@ -58,7 +58,7 @@ void CCP::install(TQObject *elm) bool CCP::eventFilter(TQObject *, TQEvent *event) { if (event->type() != TQEvent::MouseButtonPress || - ((TQMouseEvent *) event)->button() != Qt::RightButton || + ((TQMouseEvent *) event)->button() != TQt::RightButton || ((TQMouseEvent *) event)->state() != TQEvent::ControlButton) { return false; } diff --git a/kregexpeditor/compoundwidget.cpp b/kregexpeditor/compoundwidget.cpp index 98f3975..c65e598 100644 --- a/kregexpeditor/compoundwidget.cpp +++ b/kregexpeditor/compoundwidget.cpp @@ -258,7 +258,7 @@ RegExp* CompoundWidget::regExp() const void CompoundWidget::mousePressEvent( TQMouseEvent* event ) { - if ( event->button() == Qt::LeftButton && + if ( event->button() == TQt::LeftButton && TQRect( _pixmapPos, _pixmapSize ).contains( event->pos() ) ) { // Skip otherwise we will never see the mouse release // since it is eaten by Editor window. @@ -269,7 +269,7 @@ void CompoundWidget::mousePressEvent( TQMouseEvent* event ) void CompoundWidget::mouseReleaseEvent( TQMouseEvent* event) { - if ( event->button() == Qt::LeftButton && + if ( event->button() == TQt::LeftButton && TQRect( _pixmapPos, _pixmapSize ).contains( event->pos() ) ) { _hidden = !_hidden; _editorWindow->updateContent( 0 ); diff --git a/kregexpeditor/concwidget.cpp b/kregexpeditor/concwidget.cpp index 900b09f..47753d4 100644 --- a/kregexpeditor/concwidget.cpp +++ b/kregexpeditor/concwidget.cpp @@ -189,7 +189,7 @@ void ConcWidget::paintEvent( TQPaintEvent *e) void ConcWidget::mousePressEvent ( TQMouseEvent* event ) { - if ( event->button() == Qt::RightButton ) { + if ( event->button() == TQt::RightButton ) { _editorWindow->showRMBMenu( _editorWindow->hasSelection() ); } else { diff --git a/kregexpeditor/dragaccepter.cpp b/kregexpeditor/dragaccepter.cpp index f336dbd..d361830 100644 --- a/kregexpeditor/dragaccepter.cpp +++ b/kregexpeditor/dragaccepter.cpp @@ -46,7 +46,7 @@ void DragAccepter::paintEvent(TQPaintEvent *e) void DragAccepter::mousePressEvent ( TQMouseEvent* event ) { - if ( event->button() == Qt::RightButton ) { + if ( event->button() == TQt::RightButton ) { _editorWindow->showRMBMenu( _editorWindow->hasSelection() ); } else { @@ -56,7 +56,7 @@ void DragAccepter::mousePressEvent ( TQMouseEvent* event ) void DragAccepter::mouseReleaseEvent( TQMouseEvent* event ) { - if ( _editorWindow->isPasteing() && event->button() == Qt::LeftButton ) { + if ( _editorWindow->isPasteing() && event->button() == TQt::LeftButton ) { RegExp* regexp = _editorWindow->pasteData(); RegExpWidget *newElm = WidgetFactory::createWidget( regexp, _editorWindow, 0 ); @@ -75,7 +75,7 @@ void DragAccepter::mouseReleaseEvent( TQMouseEvent* event ) _editorWindow->clearSelection( true ); } } - else if ( _editorWindow->isInserting() && event->button() == Qt::LeftButton ) { + else if ( _editorWindow->isInserting() && event->button() == TQt::LeftButton ) { if ( WidgetFactory::isContainer( _editorWindow->insertType() ) && _editorWindow->pointSelected( mapToGlobal( event->pos() ) ) ) { RegExpWidget::mouseReleaseEvent( event ); diff --git a/kregexpeditor/kregexpeditorprivate.cpp b/kregexpeditor/kregexpeditorprivate.cpp index 04ae00a..30b1537 100644 --- a/kregexpeditor/kregexpeditorprivate.cpp +++ b/kregexpeditor/kregexpeditorprivate.cpp @@ -50,11 +50,11 @@ KRegExpEditorPrivate::KRegExpEditorPrivate(TQWidget *parent, const char *name) : TQWidget(parent, name), _updating( false ), _autoVerify( true ) { setMinimumSize(730,300); - TQDockArea* area = new TQDockArea(Qt::Horizontal, TQDockArea::Normal, this ); + TQDockArea* area = new TQDockArea(TQt::Horizontal, TQDockArea::Normal, this ); area->setMinimumSize(2,2); - TQDockArea* verArea1 = new TQDockArea(Qt::Vertical, TQDockArea::Normal, this ); + TQDockArea* verArea1 = new TQDockArea(TQt::Vertical, TQDockArea::Normal, this ); verArea1->setMinimumSize(2,2); - TQDockArea* verArea2 = new TQDockArea(Qt::Vertical, TQDockArea::Reverse, this ); + TQDockArea* verArea2 = new TQDockArea(TQt::Vertical, TQDockArea::Reverse, this ); verArea2->setMinimumSize(2,2); // The DockWindows. @@ -67,7 +67,7 @@ KRegExpEditorPrivate::KRegExpEditorPrivate(TQWidget *parent, const char *name) "you have developed and saved, and regular expressions shipped with the system." )); // Editor window - _editor = new TQSplitter(Qt::Vertical, this, "KRegExpEditorPrivate::_editor" ); + _editor = new TQSplitter(TQt::Vertical, this, "KRegExpEditorPrivate::_editor" ); _scrolledEditorWindow = new RegExpScrolledEditorWindow( _editor, "KRegExpEditorPrivate::_scrolledEditorWindow" ); diff --git a/kregexpeditor/regexpwidget.cpp b/kregexpeditor/regexpwidget.cpp index c139180..d52fc17 100644 --- a/kregexpeditor/regexpwidget.cpp +++ b/kregexpeditor/regexpwidget.cpp @@ -119,7 +119,7 @@ void RegExpWidget::mousePressEvent ( TQMouseEvent* event ) if ( _editorWindow->isPasteing() || _editorWindow->isInserting() ) return; - if ( event->button() == Qt::LeftButton ) { + if ( event->button() == TQt::LeftButton ) { if ( ! _editorWindow->pointSelected( TQCursor::pos() ) ) { _editorWindow->clearSelection( true ); if ( dynamic_cast<DragAccepter*>(this) == 0 && dynamic_cast<ConcWidget*>(this) == 0 ) { @@ -131,7 +131,7 @@ void RegExpWidget::mousePressEvent ( TQMouseEvent* event ) event->button(), event->state()); TQApplication::sendEvent( _editorWindow, &ev ); } - else if ( event->button() == Qt::RightButton ) { + else if ( event->button() == TQt::RightButton ) { _editorWindow->showRMBMenu( true ); } diff --git a/ksim/generalprefs.cpp b/ksim/generalprefs.cpp index 42148d6..b7b9b4d 100644 --- a/ksim/generalprefs.cpp +++ b/ksim/generalprefs.cpp @@ -48,7 +48,7 @@ KSim::GeneralPrefs::GeneralPrefs(TQWidget *parent, const char *name) m_sizeBox = new TQGroupBox(this); m_sizeBox->setTitle(i18n("Graph Size")); - m_sizeBox->setColumnLayout(0, Qt::Horizontal); + m_sizeBox->setColumnLayout(0, TQt::Horizontal); TQGridLayout *sizeBoxLayout = new TQGridLayout(m_sizeBox->layout()); sizeBoxLayout->setSpacing(6); @@ -210,7 +210,7 @@ KSim::UptimePrefs::UptimePrefs(TQWidget *parent, const char *name) m_uptimeBox = new TQGroupBox(this); m_uptimeBox->setTitle(i18n("Uptime Legend")); - m_uptimeBox->setColumnLayout(0, Qt::Vertical); + m_uptimeBox->setColumnLayout(0, TQt::Vertical); m_uptimeBox->layout()->setSpacing(0); m_uptimeBox->layout()->setMargin(0); m_boxLayout = new TQVBoxLayout(m_uptimeBox->layout()); @@ -346,7 +346,7 @@ KSim::MemoryPrefs::MemoryPrefs(TQWidget *parent, const char *name) m_memBox = new TQGroupBox(this); m_memBox->setTitle(i18n("Memory Legend")); - m_memBox->setColumnLayout(0, Qt::Vertical); + m_memBox->setColumnLayout(0, TQt::Vertical); m_memBox->layout()->setSpacing(0); m_memBox->layout()->setMargin(0); m_boxLayout = new TQVBoxLayout(m_memBox->layout()); @@ -495,7 +495,7 @@ KSim::SwapPrefs::SwapPrefs(TQWidget *parent, const char *name) m_swapBox = new TQGroupBox(this); m_swapBox->setTitle(i18n("Swap Legend")); - m_swapBox->setColumnLayout(0, Qt::Vertical); + m_swapBox->setColumnLayout(0, TQt::Vertical); m_swapBox->layout()->setSpacing(0); m_swapBox->layout()->setMargin(0); m_boxLayout = new TQVBoxLayout(m_swapBox->layout()); diff --git a/ksim/ksimview.cpp b/ksim/ksimview.cpp index 5e83641..21b4fa6 100644 --- a/ksim/ksimview.cpp +++ b/ksim/ksimview.cpp @@ -458,9 +458,9 @@ TQSize KSim::MainView::sizeHint(KPanelExtension::Position p, TQSize) const return TQSize(width, height); } -void KSim::MainView::positionChange(Qt::Orientation o) +void KSim::MainView::positionChange(TQt::Orientation o) { - if (o == Qt::Vertical) + if (o == TQt::Vertical) m_pluginLayout->setDirection(TQBoxLayout::TopToBottom); else m_pluginLayout->setDirection(TQBoxLayout::LeftToRight); diff --git a/ksim/ksimview.h b/ksim/ksimview.h index 067324d..92e2923 100644 --- a/ksim/ksimview.h +++ b/ksim/ksimview.h @@ -64,7 +64,7 @@ namespace KSim void makeDirs(); TQSize sizeHint(KPanelExtension::Position, TQSize maxSize) const; - void positionChange(Qt::Orientation); + void positionChange(TQt::Orientation); k_dcop: const TQString &hostname() const; diff --git a/ksim/library/pluginmodule.cpp b/ksim/library/pluginmodule.cpp index 7f450de..7ef24b2 100644 --- a/ksim/library/pluginmodule.cpp +++ b/ksim/library/pluginmodule.cpp @@ -159,7 +159,7 @@ void KSim::PluginView::doCommand() void KSim::PluginView::mousePressEvent(TQMouseEvent *ev) { - if (ev->button() == Qt::LeftButton) + if (ev->button() == TQt::LeftButton) doCommand(); } diff --git a/ksim/monitors/cpu/ksimcpu.cpp b/ksim/monitors/cpu/ksimcpu.cpp index af6074c..68b2b90 100644 --- a/ksim/monitors/cpu/ksimcpu.cpp +++ b/ksim/monitors/cpu/ksimcpu.cpp @@ -391,7 +391,7 @@ CpuConfig::CpuConfig(KSim::PluginObject *parent, const char *name) mainLayout->addLayout( layout ); m_legendBox = new TQGroupBox(this); - m_legendBox->setColumnLayout(0, Qt::Vertical); + m_legendBox->setColumnLayout(0, TQt::Vertical); m_legendBox->setTitle(i18n("Chart Legend")); m_legendBox->layout()->setSpacing(0); m_legendBox->layout()->setMargin(0); diff --git a/ksim/monitors/filesystem/filesystemwidget.cpp b/ksim/monitors/filesystem/filesystemwidget.cpp index 35e79b9..b60ba43 100644 --- a/ksim/monitors/filesystem/filesystemwidget.cpp +++ b/ksim/monitors/filesystem/filesystemwidget.cpp @@ -152,12 +152,12 @@ bool FilesystemWidget::eventFilter(TQObject *o, TQEvent *e) if (o == progressBar && e->type() == TQEvent::MouseButtonPress) { switch(TQT_TQMOUSEEVENT(e)->button()) { - case Qt::RightButton: + case TQt::RightButton: showMenu(i); break; default: break; - case Qt::LeftButton: + case TQt::LeftButton: if (parentWidget()->inherits("KSim::PluginView")) static_cast<KSim::PluginView *>(parentWidget())->doCommand(); break; diff --git a/ksim/monitors/net/ksimnet.cpp b/ksim/monitors/net/ksimnet.cpp index 338ac06..d686a10 100644 --- a/ksim/monitors/net/ksimnet.cpp +++ b/ksim/monitors/net/ksimnet.cpp @@ -642,7 +642,7 @@ bool NetView::eventFilter( TQObject * o, TQEvent * e ) if ( e->type() == TQEvent::MouseButtonPress ) { - if ( TQT_TQMOUSEEVENT( e )->button() == Qt::RightButton ) + if ( TQT_TQMOUSEEVENT( e )->button() == TQt::RightButton ) { showMenu(i); } diff --git a/ksim/monitors/net/netdialog.cpp b/ksim/monitors/net/netdialog.cpp index 21d6236..12ef26d 100644 --- a/ksim/monitors/net/netdialog.cpp +++ b/ksim/monitors/net/netdialog.cpp @@ -85,7 +85,7 @@ NetDialog::NetDialog(TQWidget *parent, const char *name) m_timerBox = new TQGroupBox(m_generalTab); m_timerBox->setTitle(i18n("Timer")); - m_timerBox->setColumnLayout(0, Qt::Vertical); + m_timerBox->setColumnLayout(0, TQt::Vertical); m_timerBox->layout()->setSpacing(0); m_timerBox->layout()->setMargin(0); m_timerBoxLayout = new TQVBoxLayout(m_timerBox->layout()); diff --git a/ksim/themeprefs.cpp b/ksim/themeprefs.cpp index 9ab7f60..b0218d4 100644 --- a/ksim/themeprefs.cpp +++ b/ksim/themeprefs.cpp @@ -81,7 +81,7 @@ KSim::ThemePrefs::ThemePrefs(TQWidget *parent, const char *name) this, TQT_SLOT(openURL(const TQString &))); m_themeLayout->addMultiCellWidget(m_urlLabel, 1, 1, 0, 4); - m_line = new KSeparator(Qt::Horizontal, this); + m_line = new KSeparator(TQt::Horizontal, this); m_themeLayout->addMultiCellWidget(m_line, 2, 2, 0, 4); m_authorLabel = new TQLabel(this); diff --git a/superkaramba/src/clickarea.cpp b/superkaramba/src/clickarea.cpp index a49e4c7..2377aaf 100644 --- a/superkaramba/src/clickarea.cpp +++ b/superkaramba/src/clickarea.cpp @@ -31,7 +31,7 @@ bool ClickArea::click( TQMouseEvent *e ) { //tqDebug(TQString::number(e->type())); //KShellProcess ksp; - if( e->button() != Qt::LeftButton ) + if( e->button() != TQt::LeftButton ) return false; if (!svc_name.isEmpty()) { diff --git a/superkaramba/src/datesensor.cpp b/superkaramba/src/datesensor.cpp index ca5e6e6..6adef6d 100644 --- a/superkaramba/src/datesensor.cpp +++ b/superkaramba/src/datesensor.cpp @@ -117,7 +117,7 @@ void DateSensor::mousePressEvent(TQMouseEvent *ev) { switch (ev->button()) { - case Qt::LeftButton: + case TQt::LeftButton: toggleCalendar(ev); break; default: diff --git a/superkaramba/src/imagelabel.cpp b/superkaramba/src/imagelabel.cpp index 514e7f8..2edac34 100644 --- a/superkaramba/src/imagelabel.cpp +++ b/superkaramba/src/imagelabel.cpp @@ -387,15 +387,15 @@ bool ImageLabel::click(TQMouseEvent* e) if (getBoundingBox().contains(e -> x(), e -> y()) && isEnabled()) { TQString program; - if (e -> button() == Qt::LeftButton) + if (e -> button() == TQt::LeftButton) { program = leftButtonAction; } - else if (e -> button() == Qt::MidButton) + else if (e -> button() == TQt::MidButton) { program = middleButtonAction; } - else if (e -> button() == Qt::RightButton) + else if (e -> button() == TQt::RightButton) { program = rightButtonAction; } diff --git a/superkaramba/src/karamba.cpp b/superkaramba/src/karamba.cpp index 749805b..b5618a4 100644 --- a/superkaramba/src/karamba.cpp +++ b/superkaramba/src/karamba.cpp @@ -1294,11 +1294,11 @@ void karamba::meterClicked(TQMouseEvent* e, Meter* meter) { int button = 0; - if( e->button() == Qt::LeftButton ) + if( e->button() == TQt::LeftButton ) button = 1; - else if( e->button() == Qt::MidButton ) + else if( e->button() == TQt::MidButton ) button = 2; - else if( e->button() == Qt::RightButton ) + else if( e->button() == TQt::RightButton ) button = 3; if (RichTextLabel* richText = dynamic_cast<RichTextLabel*>(meter)) @@ -1351,11 +1351,11 @@ void karamba::passClick(TQMouseEvent *e) { int button = 0; - if( e->button() == Qt::LeftButton ) + if( e->button() == TQt::LeftButton ) button = 1; - else if( e->button() == Qt::MidButton ) + else if( e->button() == TQt::MidButton ) button = 2; - else if( e->button() == Qt::RightButton ) + else if( e->button() == TQt::RightButton ) button = 3; pythonIface->widgetClicked(this, e->x(), e->y(), button); @@ -1416,7 +1416,7 @@ void karamba::management_popup( void ) void karamba::mousePressEvent( TQMouseEvent *e ) { //tqDebug("karamba::mousePressEvent"); - if( e->button() == Qt::RightButton && !want_right_button ) + if( e->button() == TQt::RightButton && !want_right_button ) { management_popup(); } @@ -1512,14 +1512,14 @@ void karamba::mouseMoveEvent( TQMouseEvent *e ) //Modified by Ryan Nickell (p0z3r@mail.com) 03/16/2004 // This will work now, but only when you move at least // one pixel in any direction with your mouse. - //if( e->button() == Qt::LeftButton ) - if( e->state() == Qt::LeftButton) + //if( e->button() == TQt::LeftButton ) + if( e->state() == TQt::LeftButton) button = 1; - //else if( e->button() == Qt::MidButton ) - else if( e->state() == Qt::MidButton ) + //else if( e->button() == TQt::MidButton ) + else if( e->state() == TQt::MidButton ) button = 2; - //else if( e->button() == Qt::RightButton ) - else if( e->state() == Qt::RightButton ) + //else if( e->button() == TQt::RightButton ) + else if( e->state() == TQt::RightButton ) button = 3; pythonIface->widgetMouseMoved(this, e->x(), e->y(), button); diff --git a/superkaramba/src/richtextlabel.cpp b/superkaramba/src/richtextlabel.cpp index 999fe0f..d0664da 100644 --- a/superkaramba/src/richtextlabel.cpp +++ b/superkaramba/src/richtextlabel.cpp @@ -165,7 +165,7 @@ bool RichTextLabel::click(TQMouseEvent* e) TQString anchor = text->anchorAt(point); if (anchor[0] != '#') { - if (e->button() == Qt::LeftButton) + if (e->button() == TQt::LeftButton) { KRun :: runCommand(anchor); } diff --git a/superkaramba/src/textlabel.cpp b/superkaramba/src/textlabel.cpp index 09b8f98..968973d 100644 --- a/superkaramba/src/textlabel.cpp +++ b/superkaramba/src/textlabel.cpp @@ -342,15 +342,15 @@ bool TextLabel::click(TQMouseEvent* e) if (getBoundingBox().contains(e -> x(), e -> y()) && isEnabled()) { TQString program; - if (e -> button() == Qt::LeftButton) + if (e -> button() == TQt::LeftButton) { program = leftButtonAction; } - else if (e -> button() == Qt::MidButton) + else if (e -> button() == TQt::MidButton) { program = middleButtonAction; } - else if (e -> button() == Qt::RightButton) + else if (e -> button() == TQt::RightButton) { program = rightButtonAction; } diff --git a/tdefilereplace/commandengine.cpp b/tdefilereplace/commandengine.cpp index 5184773..81feb0f 100644 --- a/tdefilereplace/commandengine.cpp +++ b/tdefilereplace/commandengine.cpp @@ -34,9 +34,9 @@ TQString CommandEngine::datetime(const TQString& opt, const TQString& arg) { Q_UNUSED(arg); if(opt == "iso") - return TQDateTime::currentDateTime(Qt::LocalTime).toString(Qt::ISODate); + return TQDateTime::currentDateTime(TQt::LocalTime).toString(TQt::ISODate); if(opt == "local") - return TQDateTime::currentDateTime(Qt::LocalTime).toString(Qt::LocalDate); + return TQDateTime::currentDateTime(TQt::LocalTime).toString(TQt::LocalDate); return TQString(); } diff --git a/tdefilereplace/knewprojectdlg.cpp b/tdefilereplace/knewprojectdlg.cpp index 5119d2c..69ffda3 100644 --- a/tdefilereplace/knewprojectdlg.cpp +++ b/tdefilereplace/knewprojectdlg.cpp @@ -315,7 +315,7 @@ void KNewProjectDlg::loadDateAccessOptions() else { m_chbDateMin->setChecked(true); - m_dedDateMin->setDate(TQDate::fromString(date,Qt::ISODate)); + m_dedDateMin->setDate(TQDate::fromString(date,TQt::ISODate)); m_dedDateMin->setEnabled(true); } @@ -329,7 +329,7 @@ void KNewProjectDlg::loadDateAccessOptions() else { m_chbDateMax->setChecked(true); - m_dedDateMax->setDate(TQDate::fromString(date,Qt::ISODate)); + m_dedDateMax->setDate(TQDate::fromString(date,TQt::ISODate)); m_dedDateMax->setEnabled(true); } @@ -420,7 +420,7 @@ void KNewProjectDlg::saveDateAccessOptions() if(m_chbDateMin->isChecked()) { - TQString date = m_dedDateMin->date().toString(Qt::ISODate); + TQString date = m_dedDateMin->date().toString(TQt::ISODate); m_option->m_minDate = date; } else @@ -428,7 +428,7 @@ void KNewProjectDlg::saveDateAccessOptions() if(m_chbDateMax->isChecked()) { - TQString date = m_dedDateMax->date().toString(Qt::ISODate); + TQString date = m_dedDateMax->date().toString(TQt::ISODate); m_option->m_maxDate = date; } else diff --git a/tdefilereplace/report.cpp b/tdefilereplace/report.cpp index 3be703e..6a8f6b5 100644 --- a/tdefilereplace/report.cpp +++ b/tdefilereplace/report.cpp @@ -44,8 +44,8 @@ void Report::createReportFile() // b) Write the header of the XML file - TQDateTime datetime = TQDateTime::currentDateTime(Qt::LocalTime); - TQString dateString = datetime.toString(Qt::LocalDate); + TQDateTime datetime = TQDateTime::currentDateTime(TQt::LocalTime); + TQString dateString = datetime.toString(TQt::LocalDate); KUser user; TQString columnTextFour, columnReplaceWith; diff --git a/tdefilereplace/tdefilereplacelib.cpp b/tdefilereplace/tdefilereplacelib.cpp index 90c8ef4..33e0bb3 100644 --- a/tdefilereplace/tdefilereplacelib.cpp +++ b/tdefilereplace/tdefilereplacelib.cpp @@ -118,9 +118,9 @@ bool TDEFileReplaceLib::isAnAccessibleFile(const TQString& filePath, const TQStr // Avoid files that not match access date requirements TQString last = "unknown"; if(dateAccess == "Last Writing Access") - last = fi.lastModified().toString(Qt::ISODate); + last = fi.lastModified().toString(TQt::ISODate); if(dateAccess == "Last Reading Access") - last = fi.lastRead().toString(Qt::ISODate); + last = fi.lastRead().toString(TQt::ISODate); if(last != "unknown") { diff --git a/tdefilereplace/tdefilereplaceview.cpp b/tdefilereplace/tdefilereplaceview.cpp index 87d6482..b7cd78c 100644 --- a/tdefilereplace/tdefilereplaceview.cpp +++ b/tdefilereplace/tdefilereplaceview.cpp @@ -220,7 +220,7 @@ void TDEFileReplaceView::slotResultMouseButtonClicked(int button, TQListViewItem if (lvi == 0) // No item selected return; - if (button == Qt::RightButton) + if (button == TQt::RightButton) { // Right mouse button: open popup menub m_menuResult->popup(pos); diff --git a/tdelirc/irkick/irkick.cpp b/tdelirc/irkick/irkick.cpp index 2d042f0..25a0c9f 100644 --- a/tdelirc/irkick/irkick.cpp +++ b/tdelirc/irkick/irkick.cpp @@ -44,7 +44,7 @@ void IRKTrayIcon::mousePressEvent(TQMouseEvent *e) { - KSystemTray::mousePressEvent(new TQMouseEvent(TQEvent::MouseButtonPress, e->pos(), e->globalPos(), e->button() == Qt::LeftButton ? Qt::RightButton : e->button(), e->state())); + KSystemTray::mousePressEvent(new TQMouseEvent(TQEvent::MouseButtonPress, e->pos(), e->globalPos(), e->button() == TQt::LeftButton ? TQt::RightButton : e->button(), e->state())); } IRKick::IRKick(const TQCString &obj) : TQObject(), DCOPObject(obj), npApp(TQString()) |