summaryrefslogtreecommitdiffstats
path: root/libtdepim
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2023-11-09 10:37:12 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2023-11-10 09:18:39 +0900
commit7a712e6185fe1086345a4ad970291444548f60a2 (patch)
tree6dd0b17b51cc004a16901d02e791fb031d927d51 /libtdepim
parent8a66634debeb3242ec542056469b6e07d5427968 (diff)
downloadtdepim-7a712e6185fe1086345a4ad970291444548f60a2.tar.gz
tdepim-7a712e6185fe1086345a4ad970291444548f60a2.zip
Replace Qt with TQt
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked from commit 98876ba8c52c0fc2f38c258476bc9637f055d576)
Diffstat (limited to 'libtdepim')
-rw-r--r--libtdepim/addresseelineedit.cpp6
-rw-r--r--libtdepim/designerfields.cpp12
-rw-r--r--libtdepim/kcmdesignerfields.cpp2
-rw-r--r--libtdepim/kdateedit.cpp2
-rw-r--r--libtdepim/kincidencechooser.cpp2
-rw-r--r--libtdepim/kpixmapregionselectorwidget.cpp2
-rw-r--r--libtdepim/kprefsdialog.cpp2
-rw-r--r--libtdepim/ldapsearchdialog.cpp2
-rw-r--r--libtdepim/statusbarprogresswidget.cpp2
9 files changed, 16 insertions, 16 deletions
diff --git a/libtdepim/addresseelineedit.cpp b/libtdepim/addresseelineedit.cpp
index 06efda39b..68a16e117 100644
--- a/libtdepim/addresseelineedit.cpp
+++ b/libtdepim/addresseelineedit.cpp
@@ -346,7 +346,7 @@ void AddresseeLineEdit::mouseReleaseEvent( TQMouseEvent *e )
if ( m_useCompletion
&& TQApplication::clipboard()->supportsSelection()
&& !isReadOnly()
- && e->button() == Qt::MidButton ) {
+ && e->button() == TQt::MidButton ) {
m_smartPaste = true;
}
@@ -1054,8 +1054,8 @@ bool KPIM::AddresseeLineEdit::eventFilter(TQObject *obj, TQEvent *e)
// avoid selection of headers on button press, or move or release while
// a button is pressed
if ( e->type() == TQEvent::MouseButtonPress
- || me->state() & Qt::LeftButton || me->state() & Qt::MidButton
- || me->state() & Qt::RightButton ) {
+ || me->state() & TQt::LeftButton || me->state() & TQt::MidButton
+ || me->state() & TQt::RightButton ) {
if ( itemIsHeader(item) ) {
return true; // eat the event, we don't want anything to happen
} else {
diff --git a/libtdepim/designerfields.cpp b/libtdepim/designerfields.cpp
index 71089c917..8e67e55d0 100644
--- a/libtdepim/designerfields.cpp
+++ b/libtdepim/designerfields.cpp
@@ -187,13 +187,13 @@ void DesignerFields::load( DesignerFields::Storage *storage )
wdg->setChecked( value == "true" || value == "1" );
} else if ( it.data()->inherits( "TQDateTimeEdit" ) ) {
TQDateTimeEdit *wdg = static_cast<TQDateTimeEdit*>( it.data() );
- wdg->setDateTime( TQDateTime::fromString( value, Qt::ISODate ) );
+ wdg->setDateTime( TQDateTime::fromString( value, TQt::ISODate ) );
} else if ( it.data()->inherits( "KDateTimeWidget" ) ) {
KDateTimeWidget *wdg = static_cast<KDateTimeWidget*>( it.data() );
- wdg->setDateTime( TQDateTime::fromString( value, Qt::ISODate ) );
+ wdg->setDateTime( TQDateTime::fromString( value, TQt::ISODate ) );
} else if ( it.data()->inherits( "KDatePicker" ) ) {
KDatePicker *wdg = static_cast<KDatePicker*>( it.data() );
- wdg->setDate( TQDate::fromString( value, Qt::ISODate ) );
+ wdg->setDate( TQDate::fromString( value, TQt::ISODate ) );
} else if ( it.data()->inherits( "TQComboBox" ) ) {
TQComboBox *wdg = static_cast<TQComboBox*>( it.data() );
wdg->setCurrentText( value );
@@ -221,13 +221,13 @@ void DesignerFields::save( DesignerFields::Storage *storage )
value = ( wdg->isChecked() ? "true" : "false" );
} else if ( it.data()->inherits( "TQDateTimeEdit" ) ) {
TQDateTimeEdit *wdg = static_cast<TQDateTimeEdit*>( it.data() );
- value = wdg->dateTime().toString( Qt::ISODate );
+ value = wdg->dateTime().toString( TQt::ISODate );
} else if ( it.data()->inherits( "KDateTimeWidget" ) ) {
KDateTimeWidget *wdg = static_cast<KDateTimeWidget*>( it.data() );
- value = wdg->dateTime().toString( Qt::ISODate );
+ value = wdg->dateTime().toString( TQt::ISODate );
} else if ( it.data()->inherits( "KDatePicker" ) ) {
KDatePicker *wdg = static_cast<KDatePicker*>( it.data() );
- value = wdg->date().toString( Qt::ISODate );
+ value = wdg->date().toString( TQt::ISODate );
} else if ( it.data()->inherits( "TQComboBox" ) ) {
TQComboBox *wdg = static_cast<TQComboBox*>( it.data() );
value = wdg->currentText();
diff --git a/libtdepim/kcmdesignerfields.cpp b/libtdepim/kcmdesignerfields.cpp
index 050202b66..64ef02db3 100644
--- a/libtdepim/kcmdesignerfields.cpp
+++ b/libtdepim/kcmdesignerfields.cpp
@@ -284,7 +284,7 @@ void KCMDesignerFields::initGUI()
mPageView->setFullWidth( true );
hbox->addWidget( mPageView );
- TQGroupBox *box = new TQGroupBox(1, Qt::Horizontal, i18n("Preview of Selected Page"), this );
+ TQGroupBox *box = new TQGroupBox(1, TQt::Horizontal, i18n("Preview of Selected Page"), this );
mPagePreview = new TQLabel( box );
mPagePreview->setMinimumWidth( 300 );
diff --git a/libtdepim/kdateedit.cpp b/libtdepim/kdateedit.cpp
index e76a8907e..16c5e9f89 100644
--- a/libtdepim/kdateedit.cpp
+++ b/libtdepim/kdateedit.cpp
@@ -307,7 +307,7 @@ bool KDateEdit::eventFilter( TQObject *object, TQEvent *event )
void KDateEdit::mousePressEvent( TQMouseEvent *event )
{
- if ( event->button() == Qt::LeftButton && mDiscardNextMousePress ) {
+ if ( event->button() == TQt::LeftButton && mDiscardNextMousePress ) {
mDiscardNextMousePress = false;
return;
}
diff --git a/libtdepim/kincidencechooser.cpp b/libtdepim/kincidencechooser.cpp
index 19d8355b4..84fede01f 100644
--- a/libtdepim/kincidencechooser.cpp
+++ b/libtdepim/kincidencechooser.cpp
@@ -104,7 +104,7 @@ KIncidenceChooser::KIncidenceChooser(TQWidget *parent, char *name) :
#else
mDiffBut = 0;
#endif
- mBg = new TQButtonGroup ( 1, Qt::Horizontal, i18n("Sync Preferences"), topFrame);
+ mBg = new TQButtonGroup ( 1, TQt::Horizontal, i18n("Sync Preferences"), topFrame);
topLayout->addMultiCellWidget(mBg, iii,iii,0,2);
++iii;
mBg->insert( new TQRadioButton ( i18n("Take local entry on conflict"), mBg ), KIncidenceChooser::local);
diff --git a/libtdepim/kpixmapregionselectorwidget.cpp b/libtdepim/kpixmapregionselectorwidget.cpp
index b407ea6e3..c83003a5a 100644
--- a/libtdepim/kpixmapregionselectorwidget.cpp
+++ b/libtdepim/kpixmapregionselectorwidget.cpp
@@ -218,7 +218,7 @@ bool KPixmapRegionSelectorWidget::eventFilter(TQObject *obj, TQEvent *ev)
TQMouseEvent *mev= (TQMouseEvent *)(ev);
//kdDebug() << TQString("click at %1,%2").arg( mev->x() ).arg( mev->y() ) << endl;
- if ( mev->button() == Qt::RightButton )
+ if ( mev->button() == TQt::RightButton )
{
TDEPopupMenu *popup = createPopupMenu( );
popup->exec( mev->globalPos() );
diff --git a/libtdepim/kprefsdialog.cpp b/libtdepim/kprefsdialog.cpp
index ae24bc221..6c313a989 100644
--- a/libtdepim/kprefsdialog.cpp
+++ b/libtdepim/kprefsdialog.cpp
@@ -401,7 +401,7 @@ KPrefsWidRadios::KPrefsWidRadios( TDEConfigSkeleton::ItemEnum *item,
TQWidget *parent )
: mItem( item )
{
- mBox = new TQButtonGroup( 1, Qt::Horizontal, mItem->label(), parent );
+ mBox = new TQButtonGroup( 1, TQt::Horizontal, mItem->label(), parent );
connect( mBox, TQT_SIGNAL( clicked( int ) ), TQT_SIGNAL( changed() ) );
}
diff --git a/libtdepim/ldapsearchdialog.cpp b/libtdepim/ldapsearchdialog.cpp
index 17f1d984b..c06da514f 100644
--- a/libtdepim/ldapsearchdialog.cpp
+++ b/libtdepim/ldapsearchdialog.cpp
@@ -136,7 +136,7 @@ LDAPSearchDialog::LDAPSearchDialog( TQWidget* parent, const char* name )
page );
groupBox->setFrameShape( TQGroupBox::Box );
groupBox->setFrameShadow( TQGroupBox::Sunken );
- groupBox->setColumnLayout( 0, Qt::Vertical );
+ groupBox->setColumnLayout( 0, TQt::Vertical );
TQGridLayout *boxLayout = new TQGridLayout( groupBox->layout(), 2,
5, spacingHint() );
boxLayout->setColStretch( 1, 1 );
diff --git a/libtdepim/statusbarprogresswidget.cpp b/libtdepim/statusbarprogresswidget.cpp
index 34f68703e..e196bcf8a 100644
--- a/libtdepim/statusbarprogresswidget.cpp
+++ b/libtdepim/statusbarprogresswidget.cpp
@@ -268,7 +268,7 @@ bool StatusbarProgressWidget::eventFilter( TQObject *, TQEvent *ev )
if ( ev->type() == TQEvent::MouseButtonPress ) {
TQMouseEvent *e = (TQMouseEvent*)ev;
- if ( e->button() == Qt::LeftButton && mode != None ) { // toggle view on left mouse button
+ if ( e->button() == TQt::LeftButton && mode != None ) { // toggle view on left mouse button
// Consensus seems to be that we should show/hide the fancy dialog when the user
// clicks anywhere in the small one.
mProgressDialog->slotToggleVisibility();