Replace Qt with TQt

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/58/head
Michele Calgaro 6 months ago
parent a2da8d0620
commit 007026cdc4
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -162,7 +162,7 @@ void FileLVI::setText( int column, const TQString &text )
TQListViewItem::setText(column, text); TQListViewItem::setText(column, text);
else else
{ {
m_timeStamp = TQDateTime::fromString( text, Qt::ISODate ); m_timeStamp = TQDateTime::fromString( text, TQt::ISODate );
TQListViewItem::setText( column, TDEGlobal::locale()->formatDateTime( m_timeStamp ) ); TQListViewItem::setText( column, TDEGlobal::locale()->formatDateTime( m_timeStamp ) );
} }
} }
@ -342,7 +342,7 @@ bool FileListView::isSelectionEmpty()
void void
FileListView::contentsMousePressEvent(TQMouseEvent *e) FileListView::contentsMousePressEvent(TQMouseEvent *e)
{ {
if( e->button()==Qt::LeftButton ) if( e->button()==TQt::LeftButton )
{ {
m_pressed = true; m_pressed = true;
m_presspos = e->pos(); m_presspos = e->pos();

@ -148,7 +148,7 @@ void TarListingThread::processDir( const KTarDirectory *tardir, const TQString &
strSize.sprintf("%d", ((KTarFile *)tarEntry)->size()); strSize.sprintf("%d", ((KTarFile *)tarEntry)->size());
} }
col_list.append(strSize); 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(timestamp);
col_list.append(tarEntry->symlink()); col_list.append(tarEntry->symlink());

@ -285,7 +285,7 @@ void CharTable::mousePressEvent(TQMouseEvent *e)
void CharTable::mouseMoveEvent(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()); int row = findRow(e->y());
if (row == -1) return; if (row == -1) return;

@ -150,7 +150,7 @@ void KCalcDisplay::slotPaste(bool bClipboard)
void KCalcDisplay::slotDisplaySelected(void) void KCalcDisplay::slotDisplaySelected(void)
{ {
if(_button == Qt::LeftButton) { if(_button == TQt::LeftButton) {
if(_lit) { if(_lit) {
slotCopy(); slotCopy();
selection_timer->start(100); selection_timer->start(100);
@ -182,11 +182,11 @@ void KCalcDisplay::invertColors()
void KCalcDisplay::mousePressEvent(TQMouseEvent *e) void KCalcDisplay::mousePressEvent(TQMouseEvent *e)
{ {
if(e->button() == Qt::LeftButton) { if(e->button() == TQt::LeftButton) {
_lit = !_lit; _lit = !_lit;
_button = Qt::LeftButton; _button = TQt::LeftButton;
} else { } else {
_button = Qt::MidButton; _button = TQt::MidButton;
} }
emit clicked(); emit clicked();

@ -99,7 +99,7 @@ KDFConfigWidget::KDFConfigWidget(TQWidget *parent, const char *name, bool init)
mScroll = new TQScrollBar( this ); mScroll = new TQScrollBar( this );
TQ_CHECK_PTR(mScroll); TQ_CHECK_PTR(mScroll);
mScroll->setOrientation( Qt::Horizontal ); mScroll->setOrientation( TQt::Horizontal );
mScroll->setSteps(1,20); mScroll->setSteps(1,20);
mScroll->setRange(0, 180 ); mScroll->setRange(0, 180 );
gl->addWidget( mScroll, 1, 1 ); gl->addWidget( mScroll, 1, 1 );

@ -184,7 +184,7 @@ FloppyData::FloppyData(TQWidget * parent, const char * name)
v1->addSpacing( 10 ); 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" ); quick = new TQRadioButton( i18n( "Q&uick format" ), buttongroup, "RadioButton_2" );

@ -235,7 +235,7 @@ void KgpgKeyInfo::loadKey(TQString Keyid)
date = timestamp.date(); date = timestamp.date();
} }
else { 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")*/; Q_ASSERT ( date.isValid())/* tqWarning("create date is not valid")*/;
@ -250,7 +250,7 @@ void KgpgKeyInfo::loadKey(TQString Keyid)
date = timestamp.date(); date = timestamp.date();
} }
else { 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")*/; Q_ASSERT (date.isValid()) /* tqWarning("Expirationdate date is not valid")*/;
expirationDate=TDEGlobal::locale()->formatDate(date); expirationDate=TDEGlobal::locale()->formatDate(date);

@ -414,7 +414,7 @@ void keyServer::slotsearchresult(TDEProcess *)
date = timestamp.date(); date = timestamp.date();
} }
else { 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")*/; Q_ASSERT (date.isValid()) /*tqWarning("create date is not valid")*/;
if (date < TQDate::currentDate() ) { if (date < TQDate::currentDate() ) {
@ -446,7 +446,7 @@ void keyServer::slotsearchresult(TDEProcess *)
date = timestamp.date(); date = timestamp.date();
} }
else { else {
date = TQDate::fromString(keyString[4], Qt::ISODate); date = TQDate::fromString(keyString[4], TQt::ISODate);
} }
created=TDEGlobal::locale()->formatDate(date, true); created=TDEGlobal::locale()->formatDate(date, true);
} }
@ -463,7 +463,7 @@ void keyServer::slotsearchresult(TDEProcess *)
date = timestamp.date(); date = timestamp.date();
} }
else { else {
date = TQDate::fromString(keyString[2], Qt::ISODate); date = TQDate::fromString(keyString[2], TQt::ISODate);
} }
created=TDEGlobal::locale()->formatDate(date, true); created=TDEGlobal::locale()->formatDate(date, true);
} }
@ -719,7 +719,7 @@ void keyServer::slotksearchprocresult(TDEProcess *) {
date = timestamp.date(); date = timestamp.date();
} }
else { 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")*/; Q_ASSERT (date.isValid()) /*tqWarning("create date is not valid")*/;
if (date < TQDate::currentDate() ) { if (date < TQDate::currentDate() ) {

@ -205,7 +205,7 @@ KgpgView::KgpgView(TQWidget *parent, const char *name) : TQWidget(parent, name)
setAcceptDrops(true); setAcceptDrops(true);
KButtonBox *boutonbox=new KButtonBox(this,Qt::Horizontal,15,12); KButtonBox *boutonbox=new KButtonBox(this,TQt::Horizontal,15,12);
boutonbox->addStretch(1); boutonbox->addStretch(1);
bouton0=boutonbox->addButton(i18n("S&ign/Verify"),TQT_TQOBJECT(this),TQT_SLOT(clearSign()),TRUE); bouton0=boutonbox->addButton(i18n("S&ign/Verify"),TQT_TQOBJECT(this),TQT_SLOT(clearSign()),TRUE);

@ -3420,7 +3420,7 @@ gpgKey KeyView::extractKey(TQString keyColon)
date = timestamp.date(); date = timestamp.date();
} }
else { 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")*/; Q_ASSERT (date.isValid()) /*tqWarning("create date is not valid")*/;
ret.gpgkeycreation=TDEGlobal::locale()->formatDate(date, true); ret.gpgkeycreation=TDEGlobal::locale()->formatDate(date, true);
@ -3439,7 +3439,7 @@ gpgKey KeyView::extractKey(TQString keyColon)
date = timestamp.date(); date = timestamp.date();
} }
else { 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")*/; Q_ASSERT (date.isValid()) /*tqWarning("expire date is not valid")*/;
ret.gpgkeyexpiration=TDEGlobal::locale()->formatDate(date, true); ret.gpgkeyexpiration=TDEGlobal::locale()->formatDate(date, true);

@ -147,7 +147,7 @@ KDialogBase( Plain, i18n("Select Public Key"), Details | Ok | Cancel, Ok, parent
keysList->setColumnWidth(0,210); keysList->setColumnWidth(0,210);
keysList->setColumnWidth(1,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); TDEActionCollection *actcol=new TDEActionCollection(this);
(void) new TDEAction(i18n("&Go to Default Key"),goDefaultKey, TQT_TQOBJECT(this), TQT_SLOT(slotGotoDefaultKey()),actcol,"go_default_key"); (void) new TDEAction(i18n("&Go to Default Key"),goDefaultKey, TQT_TQOBJECT(this), TQT_SLOT(slotGotoDefaultKey()),actcol,"go_default_key");

@ -44,7 +44,7 @@ CDragLabel::~CDragLabel( void )
void CDragLabel::mousePressEvent( TQMouseEvent *e ) 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; return;
} }

@ -193,9 +193,9 @@ CHexViewWidget::CHexViewWidget( TQWidget *parent, const char *name,
// signal whenever is receives a TQHideEvent. // signal whenever is receives a TQHideEvent.
// //
mVertScroll = new CScrollBar( Qt::Vertical, this ); mVertScroll = new CScrollBar( TQt::Vertical, this );
if( mVertScroll == 0 ) { return; } if( mVertScroll == 0 ) { return; }
mHorzScroll = new CScrollBar( Qt::Horizontal, this ); mHorzScroll = new CScrollBar( TQt::Horizontal, this );
if( mHorzScroll == 0 ) { return; } if( mHorzScroll == 0 ) { return; }
mCorner = new TQWidget( this ); mCorner = new TQWidget( this );
if( mCorner == 0 ) { return; } if( mCorner == 0 ) { return; }
@ -1534,7 +1534,7 @@ void CHexViewWidget::mousePressEvent( TQMouseEvent *e )
// The RMB popup menu is managed by the KContextMenuManager // The RMB popup menu is managed by the KContextMenuManager
// //
if( e->button() == Qt::LeftButton ) if( e->button() == TQt::LeftButton )
{ {
if( e->state() & ControlButton ) if( e->state() & ControlButton )
{ {
@ -1550,7 +1550,7 @@ void CHexViewWidget::mousePressEvent( TQMouseEvent *e )
setCursorPosition( e->x(), e->y(), true, cellLevel ); setCursorPosition( e->x(), e->y(), true, cellLevel );
} }
} }
else if( e->button() == Qt::MidButton ) else if( e->button() == TQt::MidButton )
{ {
paste(); paste();
} }
@ -1559,7 +1559,7 @@ void CHexViewWidget::mousePressEvent( TQMouseEvent *e )
void CHexViewWidget::mouseMoveEvent( TQMouseEvent *e ) void CHexViewWidget::mouseMoveEvent( TQMouseEvent *e )
{ {
if( e->state() & Qt::LeftButton ) if( e->state() & TQt::LeftButton )
{ {
if( mDragManager->start( e ) == false ) if( mDragManager->start( e ) == false )
{ {
@ -1575,7 +1575,7 @@ void CHexViewWidget::mouseReleaseEvent( TQMouseEvent *e )
// The RMB popup menu is managed by the KContextMenuManager // The RMB popup menu is managed by the KContextMenuManager
// //
if( e->button() == Qt::LeftButton ) if( e->button() == TQt::LeftButton )
{ {
if( e->state() & ControlButton ) if( e->state() & ControlButton )
{ {

@ -43,7 +43,7 @@ class CScrollBar : public TQScrollBar
public: 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 ) : TQScrollBar( o, parent, name )
{ {
} }

@ -1548,7 +1548,7 @@ void KHexEdit::contentsMousePressEvent( TQMouseEvent *e )
pauseCursor( true ); pauseCursor( true );
// care about a left button press? // care about a left button press?
if( e->button() == Qt::LeftButton ) if( e->button() == TQt::LeftButton )
{ {
MousePressed = true; MousePressed = true;
@ -1601,7 +1601,7 @@ void KHexEdit::contentsMousePressEvent( TQMouseEvent *e )
BufferRanges->removeFurtherSelections(); BufferRanges->removeFurtherSelections();
} }
else if( e->button() == Qt::MidButton ) else if( e->button() == TQt::MidButton )
BufferRanges->removeSelection(); BufferRanges->removeSelection();
if( BufferRanges->isModified() ) if( BufferRanges->isModified() )
@ -1684,7 +1684,7 @@ void KHexEdit::contentsMouseReleaseEvent( TQMouseEvent *e )
} }
} }
// middle mouse button paste? // middle mouse button paste?
else if( e->button() == Qt::MidButton && !isReadOnly() ) else if( e->button() == TQt::MidButton && !isReadOnly() )
{ {
pauseCursor(); pauseCursor();
@ -1723,7 +1723,7 @@ void KHexEdit::contentsMouseReleaseEvent( TQMouseEvent *e )
void KHexEdit::contentsMouseDoubleClickEvent( TQMouseEvent *e ) void KHexEdit::contentsMouseDoubleClickEvent( TQMouseEvent *e )
{ {
// we are only interested in LMB doubleclicks // we are only interested in LMB doubleclicks
if( e->button() != Qt::LeftButton ) if( e->button() != TQt::LeftButton )
{ {
e->ignore(); e->ignore();
return; return;

@ -55,7 +55,7 @@ KJotsEdit::~KJotsEdit()
void KJotsEdit::mousePressEvent( TQMouseEvent *e ) void KJotsEdit::mousePressEvent( TQMouseEvent *e )
{ {
if(e->button() == Qt::RightButton && if(e->button() == TQt::RightButton &&
hasSelectedText()) hasSelectedText())
{ {
KURL url(selectedText()); KURL url(selectedText());

@ -152,7 +152,7 @@ ButtonsConfig::ButtonsConfig (TQWidget * parent, const char *name)
TQWidget *wp = new TQWidget(lidBox); TQWidget *wp = new TQWidget(lidBox);
TQHBoxLayout *xl = new TQHBoxLayout( wp); TQHBoxLayout *xl = new TQHBoxLayout( wp);
xl->addWidget(new TQLabel("-", 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); lidValBrightness->setEnabled(0);
TQToolTip::add( lidValBrightness, i18n( "How bright the back panel will be set to" ) ); TQToolTip::add( lidValBrightness, i18n( "How bright the back panel will be set to" ) );
connect (lidValBrightness, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(configChanged())); 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); TQWidget *wp = new TQWidget(powerBox);
TQHBoxLayout *xl = new TQHBoxLayout( wp); TQHBoxLayout *xl = new TQHBoxLayout( wp);
xl->addWidget(new TQLabel("-", 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" ) ); TQToolTip::add( powerValBrightness, i18n( "How bright the back panel will be set to" ) );
powerValBrightness->setEnabled(0); powerValBrightness->setEnabled(0);
connect (powerValBrightness, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(configChanged())); connect (powerValBrightness, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(configChanged()));

@ -198,7 +198,7 @@ laptop_dock::invokeBrightness()
brightness_widget = new TQVBox(0L, "Brightness", WStyle_Customize | WType_Popup); brightness_widget = new TQVBox(0L, "Brightness", WStyle_Customize | WType_Popup);
brightness_widget->setFrameStyle(TQFrame::PopupPanel); brightness_widget->setFrameStyle(TQFrame::PopupPanel);
brightness_widget->setMargin(KDialog::marginHint()); 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->setMinimumHeight(40);
brightness_slider->setMinimumWidth(15); brightness_slider->setMinimumWidth(15);
connect(brightness_slider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(invokeBrightnessSlider(int))); 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 ) void laptop_dock::mousePressEvent( TQMouseEvent *event )
{ {
if(event->button() == Qt::LeftButton) { if(event->button() == TQt::LeftButton) {
TQPopupMenu *popup = new TQPopupMenu(0, "popup"); TQPopupMenu *popup = new TQPopupMenu(0, "popup");
if (!pdaemon->exists()) { if (!pdaemon->exists()) {
@ -473,11 +473,11 @@ void laptop_dock::mouseReleaseEvent( TQMouseEvent *e )
return; return;
switch ( e->button() ) { switch ( e->button() ) {
case Qt::LeftButton: case TQt::LeftButton:
break; break;
case Qt::MidButton: case TQt::MidButton:
// fall through // fall through
case Qt::RightButton: case TQt::RightButton:
{ {
TDEPopupMenu *menu = contextMenu(); TDEPopupMenu *menu = contextMenu();
contextMenuAboutToShow( menu ); contextMenuAboutToShow( menu );

@ -145,7 +145,7 @@ PowerConfig::PowerConfig (TQWidget * parent, const char *name)
TQWidget *wp = new TQWidget(nopowerBox); TQWidget *wp = new TQWidget(nopowerBox);
TQHBoxLayout *xl = new TQHBoxLayout( wp); TQHBoxLayout *xl = new TQHBoxLayout( wp);
xl->addWidget(new TQLabel("-", 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" ) ); TQToolTip::add( nopowerValBrightness, i18n( "How bright to change the back panel" ) );
nopowerValBrightness->setEnabled(0); nopowerValBrightness->setEnabled(0);
connect(nopowerValBrightness, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(changed())); 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); TQWidget *wp = new TQWidget(powerBox);
TQHBoxLayout *xl = new TQHBoxLayout( wp); TQHBoxLayout *xl = new TQHBoxLayout( wp);
xl->addWidget(new TQLabel("-", 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" ) ); TQToolTip::add( powerValBrightness, i18n( "How bright to change the back panel" ) );
powerValBrightness->setEnabled(0); powerValBrightness->setEnabled(0);
connect(powerValBrightness, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(changed())); connect(powerValBrightness, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(changed()));

@ -84,7 +84,7 @@ ProfileConfig::ProfileConfig(TQWidget * parent, const char *name)
connect (poff, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(poff_changed(bool))); connect (poff, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(poff_changed(bool)));
xl->addWidget(new TQLabel("-", wp)); 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); soff->setEnabled(0);
TQToolTip::add( soff, i18n( "How bright it should be when it is changed" ) ); TQToolTip::add( soff, i18n( "How bright it should be when it is changed" ) );
connect (soff, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(configChanged())); 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))); connect (pon, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(pon_changed(bool)));
xl->addWidget(new TQLabel("-", wp)); 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); son->setEnabled(0);
TQToolTip::add( son, i18n( "How bright it should be when it is changed" ) ); TQToolTip::add( son, i18n( "How bright it should be when it is changed" ) );
connect (son, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(configChanged())); connect (son, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(configChanged()));

@ -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))); connect(checkBrightness, TQT_SIGNAL(toggled(bool)), this, TQT_SLOT(brightness_changed(bool)));
TQHBoxLayout *v = new TQHBoxLayout(); TQHBoxLayout *v = new TQHBoxLayout();
v->addWidget(new TQLabel("-", this)); 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" ) ); TQToolTip::add( valueBrightness, i18n( "How bright or dim to make the back panel" ) );
valueBrightness->setMaximumWidth(70); valueBrightness->setMaximumWidth(70);
v->addWidget(valueBrightness); v->addWidget(valueBrightness);

@ -58,7 +58,7 @@ void CCP::install(TQObject *elm)
bool CCP::eventFilter(TQObject *, TQEvent *event) bool CCP::eventFilter(TQObject *, TQEvent *event)
{ {
if (event->type() != TQEvent::MouseButtonPress || if (event->type() != TQEvent::MouseButtonPress ||
((TQMouseEvent *) event)->button() != Qt::RightButton || ((TQMouseEvent *) event)->button() != TQt::RightButton ||
((TQMouseEvent *) event)->state() != TQEvent::ControlButton) { ((TQMouseEvent *) event)->state() != TQEvent::ControlButton) {
return false; return false;
} }

@ -258,7 +258,7 @@ RegExp* CompoundWidget::regExp() const
void CompoundWidget::mousePressEvent( TQMouseEvent* event ) void CompoundWidget::mousePressEvent( TQMouseEvent* event )
{ {
if ( event->button() == Qt::LeftButton && if ( event->button() == TQt::LeftButton &&
TQRect( _pixmapPos, _pixmapSize ).contains( event->pos() ) ) { TQRect( _pixmapPos, _pixmapSize ).contains( event->pos() ) ) {
// Skip otherwise we will never see the mouse release // Skip otherwise we will never see the mouse release
// since it is eaten by Editor window. // since it is eaten by Editor window.
@ -269,7 +269,7 @@ void CompoundWidget::mousePressEvent( TQMouseEvent* event )
void CompoundWidget::mouseReleaseEvent( TQMouseEvent* event) void CompoundWidget::mouseReleaseEvent( TQMouseEvent* event)
{ {
if ( event->button() == Qt::LeftButton && if ( event->button() == TQt::LeftButton &&
TQRect( _pixmapPos, _pixmapSize ).contains( event->pos() ) ) { TQRect( _pixmapPos, _pixmapSize ).contains( event->pos() ) ) {
_hidden = !_hidden; _hidden = !_hidden;
_editorWindow->updateContent( 0 ); _editorWindow->updateContent( 0 );

@ -189,7 +189,7 @@ void ConcWidget::paintEvent( TQPaintEvent *e)
void ConcWidget::mousePressEvent ( TQMouseEvent* event ) void ConcWidget::mousePressEvent ( TQMouseEvent* event )
{ {
if ( event->button() == Qt::RightButton ) { if ( event->button() == TQt::RightButton ) {
_editorWindow->showRMBMenu( _editorWindow->hasSelection() ); _editorWindow->showRMBMenu( _editorWindow->hasSelection() );
} }
else { else {

@ -46,7 +46,7 @@ void DragAccepter::paintEvent(TQPaintEvent *e)
void DragAccepter::mousePressEvent ( TQMouseEvent* event ) void DragAccepter::mousePressEvent ( TQMouseEvent* event )
{ {
if ( event->button() == Qt::RightButton ) { if ( event->button() == TQt::RightButton ) {
_editorWindow->showRMBMenu( _editorWindow->hasSelection() ); _editorWindow->showRMBMenu( _editorWindow->hasSelection() );
} }
else { else {
@ -56,7 +56,7 @@ void DragAccepter::mousePressEvent ( TQMouseEvent* event )
void DragAccepter::mouseReleaseEvent( 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(); RegExp* regexp = _editorWindow->pasteData();
RegExpWidget *newElm = WidgetFactory::createWidget( regexp, _editorWindow, 0 ); RegExpWidget *newElm = WidgetFactory::createWidget( regexp, _editorWindow, 0 );
@ -75,7 +75,7 @@ void DragAccepter::mouseReleaseEvent( TQMouseEvent* event )
_editorWindow->clearSelection( true ); _editorWindow->clearSelection( true );
} }
} }
else if ( _editorWindow->isInserting() && event->button() == Qt::LeftButton ) { else if ( _editorWindow->isInserting() && event->button() == TQt::LeftButton ) {
if ( WidgetFactory::isContainer( _editorWindow->insertType() ) && if ( WidgetFactory::isContainer( _editorWindow->insertType() ) &&
_editorWindow->pointSelected( mapToGlobal( event->pos() ) ) ) { _editorWindow->pointSelected( mapToGlobal( event->pos() ) ) ) {
RegExpWidget::mouseReleaseEvent( event ); RegExpWidget::mouseReleaseEvent( event );

@ -50,11 +50,11 @@ KRegExpEditorPrivate::KRegExpEditorPrivate(TQWidget *parent, const char *name)
: TQWidget(parent, name), _updating( false ), _autoVerify( true ) : TQWidget(parent, name), _updating( false ), _autoVerify( true )
{ {
setMinimumSize(730,300); 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); 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); 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); verArea2->setMinimumSize(2,2);
// The DockWindows. // 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." )); "you have developed and saved, and regular expressions shipped with the system." ));
// Editor window // Editor window
_editor = new TQSplitter(Qt::Vertical, this, "KRegExpEditorPrivate::_editor" ); _editor = new TQSplitter(TQt::Vertical, this, "KRegExpEditorPrivate::_editor" );
_scrolledEditorWindow = _scrolledEditorWindow =
new RegExpScrolledEditorWindow( _editor, "KRegExpEditorPrivate::_scrolledEditorWindow" ); new RegExpScrolledEditorWindow( _editor, "KRegExpEditorPrivate::_scrolledEditorWindow" );

@ -119,7 +119,7 @@ void RegExpWidget::mousePressEvent ( TQMouseEvent* event )
if ( _editorWindow->isPasteing() || _editorWindow->isInserting() ) if ( _editorWindow->isPasteing() || _editorWindow->isInserting() )
return; return;
if ( event->button() == Qt::LeftButton ) { if ( event->button() == TQt::LeftButton ) {
if ( ! _editorWindow->pointSelected( TQCursor::pos() ) ) { if ( ! _editorWindow->pointSelected( TQCursor::pos() ) ) {
_editorWindow->clearSelection( true ); _editorWindow->clearSelection( true );
if ( dynamic_cast<DragAccepter*>(this) == 0 && dynamic_cast<ConcWidget*>(this) == 0 ) { if ( dynamic_cast<DragAccepter*>(this) == 0 && dynamic_cast<ConcWidget*>(this) == 0 ) {
@ -131,7 +131,7 @@ void RegExpWidget::mousePressEvent ( TQMouseEvent* event )
event->button(), event->state()); event->button(), event->state());
TQApplication::sendEvent( _editorWindow, &ev ); TQApplication::sendEvent( _editorWindow, &ev );
} }
else if ( event->button() == Qt::RightButton ) { else if ( event->button() == TQt::RightButton ) {
_editorWindow->showRMBMenu( true ); _editorWindow->showRMBMenu( true );
} }

@ -48,7 +48,7 @@ KSim::GeneralPrefs::GeneralPrefs(TQWidget *parent, const char *name)
m_sizeBox = new TQGroupBox(this); m_sizeBox = new TQGroupBox(this);
m_sizeBox->setTitle(i18n("Graph Size")); 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()); TQGridLayout *sizeBoxLayout = new TQGridLayout(m_sizeBox->layout());
sizeBoxLayout->setSpacing(6); sizeBoxLayout->setSpacing(6);
@ -210,7 +210,7 @@ KSim::UptimePrefs::UptimePrefs(TQWidget *parent, const char *name)
m_uptimeBox = new TQGroupBox(this); m_uptimeBox = new TQGroupBox(this);
m_uptimeBox->setTitle(i18n("Uptime Legend")); 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()->setSpacing(0);
m_uptimeBox->layout()->setMargin(0); m_uptimeBox->layout()->setMargin(0);
m_boxLayout = new TQVBoxLayout(m_uptimeBox->layout()); 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 = new TQGroupBox(this);
m_memBox->setTitle(i18n("Memory Legend")); 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()->setSpacing(0);
m_memBox->layout()->setMargin(0); m_memBox->layout()->setMargin(0);
m_boxLayout = new TQVBoxLayout(m_memBox->layout()); 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 = new TQGroupBox(this);
m_swapBox->setTitle(i18n("Swap Legend")); 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()->setSpacing(0);
m_swapBox->layout()->setMargin(0); m_swapBox->layout()->setMargin(0);
m_boxLayout = new TQVBoxLayout(m_swapBox->layout()); m_boxLayout = new TQVBoxLayout(m_swapBox->layout());

@ -458,9 +458,9 @@ TQSize KSim::MainView::sizeHint(KPanelExtension::Position p, TQSize) const
return TQSize(width, height); 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); m_pluginLayout->setDirection(TQBoxLayout::TopToBottom);
else else
m_pluginLayout->setDirection(TQBoxLayout::LeftToRight); m_pluginLayout->setDirection(TQBoxLayout::LeftToRight);

@ -64,7 +64,7 @@ namespace KSim
void makeDirs(); void makeDirs();
TQSize sizeHint(KPanelExtension::Position, TQSize maxSize) const; TQSize sizeHint(KPanelExtension::Position, TQSize maxSize) const;
void positionChange(Qt::Orientation); void positionChange(TQt::Orientation);
k_dcop: k_dcop:
const TQString &hostname() const; const TQString &hostname() const;

@ -159,7 +159,7 @@ void KSim::PluginView::doCommand()
void KSim::PluginView::mousePressEvent(TQMouseEvent *ev) void KSim::PluginView::mousePressEvent(TQMouseEvent *ev)
{ {
if (ev->button() == Qt::LeftButton) if (ev->button() == TQt::LeftButton)
doCommand(); doCommand();
} }

@ -391,7 +391,7 @@ CpuConfig::CpuConfig(KSim::PluginObject *parent, const char *name)
mainLayout->addLayout( layout ); mainLayout->addLayout( layout );
m_legendBox = new TQGroupBox(this); 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->setTitle(i18n("Chart Legend"));
m_legendBox->layout()->setSpacing(0); m_legendBox->layout()->setSpacing(0);
m_legendBox->layout()->setMargin(0); m_legendBox->layout()->setMargin(0);

@ -152,12 +152,12 @@ bool FilesystemWidget::eventFilter(TQObject *o, TQEvent *e)
if (o == progressBar && e->type() == TQEvent::MouseButtonPress) if (o == progressBar && e->type() == TQEvent::MouseButtonPress)
{ {
switch(TQT_TQMOUSEEVENT(e)->button()) { switch(TQT_TQMOUSEEVENT(e)->button()) {
case Qt::RightButton: case TQt::RightButton:
showMenu(i); showMenu(i);
break; break;
default: default:
break; break;
case Qt::LeftButton: case TQt::LeftButton:
if (parentWidget()->inherits("KSim::PluginView")) if (parentWidget()->inherits("KSim::PluginView"))
static_cast<KSim::PluginView *>(parentWidget())->doCommand(); static_cast<KSim::PluginView *>(parentWidget())->doCommand();
break; break;

@ -642,7 +642,7 @@ bool NetView::eventFilter( TQObject * o, TQEvent * e )
if ( e->type() == TQEvent::MouseButtonPress ) if ( e->type() == TQEvent::MouseButtonPress )
{ {
if ( TQT_TQMOUSEEVENT( e )->button() == Qt::RightButton ) if ( TQT_TQMOUSEEVENT( e )->button() == TQt::RightButton )
{ {
showMenu(i); showMenu(i);
} }

@ -85,7 +85,7 @@ NetDialog::NetDialog(TQWidget *parent, const char *name)
m_timerBox = new TQGroupBox(m_generalTab); m_timerBox = new TQGroupBox(m_generalTab);
m_timerBox->setTitle(i18n("Timer")); 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()->setSpacing(0);
m_timerBox->layout()->setMargin(0); m_timerBox->layout()->setMargin(0);
m_timerBoxLayout = new TQVBoxLayout(m_timerBox->layout()); m_timerBoxLayout = new TQVBoxLayout(m_timerBox->layout());

@ -81,7 +81,7 @@ KSim::ThemePrefs::ThemePrefs(TQWidget *parent, const char *name)
this, TQT_SLOT(openURL(const TQString &))); this, TQT_SLOT(openURL(const TQString &)));
m_themeLayout->addMultiCellWidget(m_urlLabel, 1, 1, 0, 4); 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_themeLayout->addMultiCellWidget(m_line, 2, 2, 0, 4);
m_authorLabel = new TQLabel(this); m_authorLabel = new TQLabel(this);

@ -31,7 +31,7 @@ bool ClickArea::click( TQMouseEvent *e )
{ {
//tqDebug(TQString::number(e->type())); //tqDebug(TQString::number(e->type()));
//KShellProcess ksp; //KShellProcess ksp;
if( e->button() != Qt::LeftButton ) if( e->button() != TQt::LeftButton )
return false; return false;
if (!svc_name.isEmpty()) if (!svc_name.isEmpty())
{ {

@ -117,7 +117,7 @@ void DateSensor::mousePressEvent(TQMouseEvent *ev)
{ {
switch (ev->button()) switch (ev->button())
{ {
case Qt::LeftButton: case TQt::LeftButton:
toggleCalendar(ev); toggleCalendar(ev);
break; break;
default: default:

@ -387,15 +387,15 @@ bool ImageLabel::click(TQMouseEvent* e)
if (getBoundingBox().contains(e -> x(), e -> y()) && isEnabled()) if (getBoundingBox().contains(e -> x(), e -> y()) && isEnabled())
{ {
TQString program; TQString program;
if (e -> button() == Qt::LeftButton) if (e -> button() == TQt::LeftButton)
{ {
program = leftButtonAction; program = leftButtonAction;
} }
else if (e -> button() == Qt::MidButton) else if (e -> button() == TQt::MidButton)
{ {
program = middleButtonAction; program = middleButtonAction;
} }
else if (e -> button() == Qt::RightButton) else if (e -> button() == TQt::RightButton)
{ {
program = rightButtonAction; program = rightButtonAction;
} }

@ -1294,11 +1294,11 @@ void karamba::meterClicked(TQMouseEvent* e, Meter* meter)
{ {
int button = 0; int button = 0;
if( e->button() == Qt::LeftButton ) if( e->button() == TQt::LeftButton )
button = 1; button = 1;
else if( e->button() == Qt::MidButton ) else if( e->button() == TQt::MidButton )
button = 2; button = 2;
else if( e->button() == Qt::RightButton ) else if( e->button() == TQt::RightButton )
button = 3; button = 3;
if (RichTextLabel* richText = dynamic_cast<RichTextLabel*>(meter)) if (RichTextLabel* richText = dynamic_cast<RichTextLabel*>(meter))
@ -1351,11 +1351,11 @@ void karamba::passClick(TQMouseEvent *e)
{ {
int button = 0; int button = 0;
if( e->button() == Qt::LeftButton ) if( e->button() == TQt::LeftButton )
button = 1; button = 1;
else if( e->button() == Qt::MidButton ) else if( e->button() == TQt::MidButton )
button = 2; button = 2;
else if( e->button() == Qt::RightButton ) else if( e->button() == TQt::RightButton )
button = 3; button = 3;
pythonIface->widgetClicked(this, e->x(), e->y(), button); pythonIface->widgetClicked(this, e->x(), e->y(), button);
@ -1416,7 +1416,7 @@ void karamba::management_popup( void )
void karamba::mousePressEvent( TQMouseEvent *e ) void karamba::mousePressEvent( TQMouseEvent *e )
{ {
//tqDebug("karamba::mousePressEvent"); //tqDebug("karamba::mousePressEvent");
if( e->button() == Qt::RightButton && !want_right_button ) if( e->button() == TQt::RightButton && !want_right_button )
{ {
management_popup(); management_popup();
} }
@ -1512,14 +1512,14 @@ void karamba::mouseMoveEvent( TQMouseEvent *e )
//Modified by Ryan Nickell (p0z3r@mail.com) 03/16/2004 //Modified by Ryan Nickell (p0z3r@mail.com) 03/16/2004
// This will work now, but only when you move at least // This will work now, but only when you move at least
// one pixel in any direction with your mouse. // one pixel in any direction with your mouse.
//if( e->button() == Qt::LeftButton ) //if( e->button() == TQt::LeftButton )
if( e->state() == Qt::LeftButton) if( e->state() == TQt::LeftButton)
button = 1; button = 1;
//else if( e->button() == Qt::MidButton ) //else if( e->button() == TQt::MidButton )
else if( e->state() == Qt::MidButton ) else if( e->state() == TQt::MidButton )
button = 2; button = 2;
//else if( e->button() == Qt::RightButton ) //else if( e->button() == TQt::RightButton )
else if( e->state() == Qt::RightButton ) else if( e->state() == TQt::RightButton )
button = 3; button = 3;
pythonIface->widgetMouseMoved(this, e->x(), e->y(), button); pythonIface->widgetMouseMoved(this, e->x(), e->y(), button);

@ -165,7 +165,7 @@ bool RichTextLabel::click(TQMouseEvent* e)
TQString anchor = text->anchorAt(point); TQString anchor = text->anchorAt(point);
if (anchor[0] != '#') if (anchor[0] != '#')
{ {
if (e->button() == Qt::LeftButton) if (e->button() == TQt::LeftButton)
{ {
KRun :: runCommand(anchor); KRun :: runCommand(anchor);
} }

@ -342,15 +342,15 @@ bool TextLabel::click(TQMouseEvent* e)
if (getBoundingBox().contains(e -> x(), e -> y()) && isEnabled()) if (getBoundingBox().contains(e -> x(), e -> y()) && isEnabled())
{ {
TQString program; TQString program;
if (e -> button() == Qt::LeftButton) if (e -> button() == TQt::LeftButton)
{ {
program = leftButtonAction; program = leftButtonAction;
} }
else if (e -> button() == Qt::MidButton) else if (e -> button() == TQt::MidButton)
{ {
program = middleButtonAction; program = middleButtonAction;
} }
else if (e -> button() == Qt::RightButton) else if (e -> button() == TQt::RightButton)
{ {
program = rightButtonAction; program = rightButtonAction;
} }

@ -34,9 +34,9 @@ TQString CommandEngine::datetime(const TQString& opt, const TQString& arg)
{ {
Q_UNUSED(arg); Q_UNUSED(arg);
if(opt == "iso") if(opt == "iso")
return TQDateTime::currentDateTime(Qt::LocalTime).toString(Qt::ISODate); return TQDateTime::currentDateTime(TQt::LocalTime).toString(TQt::ISODate);
if(opt == "local") if(opt == "local")
return TQDateTime::currentDateTime(Qt::LocalTime).toString(Qt::LocalDate); return TQDateTime::currentDateTime(TQt::LocalTime).toString(TQt::LocalDate);
return TQString(); return TQString();
} }

@ -315,7 +315,7 @@ void KNewProjectDlg::loadDateAccessOptions()
else else
{ {
m_chbDateMin->setChecked(true); m_chbDateMin->setChecked(true);
m_dedDateMin->setDate(TQDate::fromString(date,Qt::ISODate)); m_dedDateMin->setDate(TQDate::fromString(date,TQt::ISODate));
m_dedDateMin->setEnabled(true); m_dedDateMin->setEnabled(true);
} }
@ -329,7 +329,7 @@ void KNewProjectDlg::loadDateAccessOptions()
else else
{ {
m_chbDateMax->setChecked(true); m_chbDateMax->setChecked(true);
m_dedDateMax->setDate(TQDate::fromString(date,Qt::ISODate)); m_dedDateMax->setDate(TQDate::fromString(date,TQt::ISODate));
m_dedDateMax->setEnabled(true); m_dedDateMax->setEnabled(true);
} }
@ -420,7 +420,7 @@ void KNewProjectDlg::saveDateAccessOptions()
if(m_chbDateMin->isChecked()) 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; m_option->m_minDate = date;
} }
else else
@ -428,7 +428,7 @@ void KNewProjectDlg::saveDateAccessOptions()
if(m_chbDateMax->isChecked()) 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; m_option->m_maxDate = date;
} }
else else

@ -44,8 +44,8 @@ void Report::createReportFile()
// b) Write the header of the XML file // b) Write the header of the XML file
TQDateTime datetime = TQDateTime::currentDateTime(Qt::LocalTime); TQDateTime datetime = TQDateTime::currentDateTime(TQt::LocalTime);
TQString dateString = datetime.toString(Qt::LocalDate); TQString dateString = datetime.toString(TQt::LocalDate);
KUser user; KUser user;
TQString columnTextFour, TQString columnTextFour,
columnReplaceWith; columnReplaceWith;

@ -118,9 +118,9 @@ bool TDEFileReplaceLib::isAnAccessibleFile(const TQString& filePath, const TQStr
// Avoid files that not match access date requirements // Avoid files that not match access date requirements
TQString last = "unknown"; TQString last = "unknown";
if(dateAccess == "Last Writing Access") if(dateAccess == "Last Writing Access")
last = fi.lastModified().toString(Qt::ISODate); last = fi.lastModified().toString(TQt::ISODate);
if(dateAccess == "Last Reading Access") if(dateAccess == "Last Reading Access")
last = fi.lastRead().toString(Qt::ISODate); last = fi.lastRead().toString(TQt::ISODate);
if(last != "unknown") if(last != "unknown")
{ {

@ -220,7 +220,7 @@ void TDEFileReplaceView::slotResultMouseButtonClicked(int button, TQListViewItem
if (lvi == 0) // No item selected if (lvi == 0) // No item selected
return; return;
if (button == Qt::RightButton) if (button == TQt::RightButton)
{ {
// Right mouse button: open popup menub // Right mouse button: open popup menub
m_menuResult->popup(pos); m_menuResult->popup(pos);

@ -44,7 +44,7 @@
void IRKTrayIcon::mousePressEvent(TQMouseEvent *e) 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()) IRKick::IRKick(const TQCString &obj) : TQObject(), DCOPObject(obj), npApp(TQString())

Loading…
Cancel
Save