Replace Qt with TQt

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/93/head
Michele Calgaro 6 months ago
parent f46438dda2
commit 98876ba8c5
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -228,7 +228,7 @@ View::View( Part *part, TQWidget *parent, ActionManagerImpl* actionManager, cons
TQVBoxLayout *lt = new TQVBoxLayout( this ); TQVBoxLayout *lt = new TQVBoxLayout( this );
m_horizontalSplitter = new TQSplitter(Qt::Horizontal, this); m_horizontalSplitter = new TQSplitter(TQt::Horizontal, this);
m_horizontalSplitter->setOpaqueResize(true); m_horizontalSplitter->setOpaqueResize(true);
lt->addWidget(m_horizontalSplitter); lt->addWidget(m_horizontalSplitter);
@ -287,7 +287,7 @@ View::View( Part *part, TQWidget *parent, ActionManagerImpl* actionManager, cons
mainTabLayout->addWidget(m_searchBar); mainTabLayout->addWidget(m_searchBar);
m_articleSplitter = new TQSplitter(Qt::Vertical, m_mainTab, "panner2"); m_articleSplitter = new TQSplitter(TQt::Vertical, m_mainTab, "panner2");
m_articleList = new ArticleListView( m_articleSplitter, "articles" ); m_articleList = new ArticleListView( m_articleSplitter, "articles" );
m_actionManager->initArticleListView(m_articleList); m_actionManager->initArticleListView(m_articleList);
@ -647,7 +647,7 @@ void View::slotNormalView()
m_articleViewer->slotShowSummary(m_listTabWidget->activeView()->selectedNode()); m_articleViewer->slotShowSummary(m_listTabWidget->activeView()->selectedNode());
} }
m_articleSplitter->setOrientation(Qt::Vertical); m_articleSplitter->setOrientation(TQt::Vertical);
m_viewMode = NormalView; m_viewMode = NormalView;
Settings::setViewMode( m_viewMode ); Settings::setViewMode( m_viewMode );
@ -671,7 +671,7 @@ void View::slotWidescreenView()
m_articleViewer->slotShowSummary(m_listTabWidget->activeView()->selectedNode()); m_articleViewer->slotShowSummary(m_listTabWidget->activeView()->selectedNode());
} }
m_articleSplitter->setOrientation(Qt::Horizontal); m_articleSplitter->setOrientation(TQt::Horizontal);
m_viewMode = WidescreenView; m_viewMode = WidescreenView;
Settings::setViewMode( m_viewMode ); Settings::setViewMode( m_viewMode );
@ -1109,7 +1109,7 @@ void View::slotFeedFetched(Feed *feed)
void View::slotMouseButtonPressed(int button, const Article& article, const TQPoint &, int) void View::slotMouseButtonPressed(int button, const Article& article, const TQPoint &, int)
{ {
if (button == Qt::MidButton) if (button == TQt::MidButton)
{ {
KURL link = article.link(); KURL link = article.link();
switch (Settings::mMBBehaviour()) switch (Settings::mMBBehaviour())

@ -362,7 +362,7 @@ void PageViewer::urlSelected(const TQString &url, int button, int state, const T
} }
else else
{ {
if (button == Qt::LeftButton) if (button == TQt::LeftButton)
{ {
m_url = completeURL(url); m_url = completeURL(url);
browserExtension()->setURLArgs(args); browserExtension()->setURLArgs(args);

@ -74,7 +74,7 @@ TrayIcon::~TrayIcon()
void TrayIcon::mousePressEvent(TQMouseEvent *e) { void TrayIcon::mousePressEvent(TQMouseEvent *e) {
if (e->button() == Qt::LeftButton) { if (e->button() == TQt::LeftButton) {
emit showPart(); emit showPart();
} }

@ -130,7 +130,7 @@ void Viewer::urlSelected(const TQString &url, int button, int state, const TQStr
{ {
m_url = completeURL(url); m_url = completeURL(url);
browserExtension()->setURLArgs(args); browserExtension()->setURLArgs(args);
if (button == Qt::LeftButton) if (button == TQt::LeftButton)
{ {
switch (Settings::lMBBehaviour()) switch (Settings::lMBBehaviour())
{ {
@ -146,7 +146,7 @@ void Viewer::urlSelected(const TQString &url, int button, int state, const TQStr
} }
return; return;
} }
else if (button == Qt::MidButton) else if (button == TQt::MidButton)
{ {
switch (Settings::mMBBehaviour()) switch (Settings::mMBBehaviour())
{ {

@ -90,7 +90,7 @@ KWatchGnuPGMainWindow::~KWatchGnuPGMainWindow()
void KWatchGnuPGMainWindow::slotClear() void KWatchGnuPGMainWindow::slotClear()
{ {
mCentralWidget->clear(); mCentralWidget->clear();
mCentralWidget->append( tqtr("[%1] Log cleared").arg( TQDateTime::currentDateTime().toString(Qt::ISODate) ) ); mCentralWidget->append( tqtr("[%1] Log cleared").arg( TQDateTime::currentDateTime().toString(TQt::ISODate) ) );
} }
void KWatchGnuPGMainWindow::createActions() void KWatchGnuPGMainWindow::createActions()
@ -135,7 +135,7 @@ void KWatchGnuPGMainWindow::startWatcher()
kapp->eventLoop()->processEvents(TQEventLoop::ExcludeUserInput); kapp->eventLoop()->processEvents(TQEventLoop::ExcludeUserInput);
} }
mCentralWidget->append(tqtr("[%1] Log stopped") mCentralWidget->append(tqtr("[%1] Log stopped")
.arg( TQDateTime::currentDateTime().toString(Qt::ISODate))); .arg( TQDateTime::currentDateTime().toString(TQt::ISODate)));
} }
mWatcher->clearArguments(); mWatcher->clearArguments();
TDEConfig* config = kapp->config(); TDEConfig* config = kapp->config();
@ -148,7 +148,7 @@ void KWatchGnuPGMainWindow::startWatcher()
KMessageBox::sorry( this, i18n("The watchgnupg logging process could not be started.\nPlease install watchgnupg somewhere in your $PATH.\nThis log window is now completely useless." ) ); KMessageBox::sorry( this, i18n("The watchgnupg logging process could not be started.\nPlease install watchgnupg somewhere in your $PATH.\nThis log window is now completely useless." ) );
} else { } else {
mCentralWidget->append( tqtr("[%1] Log started") mCentralWidget->append( tqtr("[%1] Log started")
.arg( TQDateTime::currentDateTime().toString(Qt::ISODate) ) ); .arg( TQDateTime::currentDateTime().toString(TQt::ISODate) ) );
} }
connect( mWatcher, TQT_SIGNAL( processExited(TDEProcess*) ), connect( mWatcher, TQT_SIGNAL( processExited(TDEProcess*) ),
this, TQT_SLOT( slotWatcherExited() ) ); this, TQT_SLOT( slotWatcherExited() ) );

@ -139,7 +139,7 @@ Kleo::KeyApprovalDialog::KeyApprovalDialog( const std::vector<Item> & recipients
d->selfRequester->setKeys( sender ); d->selfRequester->setKeys( sender );
glay->addWidget( d->selfRequester, row, 1 ); glay->addWidget( d->selfRequester, row, 1 );
++row; ++row;
glay->addMultiCellWidget( new KSeparator( Qt::Horizontal, view ), row, row, 0, 1 ); glay->addMultiCellWidget( new KSeparator( TQt::Horizontal, view ), row, row, 0, 1 );
} }
const TQStringList prefs = preferencesStrings(); const TQStringList prefs = preferencesStrings();

@ -2933,12 +2933,12 @@ bool scheduleMessage(const TQString&amp; <replaceable>message</replaceable>,
<para>Specifies the scheduled date, or date and time, at which the <para>Specifies the scheduled date, or date and time, at which the
message should be displayed. For a date-only alarm, the string should message should be displayed. For a date-only alarm, the string should
be in the format <quote>YYYY-MM-DD</quote> (as returned by be in the format <quote>YYYY-MM-DD</quote> (as returned by
<methodname>QDate::toString(Qt::ISODate)</methodname>). For an alarm <methodname>QDate::toString(TQt::ISODate)</methodname>). For an alarm
with a date and time, the string should be in the format with a date and time, the string should be in the format
<quote>YYYY-MM-DDTHH:MM[:SS]</quote> (as returned by <quote>YYYY-MM-DDTHH:MM[:SS]</quote> (as returned by
<methodname>QDateTime::toString(Qt::ISODate)</methodname>) or <methodname>QDateTime::toString(TQt::ISODate)</methodname>) or
<quote>HH:MM[:SS]</quote> (as returned by <quote>HH:MM[:SS]</quote> (as returned by
<methodname>QTime::toString(Qt::ISODate)</methodname>). If no date is <methodname>QTime::toString(TQt::ISODate)</methodname>). If no date is
specified, today's date is used. Note that any seconds value is specified, today's date is used. Note that any seconds value is
ignored.</para> ignored.</para>
</listitem> </listitem>
@ -3176,12 +3176,12 @@ displayed in the message to be scheduled.</para>
<para>Specifies the scheduled date, or date and time, at which the <para>Specifies the scheduled date, or date and time, at which the
file should be displayed. For a date-only alarm, the string should file should be displayed. For a date-only alarm, the string should
be in the format <quote>YYYY-MM-DD</quote> (as returned by be in the format <quote>YYYY-MM-DD</quote> (as returned by
<methodname>QDate::toString(Qt::ISODate)</methodname>). For an alarm <methodname>QDate::toString(TQt::ISODate)</methodname>). For an alarm
with a date and time, the string should be in the format with a date and time, the string should be in the format
<quote>YYYY-MM-DDTHH:MM[:SS]</quote> (as returned by <quote>YYYY-MM-DDTHH:MM[:SS]</quote> (as returned by
<methodname>QDateTime::toString(Qt::ISODate)</methodname>) or <methodname>QDateTime::toString(TQt::ISODate)</methodname>) or
<quote>HH:MM[:SS]</quote> (as returned by <quote>HH:MM[:SS]</quote> (as returned by
<methodname>QTime::toString(Qt::ISODate)</methodname>). If no date is <methodname>QTime::toString(TQt::ISODate)</methodname>). If no date is
specified, today's date is used. Note that any seconds value is specified, today's date is used. Note that any seconds value is
ignored.</para> ignored.</para>
</listitem> </listitem>
@ -3383,12 +3383,12 @@ parameter contains a shell command line or a command script.</para>
<para>Specifies the scheduled date, or date and time, at which the <para>Specifies the scheduled date, or date and time, at which the
command should be executed. For a date-only alarm, the string should command should be executed. For a date-only alarm, the string should
be in the format <quote>YYYY-MM-DD</quote> (as returned by be in the format <quote>YYYY-MM-DD</quote> (as returned by
<methodname>QDate::toString(Qt::ISODate)</methodname>). For an alarm <methodname>QDate::toString(TQt::ISODate)</methodname>). For an alarm
with a date and time, the string should be in the format with a date and time, the string should be in the format
<quote>YYYY-MM-DDTHH:MM[:SS]</quote> (as returned by <quote>YYYY-MM-DDTHH:MM[:SS]</quote> (as returned by
<methodname>QDateTime::toString(Qt::ISODate)</methodname>) or <methodname>QDateTime::toString(TQt::ISODate)</methodname>) or
<quote>HH:MM[:SS]</quote> (as returned by <quote>HH:MM[:SS]</quote> (as returned by
<methodname>QTime::toString(Qt::ISODate)</methodname>). If no date is <methodname>QTime::toString(TQt::ISODate)</methodname>). If no date is
specified, today's date is used. Note that any seconds value is specified, today's date is used. Note that any seconds value is
ignored.</para> ignored.</para>
</listitem> </listitem>
@ -3599,12 +3599,12 @@ email attachments.</para>
<para>Specifies the scheduled date, or date and time, at which the <para>Specifies the scheduled date, or date and time, at which the
email should be sent. For a date-only alarm, the string should email should be sent. For a date-only alarm, the string should
be in the format <quote>YYYY-MM-DD</quote> (as returned by be in the format <quote>YYYY-MM-DD</quote> (as returned by
<methodname>QDate::toString(Qt::ISODate)</methodname>). For an alarm <methodname>QDate::toString(TQt::ISODate)</methodname>). For an alarm
with a date and time, the string should be in the format with a date and time, the string should be in the format
<quote>YYYY-MM-DDTHH:MM[:SS]</quote> (as returned by <quote>YYYY-MM-DDTHH:MM[:SS]</quote> (as returned by
<methodname>QDateTime::toString(Qt::ISODate)</methodname>) or <methodname>QDateTime::toString(TQt::ISODate)</methodname>) or
<quote>HH:MM[:SS]</quote> (as returned by <quote>HH:MM[:SS]</quote> (as returned by
<methodname>QTime::toString(Qt::ISODate)</methodname>). If no date is <methodname>QTime::toString(TQt::ISODate)</methodname>). If no date is
specified, today's date is used. Note that any seconds value is specified, today's date is used. Note that any seconds value is
ignored.</para> ignored.</para>
</listitem> </listitem>

@ -606,7 +606,7 @@ AddressTypeDialog::AddressTypeDialog( int type, TQWidget *parent )
TQWidget *page = plainPage(); TQWidget *page = plainPage();
TQVBoxLayout *layout = new TQVBoxLayout( page ); TQVBoxLayout *layout = new TQVBoxLayout( page );
mGroup = new TQButtonGroup( 2, Qt::Horizontal, i18n( "street/postal", "Address Types" ), page ); mGroup = new TQButtonGroup( 2, TQt::Horizontal, i18n( "street/postal", "Address Types" ), page );
layout->addWidget( mGroup ); layout->addWidget( mGroup );
mTypeList = TDEABC::Address::typeList(); mTypeList = TDEABC::Address::typeList();

@ -558,7 +558,7 @@ void AddresseeEditorWidget::load()
mBirthdayPicker->setDate( mAddressee.birthday().date() ); mBirthdayPicker->setDate( mAddressee.birthday().date() );
TQString anniversaryStr = mAddressee.custom( "KADDRESSBOOK", "X-Anniversary" ); TQString anniversaryStr = mAddressee.custom( "KADDRESSBOOK", "X-Anniversary" );
TQDate anniversary = (anniversaryStr.isEmpty() ? TQDate() : TQDate::fromString( anniversaryStr, Qt::ISODate )); TQDate anniversary = (anniversaryStr.isEmpty() ? TQDate() : TQDate::fromString( anniversaryStr, TQt::ISODate ));
mAnniversaryPicker->setDate( anniversary ); mAnniversaryPicker->setDate( anniversary );
mNicknameEdit->setText( mAddressee.nickName() ); mNicknameEdit->setText( mAddressee.nickName() );
mCategoryEdit->setText( mAddressee.categories().join( "," ) ); mCategoryEdit->setText( mAddressee.categories().join( "," ) );
@ -652,7 +652,7 @@ void AddresseeEditorWidget::save()
if ( mAnniversaryPicker->date().isValid() ) if ( mAnniversaryPicker->date().isValid() )
mAddressee.insertCustom( "KADDRESSBOOK", "X-Anniversary", mAddressee.insertCustom( "KADDRESSBOOK", "X-Anniversary",
mAnniversaryPicker->date().toString( Qt::ISODate ) ); mAnniversaryPicker->date().toString( TQt::ISODate ) );
else else
mAddressee.removeCustom( "KADDRESSBOOK", "X-Anniversary" ); mAddressee.removeCustom( "KADDRESSBOOK", "X-Anniversary" );

@ -57,7 +57,7 @@ AddViewDialog::AddViewDialog( TQDict<ViewFactory> *viewFactoryDict,
TQT_SLOT( textChanged( const TQString& ) ) ); TQT_SLOT( textChanged( const TQString& ) ) );
layout->addWidget( mViewNameEdit, 0, 1 ); layout->addWidget( mViewNameEdit, 0, 1 );
mTypeGroup = new TQButtonGroup( 0, Qt::Horizontal, i18n( "View Type" ), page ); mTypeGroup = new TQButtonGroup( 0, TQt::Horizontal, i18n( "View Type" ), page );
connect( mTypeGroup, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( clicked( int ) ) ); connect( mTypeGroup, TQT_SIGNAL( clicked( int ) ), this, TQT_SLOT( clicked( int ) ) );
layout->addMultiCellWidget( mTypeGroup, 1, 1, 0, 1 ); layout->addMultiCellWidget( mTypeGroup, 1, 1, 0, 1 );
TQGridLayout *groupLayout = new TQGridLayout( mTypeGroup->layout(), 3, 2 ); TQGridLayout *groupLayout = new TQGridLayout( mTypeGroup->layout(), 3, 2 );

@ -276,13 +276,13 @@ void FieldWidget::loadContact( TDEABC::Addressee *addr )
wdg->setChecked( value == "true" || value == "1" ); wdg->setChecked( value == "true" || value == "1" );
} else if ( (*fieldIt).mWidget->isA( "TQDateEdit" ) ) { } else if ( (*fieldIt).mWidget->isA( "TQDateEdit" ) ) {
TQDateEdit *wdg = static_cast<TQDateEdit*>( (*fieldIt).mWidget ); TQDateEdit *wdg = static_cast<TQDateEdit*>( (*fieldIt).mWidget );
wdg->setDate( TQDate::fromString( value, Qt::ISODate ) ); wdg->setDate( TQDate::fromString( value, TQt::ISODate ) );
} else if ( (*fieldIt).mWidget->isA( "TQTimeEdit" ) ) { } else if ( (*fieldIt).mWidget->isA( "TQTimeEdit" ) ) {
TQTimeEdit *wdg = static_cast<TQTimeEdit*>( (*fieldIt).mWidget ); TQTimeEdit *wdg = static_cast<TQTimeEdit*>( (*fieldIt).mWidget );
wdg->setTime( TQTime::fromString( value, Qt::ISODate ) ); wdg->setTime( TQTime::fromString( value, TQt::ISODate ) );
} else if ( (*fieldIt).mWidget->isA( "TQDateTimeEdit" ) ) { } else if ( (*fieldIt).mWidget->isA( "TQDateTimeEdit" ) ) {
TQDateTimeEdit *wdg = static_cast<TQDateTimeEdit*>( (*fieldIt).mWidget ); TQDateTimeEdit *wdg = static_cast<TQDateTimeEdit*>( (*fieldIt).mWidget );
wdg->setDateTime( TQDateTime::fromString( value, Qt::ISODate ) ); wdg->setDateTime( TQDateTime::fromString( value, TQt::ISODate ) );
} }
} }
} }
@ -332,13 +332,13 @@ void FieldWidget::storeContact( TDEABC::Addressee *addr )
value = ( wdg->isChecked() ? "true" : "false" ); value = ( wdg->isChecked() ? "true" : "false" );
} else if ( (*it).mWidget->isA( "TQDateEdit" ) ) { } else if ( (*it).mWidget->isA( "TQDateEdit" ) ) {
TQDateEdit *wdg = static_cast<TQDateEdit*>( (*it).mWidget ); TQDateEdit *wdg = static_cast<TQDateEdit*>( (*it).mWidget );
value = wdg->date().toString( Qt::ISODate ); value = wdg->date().toString( TQt::ISODate );
} else if ( (*it).mWidget->isA( "TQTimeEdit" ) ) { } else if ( (*it).mWidget->isA( "TQTimeEdit" ) ) {
TQTimeEdit *wdg = static_cast<TQTimeEdit*>( (*it).mWidget ); TQTimeEdit *wdg = static_cast<TQTimeEdit*>( (*it).mWidget );
value = wdg->time().toString( Qt::ISODate ); value = wdg->time().toString( TQt::ISODate );
} else if ( (*it).mWidget->isA( "TQDateTimeEdit" ) ) { } else if ( (*it).mWidget->isA( "TQDateTimeEdit" ) ) {
TQDateTimeEdit *wdg = static_cast<TQDateTimeEdit*>( (*it).mWidget ); TQDateTimeEdit *wdg = static_cast<TQDateTimeEdit*>( (*it).mWidget );
value = wdg->dateTime().toString( Qt::ISODate ); value = wdg->dateTime().toString( TQt::ISODate );
} }
if ( value.isEmpty() ) if ( value.isEmpty() )

@ -52,7 +52,7 @@ ExtensionManager::ExtensionManager( TQWidget* extensionBar, TQWidgetStack* detai
Q_ASSERT( mExtensionBar ); Q_ASSERT( mExtensionBar );
TQVBoxLayout* layout = new TQVBoxLayout( mExtensionBar ); TQVBoxLayout* layout = new TQVBoxLayout( mExtensionBar );
mSplitter = new TQSplitter( mExtensionBar ); mSplitter = new TQSplitter( mExtensionBar );
mSplitter->setOrientation( Qt::Vertical ); mSplitter->setOrientation( TQt::Vertical );
layout->addWidget( mSplitter ); layout->addWidget( mSplitter );
createExtensionWidgets(); createExtensionWidgets();

@ -265,7 +265,7 @@ void FilterDialog::initGUI()
connect( mFilterListBox, TQT_SIGNAL( doubleClicked ( TQListBoxItem * ) ), connect( mFilterListBox, TQT_SIGNAL( doubleClicked ( TQListBoxItem * ) ),
TQT_SLOT( edit() ) ); TQT_SLOT( edit() ) );
KButtonBox *buttonBox = new KButtonBox( page, Qt::Vertical ); KButtonBox *buttonBox = new KButtonBox( page, TQt::Vertical );
buttonBox->addButton( i18n( "&Add..." ), TQT_TQOBJECT(this), TQT_SLOT( add() ) ); buttonBox->addButton( i18n( "&Add..." ), TQT_TQOBJECT(this), TQT_SLOT( add() ) );
mEditButton = buttonBox->addButton( i18n( "&Edit..." ), TQT_TQOBJECT(this), TQT_SLOT( edit() ) ); mEditButton = buttonBox->addButton( i18n( "&Edit..." ), TQT_TQOBJECT(this), TQT_SLOT( edit() ) );
mEditButton->setEnabled( false ); mEditButton->setEnabled( false );

@ -174,7 +174,7 @@ GeoDialog::GeoDialog( TQWidget *parent, const char *name )
mCityCombo = new KComboBox( page ); mCityCombo = new KComboBox( page );
topLayout->addWidget( mCityCombo, 0, 1 ); topLayout->addWidget( mCityCombo, 0, 1 );
TQGroupBox *sexagesimalGroup = new TQGroupBox( 0, Qt::Vertical, i18n( "Sexagesimal" ), page ); TQGroupBox *sexagesimalGroup = new TQGroupBox( 0, TQt::Vertical, i18n( "Sexagesimal" ), page );
TQGridLayout *sexagesimalLayout = new TQGridLayout( sexagesimalGroup->layout(), TQGridLayout *sexagesimalLayout = new TQGridLayout( sexagesimalGroup->layout(),
2, 5, spacingHint() ); 2, 5, spacingHint() );

@ -206,7 +206,7 @@ void ImageButton::mousePressEvent( TQMouseEvent *event )
void ImageButton::mouseMoveEvent( TQMouseEvent *event ) void ImageButton::mouseMoveEvent( TQMouseEvent *event )
{ {
if ( (event->state() & Qt::LeftButton) && if ( (event->state() & TQt::LeftButton) &&
(event->pos() - mDragStartPos).manhattanLength() > (event->pos() - mDragStartPos).manhattanLength() >
TDEGlobalSettings::dndEventDelay() ) { TDEGlobalSettings::dndEventDelay() ) {
startDrag(); startDrag();
@ -254,7 +254,7 @@ ImageBaseWidget::ImageBaseWidget( const TQString &title,
TQVBoxLayout *topLayout = new TQVBoxLayout( this, KDialog::marginHint(), TQVBoxLayout *topLayout = new TQVBoxLayout( this, KDialog::marginHint(),
KDialog::spacingHint() ); KDialog::spacingHint() );
TQGroupBox *box = new TQGroupBox( 0, Qt::Vertical, title, this ); TQGroupBox *box = new TQGroupBox( 0, TQt::Vertical, title, this );
TQVBoxLayout *layout = new TQVBoxLayout( box->layout(), KDialog::spacingHint() ); TQVBoxLayout *layout = new TQVBoxLayout( box->layout(), KDialog::spacingHint() );
mImageButton = new ImageButton( i18n( "Picture" ), box ); mImageButton = new ImageButton( i18n( "Picture" ), box );

@ -72,7 +72,7 @@ JumpButtonBar::JumpButtonBar( KAB::Core *core, TQWidget *parent, const char *nam
layout->setAutoAdd( true ); layout->setAutoAdd( true );
layout->setResizeMode( TQLayout::FreeResize ); layout->setResizeMode( TQLayout::FreeResize );
mGroupBox = new TQButtonGroup( 1, Qt::Horizontal, this ); mGroupBox = new TQButtonGroup( 1, TQt::Horizontal, this );
mGroupBox->setExclusive( true ); mGroupBox->setExclusive( true );
mGroupBox->layout()->setSpacing( 0 ); mGroupBox->layout()->setSpacing( 0 );
mGroupBox->layout()->setMargin( 0 ); mGroupBox->layout()->setMargin( 0 );

@ -1205,7 +1205,7 @@ void KABCore::initGUI()
mDetailsSplitter = new TQSplitter( mWidget ); mDetailsSplitter = new TQSplitter( mWidget );
mLeftSplitter = new TQSplitter( mDetailsSplitter ); mLeftSplitter = new TQSplitter( mDetailsSplitter );
mLeftSplitter->setOrientation( KABPrefs::instance()->contactListAboveExtensions() ? Qt::Vertical : Qt::Horizontal ); mLeftSplitter->setOrientation( KABPrefs::instance()->contactListAboveExtensions() ? TQt::Vertical : TQt::Horizontal );
topLayout->addWidget( searchTB ); topLayout->addWidget( searchTB );
topLayout->addWidget( mDetailsSplitter ); topLayout->addWidget( mDetailsSplitter );

@ -46,7 +46,7 @@ NamePartWidget::NamePartWidget( const TQString &title, const TQString &label,
{ {
TQHBoxLayout *layout = new TQHBoxLayout( this ); TQHBoxLayout *layout = new TQHBoxLayout( this );
TQGroupBox *group = new TQGroupBox( 0, Qt::Vertical, title, this ); TQGroupBox *group = new TQGroupBox( 0, TQt::Vertical, title, this );
TQGridLayout *groupLayout = new TQGridLayout( group->layout(), 2, 2, TQGridLayout *groupLayout = new TQGridLayout( group->layout(), 2, 2,
KDialog::spacingHint() ); KDialog::spacingHint() );
@ -55,7 +55,7 @@ NamePartWidget::NamePartWidget( const TQString &title, const TQString &label,
TQT_SLOT( selectionChanged( TQListBoxItem* ) ) ); TQT_SLOT( selectionChanged( TQListBoxItem* ) ) );
groupLayout->addWidget( mBox, 0, 0 ); groupLayout->addWidget( mBox, 0, 0 );
KButtonBox *bbox = new KButtonBox( group, Qt::Vertical ); KButtonBox *bbox = new KButtonBox( group, TQt::Vertical );
mAddButton = bbox->addButton( i18n( "Add..." ), TQT_TQOBJECT(this), TQT_SLOT( add() ) ); mAddButton = bbox->addButton( i18n( "Add..." ), TQT_TQOBJECT(this), TQT_SLOT( add() ) );
mEditButton = bbox->addButton( i18n( "Edit..." ), TQT_TQOBJECT(this), TQT_SLOT( edit() ) ); mEditButton = bbox->addButton( i18n( "Edit..." ), TQT_TQOBJECT(this), TQT_SLOT( edit() ) );
mEditButton->setEnabled( false ); mEditButton->setEnabled( false );

@ -59,7 +59,7 @@ KABConfigWidget::KABConfigWidget( TQWidget *parent, const char *name )
TQVBoxLayout *layout = new TQVBoxLayout( generalPage, KDialog::marginHint(), TQVBoxLayout *layout = new TQVBoxLayout( generalPage, KDialog::marginHint(),
KDialog::spacingHint() ); KDialog::spacingHint() );
TQGroupBox *groupBox = new TQGroupBox( 0, Qt::Vertical, i18n( "General" ), generalPage ); TQGroupBox *groupBox = new TQGroupBox( 0, TQt::Vertical, i18n( "General" ), generalPage );
TQBoxLayout *boxLayout = new TQVBoxLayout( groupBox->layout() ); TQBoxLayout *boxLayout = new TQVBoxLayout( groupBox->layout() );
boxLayout->setAlignment( TQt::AlignTop ); boxLayout->setAlignment( TQt::AlignTop );
@ -96,7 +96,7 @@ KABConfigWidget::KABConfigWidget( TQWidget *parent, const char *name )
layout->addWidget( groupBox ); layout->addWidget( groupBox );
groupBox = new TQGroupBox( 0, Qt::Vertical, i18n( "Script-Hooks" ), generalPage ); groupBox = new TQGroupBox( 0, TQt::Vertical, i18n( "Script-Hooks" ), generalPage );
TQGridLayout *grid = new TQGridLayout( groupBox->layout(), 3, 2, TQGridLayout *grid = new TQGridLayout( groupBox->layout(), 3, 2,
KDialog::spacingHint() ); KDialog::spacingHint() );
label = new TQLabel( i18n( "Phone:" ), groupBox ); label = new TQLabel( i18n( "Phone:" ), groupBox );
@ -126,7 +126,7 @@ KABConfigWidget::KABConfigWidget( TQWidget *parent, const char *name )
layout->addWidget( groupBox ); layout->addWidget( groupBox );
groupBox = new TQGroupBox( 0, Qt::Vertical, i18n( "Location Map" ), generalPage ); groupBox = new TQGroupBox( 0, TQt::Vertical, i18n( "Location Map" ), generalPage );
boxLayout = new TQVBoxLayout( groupBox->layout(), KDialog::spacingHint() ); boxLayout = new TQVBoxLayout( groupBox->layout(), KDialog::spacingHint() );
boxLayout->setAlignment( TQt::AlignTop ); boxLayout->setAlignment( TQt::AlignTop );

@ -152,7 +152,7 @@ LDAPSearchDialog::LDAPSearchDialog( TDEABC::AddressBook *ab, KABCore *core,
page ); page );
groupBox->setFrameShape( TQGroupBox::Box ); groupBox->setFrameShape( TQGroupBox::Box );
groupBox->setFrameShadow( TQGroupBox::Sunken ); groupBox->setFrameShadow( TQGroupBox::Sunken );
groupBox->setColumnLayout( 0, Qt::Vertical ); groupBox->setColumnLayout( 0, TQt::Vertical );
TQGridLayout *boxLayout = new TQGridLayout( groupBox->layout(), 2, TQGridLayout *boxLayout = new TQGridLayout( groupBox->layout(), 2,
5, spacingHint() ); 5, spacingHint() );
boxLayout->setColStretch( 1, 1 ); boxLayout->setColStretch( 1, 1 );
@ -202,7 +202,7 @@ LDAPSearchDialog::LDAPSearchDialog( TDEABC::AddressBook *ab, KABCore *core,
mResultListView->setShowSortIndicator( true ); mResultListView->setShowSortIndicator( true );
topLayout->addWidget( mResultListView ); topLayout->addWidget( mResultListView );
KButtonBox *buttons = new KButtonBox( page, Qt::Horizontal ); KButtonBox *buttons = new KButtonBox( page, TQt::Horizontal );
buttons->addButton( i18n( "Select All" ), TQT_TQOBJECT(this), TQT_SLOT( slotSelectAll() ) ); buttons->addButton( i18n( "Select All" ), TQT_TQOBJECT(this), TQT_SLOT( slotSelectAll() ) );
buttons->addButton( i18n( "Unselect All" ), TQT_TQOBJECT(this), TQT_SLOT( slotUnselectAll() ) ); buttons->addButton( i18n( "Unselect All" ), TQT_TQOBJECT(this), TQT_SLOT( slotUnselectAll() ) );

@ -303,7 +303,7 @@ PhoneTypeDialog::PhoneTypeDialog( int type, TQWidget *parent )
mPreferredBox = new TQCheckBox( i18n( "This is the preferred phone number" ), page ); mPreferredBox = new TQCheckBox( i18n( "This is the preferred phone number" ), page );
layout->addWidget( mPreferredBox ); layout->addWidget( mPreferredBox );
mGroup = new TQButtonGroup( 2, Qt::Horizontal, i18n( "Types" ), page ); mGroup = new TQButtonGroup( 2, TQt::Horizontal, i18n( "Types" ), page );
layout->addWidget( mGroup ); layout->addWidget( mGroup );
// fill widgets // fill widgets

@ -51,7 +51,7 @@ SelectionPage::SelectionPage( TQWidget* parent, const char* name )
mButtonGroup = new TQButtonGroup( this ); mButtonGroup = new TQButtonGroup( this );
mButtonGroup->setFrameShape( TQButtonGroup::NoFrame ); mButtonGroup->setFrameShape( TQButtonGroup::NoFrame );
mButtonGroup->setColumnLayout( 0, Qt::Vertical ); mButtonGroup->setColumnLayout( 0, TQt::Vertical );
mButtonGroup->layout()->setSpacing( KDialog::spacingHint() ); mButtonGroup->layout()->setSpacing( KDialog::spacingHint() );
mButtonGroup->layout()->setMargin( KDialog::marginHint() ); mButtonGroup->layout()->setMargin( KDialog::marginHint() );

@ -121,7 +121,7 @@ void StylePage::initGUI()
topLayout->addMultiCellWidget( label, 0, 0, 0, 1 ); topLayout->addMultiCellWidget( label, 0, 0, 0, 1 );
TQButtonGroup *group = new TQButtonGroup( i18n( "Sorting" ), this ); TQButtonGroup *group = new TQButtonGroup( i18n( "Sorting" ), this );
group->setColumnLayout( 0, Qt::Vertical ); group->setColumnLayout( 0, TQt::Vertical );
TQGridLayout *sortLayout = new TQGridLayout( group->layout(), 2, 2, TQGridLayout *sortLayout = new TQGridLayout( group->layout(), 2, 2,
KDialog::spacingHint() ); KDialog::spacingHint() );
sortLayout->setAlignment( TQt::AlignTop ); sortLayout->setAlignment( TQt::AlignTop );
@ -141,7 +141,7 @@ void StylePage::initGUI()
topLayout->addWidget( group, 1, 0 ); topLayout->addWidget( group, 1, 0 );
group = new TQButtonGroup( i18n( "Print Style" ), this ); group = new TQButtonGroup( i18n( "Print Style" ), this );
group->setColumnLayout( 0, Qt::Vertical ); group->setColumnLayout( 0, TQt::Vertical );
TQVBoxLayout *styleLayout = new TQVBoxLayout( group->layout(), TQVBoxLayout *styleLayout = new TQVBoxLayout( group->layout(),
KDialog::spacingHint() ); KDialog::spacingHint() );

@ -1022,7 +1022,7 @@ void CardView::contentsMousePressEvent( TQMouseEvent *e )
emit clicked( item ); emit clicked( item );
// The RMB click // The RMB click
if ( e->button() & Qt::RightButton ) { if ( e->button() & TQt::RightButton ) {
// clear previous selection // clear previous selection
bool blocked = signalsBlocked(); bool blocked = signalsBlocked();
blockSignals( true ); blockSignals( true );
@ -1056,7 +1056,7 @@ void CardView::contentsMousePressEvent( TQMouseEvent *e )
item->repaintCard(); item->repaintCard();
emit selectionChanged(); emit selectionChanged();
} else if ( d->mSelectionMode == CardView::Extended ) { } else if ( d->mSelectionMode == CardView::Extended ) {
if ( (e->button() & Qt::LeftButton) && (e->state() & TQt::ShiftButton) ) { if ( (e->button() & TQt::LeftButton) && (e->state() & TQt::ShiftButton) ) {
if ( item == other ) if ( item == other )
return; return;
@ -1083,11 +1083,11 @@ void CardView::contentsMousePressEvent( TQMouseEvent *e )
} }
emit selectionChanged(); emit selectionChanged();
} else if ( (e->button() & Qt::LeftButton) && (e->state() & TQt::ControlButton) ) { } else if ( (e->button() & TQt::LeftButton) && (e->state() & TQt::ControlButton) ) {
item->setSelected( !item->isSelected() ); item->setSelected( !item->isSelected() );
item->repaintCard(); item->repaintCard();
emit selectionChanged(); emit selectionChanged();
} else if ( e->button() & Qt::LeftButton ) { } else if ( e->button() & TQt::LeftButton ) {
bool b = signalsBlocked(); bool b = signalsBlocked();
blockSignals( true ); blockSignals( true );
selectAll( false ); selectAll( false );
@ -1158,7 +1158,7 @@ void CardView::contentsMouseMoveEvent( TQMouseEvent *e )
return; return;
} }
if ( d->mLastClickOnItem && (e->state() & Qt::LeftButton) && if ( d->mLastClickOnItem && (e->state() & TQt::LeftButton) &&
((e->pos() - d->mLastClickPos).manhattanLength() > 4)) { ((e->pos() - d->mLastClickPos).manhattanLength() > 4)) {
startDrag(); startDrag();

@ -201,7 +201,7 @@ void CardViewLookNFeelPage::initGUI()
loTab->setSpacing( spacing ); loTab->setSpacing( spacing );
loTab->setMargin( margin ); loTab->setMargin( margin );
TQGroupBox *gbGeneral = new TQGroupBox( 1, Qt::Horizontal, i18n("General"), loTab ); TQGroupBox *gbGeneral = new TQGroupBox( 1, TQt::Horizontal, i18n("General"), loTab );
cbDrawSeps = new TQCheckBox( i18n("Draw &separators"), gbGeneral ); cbDrawSeps = new TQCheckBox( i18n("Draw &separators"), gbGeneral );
@ -215,7 +215,7 @@ void CardViewLookNFeelPage::initGUI()
sbSpacing = new TQSpinBox( 0, 100, 1, hbPadding ); sbSpacing = new TQSpinBox( 0, 100, 1, hbPadding );
lSpacing->setBuddy( sbSpacing ); lSpacing->setBuddy( sbSpacing );
TQGroupBox *gbCards = new TQGroupBox( 1, Qt::Horizontal, i18n("Cards"), loTab ); TQGroupBox *gbCards = new TQGroupBox( 1, TQt::Horizontal, i18n("Cards"), loTab );
TQHBox *hbMargin = new TQHBox( gbCards ); TQHBox *hbMargin = new TQHBox( gbCards );
TQLabel *lMargin = new TQLabel( i18n("&Margin:"), hbMargin ); TQLabel *lMargin = new TQLabel( i18n("&Margin:"), hbMargin );

@ -113,7 +113,7 @@ void LookAndFeelPage::initGUI()
{ {
TQVBoxLayout *layout = new TQVBoxLayout(this, 0, KDialogBase::spacingHint()); TQVBoxLayout *layout = new TQVBoxLayout(this, 0, KDialogBase::spacingHint());
TQButtonGroup *group = new TQButtonGroup(1, Qt::Horizontal, TQButtonGroup *group = new TQButtonGroup(1, TQt::Horizontal,
i18n("Row Separator"), this); i18n("Row Separator"), this);
layout->addWidget(group); layout->addWidget(group);

@ -314,7 +314,7 @@ void ContactListView::contentsMousePressEvent(TQMouseEvent* e)
// To initiate a drag operation // To initiate a drag operation
void ContactListView::contentsMouseMoveEvent( TQMouseEvent *e ) void ContactListView::contentsMouseMoveEvent( TQMouseEvent *e )
{ {
if ((e->state() & Qt::LeftButton) && (e->pos() - presspos).manhattanLength() > 4 ) { if ((e->state() & TQt::LeftButton) && (e->pos() - presspos).manhattanLength() > 4 ) {
emit startAddresseeDrag(); emit startAddresseeDrag();
} }
else else

@ -383,7 +383,7 @@ void CSVImportDialog::initGUI()
// Delimiter: comma, semicolon, tab, space, other // Delimiter: comma, semicolon, tab, space, other
mDelimiterBox = new TQButtonGroup( i18n( "Delimiter" ), mPage ); mDelimiterBox = new TQButtonGroup( i18n( "Delimiter" ), mPage );
mDelimiterBox->setColumnLayout( 0, Qt::Vertical ); mDelimiterBox->setColumnLayout( 0, TQt::Vertical );
mDelimiterBox->layout()->setSpacing( spacingHint() ); mDelimiterBox->layout()->setSpacing( spacingHint() );
mDelimiterBox->layout()->setMargin( marginHint() ); mDelimiterBox->layout()->setMargin( marginHint() );
TQGridLayout *delimiterLayout = new TQGridLayout( mDelimiterBox->layout() ); TQGridLayout *delimiterLayout = new TQGridLayout( mDelimiterBox->layout() );

@ -186,7 +186,7 @@ void XXPortSelectDialog::initGUI()
topLayout->addWidget( label ); topLayout->addWidget( label );
mButtonGroup = new TQButtonGroup( i18n( "Selection" ), page ); mButtonGroup = new TQButtonGroup( i18n( "Selection" ), page );
mButtonGroup->setColumnLayout( 0, Qt::Vertical ); mButtonGroup->setColumnLayout( 0, TQt::Vertical );
mButtonGroup->layout()->setSpacing( KDialog::spacingHint() ); mButtonGroup->layout()->setSpacing( KDialog::spacingHint() );
mButtonGroup->layout()->setMargin( KDialog::marginHint() ); mButtonGroup->layout()->setMargin( KDialog::marginHint() );
@ -225,7 +225,7 @@ void XXPortSelectDialog::initGUI()
topLayout->addWidget( mButtonGroup ); topLayout->addWidget( mButtonGroup );
TQButtonGroup *sortingGroup = new TQButtonGroup( i18n( "Sorting" ), page ); TQButtonGroup *sortingGroup = new TQButtonGroup( i18n( "Sorting" ), page );
sortingGroup->setColumnLayout( 0, Qt::Vertical ); sortingGroup->setColumnLayout( 0, TQt::Vertical );
TQGridLayout *sortLayout = new TQGridLayout( sortingGroup->layout(), 2, 2, TQGridLayout *sortLayout = new TQGridLayout( sortingGroup->layout(), 2, 2,
KDialog::spacingHint() ); KDialog::spacingHint() );
sortLayout->setAlignment( TQt::AlignTop ); sortLayout->setAlignment( TQt::AlignTop );

@ -348,7 +348,7 @@ TQString AlarmListView::whatsThisText(int column) const
void AlarmListView::contentsMousePressEvent(TQMouseEvent* e) void AlarmListView::contentsMousePressEvent(TQMouseEvent* e)
{ {
TQListView::contentsMousePressEvent(e); TQListView::contentsMousePressEvent(e);
if (e->button() == Qt::LeftButton) if (e->button() == TQt::LeftButton)
{ {
TQPoint p(contentsToViewport(e->pos())); TQPoint p(contentsToViewport(e->pos()));
if (itemAt(p)) if (itemAt(p))

@ -85,7 +85,7 @@ BirthdayDlg::BirthdayDlg(TQWidget* parent)
mPrefixText = config->readEntry(TQString::fromLatin1("BirthdayPrefix"), i18n("Birthday: ")); mPrefixText = config->readEntry(TQString::fromLatin1("BirthdayPrefix"), i18n("Birthday: "));
mSuffixText = config->readEntry(TQString::fromLatin1("BirthdaySuffix")); mSuffixText = config->readEntry(TQString::fromLatin1("BirthdaySuffix"));
TQGroupBox* textGroup = new TQGroupBox(2, Qt::Horizontal, i18n("Alarm Text"), topWidget); TQGroupBox* textGroup = new TQGroupBox(2, TQt::Horizontal, i18n("Alarm Text"), topWidget);
topLayout->addWidget(textGroup); topLayout->addWidget(textGroup);
TQLabel* label = new TQLabel(i18n("Pre&fix:"), textGroup); TQLabel* label = new TQLabel(i18n("Pre&fix:"), textGroup);
mPrefix = new BLineEdit(mPrefixText, textGroup); mPrefix = new BLineEdit(mPrefixText, textGroup);
@ -105,7 +105,7 @@ BirthdayDlg::BirthdayDlg(TQWidget* parent)
i18n("Enter text to appear after the person's name in the alarm message, " i18n("Enter text to appear after the person's name in the alarm message, "
"including any necessary leading spaces.")); "including any necessary leading spaces."));
TQGroupBox* group = new TQGroupBox(1, Qt::Horizontal, i18n("Select Birthdays"), topWidget); TQGroupBox* group = new TQGroupBox(1, TQt::Horizontal, i18n("Select Birthdays"), topWidget);
topLayout->addWidget(group); topLayout->addWidget(group);
mAddresseeList = new BListView(group); mAddresseeList = new BListView(group);
mAddresseeList->setMultiSelection(true); mAddresseeList->setMultiSelection(true);

@ -323,7 +323,7 @@ DateTime DcopHandler::convertStartDateTime(const TQString& startDateTime)
if (startDateTime.length() > 10) if (startDateTime.length() > 10)
{ {
// Both a date and a time are specified // Both a date and a time are specified
start = TQDateTime::fromString(startDateTime, Qt::ISODate); start = TQDateTime::fromString(startDateTime, TQt::ISODate);
} }
else else
{ {
@ -337,12 +337,12 @@ DateTime DcopHandler::convertStartDateTime(const TQString& startDateTime)
if (t.isEmpty()) if (t.isEmpty())
{ {
// It's a date // It's a date
start = TQDate::fromString(startDateTime, Qt::ISODate); start = TQDate::fromString(startDateTime, TQt::ISODate);
} }
else else
{ {
// It's a time, so use today as the date // It's a time, so use today as the date
start.set(TQDate::currentDate(), TQTime::fromString(t, Qt::ISODate)); start.set(TQDate::currentDate(), TQTime::fromString(t, TQt::ISODate));
} }
} }
if (!start.isValid()) if (!start.isValid())
@ -424,7 +424,7 @@ bool DcopHandler::convertRecurrence(DateTime& start, KARecurrence& recurrence, c
kdError(5950) << "DCOP call: alarm is date-only, but recurrence end is date/time" << endl; kdError(5950) << "DCOP call: alarm is date-only, but recurrence end is date/time" << endl;
return false; return false;
} }
end.setDate(TQDate::fromString(endDateTime, Qt::ISODate)); end.setDate(TQDate::fromString(endDateTime, TQt::ISODate));
} }
else else
{ {
@ -433,7 +433,7 @@ bool DcopHandler::convertRecurrence(DateTime& start, KARecurrence& recurrence, c
kdError(5950) << "DCOP call: alarm is timed, but recurrence end is date-only" << endl; kdError(5950) << "DCOP call: alarm is timed, but recurrence end is date-only" << endl;
return false; return false;
} }
end = TQDateTime::fromString(endDateTime, Qt::ISODate); end = TQDateTime::fromString(endDateTime, TQt::ISODate);
} }
if (!end.isValid()) if (!end.isValid())
{ {

@ -273,7 +273,7 @@ EditAlarmDlg::EditAlarmDlg(bool Template, const TQString& caption, TQWidget* par
layout->addWidget(mEmailFrame); layout->addWidget(mEmailFrame);
// Deferred date/time: visible only for a deferred recurring event. // Deferred date/time: visible only for a deferred recurring event.
mDeferGroup = new TQGroupBox(1, Qt::Vertical, i18n("Deferred Alarm"), mainPage, "deferGroup"); mDeferGroup = new TQGroupBox(1, TQt::Vertical, i18n("Deferred Alarm"), mainPage, "deferGroup");
topLayout->addWidget(mDeferGroup); topLayout->addWidget(mDeferGroup);
TQLabel* label = new TQLabel(i18n("Deferred to:"), mDeferGroup); TQLabel* label = new TQLabel(i18n("Deferred to:"), mDeferGroup);
label->setFixedSize(label->sizeHint()); label->setFixedSize(label->sizeHint());

@ -31,7 +31,7 @@ void EmailIdCombo::mousePressEvent(TQMouseEvent* e)
if (mReadOnly) if (mReadOnly)
{ {
// Swallow up the event if it's the left button // Swallow up the event if it's the left button
if (e->button() == Qt::LeftButton) if (e->button() == TQt::LeftButton)
return; return;
} }
KPIM::IdentityCombo::mousePressEvent(e); KPIM::IdentityCombo::mousePressEvent(e);

@ -113,7 +113,7 @@ void Find::display()
"This option is only available if expired alarms are currently being displayed.")); "This option is only available if expired alarms are currently being displayed."));
grid->addWidget(mExpired, 1, 2, TQt::AlignAuto); grid->addWidget(mExpired, 1, 2, TQt::AlignAuto);
mActiveExpiredSep = new KSeparator(Qt::Horizontal, kalarmWidgets); mActiveExpiredSep = new KSeparator(TQt::Horizontal, kalarmWidgets);
grid->addMultiCellWidget(mActiveExpiredSep, 2, 2, 0, 2); grid->addMultiCellWidget(mActiveExpiredSep, 2, 2, 0, 2);
// Alarm actions // Alarm actions

@ -38,13 +38,13 @@ ButtonGroup::ButtonGroup(const TQString& title, TQWidget* parent, const char* na
connect(this, TQT_SIGNAL(clicked(int)), TQT_SIGNAL(buttonSet(int))); connect(this, TQT_SIGNAL(clicked(int)), TQT_SIGNAL(buttonSet(int)));
} }
ButtonGroup::ButtonGroup(int strips, Qt::Orientation orient, TQWidget* parent, const char* name) ButtonGroup::ButtonGroup(int strips, TQt::Orientation orient, TQWidget* parent, const char* name)
: TQButtonGroup(strips, orient, parent, name) : TQButtonGroup(strips, orient, parent, name)
{ {
connect(this, TQT_SIGNAL(clicked(int)), TQT_SIGNAL(buttonSet(int))); connect(this, TQT_SIGNAL(clicked(int)), TQT_SIGNAL(buttonSet(int)));
} }
ButtonGroup::ButtonGroup(int strips, Qt::Orientation orient, const TQString& title, TQWidget* parent, const char* name) ButtonGroup::ButtonGroup(int strips, TQt::Orientation orient, const TQString& title, TQWidget* parent, const char* name)
: TQButtonGroup(strips, orient, title, parent, name) : TQButtonGroup(strips, orient, title, parent, name)
{ {
connect(this, TQT_SIGNAL(clicked(int)), TQT_SIGNAL(buttonSet(int))); connect(this, TQT_SIGNAL(clicked(int)), TQT_SIGNAL(buttonSet(int)));

@ -57,7 +57,7 @@ class ButtonGroup : public TQButtonGroup
* @param parent The parent object of this widget. * @param parent The parent object of this widget.
* @param name The name of this widget. * @param name The name of this widget.
*/ */
ButtonGroup(int strips, Qt::Orientation orient, TQWidget* parent, const char* name = 0); ButtonGroup(int strips, TQt::Orientation orient, TQWidget* parent, const char* name = 0);
/** Constructor. /** Constructor.
* @param strips The number of rows or columns of buttons. * @param strips The number of rows or columns of buttons.
* @param orient The orientation (TQt::Horizontal or TQt::Vertical) of the button group. * @param orient The orientation (TQt::Horizontal or TQt::Vertical) of the button group.
@ -65,7 +65,7 @@ class ButtonGroup : public TQButtonGroup
* @param parent The parent object of this widget. * @param parent The parent object of this widget.
* @param name The name of this widget. * @param name The name of this widget.
*/ */
ButtonGroup(int strips, Qt::Orientation orient, const TQString& title, TQWidget* parent, const char* name = 0); ButtonGroup(int strips, TQt::Orientation orient, const TQString& title, TQWidget* parent, const char* name = 0);
/** Inserts a button in the group. /** Inserts a button in the group.
* This overrides the insert() method of TQButtonGroup, which should really be a virtual method... * This overrides the insert() method of TQButtonGroup, which should really be a virtual method...
* @param button The button to insert. * @param button The button to insert.

@ -86,7 +86,7 @@ void CheckBox::mousePressEvent(TQMouseEvent* e)
if (mReadOnly) if (mReadOnly)
{ {
// Swallow up the event if it's the left button // Swallow up the event if it's the left button
if (e->button() == Qt::LeftButton) if (e->button() == TQt::LeftButton)
return; return;
} }
TQCheckBox::mousePressEvent(e); TQCheckBox::mousePressEvent(e);
@ -97,7 +97,7 @@ void CheckBox::mouseReleaseEvent(TQMouseEvent* e)
if (mReadOnly) if (mReadOnly)
{ {
// Swallow up the event if it's the left button // Swallow up the event if it's the left button
if (e->button() == Qt::LeftButton) if (e->button() == TQt::LeftButton)
return; return;
} }
TQCheckBox::mouseReleaseEvent(e); TQCheckBox::mouseReleaseEvent(e);

@ -208,7 +208,7 @@ void ColourCombo::mousePressEvent(TQMouseEvent* e)
if (mReadOnly) if (mReadOnly)
{ {
// Swallow up the event if it's the left button // Swallow up the event if it's the left button
if (e->button() == Qt::LeftButton) if (e->button() == TQt::LeftButton)
return; return;
} }
TQComboBox::mousePressEvent(e); TQComboBox::mousePressEvent(e);

@ -47,7 +47,7 @@ void ComboBox::mousePressEvent(TQMouseEvent* e)
if (mReadOnly) if (mReadOnly)
{ {
// Swallow up the event if it's the left button // Swallow up the event if it's the left button
if (e->button() == Qt::LeftButton) if (e->button() == TQt::LeftButton)
return; return;
} }
TQComboBox::mousePressEvent(e); TQComboBox::mousePressEvent(e);

@ -91,7 +91,7 @@ void DateEdit::mousePressEvent(TQMouseEvent *e)
if (isReadOnly()) if (isReadOnly())
{ {
// Swallow up the event if it's the left button // Swallow up the event if it's the left button
if (e->button() == Qt::LeftButton) if (e->button() == TQt::LeftButton)
return; return;
} }
KDateEdit::mousePressEvent(e); KDateEdit::mousePressEvent(e);

@ -169,7 +169,7 @@ class DateTime
* If it is a date-time, both time and date are included in the output. * If it is a date-time, both time and date are included in the output.
* If it is date-only, only the date is included in the output. * If it is date-only, only the date is included in the output.
*/ */
TQString toString(Qt::DateFormat f = Qt::TextDate) const TQString toString(TQt::DateFormat f = TQt::TextDate) const
{ {
if (mDateOnly) if (mDateOnly)
return mDateTime.date().toString(f); return mDateTime.date().toString(f);

@ -55,7 +55,7 @@ void PushButton::mousePressEvent(TQMouseEvent* e)
if (mReadOnly) if (mReadOnly)
{ {
// Swallow up the event if it's the left button // Swallow up the event if it's the left button
if (e->button() == Qt::LeftButton) if (e->button() == TQt::LeftButton)
return; return;
} }
TQPushButton::mousePressEvent(e); TQPushButton::mousePressEvent(e);
@ -66,7 +66,7 @@ void PushButton::mouseReleaseEvent(TQMouseEvent* e)
if (mReadOnly) if (mReadOnly)
{ {
// Swallow up the event if it's the left button // Swallow up the event if it's the left button
if (e->button() == Qt::LeftButton) if (e->button() == TQt::LeftButton)
return; return;
} }
TQPushButton::mouseReleaseEvent(e); TQPushButton::mouseReleaseEvent(e);

@ -86,7 +86,7 @@ void RadioButton::mousePressEvent(TQMouseEvent* e)
if (mReadOnly) if (mReadOnly)
{ {
// Swallow up the event if it's the left button // Swallow up the event if it's the left button
if (e->button() == Qt::LeftButton) if (e->button() == TQt::LeftButton)
return; return;
} }
TQRadioButton::mousePressEvent(e); TQRadioButton::mousePressEvent(e);
@ -97,7 +97,7 @@ void RadioButton::mouseReleaseEvent(TQMouseEvent* e)
if (mReadOnly) if (mReadOnly)
{ {
// Swallow up the event if it's the left button // Swallow up the event if it's the left button
if (e->button() == Qt::LeftButton) if (e->button() == TQt::LeftButton)
return; return;
} }
TQRadioButton::mouseReleaseEvent(e); TQRadioButton::mouseReleaseEvent(e);

@ -26,12 +26,12 @@ Slider::Slider(TQWidget* parent, const char* name)
mReadOnly(false) mReadOnly(false)
{ } { }
Slider::Slider(Qt::Orientation o, TQWidget* parent, const char* name) Slider::Slider(TQt::Orientation o, TQWidget* parent, const char* name)
: TQSlider(o, parent, name), : TQSlider(o, parent, name),
mReadOnly(false) mReadOnly(false)
{ } { }
Slider::Slider(int minval, int maxval, int pageStep, int value, Qt::Orientation o, TQWidget* parent, const char* name) Slider::Slider(int minval, int maxval, int pageStep, int value, TQt::Orientation o, TQWidget* parent, const char* name)
: TQSlider(minval, maxval, pageStep, value, o, parent, name), : TQSlider(minval, maxval, pageStep, value, o, parent, name),
mReadOnly(false) mReadOnly(false)
{ } { }
@ -54,7 +54,7 @@ void Slider::mousePressEvent(TQMouseEvent* e)
if (mReadOnly) if (mReadOnly)
{ {
// Swallow up the event if it's the left button // Swallow up the event if it's the left button
if (e->button() == Qt::LeftButton) if (e->button() == TQt::LeftButton)
return; return;
} }
TQSlider::mousePressEvent(e); TQSlider::mousePressEvent(e);

@ -50,7 +50,7 @@ class Slider : public TQSlider
* @param parent The parent object of this widget. * @param parent The parent object of this widget.
* @param name The name of this widget. * @param name The name of this widget.
*/ */
explicit Slider(Qt::Orientation orient, TQWidget* parent = 0, const char* name = 0); explicit Slider(TQt::Orientation orient, TQWidget* parent = 0, const char* name = 0);
/** Constructor. /** Constructor.
* @param minValue The minimum value which the slider can have. * @param minValue The minimum value which the slider can have.
* @param maxValue The maximum value which the slider can have. * @param maxValue The maximum value which the slider can have.
@ -60,7 +60,7 @@ class Slider : public TQSlider
* @param parent The parent object of this widget. * @param parent The parent object of this widget.
* @param name The name of this widget. * @param name The name of this widget.
*/ */
Slider(int minValue, int maxValue, int pageStep, int value, Qt::Orientation orient, Slider(int minValue, int maxValue, int pageStep, int value, TQt::Orientation orient,
TQWidget* parent = 0, const char* name = 0); TQWidget* parent = 0, const char* name = 0);
/** Returns true if the slider is read only. */ /** Returns true if the slider is read only. */
bool isReadOnly() const { return mReadOnly; } bool isReadOnly() const { return mReadOnly; }

@ -263,7 +263,7 @@ bool SpinBox::eventFilter(TQObject* obj, TQEvent* e)
case TQEvent::MouseButtonDblClick: case TQEvent::MouseButtonDblClick:
{ {
TQMouseEvent* me = (TQMouseEvent*)e; TQMouseEvent* me = (TQMouseEvent*)e;
if (me->button() == Qt::LeftButton) if (me->button() == TQt::LeftButton)
{ {
// It's a left button press. Set normal or shift stepping as appropriate. // It's a left button press. Set normal or shift stepping as appropriate.
if (mReadOnly) if (mReadOnly)
@ -281,7 +281,7 @@ bool SpinBox::eventFilter(TQObject* obj, TQEvent* e)
case TQEvent::MouseButtonRelease: case TQEvent::MouseButtonRelease:
{ {
TQMouseEvent* me = (TQMouseEvent*)e; TQMouseEvent* me = (TQMouseEvent*)e;
if (me->button() == Qt::LeftButton && mShiftMouse) if (me->button() == TQt::LeftButton && mShiftMouse)
{ {
setShiftStepping(false, mCurrentButton); // cancel shift stepping setShiftStepping(false, mCurrentButton); // cancel shift stepping
return false; // forward event to the destination widget return false; // forward event to the destination widget
@ -291,7 +291,7 @@ bool SpinBox::eventFilter(TQObject* obj, TQEvent* e)
case TQEvent::MouseMove: case TQEvent::MouseMove:
{ {
TQMouseEvent* me = (TQMouseEvent*)e; TQMouseEvent* me = (TQMouseEvent*)e;
if (me->state() & Qt::LeftButton) if (me->state() & TQt::LeftButton)
{ {
// The left button is down. Track which spin button it's in. // The left button is down. Track which spin button it's in.
if (mReadOnly) if (mReadOnly)
@ -325,7 +325,7 @@ bool SpinBox::eventFilter(TQObject* obj, TQEvent* e)
TQKeyEvent* ke = (TQKeyEvent*)e; TQKeyEvent* ke = (TQKeyEvent*)e;
int key = ke->key(); int key = ke->key();
int state = ke->state(); int state = ke->state();
if ((state & Qt::LeftButton) if ((state & TQt::LeftButton)
&& (key == TQt::Key_Shift || key == TQt::Key_Alt)) && (key == TQt::Key_Shift || key == TQt::Key_Alt))
{ {
// The left mouse button is down, and the Shift or Alt key has changed // The left mouse button is down, and the Shift or Alt key has changed

@ -1350,7 +1350,7 @@ void MainWindow::slotContextMenuRequested(TQListViewItem* item, const TQPoint& p
*/ */
void MainWindow::slotMouseClicked(int button, TQListViewItem* item, const TQPoint& pt, int) void MainWindow::slotMouseClicked(int button, TQListViewItem* item, const TQPoint& pt, int)
{ {
if (button != Qt::RightButton && !item) if (button != TQt::RightButton && !item)
{ {
kdDebug(5950) << "MainWindow::slotMouseClicked(left)" << endl; kdDebug(5950) << "MainWindow::slotMouseClicked(left)" << endl;
mListView->clearSelection(); mListView->clearSelection();

@ -103,7 +103,7 @@ RecurrenceEdit::RecurrenceEdit(bool readOnly, TQWidget* parent, const char* name
* selection of its corresponding radio button. * selection of its corresponding radio button.
*/ */
TQGroupBox* recurGroup = new TQGroupBox(1, Qt::Vertical, i18n("Recurrence Rule"), this, "recurGroup"); TQGroupBox* recurGroup = new TQGroupBox(1, TQt::Vertical, i18n("Recurrence Rule"), this, "recurGroup");
topLayout->addWidget(recurGroup); topLayout->addWidget(recurGroup);
TQFrame* ruleFrame = new TQFrame(recurGroup, "ruleFrame"); TQFrame* ruleFrame = new TQFrame(recurGroup, "ruleFrame");
layout = new TQVBoxLayout(ruleFrame, 0); layout = new TQVBoxLayout(ruleFrame, 0);
@ -111,7 +111,7 @@ RecurrenceEdit::RecurrenceEdit(bool readOnly, TQWidget* parent, const char* name
layout = new TQHBoxLayout(layout, 0); layout = new TQHBoxLayout(layout, 0);
TQBoxLayout* lay = new TQVBoxLayout(layout, 0); TQBoxLayout* lay = new TQVBoxLayout(layout, 0);
mRuleButtonGroup = new ButtonGroup(1, Qt::Horizontal, ruleFrame); mRuleButtonGroup = new ButtonGroup(1, TQt::Horizontal, ruleFrame);
mRuleButtonGroup->setInsideMargin(0); mRuleButtonGroup->setInsideMargin(0);
mRuleButtonGroup->setFrameStyle(TQFrame::NoFrame); mRuleButtonGroup->setFrameStyle(TQFrame::NoFrame);
lay->addWidget(mRuleButtonGroup); lay->addWidget(mRuleButtonGroup);

@ -133,7 +133,7 @@ SoundDlg::SoundDlg(const TQString& file, float volume, float fadeVolume, int fad
i18n("Select to choose the volume for playing the sound file.")); i18n("Select to choose the volume for playing the sound file."));
// Volume slider // Volume slider
mVolumeSlider = new Slider(0, 100, 10, 0, Qt::Horizontal, box); mVolumeSlider = new Slider(0, 100, 10, 0, TQt::Horizontal, box);
mVolumeSlider->setTickmarks(TQSlider::Below); mVolumeSlider->setTickmarks(TQSlider::Below);
mVolumeSlider->setTickInterval(10); mVolumeSlider->setTickInterval(10);
mVolumeSlider->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed)); mVolumeSlider->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed));
@ -168,7 +168,7 @@ SoundDlg::SoundDlg(const TQString& file, float volume, float fadeVolume, int fad
grid->addWidget(mFadeVolumeBox, 4, 2); grid->addWidget(mFadeVolumeBox, 4, 2);
label = new TQLabel(i18n("Initial volume:"), mFadeVolumeBox); label = new TQLabel(i18n("Initial volume:"), mFadeVolumeBox);
label->setFixedSize(label->sizeHint()); label->setFixedSize(label->sizeHint());
mFadeSlider = new Slider(0, 100, 10, 0, Qt::Horizontal, mFadeVolumeBox); mFadeSlider = new Slider(0, 100, 10, 0, TQt::Horizontal, mFadeVolumeBox);
mFadeSlider->setTickmarks(TQSlider::Below); mFadeSlider->setTickmarks(TQSlider::Below);
mFadeSlider->setTickInterval(10); mFadeSlider->setTickInterval(10);
mFadeSlider->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed)); mFadeSlider->setSizePolicy(TQSizePolicy(TQSizePolicy::Expanding, TQSizePolicy::Fixed));

@ -173,12 +173,12 @@ void TrayWindow::setEnabledStatus(bool status)
*/ */
void TrayWindow::mousePressEvent(TQMouseEvent* e) void TrayWindow::mousePressEvent(TQMouseEvent* e)
{ {
if (e->button() == Qt::LeftButton && !theApp()->wantRunInSystemTray()) if (e->button() == TQt::LeftButton && !theApp()->wantRunInSystemTray())
{ {
// Left click: display/hide the first main window // Left click: display/hide the first main window
mAssocMainWindow = MainWindow::toggleWindow(mAssocMainWindow); mAssocMainWindow = MainWindow::toggleWindow(mAssocMainWindow);
} }
else if (e->button() == Qt::MidButton) else if (e->button() == TQt::MidButton)
MainWindow::executeNew(); // display a New Alarm dialog MainWindow::executeNew(); // display a New Alarm dialog
else else
KSystemTray::mousePressEvent(e); KSystemTray::mousePressEvent(e);
@ -191,7 +191,7 @@ void TrayWindow::mousePressEvent(TQMouseEvent* e)
*/ */
void TrayWindow::mouseReleaseEvent(TQMouseEvent* e) void TrayWindow::mouseReleaseEvent(TQMouseEvent* e)
{ {
if (e->button() == Qt::LeftButton && mAssocMainWindow && mAssocMainWindow->isVisible()) if (e->button() == TQt::LeftButton && mAssocMainWindow && mAssocMainWindow->isVisible())
{ {
mAssocMainWindow->raise(); mAssocMainWindow->raise();
mAssocMainWindow->setActiveWindow(); mAssocMainWindow->setActiveWindow();

@ -65,7 +65,7 @@ KandyView::KandyView(CommandScheduler *scheduler,TQWidget *parent)
TQBoxLayout *topLayout = new TQVBoxLayout( this ); TQBoxLayout *topLayout = new TQVBoxLayout( this );
TQSplitter *mainSplitter = new TQSplitter( Qt::Horizontal, this ); TQSplitter *mainSplitter = new TQSplitter( TQt::Horizontal, this );
topLayout->addWidget( mainSplitter ); topLayout->addWidget( mainSplitter );
TQWidget *commandBox = new TQWidget( mainSplitter ); TQWidget *commandBox = new TQWidget( mainSplitter );
@ -99,7 +99,7 @@ KandyView::KandyView(CommandScheduler *scheduler,TQWidget *parent)
commandLayout->addWidget( buttonExecute ); commandLayout->addWidget( buttonExecute );
connect( buttonExecute, TQT_SIGNAL( clicked() ), TQT_SLOT( executeCommand() ) ); connect( buttonExecute, TQT_SIGNAL( clicked() ), TQT_SLOT( executeCommand() ) );
TQSplitter *ioSplitter = new TQSplitter( Qt::Vertical, mainSplitter ); TQSplitter *ioSplitter = new TQSplitter( TQt::Vertical, mainSplitter );
TQWidget *inBox = new TQWidget( ioSplitter ); TQWidget *inBox = new TQWidget( ioSplitter );

@ -173,7 +173,7 @@ EditTaskDialog::EditTaskDialog( TQString caption, bool editDlg,
{ {
int lines = (int)(desktopCount/2); int lines = (int)(desktopCount/2);
if (lines*2 != desktopCount) lines++; if (lines*2 != desktopCount) lines++;
groupBox = new TQButtonGroup( lines, Qt::Horizontal, groupBox = new TQButtonGroup( lines, TQt::Horizontal,
i18n("In Desktop"), page, "_desktopsGB"); i18n("In Desktop"), page, "_desktopsGB");
} }
lay1->addWidget(groupBox); lay1->addWidget(groupBox);

@ -544,10 +544,10 @@ int karmPart::bookTime
// Parse datetime // Parse datetime
if ( !rval ) if ( !rval )
{ {
startDate = TQDate::fromString( datetime, Qt::ISODate ); startDate = TQDate::fromString( datetime, TQt::ISODate );
if ( datetime.length() > 10 ) // "YYYY-MM-DD".length() = 10 if ( datetime.length() > 10 ) // "YYYY-MM-DD".length() = 10
{ {
startTime = TQTime::fromString( datetime, Qt::ISODate ); startTime = TQTime::fromString( datetime, TQt::ISODate );
} }
else startTime = TQTime( 12, 0 ); else startTime = TQTime( 12, 0 );
if ( startDate.isValid() && startTime.isValid() ) if ( startDate.isValid() && startTime.isValid() )

@ -578,10 +578,10 @@ int MainWindow::bookTime
// Parse datetime // Parse datetime
if ( !rval ) if ( !rval )
{ {
startDate = TQDate::fromString( datetime, Qt::ISODate ); startDate = TQDate::fromString( datetime, TQt::ISODate );
if ( datetime.length() > 10 ) // "YYYY-MM-DD".length() = 10 if ( datetime.length() > 10 ) // "YYYY-MM-DD".length() = 10
{ {
startTime = TQTime::fromString( datetime, Qt::ISODate ); startTime = TQTime::fromString( datetime, TQt::ISODate );
} }
else startTime = TQTime( 12, 0 ); else startTime = TQTime( 12, 0 );
if ( startDate.isValid() && startTime.isValid() ) if ( startDate.isValid() && startTime.isValid() )
@ -718,10 +718,10 @@ TQString MainWindow::exportcsvfile( TQString filename, TQString from, TQString t
ReportCriteria rc; ReportCriteria rc;
rc.url=filename; rc.url=filename;
rc.from=TQDate::fromString( from ); rc.from=TQDate::fromString( from );
if ( rc.from.isNull() ) rc.from=TQDate::fromString( from, Qt::ISODate ); if ( rc.from.isNull() ) rc.from=TQDate::fromString( from, TQt::ISODate );
kdDebug(5970) << "rc.from " << rc.from << endl; kdDebug(5970) << "rc.from " << rc.from << endl;
rc.to=TQDate::fromString( to ); rc.to=TQDate::fromString( to );
if ( rc.to.isNull() ) rc.to=TQDate::fromString( to, Qt::ISODate ); if ( rc.to.isNull() ) rc.to=TQDate::fromString( to, TQt::ISODate );
kdDebug(5970) << "rc.to " << rc.to << endl; kdDebug(5970) << "rc.to " << rc.to << endl;
rc.reportType=(ReportCriteria::REPORTTYPE) type; // history report or totals report rc.reportType=(ReportCriteria::REPORTTYPE) type; // history report or totals report
rc.decimalMinutes=decimalMinutes; rc.decimalMinutes=decimalMinutes;

@ -53,7 +53,7 @@ PrintDialog::PrintDialog()
layout->addStretch(1); layout->addStretch(1);
// Date Range // Date Range
TQGroupBox *rangeGroup = new TQGroupBox(1, Qt::Horizontal, i18n("Date Range"), TQGroupBox *rangeGroup = new TQGroupBox(1, TQt::Horizontal, i18n("Date Range"),
page); page);
layout->addWidget(rangeGroup); layout->addWidget(rangeGroup);

@ -131,7 +131,7 @@ void TaskView::contentsMousePressEvent ( TQMouseEvent * e )
int leftborder = treeStepSize() * ( task->depth() + ( rootIsDecorated() ? 1 : 0)) + itemMargin(); int leftborder = treeStepSize() * ( task->depth() + ( rootIsDecorated() ? 1 : 0)) + itemMargin();
if ((leftborder < e->x()) && (e->x() < 19 + leftborder )) if ((leftborder < e->x()) && (e->x() < 19 + leftborder ))
{ {
if ( e->button() == Qt::LeftButton ) if ( e->button() == TQt::LeftButton )
if ( task->isComplete() ) task->setPercentComplete( 0, _storage ); if ( task->isComplete() ) task->setPercentComplete( 0, _storage );
else task->setPercentComplete( 100, _storage ); else task->setPercentComplete( 100, _storage );
} }

@ -55,7 +55,7 @@ static int mouseOffset;
static int opaqueOldPos = -1; //### there's only one mouse, but this is a bit risky static int opaqueOldPos = -1; //### there's only one mouse, but this is a bit risky
KDGanttSplitterHandle::KDGanttSplitterHandle( Qt::Orientation o, KDGanttSplitterHandle::KDGanttSplitterHandle( TQt::Orientation o,
KDGanttMinimizeSplitter *parent, const char * name ) KDGanttMinimizeSplitter *parent, const char * name )
: TQWidget( parent, name ), _activeButton( 0 ), _collapsed( false ) : TQWidget( parent, name ), _activeButton( 0 ), _collapsed( false )
{ {
@ -69,11 +69,11 @@ TQSize KDGanttSplitterHandle::sizeHint() const
return TQSize(8,8); return TQSize(8,8);
} }
void KDGanttSplitterHandle::setOrientation( Qt::Orientation o ) void KDGanttSplitterHandle::setOrientation( TQt::Orientation o )
{ {
orient = o; orient = o;
#ifndef TQT_NO_CURSOR #ifndef TQT_NO_CURSOR
if ( o == Qt::Horizontal ) if ( o == TQt::Horizontal )
setCursor( splitHCursor ); setCursor( splitHCursor );
else else
setCursor( splitVCursor ); setCursor( splitVCursor );
@ -84,7 +84,7 @@ void KDGanttSplitterHandle::setOrientation( Qt::Orientation o )
void KDGanttSplitterHandle::mouseMoveEvent( TQMouseEvent *e ) void KDGanttSplitterHandle::mouseMoveEvent( TQMouseEvent *e )
{ {
updateCursor( e->pos() ); updateCursor( e->pos() );
if ( !(e->state()&Qt::LeftButton) ) if ( !(e->state()&TQt::LeftButton) )
return; return;
if ( _activeButton != 0) if ( _activeButton != 0)
@ -104,7 +104,7 @@ void KDGanttSplitterHandle::mouseMoveEvent( TQMouseEvent *e )
void KDGanttSplitterHandle::mousePressEvent( TQMouseEvent *e ) void KDGanttSplitterHandle::mousePressEvent( TQMouseEvent *e )
{ {
if ( e->button() == Qt::LeftButton ) { if ( e->button() == TQt::LeftButton ) {
_activeButton = onButton( e->pos() ); _activeButton = onButton( e->pos() );
mouseOffset = s->pick(e->pos()); mouseOffset = s->pick(e->pos());
if ( _activeButton != 0) if ( _activeButton != 0)
@ -119,7 +119,7 @@ void KDGanttSplitterHandle::updateCursor( const TQPoint& p)
setCursor( arrowCursor ); setCursor( arrowCursor );
} }
else { else {
if ( orient == Qt::Horizontal ) if ( orient == TQt::Horizontal )
setCursor( splitHCursor ); setCursor( splitHCursor );
else else
setCursor( splitVCursor ); setCursor( splitVCursor );
@ -158,7 +158,7 @@ void KDGanttSplitterHandle::mouseReleaseEvent( TQMouseEvent *e )
updateCursor( e->pos() ); updateCursor( e->pos() );
} }
else { else {
if ( !opaque() && e->button() == Qt::LeftButton ) { if ( !opaque() && e->button() == TQt::LeftButton ) {
TQCOORD pos = s->pick(parentWidget()->mapFromGlobal(e->globalPos())) TQCOORD pos = s->pick(parentWidget()->mapFromGlobal(e->globalPos()))
- mouseOffset; - mouseOffset;
s->setRubberband( -1 ); s->setRubberband( -1 );
@ -384,7 +384,7 @@ static TQSize minSizeHint( const TQWidget* w )
KDGanttMinimizeSplitter::KDGanttMinimizeSplitter( TQWidget *parent, const char *name ) KDGanttMinimizeSplitter::KDGanttMinimizeSplitter( TQWidget *parent, const char *name )
:TQFrame(parent,name,WPaintUnclipped) :TQFrame(parent,name,WPaintUnclipped)
{ {
orient = Qt::Horizontal; orient = TQt::Horizontal;
init(); init();
} }
@ -392,7 +392,7 @@ KDGanttMinimizeSplitter::KDGanttMinimizeSplitter( TQWidget *parent, const char *
Constructs a splitter with orientation \a o with the \a parent Constructs a splitter with orientation \a o with the \a parent
and \a name arguments being passed on to the TQFrame constructor. and \a name arguments being passed on to the TQFrame constructor.
*/ */
KDGanttMinimizeSplitter::KDGanttMinimizeSplitter( Qt::Orientation o, TQWidget *parent, const char *name ) KDGanttMinimizeSplitter::KDGanttMinimizeSplitter( TQt::Orientation o, TQWidget *parent, const char *name )
:TQFrame(parent,name,WPaintUnclipped) :TQFrame(parent,name,WPaintUnclipped)
{ {
orient = o; orient = o;
@ -412,7 +412,7 @@ KDGanttMinimizeSplitter::~KDGanttMinimizeSplitter()
void KDGanttMinimizeSplitter::init() void KDGanttMinimizeSplitter::init()
{ {
data = new TQSplitterData; data = new TQSplitterData;
if ( orient == Qt::Horizontal ) if ( orient == TQt::Horizontal )
setSizePolicy( TQSizePolicy(TQSizePolicy::Expanding,TQSizePolicy::Minimum) ); setSizePolicy( TQSizePolicy(TQSizePolicy::Expanding,TQSizePolicy::Minimum) );
else else
setSizePolicy( TQSizePolicy(TQSizePolicy::Minimum,TQSizePolicy::Expanding) ); setSizePolicy( TQSizePolicy(TQSizePolicy::Minimum,TQSizePolicy::Expanding) );
@ -424,15 +424,15 @@ void KDGanttMinimizeSplitter::init()
\brief the orientation of the splitter \brief the orientation of the splitter
By default the orientation is horizontal (the widgets are side by side). By default the orientation is horizontal (the widgets are side by side).
The possible orientations are TQt:Vertical and Qt::Horizontal (the default). The possible orientations are TQt:Vertical and TQt::Horizontal (the default).
*/ */
void KDGanttMinimizeSplitter::setOrientation( Qt::Orientation o ) void KDGanttMinimizeSplitter::setOrientation( TQt::Orientation o )
{ {
if ( orient == o ) if ( orient == o )
return; return;
orient = o; orient = o;
if ( orient == Qt::Horizontal ) if ( orient == TQt::Horizontal )
setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Minimum ) ); setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Minimum ) );
else else
setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Expanding ) ); setSizePolicy( TQSizePolicy( TQSizePolicy::Minimum, TQSizePolicy::Expanding ) );
@ -562,7 +562,7 @@ void KDGanttMinimizeSplitter::setRubberband( int p )
TQRect r = contentsRect(); TQRect r = contentsRect();
const int rBord = 3; //Themable???? const int rBord = 3; //Themable????
int sw = style().pixelMetric(TQStyle::PM_SplitterWidth, this); int sw = style().pixelMetric(TQStyle::PM_SplitterWidth, this);
if ( orient == Qt::Horizontal ) { if ( orient == TQt::Horizontal ) {
if ( opaqueOldPos >= 0 ) if ( opaqueOldPos >= 0 )
paint.drawRect( opaqueOldPos + sw/2 - rBord , r.y(), paint.drawRect( opaqueOldPos + sw/2 - rBord , r.y(),
2*rBord, r.height() ); 2*rBord, r.height() );
@ -602,7 +602,7 @@ void KDGanttMinimizeSplitter::drawSplitter( TQPainter *p,
TQCOORD x, TQCOORD y, TQCOORD w, TQCOORD h ) TQCOORD x, TQCOORD y, TQCOORD w, TQCOORD h )
{ {
style().tqdrawPrimitive(TQStyle::PE_Splitter, p, TQRect(x, y, w, h), colorGroup(), style().tqdrawPrimitive(TQStyle::PE_Splitter, p, TQRect(x, y, w, h), colorGroup(),
(orientation() == Qt::Horizontal ? (orientation() == TQt::Horizontal ?
TQStyle::Style_Horizontal : 0)); TQStyle::Style_Horizontal : 0));
} }
@ -644,9 +644,9 @@ void KDGanttMinimizeSplitter::moveSplitter( TQCOORD p, int id )
p = adjustPos( p, id ); p = adjustPos( p, id );
TQSplitterLayoutStruct *s = data->list.at(id); TQSplitterLayoutStruct *s = data->list.at(id);
int oldP = orient == Qt::Horizontal ? s->wid->x() : s->wid->y(); int oldP = orient == TQt::Horizontal ? s->wid->x() : s->wid->y();
bool upLeft; bool upLeft;
if ( TQApplication::reverseLayout() && orient == Qt::Horizontal ) { if ( TQApplication::reverseLayout() && orient == TQt::Horizontal ) {
p += s->wid->width(); p += s->wid->width();
upLeft = p > oldP; upLeft = p > oldP;
} else } else
@ -661,8 +661,8 @@ void KDGanttMinimizeSplitter::moveSplitter( TQCOORD p, int id )
void KDGanttMinimizeSplitter::setG( TQWidget *w, int p, int s, bool isSplitter ) void KDGanttMinimizeSplitter::setG( TQWidget *w, int p, int s, bool isSplitter )
{ {
if ( orient == Qt::Horizontal ) { if ( orient == TQt::Horizontal ) {
if ( TQApplication::reverseLayout() && orient == Qt::Horizontal && !isSplitter ) if ( TQApplication::reverseLayout() && orient == TQt::Horizontal && !isSplitter )
p = contentsRect().width() - p - s; p = contentsRect().width() - p - s;
w->setGeometry( p, contentsRect().y(), s, contentsRect().height() ); w->setGeometry( p, contentsRect().y(), s, contentsRect().height() );
} else } else
@ -688,7 +688,7 @@ void KDGanttMinimizeSplitter::moveBefore( int pos, int id, bool upLeft )
} else if ( s->isSplitter ) { } else if ( s->isSplitter ) {
int pos1, pos2; int pos1, pos2;
int dd = s->sizer; int dd = s->sizer;
if( TQApplication::reverseLayout() && orient == Qt::Horizontal ) { if( TQApplication::reverseLayout() && orient == TQt::Horizontal ) {
pos1 = pos; pos1 = pos;
pos2 = pos + dd; pos2 = pos + dd;
} else { } else {
@ -704,7 +704,7 @@ void KDGanttMinimizeSplitter::moveBefore( int pos, int id, bool upLeft )
} }
} else { } else {
int dd, newLeft, nextPos; int dd, newLeft, nextPos;
if( TQApplication::reverseLayout() && orient == Qt::Horizontal ) { if( TQApplication::reverseLayout() && orient == TQt::Horizontal ) {
dd = w->geometry().right() - pos; dd = w->geometry().right() - pos;
dd = TQMAX( pick(minSize(w)), TQMIN(dd, pick(w->maximumSize()))); dd = TQMAX( pick(minSize(w)), TQMIN(dd, pick(w->maximumSize())));
newLeft = pos+1; newLeft = pos+1;
@ -741,7 +741,7 @@ void KDGanttMinimizeSplitter::moveAfter( int pos, int id, bool upLeft )
} else if ( s->isSplitter ) { } else if ( s->isSplitter ) {
int dd = s->sizer; int dd = s->sizer;
int pos1, pos2; int pos1, pos2;
if( TQApplication::reverseLayout() && orient == Qt::Horizontal ) { if( TQApplication::reverseLayout() && orient == TQt::Horizontal ) {
pos2 = pos - dd; pos2 = pos - dd;
pos1 = pos2 + 1; pos1 = pos2 + 1;
} else { } else {
@ -758,7 +758,7 @@ void KDGanttMinimizeSplitter::moveAfter( int pos, int id, bool upLeft )
} else { } else {
int left = pick( w->pos() ); int left = pick( w->pos() );
int right, dd,/* newRight,*/ newLeft, nextPos; int right, dd,/* newRight,*/ newLeft, nextPos;
if ( TQApplication::reverseLayout() && orient == Qt::Horizontal ) { if ( TQApplication::reverseLayout() && orient == TQt::Horizontal ) {
dd = pos - left + 1; dd = pos - left + 1;
dd = TQMAX( pick(minSize(w)), TQMIN(dd, pick(w->maximumSize()))); dd = TQMAX( pick(minSize(w)), TQMIN(dd, pick(w->maximumSize())));
newLeft = pos-dd+1; newLeft = pos-dd+1;
@ -836,7 +836,7 @@ void KDGanttMinimizeSplitter::getRange( int id, int *min, int *max )
} }
} }
TQRect r = contentsRect(); TQRect r = contentsRect();
if ( orient == Qt::Horizontal && TQApplication::reverseLayout() ) { if ( orient == TQt::Horizontal && TQApplication::reverseLayout() ) {
int splitterWidth = style().pixelMetric(TQStyle::PM_SplitterWidth, this); int splitterWidth = style().pixelMetric(TQStyle::PM_SplitterWidth, this);
if ( min ) if ( min )
*min = pick(r.topRight()) - TQMIN( maxB, pick(r.size())-minA ) - splitterWidth; *min = pick(r.topRight()) - TQMIN( maxB, pick(r.size())-minA ) - splitterWidth;
@ -975,7 +975,7 @@ void KDGanttMinimizeSplitter::recalc( bool update )
if ( maxt < mint ) if ( maxt < mint )
maxt = mint; maxt = mint;
if ( orient == Qt::Horizontal ) { if ( orient == TQt::Horizontal ) {
setMaximumSize( maxl, maxt ); setMaximumSize( maxl, maxt );
setMinimumSize( minl, mint ); setMinimumSize( minl, mint );
} else { } else {
@ -1127,7 +1127,7 @@ TQSize KDGanttMinimizeSplitter::sizeHint() const
} }
} }
} }
return orientation() == Qt::Horizontal ? TQSize( l, t ) : TQSize( t, l ); return orientation() == TQt::Horizontal ? TQSize( l, t ) : TQSize( t, l );
} }
@ -1157,7 +1157,7 @@ TQSize KDGanttMinimizeSplitter::minimumSizeHint() const
} }
} }
} }
return orientation() == Qt::Horizontal ? TQSize( l, t ) : TQSize( t, l ); return orientation() == TQt::Horizontal ? TQSize( l, t ) : TQSize( t, l );
} }
@ -1531,7 +1531,7 @@ void kdganttGeomCalc( TQMemArray<TQLayoutStruct> &chain, int start, int count, i
*/ */
/*! /*!
\fn Qt::Orientation KDGanttMinimizeSplitter::orientation() const \fn TQt::Orientation KDGanttMinimizeSplitter::orientation() const
Returns the orientation of the splitter. Returns the orientation of the splitter.
*/ */

@ -53,11 +53,11 @@ public:
enum Direction { Left, Right, Up, Down }; enum Direction { Left, Right, Up, Down };
KDGanttMinimizeSplitter( TQWidget* parent=0, const char* name=0 ); KDGanttMinimizeSplitter( TQWidget* parent=0, const char* name=0 );
KDGanttMinimizeSplitter( Qt::Orientation, TQWidget* parent=0, const char* name=0 ); KDGanttMinimizeSplitter( TQt::Orientation, TQWidget* parent=0, const char* name=0 );
~KDGanttMinimizeSplitter(); ~KDGanttMinimizeSplitter();
virtual void setOrientation( Qt::Orientation ); virtual void setOrientation( TQt::Orientation );
Qt::Orientation orientation() const { return orient; } TQt::Orientation orientation() const { return orient; }
void setMinimizeDirection( Direction ); void setMinimizeDirection( Direction );
Direction minimizeDirection() const; Direction minimizeDirection() const;
@ -106,19 +106,19 @@ private:
void setG( TQWidget *w, int p, int s, bool isSplitter = FALSE ); void setG( TQWidget *w, int p, int s, bool isSplitter = FALSE );
TQCOORD pick( const TQPoint &p ) const TQCOORD pick( const TQPoint &p ) const
{ return orient == Qt::Horizontal ? p.x() : p.y(); } { return orient == TQt::Horizontal ? p.x() : p.y(); }
TQCOORD pick( const TQSize &s ) const TQCOORD pick( const TQSize &s ) const
{ return orient == Qt::Horizontal ? s.width() : s.height(); } { return orient == TQt::Horizontal ? s.width() : s.height(); }
TQCOORD trans( const TQPoint &p ) const TQCOORD trans( const TQPoint &p ) const
{ return orient == Qt::Vertical ? p.x() : p.y(); } { return orient == TQt::Vertical ? p.x() : p.y(); }
TQCOORD trans( const TQSize &s ) const TQCOORD trans( const TQSize &s ) const
{ return orient == Qt::Vertical ? s.width() : s.height(); } { return orient == TQt::Vertical ? s.width() : s.height(); }
TQSplitterData *data; TQSplitterData *data;
private: private:
Qt::Orientation orient; TQt::Orientation orient;
Direction _direction; Direction _direction;
#ifndef DOXYGEN_SKIP_INTERNAL #ifndef DOXYGEN_SKIP_INTERNAL
friend class KDGanttSplitterHandle; friend class KDGanttSplitterHandle;
@ -140,10 +140,10 @@ class KDGanttSplitterHandle : public TQWidget
TQ_OBJECT TQ_OBJECT
public: public:
KDGanttSplitterHandle( Qt::Orientation o, KDGanttSplitterHandle( TQt::Orientation o,
KDGanttMinimizeSplitter *parent, const char* name=0 ); KDGanttMinimizeSplitter *parent, const char* name=0 );
void setOrientation( Qt::Orientation o ); void setOrientation( TQt::Orientation o );
Qt::Orientation orientation() const { return orient; } TQt::Orientation orientation() const { return orient; }
bool opaque() const { return s->opaqueResize(); } bool opaque() const { return s->opaqueResize(); }
@ -162,7 +162,7 @@ protected:
void updateCursor( const TQPoint& p ); void updateCursor( const TQPoint& p );
private: private:
Qt::Orientation orient; TQt::Orientation orient;
bool opaq; bool opaq;
int myId; int myId;

@ -65,7 +65,7 @@
KDGanttSemiSizingControl::KDGanttSemiSizingControl( TQWidget* parent, KDGanttSemiSizingControl::KDGanttSemiSizingControl( TQWidget* parent,
const char* name ) : const char* name ) :
KDGanttSizingControl( parent, name ), _orient( Qt::Horizontal ), KDGanttSizingControl( parent, name ), _orient( TQt::Horizontal ),
_arrowPos( Before ), _minimizedWidget(0), _maximizedWidget(0) _arrowPos( Before ), _minimizedWidget(0), _maximizedWidget(0)
{ {
init(); init();
@ -84,7 +84,7 @@ KDGanttSemiSizingControl::KDGanttSemiSizingControl( TQWidget* parent,
the base class. the base class.
*/ */
KDGanttSemiSizingControl::KDGanttSemiSizingControl( Qt::Orientation orientation, KDGanttSemiSizingControl::KDGanttSemiSizingControl( TQt::Orientation orientation,
TQWidget* parent, TQWidget* parent,
const char* name ) : const char* name ) :
KDGanttSizingControl( parent, name ), _orient( orientation ), KDGanttSizingControl( parent, name ), _orient( orientation ),
@ -108,7 +108,7 @@ KDGanttSemiSizingControl::KDGanttSemiSizingControl( Qt::Orientation orientation,
*/ */
KDGanttSemiSizingControl::KDGanttSemiSizingControl( ArrowPosition arrowPosition, KDGanttSemiSizingControl::KDGanttSemiSizingControl( ArrowPosition arrowPosition,
Qt::Orientation orientation, TQt::Orientation orientation,
TQWidget* parent, TQWidget* parent,
const char* name ) : const char* name ) :
KDGanttSizingControl( parent, name ), _orient( orientation ), KDGanttSizingControl( parent, name ), _orient( orientation ),
@ -186,7 +186,7 @@ TQWidget* KDGanttSemiSizingControl::maximizedWidget() const
\sa orientation() \sa orientation()
*/ */
void KDGanttSemiSizingControl::setOrientation( Qt::Orientation orientation ) void KDGanttSemiSizingControl::setOrientation( TQt::Orientation orientation )
{ {
if ( _orient != orientation ) { if ( _orient != orientation ) {
_orient = orientation; _orient = orientation;
@ -201,7 +201,7 @@ void KDGanttSemiSizingControl::setOrientation( Qt::Orientation orientation )
\sa setOrientation() \sa setOrientation()
*/ */
Qt::Orientation KDGanttSemiSizingControl::orientation() const TQt::Orientation KDGanttSemiSizingControl::orientation() const
{ {
return _orient; return _orient;
} }
@ -262,12 +262,12 @@ void KDGanttSemiSizingControl::setup()
delete _layout; delete _layout;
TQBoxLayout* butLayout; // _layout will delete me TQBoxLayout* butLayout; // _layout will delete me
if ( _orient == Qt::Horizontal || isMinimized() ) if ( _orient == TQt::Horizontal || isMinimized() )
_layout = new TQHBoxLayout( this ); _layout = new TQHBoxLayout( this );
else else
_layout = new TQVBoxLayout( this ); _layout = new TQVBoxLayout( this );
if ( _orient == Qt::Vertical && !isMinimized() ) if ( _orient == TQt::Vertical && !isMinimized() )
butLayout = new TQHBoxLayout( _layout ); butLayout = new TQHBoxLayout( _layout );
else else
butLayout = new TQVBoxLayout( _layout ); butLayout = new TQVBoxLayout( _layout );
@ -288,7 +288,7 @@ void KDGanttSemiSizingControl::setup()
} }
//------------------------------ Setup the button at the correct possition //------------------------------ Setup the button at the correct possition
if ( _arrowPos == After && _orient == Qt::Vertical && !isMinimized() ) { if ( _arrowPos == After && _orient == TQt::Vertical && !isMinimized() ) {
butLayout->addStretch( 1 ); butLayout->addStretch( 1 );
butLayout->addWidget( _but, 0, TQt::AlignLeft ); butLayout->addWidget( _but, 0, TQt::AlignLeft );
} }
@ -305,7 +305,7 @@ void KDGanttSemiSizingControl::setup()
else else
widget = _maximizedWidget; widget = _maximizedWidget;
if( widget ) { if( widget ) {
if ( _arrowPos == Before || _orient == Qt::Vertical && !isMinimized() ) if ( _arrowPos == Before || _orient == TQt::Vertical && !isMinimized() )
_layout->addWidget( widget, 1 ); _layout->addWidget( widget, 1 );
else else
_layout->insertWidget( 0, widget, 1 ); _layout->insertWidget( 0, widget, 1 );
@ -318,20 +318,20 @@ void KDGanttSemiSizingControl::setup()
if ( isMinimized() ) { if ( isMinimized() ) {
widget = _minimizedWidget; widget = _minimizedWidget;
if( widget ) { if( widget ) {
if ( _arrowPos == Before || _orient == Qt::Vertical && !isMinimized() ) if ( _arrowPos == Before || _orient == TQt::Vertical && !isMinimized() )
_layout->addWidget( widget, 1 ); _layout->addWidget( widget, 1 );
else else
_layout->insertWidget( 0, widget, 1 ); _layout->insertWidget( 0, widget, 1 );
} }
} }
else { else {
if ( _arrowPos == Before || _orient == Qt::Vertical && !isMinimized() ) if ( _arrowPos == Before || _orient == TQt::Vertical && !isMinimized() )
_layout->addStretch( 1 ); _layout->addStretch( 1 );
else else
_layout->insertStretch( 0, 1 ); _layout->insertStretch( 0, 1 );
widget = _maximizedWidget; widget = _maximizedWidget;
// the following is only the special case // the following is only the special case
// arrowPos == Before and _orient == Qt::Vertical // arrowPos == Before and _orient == TQt::Vertical
//widget->move( 0+x(), _but->height()+y()); //widget->move( 0+x(), _but->height()+y());
} }
} }

@ -51,10 +51,10 @@ public:
enum ArrowPosition { Before, After }; enum ArrowPosition { Before, After };
KDGanttSemiSizingControl( TQWidget* parent = 0, const char* name = 0 ); KDGanttSemiSizingControl( TQWidget* parent = 0, const char* name = 0 );
KDGanttSemiSizingControl( Qt::Orientation orientation, TQWidget* parent = 0, KDGanttSemiSizingControl( TQt::Orientation orientation, TQWidget* parent = 0,
const char* name = 0 ); const char* name = 0 );
KDGanttSemiSizingControl( ArrowPosition arrowPosition, KDGanttSemiSizingControl( ArrowPosition arrowPosition,
Qt::Orientation orientation, TQWidget* parent = 0, TQt::Orientation orientation, TQWidget* parent = 0,
const char* name = 0 ); const char* name = 0 );
void setMinimizedWidget( TQWidget* widget ); void setMinimizedWidget( TQWidget* widget );
@ -62,8 +62,8 @@ public:
TQWidget* minimizedWidget() const; TQWidget* minimizedWidget() const;
TQWidget* maximizedWidget() const; TQWidget* maximizedWidget() const;
void setOrientation( Qt::Orientation orientation ); void setOrientation( TQt::Orientation orientation );
Qt::Orientation orientation() const; TQt::Orientation orientation() const;
void setArrowPosition( ArrowPosition arrowPosition ); void setArrowPosition( ArrowPosition arrowPosition );
ArrowPosition arrowPosition() const; ArrowPosition arrowPosition() const;
@ -79,7 +79,7 @@ protected:
TQPixmap pixmap( Direction ); TQPixmap pixmap( Direction );
private: private:
Qt::Orientation _orient; TQt::Orientation _orient;
ArrowPosition _arrowPos; ArrowPosition _arrowPos;
TQWidget* _minimizedWidget; TQWidget* _minimizedWidget;
TQWidget* _maximizedWidget; TQWidget* _maximizedWidget;

@ -81,7 +81,7 @@
*/ */
KDGanttView::KDGanttView( TQWidget* parent, const char* name ) KDGanttView::KDGanttView( TQWidget* parent, const char* name )
: KDGanttMinimizeSplitter( Qt::Vertical, parent, name ), : KDGanttMinimizeSplitter( TQt::Vertical, parent, name ),
myCanvasView(0), myCanvasView(0),
myTimeHeaderScroll(0), myTimeHeaderScroll(0),
mFixedHorizon( false ) mFixedHorizon( false )
@ -458,11 +458,11 @@ void KDGanttView::slotmouseButtonClicked ( int button, TQListViewItem * item,
//emit mouseButtonClicked ( button , gItem, pos, c ); //emit mouseButtonClicked ( button , gItem, pos, c );
{ {
switch ( button ) { switch ( button ) {
case Qt::LeftButton: case TQt::LeftButton:
emit lvItemLeftClicked( gItem ); emit lvItemLeftClicked( gItem );
emit itemLeftClicked( gItem ); emit itemLeftClicked( gItem );
break; break;
case Qt::MidButton: case TQt::MidButton:
emit lvItemMidClicked( gItem ); emit lvItemMidClicked( gItem );
emit itemMidClicked( gItem ); emit itemMidClicked( gItem );
break; break;

@ -916,10 +916,10 @@ void KDGanttViewItem::createShape( KDCanvasPolygonItem* &itemShape,
// items which don't have any shapes // items which don't have any shapes
return; return;
} }
item->setBrush(Qt::SolidPattern); item->setBrush(TQt::SolidPattern);
item->setZ(5); item->setZ(5);
itemShape = (KDCanvasPolygonItem*) item; itemShape = (KDCanvasPolygonItem*) item;
itemBack->setBrush(Qt::SolidPattern); itemBack->setBrush(TQt::SolidPattern);
itemBack->setZ(3); itemBack->setZ(3);
itemShapeBack = (KDCanvasPolygonItem*) itemBack; itemShapeBack = (KDCanvasPolygonItem*) itemBack;
@ -1306,11 +1306,11 @@ void KDGanttViewItem::updateCanvasItems()
if (blockUpdating) return; if (blockUpdating) return;
TQPen p,pBack; TQPen p,pBack;
TQBrush b; TQBrush b;
b.setStyle(Qt::SolidPattern); b.setStyle(TQt::SolidPattern);
if ( enabled() ) { if ( enabled() ) {
textCanvas->setColor(myTextColor); textCanvas->setColor(myTextColor);
if (isHighlighted) { if (isHighlighted) {
b.setStyle(Qt::SolidPattern); b.setStyle(TQt::SolidPattern);
b.setColor(myStartColorHL); b.setColor(myStartColorHL);
startShape->setBrush(b); startShape->setBrush(b);
b.setColor(myMiddleColorHL); b.setColor(myMiddleColorHL);
@ -1323,7 +1323,7 @@ void KDGanttViewItem::updateCanvasItems()
p.setColor(myEndColorHL); p.setColor(myEndColorHL);
endLine->setPen(p); endLine->setPen(p);
} else { } else {
b.setStyle(Qt::SolidPattern); b.setStyle(TQt::SolidPattern);
b.setColor(myStartColor); b.setColor(myStartColor);
// tqDebug("update color %s %s", listViewText().latin1(),myStartColor.name().latin1() ); // tqDebug("update color %s %s", listViewText().latin1(),myStartColor.name().latin1() );
startShape->setBrush(b); startShape->setBrush(b);
@ -1341,7 +1341,7 @@ void KDGanttViewItem::updateCanvasItems()
//TQColor discol = TQt::lightGray; //TQColor discol = TQt::lightGray;
TQColor discol = TQColor(232,232,232); TQColor discol = TQColor(232,232,232);
textCanvas->setColor( TQColor(150,150,150) ); textCanvas->setColor( TQColor(150,150,150) );
b.setStyle(Qt::SolidPattern); b.setStyle(TQt::SolidPattern);
b.setColor(discol); b.setColor(discol);
startShape->setBrush(b); startShape->setBrush(b);
midShape->setBrush(b); midShape->setBrush(b);

@ -65,7 +65,7 @@ KDTimeTableWidget:: KDTimeTableWidget( TQWidget* parent,KDGanttView* myGantt)
taskLinksVisible = true; taskLinksVisible = true;
flag_blockUpdating = false; flag_blockUpdating = false;
int_blockUpdating = 0; int_blockUpdating = 0;
gridPen.setStyle(Qt::DotLine); gridPen.setStyle(TQt::DotLine);
gridPen.setColor(TQColor(100,100,100)); gridPen.setColor(TQColor(100,100,100));
maximumComputedGridHeight = 0; maximumComputedGridHeight = 0;
denseLineCount = 0; denseLineCount = 0;
@ -230,7 +230,7 @@ void KDTimeTableWidget::computeVerticalGrid()
*/ */
itcol.current()->setPen( TQPen(TQPen::NoPen) ); itcol.current()->setPen( TQPen(TQPen::NoPen) );
itcol.current()->setBrush( TQBrush( colcol, Qt::SolidPattern) ); itcol.current()->setBrush( TQBrush( colcol, TQt::SolidPattern) );
itcol.current()->setSize(cw ,h ); itcol.current()->setSize(cw ,h );
itcol.current()->move( i, 0 ); itcol.current()->move( i, 0 );
itcol.current()->show(); itcol.current()->show();
@ -244,7 +244,7 @@ void KDTimeTableWidget::computeVerticalGrid()
*/ */
temprect = new KDCanvasRectangle(this,0,Type_is_KDGanttGridItem); temprect = new KDCanvasRectangle(this,0,Type_is_KDGanttGridItem);
temprect->setPen( TQPen(TQPen::NoPen) ); temprect->setPen( TQPen(TQPen::NoPen) );
temprect->setBrush( TQBrush( colcol, Qt::SolidPattern) ); temprect->setBrush( TQBrush( colcol, TQt::SolidPattern) );
temprect->setSize(cw ,h ); temprect->setSize(cw ,h );
temprect->move( i, 0 ); temprect->move( i, 0 );
temprect->setZ(-20); temprect->setZ(-20);
@ -276,7 +276,7 @@ void KDTimeTableWidget::computeVerticalGrid()
itcol.current()->setPoints(i+(cw/2),0,i+(cw/2),h); itcol.current()->setPoints(i+(cw/2),0,i+(cw/2),h);
*/ */
itcol.current()->setPen( TQPen(TQPen::NoPen) ); itcol.current()->setPen( TQPen(TQPen::NoPen) );
itcol.current()->setBrush( TQBrush( colcol, Qt::SolidPattern) ); itcol.current()->setBrush( TQBrush( colcol, TQt::SolidPattern) );
itcol.current()->setSize(cw ,h ); itcol.current()->setSize(cw ,h );
itcol.current()->move( i, 0 ); itcol.current()->move( i, 0 );
itcol.current()->show(); itcol.current()->show();
@ -284,7 +284,7 @@ void KDTimeTableWidget::computeVerticalGrid()
} else { } else {
temprect = new KDCanvasRectangle(this,0,Type_is_KDGanttGridItem); temprect = new KDCanvasRectangle(this,0,Type_is_KDGanttGridItem);
temprect->setPen( TQPen(TQPen::NoPen) ); temprect->setPen( TQPen(TQPen::NoPen) );
temprect->setBrush( TQBrush( colcol, Qt::SolidPattern) ); temprect->setBrush( TQBrush( colcol, TQt::SolidPattern) );
temprect->setSize(cw ,h ); temprect->setSize(cw ,h );
temprect->move( i, 0 ); temprect->move( i, 0 );
temprect->setZ(-20); temprect->setZ(-20);
@ -332,7 +332,7 @@ void KDTimeTableWidget::computeVerticalGrid()
itcol.current()->setPoints(i+mid,0,mid,h); itcol.current()->setPoints(i+mid,0,mid,h);
*/ */
itcol.current()->setPen( TQPen(TQPen::NoPen) ); itcol.current()->setPen( TQPen(TQPen::NoPen) );
itcol.current()->setBrush( TQBrush( colcol, Qt::SolidPattern) ); itcol.current()->setBrush( TQBrush( colcol, TQt::SolidPattern) );
itcol.current()->setSize(mid ,h ); itcol.current()->setSize(mid ,h );
itcol.current()->move( left, 0 ); itcol.current()->move( left, 0 );
itcol.current()->show(); itcol.current()->show();
@ -340,7 +340,7 @@ void KDTimeTableWidget::computeVerticalGrid()
} else { } else {
temprect = new KDCanvasRectangle(this,0,Type_is_KDGanttGridItem); temprect = new KDCanvasRectangle(this,0,Type_is_KDGanttGridItem);
temprect->setPen( TQPen(TQPen::NoPen) ); temprect->setPen( TQPen(TQPen::NoPen) );
temprect->setBrush( TQBrush( colcol, Qt::SolidPattern) ); temprect->setBrush( TQBrush( colcol, TQt::SolidPattern) );
temprect->setSize(mid,h ); temprect->setSize(mid,h );
temprect->move( left, 0 ); temprect->move( left, 0 );
temprect->setZ(-20); temprect->setZ(-20);
@ -386,7 +386,7 @@ void KDTimeTableWidget::computeVerticalGrid()
itcol.current()->setPoints(i+mid,0,mid,h); itcol.current()->setPoints(i+mid,0,mid,h);
*/ */
itcol.current()->setPen( TQPen(TQPen::NoPen) ); itcol.current()->setPen( TQPen(TQPen::NoPen) );
itcol.current()->setBrush( TQBrush( colcol, Qt::SolidPattern) ); itcol.current()->setBrush( TQBrush( colcol, TQt::SolidPattern) );
itcol.current()->setSize(mid ,h ); itcol.current()->setSize(mid ,h );
itcol.current()->move( left, 0 ); itcol.current()->move( left, 0 );
itcol.current()->show(); itcol.current()->show();
@ -394,7 +394,7 @@ void KDTimeTableWidget::computeVerticalGrid()
} else { } else {
temprect = new KDCanvasRectangle(this,0,Type_is_KDGanttGridItem); temprect = new KDCanvasRectangle(this,0,Type_is_KDGanttGridItem);
temprect->setPen( TQPen(TQPen::NoPen) ); temprect->setPen( TQPen(TQPen::NoPen) );
temprect->setBrush( TQBrush( colcol, Qt::SolidPattern) ); temprect->setBrush( TQBrush( colcol, TQt::SolidPattern) );
temprect->setSize(mid ,h ); temprect->setSize(mid ,h );
temprect->move( left, 0 ); temprect->move( left, 0 );
temprect->setZ(-20); temprect->setZ(-20);
@ -2447,16 +2447,16 @@ void KDTimeHeaderWidget::mousePressEvent ( TQMouseEvent * e )
{ {
mouseDown = false; mouseDown = false;
switch ( e->button() ) { switch ( e->button() ) {
case Qt::LeftButton: case TQt::LeftButton:
mouseDown = true; mouseDown = true;
beginMouseDown = e->pos().x(); beginMouseDown = e->pos().x();
endMouseDown = e->pos().x(); endMouseDown = e->pos().x();
break; break;
case Qt::RightButton: case TQt::RightButton:
if (flagShowPopupMenu) if (flagShowPopupMenu)
myPopupMenu->popup(e->globalPos()); myPopupMenu->popup(e->globalPos());
break; break;
case Qt::MidButton: case TQt::MidButton:
break; break;
default: default:
break; break;
@ -2539,7 +2539,7 @@ void KDTimeHeaderWidget::mouseMoveEvent ( TQMouseEvent * e )
***************************************************************** */ ***************************************************************** */
KDLegendWidget:: KDLegendWidget( TQWidget* parent, KDLegendWidget:: KDLegendWidget( TQWidget* parent,
KDGanttMinimizeSplitter* legendParent ) : KDGanttMinimizeSplitter* legendParent ) :
KDGanttSemiSizingControl ( KDGanttSemiSizingControl::Before, Qt::Vertical, KDGanttSemiSizingControl ( KDGanttSemiSizingControl::Before, TQt::Vertical,
parent) parent)
{ {
myLegendParent = legendParent; myLegendParent = legendParent;
@ -2645,9 +2645,9 @@ void KDLegendWidget::clearLegend ( )
{ {
if ( myLegend ) delete myLegend; if ( myLegend ) delete myLegend;
if ( dock ) if ( dock )
myLegend = new TQGroupBox( 1, Qt::Horizontal, scroll->viewport() ); myLegend = new TQGroupBox( 1, TQt::Horizontal, scroll->viewport() );
else else
myLegend = new TQGroupBox( 1, Qt::Horizontal, i18n( "Legend" ), scroll->viewport() ); myLegend = new TQGroupBox( 1, TQt::Horizontal, i18n( "Legend" ), scroll->viewport() );
myLegend->setBackgroundColor( TQt::white ); myLegend->setBackgroundColor( TQt::white );
myLegend->setFont( font() ); myLegend->setFont( font() );
scroll->addChild( myLegend ); scroll->addChild( myLegend );
@ -3516,7 +3516,7 @@ void KDGanttCanvasView::contentsMousePressEvent ( TQMouseEvent * e )
currentItem = 0; currentItem = 0;
movingItem = 0; movingItem = 0;
mouseDown = true; mouseDown = true;
if (e->button() == Qt::RightButton && mySignalSender->editable()) { if (e->button() == TQt::RightButton && mySignalSender->editable()) {
lastClickedItem = (KDGanttViewItem*) mySignalSender->myListView->itemAt( TQPoint(2,e->pos().y())); lastClickedItem = (KDGanttViewItem*) mySignalSender->myListView->itemAt( TQPoint(2,e->pos().y()));
if ( lastClickedItem ) { if ( lastClickedItem ) {
if ( lastClickedItem->displaySubitemsAsGroup() && ! lastClickedItem->isOpen() ) { if ( lastClickedItem->displaySubitemsAsGroup() && ! lastClickedItem->isOpen() ) {
@ -3537,7 +3537,7 @@ void KDGanttCanvasView::contentsMousePressEvent ( TQMouseEvent * e )
TQCanvasItemList::Iterator it; TQCanvasItemList::Iterator it;
for ( it = il.begin(); it != il.end(); ++it ) { for ( it = il.begin(); it != il.end(); ++it ) {
switch ( e->button() ) { switch ( e->button() ) {
case Qt::LeftButton: case TQt::LeftButton:
switch (getType(*it)) { switch (getType(*it)) {
case Type_is_KDGanttViewItem: case Type_is_KDGanttViewItem:
currentItem = getItem(*it); currentItem = getItem(*it);
@ -3590,7 +3590,7 @@ void KDGanttCanvasView::contentsMousePressEvent ( TQMouseEvent * e )
break; break;
} }
break; break;
case Qt::RightButton: case TQt::RightButton:
switch (getType(*it)) { switch (getType(*it)) {
case Type_is_KDGanttViewItem: case Type_is_KDGanttViewItem:
currentItem = getItem(*it); currentItem = getItem(*it);
@ -3602,7 +3602,7 @@ void KDGanttCanvasView::contentsMousePressEvent ( TQMouseEvent * e )
break; break;
} }
break; break;
case Qt::MidButton: case TQt::MidButton:
switch (getType(*it)) { switch (getType(*it)) {
case Type_is_KDGanttViewItem: case Type_is_KDGanttViewItem:
currentItem = getItem(*it); currentItem = getItem(*it);
@ -3618,10 +3618,10 @@ void KDGanttCanvasView::contentsMousePressEvent ( TQMouseEvent * e )
break; break;
} }
} }
if (e->button() == Qt::RightButton ) { if (e->button() == TQt::RightButton ) {
mySignalSender->gvContextMenuRequested( currentItem, e->globalPos() ); mySignalSender->gvContextMenuRequested( currentItem, e->globalPos() );
} }
if (autoScrollEnabled && e->button() == Qt::LeftButton) { if (autoScrollEnabled && e->button() == TQt::LeftButton) {
myScrollTimer->start(50); myScrollTimer->start(50);
} }
} }
@ -3643,7 +3643,7 @@ void KDGanttCanvasView::contentsMouseReleaseEvent ( TQMouseEvent * e )
// if ( currentLink || currentItem ) // if ( currentLink || currentItem )
{ {
switch ( e->button() ) { switch ( e->button() ) {
case Qt::LeftButton: case TQt::LeftButton:
myScrollTimer->stop(); myScrollTimer->stop();
{ {
mySignalSender->itemLeftClicked( currentItem ); mySignalSender->itemLeftClicked( currentItem );
@ -3675,7 +3675,7 @@ void KDGanttCanvasView::contentsMouseReleaseEvent ( TQMouseEvent * e )
movingGVItem = 0; movingGVItem = 0;
} }
break; break;
case Qt::RightButton: case TQt::RightButton:
{ {
mySignalSender->itemRightClicked( currentItem ); mySignalSender->itemRightClicked( currentItem );
mySignalSender->gvItemRightClicked( currentItem ); mySignalSender->gvItemRightClicked( currentItem );
@ -3684,7 +3684,7 @@ void KDGanttCanvasView::contentsMouseReleaseEvent ( TQMouseEvent * e )
if ( currentLink ) if ( currentLink )
mySignalSender->taskLinkRightClicked( currentLink ); mySignalSender->taskLinkRightClicked( currentLink );
break; break;
case Qt::MidButton: case TQt::MidButton:
{ {
mySignalSender->itemMidClicked( currentItem ); mySignalSender->itemMidClicked( currentItem );
mySignalSender->gvItemMidClicked( currentItem ); mySignalSender->gvItemMidClicked( currentItem );
@ -3713,7 +3713,7 @@ void KDGanttCanvasView::contentsMouseDoubleClickEvent ( TQMouseEvent * e )
{ {
TQCanvasItemList il = canvas() ->collisions ( e->pos() ); TQCanvasItemList il = canvas() ->collisions ( e->pos() );
if ( il.isEmpty() && e->button() == Qt::LeftButton ) { if ( il.isEmpty() && e->button() == TQt::LeftButton ) {
//not directly sending a signal here (encapsulation and whatnot) //not directly sending a signal here (encapsulation and whatnot)
mySignalSender->emptySpaceDoubleClicked(e); mySignalSender->emptySpaceDoubleClicked(e);
return; return;
@ -3722,7 +3722,7 @@ void KDGanttCanvasView::contentsMouseDoubleClickEvent ( TQMouseEvent * e )
TQCanvasItemList::Iterator it; TQCanvasItemList::Iterator it;
for ( it = il.begin(); it != il.end(); ++it ) { for ( it = il.begin(); it != il.end(); ++it ) {
switch ( e->button() ) { switch ( e->button() ) {
case Qt::LeftButton: case TQt::LeftButton:
switch (getType(*it)) { switch (getType(*it)) {
case Type_is_KDGanttViewItem: case Type_is_KDGanttViewItem:
if ( getItem(*it)->enabled() ) if ( getItem(*it)->enabled() )
@ -3739,7 +3739,7 @@ void KDGanttCanvasView::contentsMouseDoubleClickEvent ( TQMouseEvent * e )
} }
break; break;
/* /*
case Qt::RightButton: case TQt::RightButton:
switch (getType(*it)) { switch (getType(*it)) {
case Type_is_KDGanttViewItem: case Type_is_KDGanttViewItem:
mySignalSender->itemRightClicked(getItem(*it)); mySignalSender->itemRightClicked(getItem(*it));
@ -3751,7 +3751,7 @@ void KDGanttCanvasView::contentsMouseDoubleClickEvent ( TQMouseEvent * e )
break; break;
} }
break; break;
case Qt::MidButton: case TQt::MidButton:
switch (getType(*it)) { switch (getType(*it)) {
case Type_is_KDGanttViewItem: case Type_is_KDGanttViewItem:
mySignalSender->itemMidClicked(getItem(*it)); mySignalSender->itemMidClicked(getItem(*it));
@ -4025,7 +4025,7 @@ void KDIntervalColorRectangle::layout( KDTimeHeaderWidget* timeHeader, int heigh
if ( right == left ) if ( right == left )
++right; ++right;
setPen( TQPen(TQPen::NoPen) ); setPen( TQPen(TQPen::NoPen) );
setBrush( TQBrush(mColor, Qt::SolidPattern) ); setBrush( TQBrush(mColor, TQt::SolidPattern) );
setSize( right - left, height ); setSize( right - left, height );
move( left, 0 ); move( left, 0 );
show(); show();

@ -268,7 +268,7 @@ void KDGanttViewTaskLink::showMe( bool visible )
TQPen p; TQPen p;
TQBrush b; TQBrush b;
p.setWidth(wid); p.setWidth(wid);
b.setStyle(Qt::SolidPattern); b.setStyle(TQt::SolidPattern);
if (ishighlighted) { if (ishighlighted) {
b.setColor(myColorHL); b.setColor(myColorHL);
p.setColor(myColorHL); p.setColor(myColorHL);
@ -333,7 +333,7 @@ void KDGanttViewTaskLink::showMeType( bool visible )
TQPen p; TQPen p;
TQBrush b; TQBrush b;
p.setWidth(wid); p.setWidth(wid);
b.setStyle(Qt::SolidPattern); b.setStyle(TQt::SolidPattern);
if (ishighlighted) { if (ishighlighted) {
b.setColor(myColorHL); b.setColor(myColorHL);
p.setColor(myColorHL); p.setColor(myColorHL);

@ -266,20 +266,20 @@ void createTimeNode( TQDomDocument& doc, TQDomNode& parent,
} }
TQString penStyleToString( Qt::PenStyle style ) TQString penStyleToString( TQt::PenStyle style )
{ {
switch( style ) { switch( style ) {
case Qt::NoPen: case TQt::NoPen:
return "NoPen"; return "NoPen";
case Qt::SolidLine: case TQt::SolidLine:
return "SolidLine"; return "SolidLine";
case Qt::DashLine: case TQt::DashLine:
return "DashLine"; return "DashLine";
case Qt::DotLine: case TQt::DotLine:
return "DotLine"; return "DotLine";
case Qt::DashDotLine: case TQt::DashDotLine:
return "DashDotLine"; return "DashDotLine";
case Qt::DashDotDotLine: case TQt::DashDotDotLine:
return "DashDotDotLine"; return "DashDotDotLine";
default: // should not happen default: // should not happen
return "SolidLine"; return "SolidLine";
@ -288,39 +288,39 @@ TQString penStyleToString( Qt::PenStyle style )
TQString brushStyleToString( Qt::BrushStyle style ) TQString brushStyleToString( TQt::BrushStyle style )
{ {
// PENDING(kalle) Support custom patterns // PENDING(kalle) Support custom patterns
switch( style ) { switch( style ) {
case Qt::NoBrush: case TQt::NoBrush:
return "NoBrush"; return "NoBrush";
case Qt::SolidPattern: case TQt::SolidPattern:
return "SolidPattern"; return "SolidPattern";
case Qt::Dense1Pattern: case TQt::Dense1Pattern:
return "Dense1Pattern"; return "Dense1Pattern";
case Qt::Dense2Pattern: case TQt::Dense2Pattern:
return "Dense2Pattern"; return "Dense2Pattern";
case Qt::Dense3Pattern: case TQt::Dense3Pattern:
return "Dense3Pattern"; return "Dense3Pattern";
case Qt::Dense4Pattern: case TQt::Dense4Pattern:
return "Dense4Pattern"; return "Dense4Pattern";
case Qt::Dense5Pattern: case TQt::Dense5Pattern:
return "Dense5Pattern"; return "Dense5Pattern";
case Qt::Dense6Pattern: case TQt::Dense6Pattern:
return "Dense6Pattern"; return "Dense6Pattern";
case Qt::Dense7Pattern: case TQt::Dense7Pattern:
return "Dense7Pattern"; return "Dense7Pattern";
case Qt::HorPattern: case TQt::HorPattern:
return "HorPattern"; return "HorPattern";
case Qt::VerPattern: case TQt::VerPattern:
return "VerPattern"; return "VerPattern";
case Qt::CrossPattern: case TQt::CrossPattern:
return "CrossPattern"; return "CrossPattern";
case Qt::BDiagPattern: case TQt::BDiagPattern:
return "BDiagPattern"; return "BDiagPattern";
case Qt::FDiagPattern: case TQt::FDiagPattern:
return "FDiagPattern"; return "FDiagPattern";
case Qt::DiagCrossPattern: case TQt::DiagCrossPattern:
return "DiagCrossPattern"; return "DiagCrossPattern";
default: // should not happen (but can for a custom pattern) default: // should not happen (but can for a custom pattern)
return "SolidPattern"; return "SolidPattern";
@ -399,7 +399,7 @@ bool readBrushNode( const TQDomElement& element, TQBrush& brush )
{ {
bool ok = true; bool ok = true;
TQColor tempColor; TQColor tempColor;
Qt::BrushStyle tempStyle; TQt::BrushStyle tempStyle;
TQPixmap tempPixmap; TQPixmap tempPixmap;
TQDomNode node = element.firstChild(); TQDomNode node = element.firstChild();
while( !node.isNull() ) { while( !node.isNull() ) {
@ -506,7 +506,7 @@ bool readPenNode( const TQDomElement& element, TQPen& pen )
bool ok = true; bool ok = true;
int tempWidth; int tempWidth;
TQColor tempColor; TQColor tempColor;
Qt::PenStyle tempStyle; TQt::PenStyle tempStyle;
TQDomNode node = element.firstChild(); TQDomNode node = element.firstChild();
while( !node.isNull() ) { while( !node.isNull() ) {
TQDomElement element = node.toElement(); TQDomElement element = node.toElement();
@ -705,60 +705,60 @@ bool readTimeNode( const TQDomElement& element, TQTime& value )
Qt::PenStyle stringToPenStyle( const TQString& style ) TQt::PenStyle stringToPenStyle( const TQString& style )
{ {
if( style == "NoPen" ) if( style == "NoPen" )
return Qt::NoPen; return TQt::NoPen;
else if( style == "SolidLine" ) else if( style == "SolidLine" )
return Qt::SolidLine; return TQt::SolidLine;
else if( style == "DashLine" ) else if( style == "DashLine" )
return Qt::DashLine; return TQt::DashLine;
else if( style == "DotLine" ) else if( style == "DotLine" )
return Qt::DotLine; return TQt::DotLine;
else if( style == "DashDotLine" ) else if( style == "DashDotLine" )
return Qt::DashDotLine; return TQt::DashDotLine;
else if( style == "DashDotDotLine" ) else if( style == "DashDotDotLine" )
return Qt::DashDotDotLine; return TQt::DashDotDotLine;
else // should not happen else // should not happen
return Qt::SolidLine; return TQt::SolidLine;
} }
Qt::BrushStyle stringToBrushStyle( const TQString& style ) TQt::BrushStyle stringToBrushStyle( const TQString& style )
{ {
// PENDING(kalle) Support custom patterns // PENDING(kalle) Support custom patterns
if( style == "NoBrush" ) if( style == "NoBrush" )
return Qt::NoBrush; return TQt::NoBrush;
else if( style == "SolidPattern" ) else if( style == "SolidPattern" )
return Qt::SolidPattern; return TQt::SolidPattern;
else if( style == "Dense1Pattern" ) else if( style == "Dense1Pattern" )
return Qt::Dense1Pattern; return TQt::Dense1Pattern;
else if( style == "Dense2Pattern" ) else if( style == "Dense2Pattern" )
return Qt::Dense2Pattern; return TQt::Dense2Pattern;
else if( style == "Dense3Pattern" ) else if( style == "Dense3Pattern" )
return Qt::Dense3Pattern; return TQt::Dense3Pattern;
else if( style == "Dense4Pattern" ) else if( style == "Dense4Pattern" )
return Qt::Dense4Pattern; return TQt::Dense4Pattern;
else if( style == "Dense5Pattern" ) else if( style == "Dense5Pattern" )
return Qt::Dense5Pattern; return TQt::Dense5Pattern;
else if( style == "Dense6Pattern" ) else if( style == "Dense6Pattern" )
return Qt::Dense6Pattern; return TQt::Dense6Pattern;
else if( style == "Dense7Pattern" ) else if( style == "Dense7Pattern" )
return Qt::Dense7Pattern; return TQt::Dense7Pattern;
else if( style == "HorPattern" ) else if( style == "HorPattern" )
return Qt::HorPattern; return TQt::HorPattern;
else if( style == "VerPattern" ) else if( style == "VerPattern" )
return Qt::VerPattern; return TQt::VerPattern;
else if( style == "CrossPattern" ) else if( style == "CrossPattern" )
return Qt::CrossPattern; return TQt::CrossPattern;
else if( style == "BDiagPattern" ) else if( style == "BDiagPattern" )
return Qt::BDiagPattern; return TQt::BDiagPattern;
else if( style == "FDiagPattern" ) else if( style == "FDiagPattern" )
return Qt::FDiagPattern; return TQt::FDiagPattern;
else if( style == "DiagCrossPattern" ) else if( style == "DiagCrossPattern" )
return Qt::DiagCrossPattern; return TQt::DiagCrossPattern;
else // should not happen (but can with custom patterns) else // should not happen (but can with custom patterns)
return Qt::SolidPattern; return TQt::SolidPattern;
} }
} }

@ -45,10 +45,10 @@
#include <tqdatetime.h> #include <tqdatetime.h>
namespace KDGanttXML { namespace KDGanttXML {
TQString penStyleToString( Qt::PenStyle style ); TQString penStyleToString( TQt::PenStyle style );
Qt::PenStyle stringToPenStyle( const TQString& style ); TQt::PenStyle stringToPenStyle( const TQString& style );
TQString brushStyleToString( Qt::BrushStyle style ); TQString brushStyleToString( TQt::BrushStyle style );
Qt::BrushStyle stringToBrushStyle( const TQString& style ); TQt::BrushStyle stringToBrushStyle( const TQString& style );
void createBoolNode( TQDomDocument& doc, TQDomNode& parent, void createBoolNode( TQDomDocument& doc, TQDomNode& parent,
const TQString& elementName, bool value ); const TQString& elementName, bool value );

@ -43,7 +43,7 @@ xQGanttBarViewPort::mousePressEvent(TQMouseEvent* e)
_itemTextEdit->hide(); _itemTextEdit->hide();
// right mousebutton & control -> popup menu // right mousebutton & control -> popup menu
if(e->button() == Qt::RightButton && e->state() == ControlButton ) { if(e->button() == TQt::RightButton && e->state() == ControlButton ) {
_menu->popup(e->globalPos()); _menu->popup(e->globalPos());
return; return;
} }
@ -64,7 +64,7 @@ xQGanttBarViewPort::mousePressEvent(TQMouseEvent* e)
/* /*
* edit text * edit text
*/ */
if(e->button() == Qt::MidButton && _mode == Select) { if(e->button() == TQt::MidButton && _mode == Select) {
xTQTaskPosition* tp = _gItemList.find(_currentItem); xTQTaskPosition* tp = _gItemList.find(_currentItem);
TQPainter p(this); TQPainter p(this);
@ -91,7 +91,7 @@ xQGanttBarViewPort::mousePressEvent(TQMouseEvent* e)
/* /*
* open/close item, move start, end, item * open/close item, move start, end, item
*/ */
if(e->button() == Qt::LeftButton && _mode == Select) { if(e->button() == TQt::LeftButton && _mode == Select) {
_timediff = 0; _timediff = 0;
@ -210,21 +210,21 @@ xQGanttBarViewPort::mouseReleaseEvent(TQMouseEvent* e)
if(!_Mousemoved) { if(!_Mousemoved) {
if(e->button() == Qt::LeftButton) if(e->button() == TQt::LeftButton)
zoom(1.4, e->x(), e->y() ); zoom(1.4, e->x(), e->y() );
if(e->button() == Qt::RightButton) if(e->button() == TQt::RightButton)
zoom(0.7, e->x(), e->y() ); zoom(0.7, e->x(), e->y() );
if(e->button() == Qt::MidButton) if(e->button() == TQt::MidButton)
zoomAll(); zoomAll();
} }
else { else {
if(_currentMButton == Qt::LeftButton) { if(_currentMButton == TQt::LeftButton) {
TQPainter p(this); TQPainter p(this);
TQPen pen(DashLine); TQPen pen(DashLine);
@ -284,7 +284,7 @@ xQGanttBarViewPort::mouseMoveEvent(TQMouseEvent* e)
case Select: { case Select: {
if(_currentMButton == Qt::LeftButton && _currentItem) { if(_currentMButton == TQt::LeftButton && _currentItem) {
TQPainter p(this); TQPainter p(this);
p.setRasterOp(XorROP); p.setRasterOp(XorROP);
@ -442,7 +442,7 @@ xQGanttBarViewPort::mouseMoveEvent(TQMouseEvent* e)
case Zoom: { case Zoom: {
if(_currentMButton == Qt::LeftButton) { if(_currentMButton == TQt::LeftButton) {
static TQString strpos; static TQString strpos;

@ -114,7 +114,7 @@ protected:
void mousePressEvent(TQMouseEvent* e) { void mousePressEvent(TQMouseEvent* e) {
if(e->button() == Qt::RightButton && e->state() == ControlButton ) { if(e->button() == TQt::RightButton && e->state() == ControlButton ) {
_menu->popup(e->globalPos()); _menu->popup(e->globalPos());
return; return;
} }

@ -357,7 +357,7 @@ void AccountDialog::makeLocalAccountPage()
topLayout->addWidget( choose, 3, 2 ); topLayout->addWidget( choose, 3, 2 );
TQButtonGroup *group = new TQButtonGroup(i18n("Locking Method"), page ); TQButtonGroup *group = new TQButtonGroup(i18n("Locking Method"), page );
group->setColumnLayout(0, Qt::Horizontal); group->setColumnLayout(0, TQt::Horizontal);
group->layout()->setSpacing( 0 ); group->layout()->setSpacing( 0 );
group->layout()->setMargin( 0 ); group->layout()->setMargin( 0 );
TQGridLayout *groupLayout = new TQGridLayout( group->layout() ); TQGridLayout *groupLayout = new TQGridLayout( group->layout() );
@ -778,7 +778,7 @@ void AccountDialog::makePopAccountPage()
vlay->addSpacing( KDialog::spacingHint() ); vlay->addSpacing( KDialog::spacingHint() );
mPop.encryptionGroup = new TQButtonGroup( 1, Qt::Horizontal, mPop.encryptionGroup = new TQButtonGroup( 1, TQt::Horizontal,
i18n("Encryption"), page2 ); i18n("Encryption"), page2 );
mPop.encryptionNone = mPop.encryptionNone =
new TQRadioButton( i18n("&None"), mPop.encryptionGroup ); new TQRadioButton( i18n("&None"), mPop.encryptionGroup );
@ -792,7 +792,7 @@ void AccountDialog::makePopAccountPage()
TQT_SLOT(slotPopEncryptionChanged(int))); TQT_SLOT(slotPopEncryptionChanged(int)));
vlay->addWidget( mPop.encryptionGroup ); vlay->addWidget( mPop.encryptionGroup );
mPop.authGroup = new TQButtonGroup( 1, Qt::Horizontal, mPop.authGroup = new TQButtonGroup( 1, TQt::Horizontal,
i18n("Authentication Method"), page2 ); i18n("Authentication Method"), page2 );
mPop.authUser = new TQRadioButton( i18n("Clear te&xt") , mPop.authGroup, mPop.authUser = new TQRadioButton( i18n("Clear te&xt") , mPop.authGroup,
"auth clear text" ); "auth clear text" );
@ -1093,7 +1093,7 @@ void AccountDialog::makeImapAccountPage( bool connected )
vlay->addSpacing( KDialog::spacingHint() ); vlay->addSpacing( KDialog::spacingHint() );
mImap.encryptionGroup = new TQButtonGroup( 1, Qt::Horizontal, mImap.encryptionGroup = new TQButtonGroup( 1, TQt::Horizontal,
i18n("Encryption"), page2 ); i18n("Encryption"), page2 );
mImap.encryptionNone = mImap.encryptionNone =
new TQRadioButton( i18n("&None"), mImap.encryptionGroup ); new TQRadioButton( i18n("&None"), mImap.encryptionGroup );
@ -1107,7 +1107,7 @@ void AccountDialog::makeImapAccountPage( bool connected )
TQT_SLOT(slotImapEncryptionChanged(int))); TQT_SLOT(slotImapEncryptionChanged(int)));
vlay->addWidget( mImap.encryptionGroup ); vlay->addWidget( mImap.encryptionGroup );
mImap.authGroup = new TQButtonGroup( 1, Qt::Horizontal, mImap.authGroup = new TQButtonGroup( 1, TQt::Horizontal,
i18n("Authentication Method"), page2 ); i18n("Authentication Method"), page2 );
mImap.authUser = new TQRadioButton( i18n("Clear te&xt"), mImap.authGroup ); mImap.authUser = new TQRadioButton( i18n("Clear te&xt"), mImap.authGroup );
mImap.authLogin = new TQRadioButton( i18n("Please translate this " mImap.authLogin = new TQRadioButton( i18n("Please translate this "

@ -46,7 +46,7 @@ static TQString standardArchivePath( const TQString &folderName )
} }
return currentPath + return currentPath +
i18n( "Start of the filename for a mail archive file" , "Archive" ) + "_" + folderName + i18n( "Start of the filename for a mail archive file" , "Archive" ) + "_" + folderName +
"_" + TQDate::currentDate().toString( Qt::ISODate ) + ".tar.bz2"; "_" + TQDate::currentDate().toString( TQt::ISODate ) + ".tar.bz2";
} }
ArchiveFolderDialog::ArchiveFolderDialog( TQWidget *parent ) ArchiveFolderDialog::ArchiveFolderDialog( TQWidget *parent )

@ -649,7 +649,7 @@ AccountsPageSendingTab::AccountsPageSendingTab( TQWidget * parent, const char *
btn_vlay->addStretch( 1 ); // spacer btn_vlay->addStretch( 1 ); // spacer
// "Common options" groupbox: // "Common options" groupbox:
group = new TQGroupBox( 0, Qt::Vertical, group = new TQGroupBox( 0, TQt::Vertical,
i18n("Common Options"), this ); i18n("Common Options"), this );
vlay->addWidget(group); vlay->addWidget(group);

@ -645,7 +645,7 @@ namespace KMail {
// kdDebug() << "FancyHeaderStyle::format() local zone offset (in minutes): " << lzone << endl; // kdDebug() << "FancyHeaderStyle::format() local zone offset (in minutes): " << lzone << endl;
TQTime currTime = TQTime::currentTime( Qt::UTC ); TQTime currTime = TQTime::currentTime( TQt::UTC );
// kdDebug() << "FancyHeaderStyle::format() current time: " << currTime << endl; // kdDebug() << "FancyHeaderStyle::format() current time: " << currTime << endl;

@ -195,7 +195,7 @@ KMComposeWin::KMComposeWin( KMMessage *aMsg, uint id )
setInstance( kmkernel->xmlGuiInstance() ); setInstance( kmkernel->xmlGuiInstance() );
mMainWidget = new TQWidget(this); mMainWidget = new TQWidget(this);
// splitter between the headers area and the actual editor // splitter between the headers area and the actual editor
mHeadersToEditorSplitter = new TQSplitter( Qt::Vertical, mMainWidget, "mHeadersToEditorSplitter" ); mHeadersToEditorSplitter = new TQSplitter( TQt::Vertical, mMainWidget, "mHeadersToEditorSplitter" );
mHeadersToEditorSplitter->setChildrenCollapsible( false ); mHeadersToEditorSplitter->setChildrenCollapsible( false );
mHeadersArea = new TQWidget( mHeadersToEditorSplitter ); mHeadersArea = new TQWidget( mHeadersToEditorSplitter );
mHeadersArea->setSizePolicy( mHeadersToEditorSplitter->sizePolicy().horData(), TQSizePolicy::Maximum ); mHeadersArea->setSizePolicy( mHeadersToEditorSplitter->sizePolicy().horData(), TQSizePolicy::Maximum );
@ -330,9 +330,9 @@ KMComposeWin::KMComposeWin( KMMessage *aMsg, uint id )
mFixedFontAction = 0; mFixedFontAction = 0;
mTempDir = 0; mTempDir = 0;
// the attachment view is separated from the editor by a splitter // the attachment view is separated from the editor by a splitter
mSplitter = new TQSplitter( Qt::Vertical, mHeadersToEditorSplitter, "mSplitter" ); mSplitter = new TQSplitter( TQt::Vertical, mHeadersToEditorSplitter, "mSplitter" );
mSplitter->setChildrenCollapsible( false ); mSplitter->setChildrenCollapsible( false );
mSnippetSplitter = new TQSplitter( Qt::Horizontal, mSplitter, "mSnippetSplitter"); mSnippetSplitter = new TQSplitter( TQt::Horizontal, mSplitter, "mSnippetSplitter");
mSnippetSplitter->setChildrenCollapsible( false ); mSnippetSplitter->setChildrenCollapsible( false );
TQWidget *editorAndCryptoStateIndicators = new TQWidget( mSnippetSplitter ); TQWidget *editorAndCryptoStateIndicators = new TQWidget( mSnippetSplitter );

@ -708,7 +708,7 @@ void KMEdit::paste()
// Roll our own internal flag. // Roll our own internal flag.
void KMEdit::contentsMouseReleaseEvent( TQMouseEvent * e ) void KMEdit::contentsMouseReleaseEvent( TQMouseEvent * e )
{ {
if( e->button() != Qt::MidButton ) if( e->button() != TQt::MidButton )
return KEdit::contentsMouseReleaseEvent( e ); return KEdit::contentsMouseReleaseEvent( e );
mPasteMode = TQClipboard::Selection; mPasteMode = TQClipboard::Selection;
KEdit::contentsMouseReleaseEvent( e ); KEdit::contentsMouseReleaseEvent( e );
@ -718,7 +718,7 @@ void KMEdit::contentsMouseReleaseEvent( TQMouseEvent * e )
void KMEdit::contentsMouseDoubleClickEvent( TQMouseEvent *e ) void KMEdit::contentsMouseDoubleClickEvent( TQMouseEvent *e )
{ {
bool handled = false; bool handled = false;
if ( e->button() == Qt::LeftButton ) { if ( e->button() == TQt::LeftButton ) {
// Get the cursor position for the place where the user clicked to // Get the cursor position for the place where the user clicked to
int paragraphPos; int paragraphPos;

@ -184,11 +184,11 @@ KMFilterDlg::KMFilterDlg(TQWidget* parent, const char* name, bool popFilter, boo
vbl->addWidget( mGlobalsBox, 0, TQt::AlignTop ); vbl->addWidget( mGlobalsBox, 0, TQt::AlignTop );
} }
else { else {
TQGroupBox *agb = new TQGroupBox( 1 /*column*/, Qt::Vertical, i18n("Filter Actions"), page1 ); TQGroupBox *agb = new TQGroupBox( 1 /*column*/, TQt::Vertical, i18n("Filter Actions"), page1 );
mActionLister = new KMFilterActionWidgetLister( agb ); mActionLister = new KMFilterActionWidgetLister( agb );
vbl->addWidget( agb, 0, TQt::AlignTop ); vbl->addWidget( agb, 0, TQt::AlignTop );
mAdvOptsGroup = new TQGroupBox ( 1 /*columns*/, Qt::Vertical, mAdvOptsGroup = new TQGroupBox ( 1 /*columns*/, TQt::Vertical,
i18n("Advanced Options"), page2); i18n("Advanced Options"), page2);
{ {
TQWidget *adv_w = new TQWidget( mAdvOptsGroup ); TQWidget *adv_w = new TQWidget( mAdvOptsGroup );
@ -577,7 +577,7 @@ void KMFilterDlg::slotUpdateAccountList()
//============================================================================= //=============================================================================
KMFilterListBox::KMFilterListBox( const TQString & title, TQWidget *parent, const char* name, bool popFilter ) KMFilterListBox::KMFilterListBox( const TQString & title, TQWidget *parent, const char* name, bool popFilter )
: TQGroupBox( 1, Qt::Horizontal, title, parent, name ), : TQGroupBox( 1, TQt::Horizontal, title, parent, name ),
bPopFilter(popFilter) bPopFilter(popFilter)
{ {
mFilterList.setAutoDelete( true ); mFilterList.setAutoDelete( true );

@ -1230,7 +1230,7 @@ void KMFolderTree::contentsMouseReleaseEvent(TQMouseEvent* me)
} }
// react on middle-button only // react on middle-button only
if (btn != Qt::MidButton) { if (btn != TQt::MidButton) {
KFolderTree::contentsMouseReleaseEvent(me); KFolderTree::contentsMouseReleaseEvent(me);
return; return;
} }
@ -1753,7 +1753,7 @@ void KMFolderTree::slotToggleSizeColumn()
bool KMFolderTree::eventFilter( TQObject *o, TQEvent *e ) bool KMFolderTree::eventFilter( TQObject *o, TQEvent *e )
{ {
if ( e->type() == TQEvent::MouseButtonPress && if ( e->type() == TQEvent::MouseButtonPress &&
TQT_TQMOUSEEVENT(e)->button() == Qt::RightButton && TQT_TQMOUSEEVENT(e)->button() == TQt::RightButton &&
o->isA("TQHeader") ) o->isA("TQHeader") )
{ {
mPopup->popup( TQT_TQMOUSEEVENT(e)->globalPos() ); mPopup->popup( TQT_TQMOUSEEVENT(e)->globalPos() );

@ -235,7 +235,7 @@ KMHeaders::~KMHeaders ()
bool KMHeaders::eventFilter ( TQObject *o, TQEvent *e ) bool KMHeaders::eventFilter ( TQObject *o, TQEvent *e )
{ {
if ( e->type() == TQEvent::MouseButtonPress && if ( e->type() == TQEvent::MouseButtonPress &&
TQT_TQMOUSEEVENT(e)->button() == Qt::RightButton && TQT_TQMOUSEEVENT(e)->button() == TQt::RightButton &&
o->isA("TQHeader") ) o->isA("TQHeader") )
{ {
// if we currently only show one of either sender/receiver column // if we currently only show one of either sender/receiver column
@ -2332,12 +2332,12 @@ void KMHeaders::contentsMousePressEvent(TQMouseEvent* e)
if ( e->state() & ControlButton ) if ( e->state() & ControlButton )
setSelected( lvi, !wasSelected ); setSelected( lvi, !wasSelected );
if ((e->button() == Qt::LeftButton) ) if ((e->button() == TQt::LeftButton) )
mMousePressed = true; mMousePressed = true;
} }
// check if we are on a status column and toggle it // check if we are on a status column and toggle it
if ( lvi && e->button() == Qt::LeftButton && !( e->state() & (ShiftButton | ControlButton | AltButton | MetaButton) ) ) { if ( lvi && e->button() == TQt::LeftButton && !( e->state() & (ShiftButton | ControlButton | AltButton | MetaButton) ) ) {
bool flagsToggleable = GlobalSettings::self()->allowLocalFlags() || !(mFolder ? mFolder->isReadOnly() : true); bool flagsToggleable = GlobalSettings::self()->allowLocalFlags() || !(mFolder ? mFolder->isReadOnly() : true);
int section = header()->sectionAt( e->pos().x() ); int section = header()->sectionAt( e->pos().x() );
HeaderItem *item = static_cast<HeaderItem*>( lvi ); HeaderItem *item = static_cast<HeaderItem*>( lvi );
@ -2365,7 +2365,7 @@ void KMHeaders::contentsMousePressEvent(TQMouseEvent* e)
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void KMHeaders::contentsMouseReleaseEvent(TQMouseEvent* e) void KMHeaders::contentsMouseReleaseEvent(TQMouseEvent* e)
{ {
if (e->button() != Qt::RightButton) if (e->button() != TQt::RightButton)
TDEListView::contentsMouseReleaseEvent(e); TDEListView::contentsMouseReleaseEvent(e);
mMousePressed = false; mMousePressed = false;

@ -558,9 +558,9 @@ void KMMainWidget::createWidgets(void)
if ( mLongFolderList ) { if ( mLongFolderList ) {
// superior splitter: folder tree vs. rest // superior splitter: folder tree vs. rest
// inferior splitter: headers vs. message vs. mime tree // inferior splitter: headers vs. message vs. mime tree
mPanner1 = new TQSplitter( Qt::Horizontal, this, "panner 1" ); mPanner1 = new TQSplitter( TQt::Horizontal, this, "panner 1" );
mPanner1->setOpaqueResize( opaqueResize ); mPanner1->setOpaqueResize( opaqueResize );
Qt::Orientation orientation = mReaderWindowBelow ? Qt::Vertical : Qt::Horizontal; TQt::Orientation orientation = mReaderWindowBelow ? TQt::Vertical : TQt::Horizontal;
mPanner2 = new TQSplitter( orientation, mPanner1, "panner 2" ); mPanner2 = new TQSplitter( orientation, mPanner1, "panner 2" );
mPanner2->setOpaqueResize( opaqueResize ); mPanner2->setOpaqueResize( opaqueResize );
mPanner2->setChildrenCollapsible( false ); mPanner2->setChildrenCollapsible( false );
@ -569,10 +569,10 @@ void KMMainWidget::createWidgets(void)
} else /* !mLongFolderList */ { } else /* !mLongFolderList */ {
// superior splitter: ( folder tree + headers ) vs. message vs. mime // superior splitter: ( folder tree + headers ) vs. message vs. mime
// inferior splitter: folder tree vs. headers // inferior splitter: folder tree vs. headers
mPanner1 = new TQSplitter( Qt::Vertical, this, "panner 1" ); mPanner1 = new TQSplitter( TQt::Vertical, this, "panner 1" );
mPanner1->setOpaqueResize( opaqueResize ); mPanner1->setOpaqueResize( opaqueResize );
mPanner1->setChildrenCollapsible( false ); mPanner1->setChildrenCollapsible( false );
mPanner2 = new TQSplitter( Qt::Horizontal, mPanner1, "panner 2" ); mPanner2 = new TQSplitter( TQt::Horizontal, mPanner1, "panner 2" );
mPanner2->setOpaqueResize( opaqueResize ); mPanner2->setOpaqueResize( opaqueResize );
headerParent = mFolderViewParent = mPanner2; headerParent = mFolderViewParent = mPanner2;
mimeParent = messageParent = mPanner1; mimeParent = messageParent = mPanner1;
@ -676,7 +676,7 @@ void KMMainWidget::createWidgets(void)
action->plugAccel( actionCollection()->tdeaccel() ); action->plugAccel( actionCollection()->tdeaccel() );
// create list of folders // create list of folders
mFolderViewSplitter = new TQSplitter( Qt::Vertical, mFolderViewParent ); mFolderViewSplitter = new TQSplitter( TQt::Vertical, mFolderViewParent );
mFolderViewSplitter->setOpaqueResize( TDEGlobalSettings::opaqueResize() ); mFolderViewSplitter->setOpaqueResize( TDEGlobalSettings::opaqueResize() );
mFavoriteFolderView = new KMail::FavoriteFolderView( this, mFolderViewSplitter ); mFavoriteFolderView = new KMail::FavoriteFolderView( this, mFolderViewSplitter );
if ( mFavoritesCheckMailAction ) if ( mFavoritesCheckMailAction )

@ -385,7 +385,7 @@ kdDebug(5006) << " Root node will NOT be replaced." << endl
void KMReaderWin::createWidgets() { void KMReaderWin::createWidgets() {
TQVBoxLayout * vlay = new TQVBoxLayout( this ); TQVBoxLayout * vlay = new TQVBoxLayout( this );
mSplitter = new TQSplitter( Qt::Vertical, this, "mSplitter" ); mSplitter = new TQSplitter( TQt::Vertical, this, "mSplitter" );
vlay->addWidget( mSplitter ); vlay->addWidget( mSplitter );
mMimePartTree = new KMMimePartTree( this, mSplitter, "mMimePartTree" ); mMimePartTree = new KMMimePartTree( this, mSplitter, "mMimePartTree" );
mBox = new TQHBox( mSplitter, "mBox" ); mBox = new TQHBox( mSplitter, "mBox" );
@ -1994,7 +1994,7 @@ void KMReaderWin::slotUrlOpen(const KURL &aUrl, const KParts::URLArgs &)
return; return;
kdWarning( 5006 ) << "KMReaderWin::slotOpenUrl(): Unhandled URL click!" << endl; kdWarning( 5006 ) << "KMReaderWin::slotOpenUrl(): Unhandled URL click!" << endl;
emit urlClicked( aUrl, Qt::LeftButton ); emit urlClicked( aUrl, TQt::LeftButton );
} }
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
@ -2755,13 +2755,13 @@ bool KMReaderWin::eventFilter( TQObject *, TQEvent *e )
{ {
if ( e->type() == TQEvent::MouseButtonPress ) { if ( e->type() == TQEvent::MouseButtonPress ) {
TQMouseEvent* me = TQT_TQMOUSEEVENT(e); TQMouseEvent* me = TQT_TQMOUSEEVENT(e);
if ( me->button() == Qt::LeftButton && ( me->state() & ShiftButton ) ) { if ( me->button() == TQt::LeftButton && ( me->state() & ShiftButton ) ) {
// special processing for shift+click // special processing for shift+click
URLHandlerManager::instance()->handleShiftClick( mHoveredUrl, this ); URLHandlerManager::instance()->handleShiftClick( mHoveredUrl, this );
return true; return true;
} }
if ( me->button() == Qt::LeftButton ) { if ( me->button() == TQt::LeftButton ) {
TQString imagePath; TQString imagePath;
const DOM::Node nodeUnderMouse = mViewer->nodeUnderMouse(); const DOM::Node nodeUnderMouse = mViewer->nodeUnderMouse();
@ -2801,7 +2801,7 @@ bool KMReaderWin::eventFilter( TQObject *, TQEvent *e )
// HACK: Send a mouse release event to the TDEHTMLView, as otherwise that will be missed in // HACK: Send a mouse release event to the TDEHTMLView, as otherwise that will be missed in
// case we started a drag. If the event is missed, the HTML view gets into a wrong // case we started a drag. If the event is missed, the HTML view gets into a wrong
// state, in which funny things like unsolicited drags start to happen. // state, in which funny things like unsolicited drags start to happen.
TQMouseEvent mouseEvent( TQEvent::MouseButtonRelease, me->pos(), Qt::NoButton, Qt::NoButton ); TQMouseEvent mouseEvent( TQEvent::MouseButtonRelease, me->pos(), TQt::NoButton, TQt::NoButton );
TQT_TQOBJECT( mViewer->view() )->eventFilter( mViewer->view()->viewport(), TQT_TQOBJECT( mViewer->view() )->eventFilter( mViewer->view()->viewport(),
&mouseEvent ); &mouseEvent );
return true; return true;

@ -391,14 +391,14 @@ void KMSearchRuleWidgetLister::regenerateRuleListFromWidgets()
//============================================================================= //=============================================================================
KMSearchPatternEdit::KMSearchPatternEdit(TQWidget *parent, const char *name, bool headersOnly, bool absoluteDates ) KMSearchPatternEdit::KMSearchPatternEdit(TQWidget *parent, const char *name, bool headersOnly, bool absoluteDates )
: TQGroupBox( 1/*columns*/, Qt::Horizontal, parent, name ) : TQGroupBox( 1/*columns*/, TQt::Horizontal, parent, name )
{ {
setTitle( i18n("Search Criteria") ); setTitle( i18n("Search Criteria") );
initLayout( headersOnly, absoluteDates ); initLayout( headersOnly, absoluteDates );
} }
KMSearchPatternEdit::KMSearchPatternEdit(const TQString & title, TQWidget *parent, const char *name, bool headersOnly, bool absoluteDates) KMSearchPatternEdit::KMSearchPatternEdit(const TQString & title, TQWidget *parent, const char *name, bool headersOnly, bool absoluteDates)
: TQGroupBox( 1/*column*/, Qt::Horizontal, title, parent, name ) : TQGroupBox( 1/*column*/, TQt::Horizontal, title, parent, name )
{ {
initLayout( headersOnly, absoluteDates ); initLayout( headersOnly, absoluteDates );
} }

@ -316,7 +316,7 @@ void KMSystemTray::foldersChanged()
void KMSystemTray::mousePressEvent(TQMouseEvent *e) void KMSystemTray::mousePressEvent(TQMouseEvent *e)
{ {
// switch to kmail on left mouse button // switch to kmail on left mouse button
if( e->button() == Qt::LeftButton ) if( e->button() == TQt::LeftButton )
{ {
if( mParentVisible && mainWindowIsOnCurrentDesktop() ) if( mParentVisible && mainWindowIsOnCurrentDesktop() )
hideKMail(); hideKMail();
@ -325,7 +325,7 @@ void KMSystemTray::mousePressEvent(TQMouseEvent *e)
} }
// open popup menu on right mouse button // open popup menu on right mouse button
if( e->button() == Qt::RightButton ) if( e->button() == TQt::RightButton )
{ {
mPopupFolders.clear(); mPopupFolders.clear();
mPopupFolders.reserve( mFoldersWithUnread.count() ); mPopupFolders.reserve( mFoldersWithUnread.count() );

@ -498,7 +498,7 @@ void KMTransportDialog::makeSmtpPage()
TQWidget *page2 = new TQWidget( tabWidget ); TQWidget *page2 = new TQWidget( tabWidget );
tabWidget->addTab( page2, i18n("S&ecurity") ); tabWidget->addTab( page2, i18n("S&ecurity") );
TQVBoxLayout *vlay = new TQVBoxLayout( page2, spacingHint() ); TQVBoxLayout *vlay = new TQVBoxLayout( page2, spacingHint() );
mSmtp.encryptionGroup = new TQButtonGroup( 1, Qt::Horizontal, mSmtp.encryptionGroup = new TQButtonGroup( 1, TQt::Horizontal,
i18n("Encryption"), page2 ); i18n("Encryption"), page2 );
mSmtp.encryptionNone = mSmtp.encryptionNone =
new TQRadioButton( i18n("&None"), mSmtp.encryptionGroup ); new TQRadioButton( i18n("&None"), mSmtp.encryptionGroup );
@ -510,7 +510,7 @@ void KMTransportDialog::makeSmtpPage()
TQT_SLOT(slotSmtpEncryptionChanged(int))); TQT_SLOT(slotSmtpEncryptionChanged(int)));
vlay->addWidget( mSmtp.encryptionGroup ); vlay->addWidget( mSmtp.encryptionGroup );
mSmtp.authGroup = new TQButtonGroup( 1, Qt::Horizontal, mSmtp.authGroup = new TQButtonGroup( 1, TQt::Horizontal,
i18n("Authentication Method"), page2 ); i18n("Authentication Method"), page2 );
mSmtp.authLogin = new TQRadioButton( i18n("Please translate this " mSmtp.authLogin = new TQRadioButton( i18n("Please translate this "
"authentication method only if you have a good reason", "&LOGIN"), "authentication method only if you have a good reason", "&LOGIN"),

@ -59,7 +59,7 @@ MailingListFolderPropertiesDialog::MailingListFolderPropertiesDialog( TQWidget*
"topLayout" ); "topLayout" );
TQGroupBox *mlGroup = new TQGroupBox( i18n("Associated Mailing List" ), this ); TQGroupBox *mlGroup = new TQGroupBox( i18n("Associated Mailing List" ), this );
mlGroup->setColumnLayout( 0, Qt::Vertical ); mlGroup->setColumnLayout( 0, TQt::Vertical );
TQGridLayout *groupLayout = new TQGridLayout( mlGroup->layout(), 6, 3, spacingHint() ); TQGridLayout *groupLayout = new TQGridLayout( mlGroup->layout(), 6, 3, spacingHint() );
topLayout->addWidget( mlGroup ); topLayout->addWidget( mlGroup );
setMainWidget( mlGroup ); setMainWidget( mlGroup );

@ -286,7 +286,7 @@ SearchWindow::SearchWindow(KMMainWidget* w, const char* name,
resize(mainWidth, mainHeight); resize(mainWidth, mainHeight);
setMainWidget(searchWidget); setMainWidget(searchWidget);
setButtonBoxOrientation(Qt::Vertical); setButtonBoxOrientation(TQt::Vertical);
mBtnSearch = actionButton(KDialogBase::User1); mBtnSearch = actionButton(KDialogBase::User1);
mBtnStop = actionButton(KDialogBase::User2); mBtnStop = actionButton(KDialogBase::User2);

@ -752,7 +752,7 @@ namespace {
namespace { namespace {
bool FallBackURLHandler::handleClick( const KURL & url, KMReaderWin * w ) const { bool FallBackURLHandler::handleClick( const KURL & url, KMReaderWin * w ) const {
if ( w ) if ( w )
w->emitUrlClicked( url, Qt::LeftButton ); w->emitUrlClicked( url, TQt::LeftButton );
return true; return true;
} }

@ -548,7 +548,7 @@ bool KNHeaderView::eventFilter(TQObject *o, TQEvent *e)
// right click on header // right click on header
if ( e->type() == TQEvent::MouseButtonPress && if ( e->type() == TQEvent::MouseButtonPress &&
TQT_TQMOUSEEVENT(e)->button() == Qt::RightButton && TQT_TQMOUSEEVENT(e)->button() == TQt::RightButton &&
o->isA("TQHeader") ) o->isA("TQHeader") )
{ {
mPopup->popup( TQT_TQMOUSEEVENT(e)->globalPos() ); mPopup->popup( TQT_TQMOUSEEVENT(e)->globalPos() );

@ -429,7 +429,7 @@ bool KNCollectionView::eventFilter(TQObject *o, TQEvent *e)
// header popup menu // header popup menu
if ( e->type() == TQEvent::MouseButtonPress && if ( e->type() == TQEvent::MouseButtonPress &&
TQT_TQMOUSEEVENT(e)->button() == Qt::RightButton && TQT_TQMOUSEEVENT(e)->button() == TQt::RightButton &&
o->isA("TQHeader") ) o->isA("TQHeader") )
{ {
mPopup->popup( TQT_TQMOUSEEVENT(e)->globalPos() ); mPopup->popup( TQT_TQMOUSEEVENT(e)->globalPos() );

@ -1725,7 +1725,7 @@ TQPopupMenu * KNComposer::popupMenu( const TQString& name )
KNComposer::ComposerView::ComposerView(KNComposer *composer, const char *n) KNComposer::ComposerView::ComposerView(KNComposer *composer, const char *n)
: TQSplitter(Qt::Vertical, composer, n), a_ttWidget(0), a_ttView(0), v_iewOpen(false) : TQSplitter(TQt::Vertical, composer, n), a_ttWidget(0), a_ttView(0), v_iewOpen(false)
{ {
TQWidget *main=new TQWidget(this); TQWidget *main=new TQWidget(this);
@ -1798,7 +1798,7 @@ KNComposer::ComposerView::ComposerView(KNComposer *composer, const char *n)
TQVBoxLayout *notL=new TQVBoxLayout(e_dit); TQVBoxLayout *notL=new TQVBoxLayout(e_dit);
notL->addStretch(1); notL->addStretch(1);
n_otification=new TQGroupBox(2, Qt::Horizontal, e_dit); n_otification=new TQGroupBox(2, TQt::Horizontal, e_dit);
l=new TQLabel(i18n("You are currently editing the article body\nin an external editor. To continue, you have\nto close the external editor."), n_otification); l=new TQLabel(i18n("You are currently editing the article body\nin an external editor. To continue, you have\nto close the external editor."), n_otification);
c_ancelEditorBtn=new TQPushButton(i18n("&Kill External Editor"), n_otification); c_ancelEditorBtn=new TQPushButton(i18n("&Kill External Editor"), n_otification);
n_otification->setFrameStyle(TQFrame::Panel | TQFrame::Raised); n_otification->setFrameStyle(TQFrame::Panel | TQFrame::Raised);

@ -294,7 +294,7 @@ KNConfig::NntpAccountListWidget::NntpAccountListWidget(TQWidget *p, const char *
topL->addMultiCellWidget(l_box, 0,4, 0,0); topL->addMultiCellWidget(l_box, 0,4, 0,0);
// info box // info box
TQGroupBox *gb = new TQGroupBox(2,Qt::Vertical,TQString(),this); TQGroupBox *gb = new TQGroupBox(2,TQt::Vertical,TQString(),this);
topL->addWidget(gb,5,0); topL->addWidget(gb,5,0);
s_erverInfo = new TQLabel(gb); s_erverInfo = new TQLabel(gb);
@ -2372,7 +2372,7 @@ KNConfig::GroupCleanupWidget::GroupCleanupWidget( Cleanup *data, TQWidget *paren
} }
mExpGroup = new TQGroupBox( i18n("Newsgroup Cleanup Settings"), this ); mExpGroup = new TQGroupBox( i18n("Newsgroup Cleanup Settings"), this );
mExpGroup->setColumnLayout(0, Qt::Vertical ); mExpGroup->setColumnLayout(0, TQt::Vertical );
mExpGroup->layout()->setSpacing( KDialog::spacingHint() ); mExpGroup->layout()->setSpacing( KDialog::spacingHint() );
mExpGroup->layout()->setMargin( KDialog::marginHint() ); mExpGroup->layout()->setMargin( KDialog::marginHint() );
top->addWidget( mExpGroup ); top->addWidget( mExpGroup );
@ -2481,7 +2481,7 @@ KNConfig::CleanupWidget::CleanupWidget( TQWidget *p, const char *n ) :
// === folders ========================================================= // === folders =========================================================
TQGroupBox *foldersB=new TQGroupBox(i18n("Folders"), this); TQGroupBox *foldersB=new TQGroupBox(i18n("Folders"), this);
foldersB->setColumnLayout(0, Qt::Vertical ); foldersB->setColumnLayout(0, TQt::Vertical );
foldersB->layout()->setSpacing( KDialog::spacingHint() ); foldersB->layout()->setSpacing( KDialog::spacingHint() );
foldersB->layout()->setMargin( KDialog::marginHint() ); foldersB->layout()->setMargin( KDialog::marginHint() );

@ -1349,9 +1349,9 @@ bool KNote::eventFilter( TQObject *o, TQEvent *ev )
slotRename(); slotRename();
} }
if ( ev->type() == TQEvent::MouseButtonPress && if ( ev->type() == TQEvent::MouseButtonPress &&
(e->button() == Qt::LeftButton || e->button() == Qt::MidButton)) (e->button() == TQt::LeftButton || e->button() == TQt::MidButton))
{ {
e->button() == Qt::LeftButton ? KWin::raiseWindow( winId() ) e->button() == TQt::LeftButton ? KWin::raiseWindow( winId() )
: KWin::lowerWindow( winId() ); : KWin::lowerWindow( winId() );
XUngrabPointer( tqt_xdisplay(), GET_QT_X_TIME() ); XUngrabPointer( tqt_xdisplay(), GET_QT_X_TIME() );
@ -1370,7 +1370,7 @@ bool KNote::eventFilter( TQObject *o, TQEvent *ev )
#endif #endif
if ( m_menu && ( ev->type() == TQEvent::MouseButtonPress ) if ( m_menu && ( ev->type() == TQEvent::MouseButtonPress )
&& ( e->button() == Qt::RightButton ) ) && ( e->button() == TQt::RightButton ) )
{ {
m_menu->popup( TQCursor::pos() ); m_menu->popup( TQCursor::pos() );
return true; return true;
@ -1402,7 +1402,7 @@ bool KNote::eventFilter( TQObject *o, TQEvent *ev )
{ {
if ( m_edit_menu && if ( m_edit_menu &&
ev->type() == TQEvent::MouseButtonPress && ev->type() == TQEvent::MouseButtonPress &&
((TQMouseEvent *)ev)->button() == Qt::RightButton ) ((TQMouseEvent *)ev)->button() == TQt::RightButton )
{ {
m_edit_menu->popup( TQCursor::pos() ); m_edit_menu->popup( TQCursor::pos() );
return true; return true;

@ -49,7 +49,7 @@ KNoteAlarmDlg::KNoteAlarmDlg( const TQString& caption, TQWidget *parent, const c
: KDialogBase( parent, name, true, caption, Ok|Cancel, Ok ) : KDialogBase( parent, name, true, caption, Ok|Cancel, Ok )
{ {
TQVBox *page = makeVBoxMainWidget(); TQVBox *page = makeVBoxMainWidget();
TQGroupBox *group = new TQGroupBox( 3, Qt::Vertical, i18n("Scheduled Alarm"), page ); TQGroupBox *group = new TQGroupBox( 3, TQt::Vertical, i18n("Scheduled Alarm"), page );
m_buttons = new TQButtonGroup( page ); m_buttons = new TQButtonGroup( page );
m_buttons->hide(); m_buttons->hide();

@ -486,7 +486,7 @@ void KNotesApp::mousePressEvent( TQMouseEvent* e )
switch ( e->button() ) switch ( e->button() )
{ {
case Qt::LeftButton: case TQt::LeftButton:
if ( m_noteList.count() == 1 ) if ( m_noteList.count() == 1 )
{ {
TQDictIterator<KNote> it( m_noteList ); TQDictIterator<KNote> it( m_noteList );
@ -495,10 +495,10 @@ void KNotesApp::mousePressEvent( TQMouseEvent* e )
else if ( m_note_menu->count() > 0 ) else if ( m_note_menu->count() > 0 )
m_note_menu->popup( e->globalPos() ); m_note_menu->popup( e->globalPos() );
break; break;
case Qt::MidButton: case TQt::MidButton:
newNote(); newNote();
break; break;
case Qt::RightButton: case TQt::RightButton:
m_context_menu->popup( e->globalPos() ); m_context_menu->popup( e->globalPos() );
default: break; default: break;
} }

@ -272,11 +272,11 @@ bool KonsoleKalendar::showInstance()
} else { } else {
if ( firstdate == lastdate ) { if ( firstdate == lastdate ) {
title = i18n( "Events: %1" ) title = i18n( "Events: %1" )
.arg( firstdate.toString( Qt::TextDate ) ); .arg( firstdate.toString( TQt::TextDate ) );
} else { } else {
title = i18n( "Events: %1 - %2" ) title = i18n( "Events: %1 - %2" )
.arg( firstdate.toString( Qt::TextDate ) ) .arg( firstdate.toString( TQt::TextDate ) )
.arg( lastdate.toString( Qt::TextDate ) ); .arg( lastdate.toString( TQt::TextDate ) );
} }
htmlSettings.setEventView( true ); htmlSettings.setEventView( true );
} }
@ -439,11 +439,11 @@ void KonsoleKalendar::printSpecs()
<< endl; << endl;
cout << i18n( " Begin: %1" ). cout << i18n( " Begin: %1" ).
arg( m_variables->getStartDateTime().toString( Qt::TextDate ) ).local8Bit().data() arg( m_variables->getStartDateTime().toString( TQt::TextDate ) ).local8Bit().data()
<< endl; << endl;
cout << i18n( " End: %1" ). cout << i18n( " End: %1" ).
arg( m_variables->getEndDateTime().toString( Qt::TextDate ) ).local8Bit().data() arg( m_variables->getEndDateTime().toString( TQt::TextDate ) ).local8Bit().data()
<< endl; << endl;
if ( m_variables->getFloating() == true ) { if ( m_variables->getFloating() == true ) {

@ -146,11 +146,11 @@ void KonsoleKalendarAdd::printSpecs()
<< endl; << endl;
cout << i18n( " Begin: %1" ). cout << i18n( " Begin: %1" ).
arg( m_variables->getStartDateTime().toString( Qt::TextDate ) ).local8Bit().data() arg( m_variables->getStartDateTime().toString( TQt::TextDate ) ).local8Bit().data()
<< endl; << endl;
cout << i18n( " End: %1" ). cout << i18n( " End: %1" ).
arg( m_variables->getEndDateTime().toString( Qt::TextDate ) ).local8Bit().data() arg( m_variables->getEndDateTime().toString( TQt::TextDate ) ).local8Bit().data()
<< endl; << endl;
if ( m_variables->getFloating() == true ) { if ( m_variables->getFloating() == true ) {

@ -136,11 +136,11 @@ void KonsoleKalendarChange::printSpecs( Event *event )
<< endl; << endl;
cout << i18n( " Begin: %1" ). cout << i18n( " Begin: %1" ).
arg( event->dtStart().toString( Qt::TextDate ) ).local8Bit().data() arg( event->dtStart().toString( TQt::TextDate ) ).local8Bit().data()
<< endl; << endl;
cout << i18n( " End: %1" ). cout << i18n( " End: %1" ).
arg( event->dtEnd().toString( Qt::TextDate ) ).local8Bit().data() arg( event->dtEnd().toString( TQt::TextDate ) ).local8Bit().data()
<< endl; << endl;
cout << i18n( " Desc: %1" ). cout << i18n( " Desc: %1" ).
@ -163,11 +163,11 @@ void KonsoleKalendarChange::printSpecs()
<< endl; << endl;
cout << i18n( " Begin: %1" ). cout << i18n( " Begin: %1" ).
arg( m_variables->getStartDateTime().toString( Qt::TextDate ) ).local8Bit().data() arg( m_variables->getStartDateTime().toString( TQt::TextDate ) ).local8Bit().data()
<< endl; << endl;
cout << i18n( " End: %1" ). cout << i18n( " End: %1" ).
arg( m_variables->getEndDateTime().toString( Qt::TextDate ) ).local8Bit().data() arg( m_variables->getEndDateTime().toString( TQt::TextDate ) ).local8Bit().data()
<< endl; << endl;
cout << i18n( " Desc: %1" ). cout << i18n( " Desc: %1" ).

@ -101,11 +101,11 @@ void KonsoleKalendarDelete::printSpecs( Event *event )
<< endl; << endl;
cout << i18n( " Begin: %1" ). cout << i18n( " Begin: %1" ).
arg( event->dtStart().toString( Qt::TextDate ) ).local8Bit().data() arg( event->dtStart().toString( TQt::TextDate ) ).local8Bit().data()
<< endl; << endl;
cout << i18n( " End: %1" ). cout << i18n( " End: %1" ).
arg( event->dtEnd().toString( Qt::TextDate ) ).local8Bit().data() arg( event->dtEnd().toString( TQt::TextDate ) ).local8Bit().data()
<< endl; << endl;
cout << i18n( " Desc: %1" ). cout << i18n( " Desc: %1" ).

@ -53,7 +53,7 @@ KonsoleKalendarEpoch::~KonsoleKalendarEpoch()
TQDateTime KonsoleKalendarEpoch::epoch2TQDateTime( uint epoch ) TQDateTime KonsoleKalendarEpoch::epoch2TQDateTime( uint epoch )
{ {
TQDateTime dt; TQDateTime dt;
dt.setTime_t( epoch, Qt::UTC ); dt.setTime_t( epoch, TQt::UTC );
return( dt ); return( dt );
} }
@ -64,8 +64,8 @@ uint KonsoleKalendarEpoch::TQDateTime2epoch( TQDateTime dt )
// SORRY QT DOESN'T HANDLE DAYLIGHT SAVINGS TIME. // SORRY QT DOESN'T HANDLE DAYLIGHT SAVINGS TIME.
// Compute #seconds to subtract for local timezone difference from UTC. // Compute #seconds to subtract for local timezone difference from UTC.
int offset = TQDateTime::currentDateTime( Qt::UTC ).toTime_t() int offset = TQDateTime::currentDateTime( TQt::UTC ).toTime_t()
- TQDateTime::currentDateTime( Qt::LocalTime ).toTime_t(); - TQDateTime::currentDateTime( TQt::LocalTime ).toTime_t();
return( dt.toTime_t() - offset ); return( dt.toTime_t() - offset );
} }

@ -472,7 +472,7 @@ int main( int argc, char *argv[] )
<< "(" << option << ")" << "(" << option << ")"
<< endl; << endl;
startdate = TQDate::fromString( option, Qt::ISODate ); startdate = TQDate::fromString( option, TQt::ISODate );
if ( !startdate.isValid() ) { if ( !startdate.isValid() ) {
cout << i18n( "Invalid Start Date Specified: %1" ). cout << i18n( "Invalid Start Date Specified: %1" ).
arg( option ).local8Bit().data() arg( option ).local8Bit().data()
@ -497,7 +497,7 @@ int main( int argc, char *argv[] )
<< endl; << endl;
if ( option.upper() != "FLOAT" ) { if ( option.upper() != "FLOAT" ) {
starttime = TQTime::fromString( option, Qt::ISODate ); starttime = TQTime::fromString( option, TQt::ISODate );
if ( !starttime.isValid() ) { if ( !starttime.isValid() ) {
cout << i18n( "Invalid Start Time Specified: %1" ). cout << i18n( "Invalid Start Time Specified: %1" ).
arg( option ).local8Bit().data() arg( option ).local8Bit().data()
@ -527,7 +527,7 @@ int main( int argc, char *argv[] )
<< "(" << option << ")" << "(" << option << ")"
<< endl; << endl;
enddate = TQDate::fromString( option, Qt::ISODate ); enddate = TQDate::fromString( option, TQt::ISODate );
if ( !enddate.isValid() ) { if ( !enddate.isValid() ) {
cout << i18n( "Invalid End Date Specified: %1" ). cout << i18n( "Invalid End Date Specified: %1" ).
arg( option ).local8Bit().data() arg( option ).local8Bit().data()
@ -579,7 +579,7 @@ int main( int argc, char *argv[] )
<< endl; << endl;
if ( option.upper() != "FLOAT" ) { if ( option.upper() != "FLOAT" ) {
endtime = TQTime::fromString( option, Qt::ISODate ); endtime = TQTime::fromString( option, TQt::ISODate );
if ( !endtime.isValid() ) { if ( !endtime.isValid() ) {
cout << i18n( "Invalid End Time Specified: %1" ). cout << i18n( "Invalid End Time Specified: %1" ).
arg( option ).local8Bit().data() arg( option ).local8Bit().data()
@ -854,10 +854,10 @@ int main( int argc, char *argv[] )
// Some more debug prints // Some more debug prints
kdDebug() << "main | datetimestamp | StartDate=" kdDebug() << "main | datetimestamp | StartDate="
<< startdatetime.toString( Qt::TextDate ) << startdatetime.toString( TQt::TextDate )
<< endl; << endl;
kdDebug() << "main | datetimestamp | EndDate=" kdDebug() << "main | datetimestamp | EndDate="
<< enddatetime.toString( Qt::TextDate ) << enddatetime.toString( TQt::TextDate )
<< endl; << endl;
/*************************************************************************** /***************************************************************************

@ -82,7 +82,7 @@ void Summary::mousePressEvent( TQMouseEvent *event )
void Summary::mouseMoveEvent( TQMouseEvent *event ) void Summary::mouseMoveEvent( TQMouseEvent *event )
{ {
if ( (event->state() & Qt::LeftButton) && if ( (event->state() & TQt::LeftButton) &&
(event->pos() - mDragStartPoint).manhattanLength() > 4 ) { (event->pos() - mDragStartPoint).manhattanLength() > 4 ) {
TQDragObject *drag = new TQTextDrag( "", this, "SummaryWidgetDrag" ); TQDragObject *drag = new TQTextDrag( "", this, "SummaryWidgetDrag" );

@ -92,7 +92,7 @@ void KCMKOrgSummary::initGUI()
{ {
TQVBoxLayout *layout = new TQVBoxLayout( this, 0, KDialog::spacingHint() ); TQVBoxLayout *layout = new TQVBoxLayout( this, 0, KDialog::spacingHint() );
mCalendarGroup = new TQButtonGroup( 0, Qt::Vertical, i18n( "Appointments" ), this ); mCalendarGroup = new TQButtonGroup( 0, TQt::Vertical, i18n( "Appointments" ), this );
TQVBoxLayout *boxLayout = new TQVBoxLayout( mCalendarGroup->layout(), TQVBoxLayout *boxLayout = new TQVBoxLayout( mCalendarGroup->layout(),
KDialog::spacingHint() ); KDialog::spacingHint() );
@ -124,7 +124,7 @@ void KCMKOrgSummary::initGUI()
layout->addWidget( mCalendarGroup ); layout->addWidget( mCalendarGroup );
mTodoGroup = new TQButtonGroup( 2, Qt::Horizontal, i18n( "To-dos" ), this ); mTodoGroup = new TQButtonGroup( 2, TQt::Horizontal, i18n( "To-dos" ), this );
new TQRadioButton( i18n( "Show all to-dos" ), mTodoGroup ); new TQRadioButton( i18n( "Show all to-dos" ), mTodoGroup );
new TQRadioButton( i18n( "Show today's to-dos only" ), mTodoGroup ); new TQRadioButton( i18n( "Show today's to-dos only" ), mTodoGroup );

@ -356,7 +356,7 @@ void KCMKontactKNT::initGUI()
mSelectedNews->setFullWidth( true ); mSelectedNews->setFullWidth( true );
layout->addWidget( mSelectedNews, 0, 2 ); layout->addWidget( mSelectedNews, 0, 2 );
TQGroupBox *box = new TQGroupBox( 0, Qt::Vertical, TQGroupBox *box = new TQGroupBox( 0, TQt::Vertical,
i18n( "News Feed Settings" ), this ); i18n( "News Feed Settings" ), this );
TQGridLayout *boxLayout = new TQGridLayout( box->layout(), 2, 3, TQGridLayout *boxLayout = new TQGridLayout( box->layout(), 2, 3,

@ -87,7 +87,7 @@ void KCMSDSummary::initGUI()
{ {
TQGridLayout *layout = new TQGridLayout( this, 3, 2, KDialog::spacingHint() ); TQGridLayout *layout = new TQGridLayout( this, 3, 2, KDialog::spacingHint() );
mDaysGroup = new TQButtonGroup( 0, Qt::Vertical, i18n( "Special Dates Summary" ), this ); mDaysGroup = new TQButtonGroup( 0, TQt::Vertical, i18n( "Special Dates Summary" ), this );
TQVBoxLayout *boxLayout = new TQVBoxLayout( mDaysGroup->layout(), TQVBoxLayout *boxLayout = new TQVBoxLayout( mDaysGroup->layout(),
KDialog::spacingHint() ); KDialog::spacingHint() );
@ -119,7 +119,7 @@ void KCMSDSummary::initGUI()
layout->addMultiCellWidget( mDaysGroup, 0, 0, 0, 1 ); layout->addMultiCellWidget( mDaysGroup, 0, 0, 0, 1 );
mCalendarGroup = new TQButtonGroup( 1, Qt::Horizontal, i18n( "Special Dates From Calendar" ), this ); mCalendarGroup = new TQButtonGroup( 1, TQt::Horizontal, i18n( "Special Dates From Calendar" ), this );
mShowBirthdaysFromCal = new TQCheckBox( i18n( "Show birthdays" ), mCalendarGroup ); mShowBirthdaysFromCal = new TQCheckBox( i18n( "Show birthdays" ), mCalendarGroup );
mShowAnniversariesFromCal = new TQCheckBox( i18n( "Show anniversaries" ), mCalendarGroup ); mShowAnniversariesFromCal = new TQCheckBox( i18n( "Show anniversaries" ), mCalendarGroup );
@ -127,7 +127,7 @@ void KCMSDSummary::initGUI()
mShowSpecialsFromCal = new TQCheckBox( i18n( "Show special occasions" ), mCalendarGroup ); mShowSpecialsFromCal = new TQCheckBox( i18n( "Show special occasions" ), mCalendarGroup );
mContactGroup = new TQButtonGroup( 1, Qt::Horizontal, i18n( "Special Dates From Contact List" ), this ); mContactGroup = new TQButtonGroup( 1, TQt::Horizontal, i18n( "Special Dates From Contact List" ), this );
mShowBirthdaysFromKAB = new TQCheckBox( i18n( "Show birthdays" ), mContactGroup ); mShowBirthdaysFromKAB = new TQCheckBox( i18n( "Show birthdays" ), mContactGroup );
mShowAnniversariesFromKAB = new TQCheckBox( i18n( "Show anniversaries" ), mContactGroup ); mShowAnniversariesFromKAB = new TQCheckBox( i18n( "Show anniversaries" ), mContactGroup );

@ -250,7 +250,7 @@ void SDSummaryWidget::updateView()
TQString anniversaryAsString = TQString anniversaryAsString =
(*it).custom( "KADDRESSBOOK" , "X-Anniversary" ); (*it).custom( "KADDRESSBOOK" , "X-Anniversary" );
if ( !anniversaryAsString.isEmpty() ) { if ( !anniversaryAsString.isEmpty() ) {
TQDate anniversary = TQDate::fromString( anniversaryAsString, Qt::ISODate ); TQDate anniversary = TQDate::fromString( anniversaryAsString, TQt::ISODate );
if ( anniversary.isValid() && mShowAnniversariesFromKAB ) { if ( anniversary.isValid() && mShowAnniversariesFromKAB ) {
SDEntry entry; SDEntry entry;
entry.type = IncidenceTypeContact; entry.type = IncidenceTypeContact;

@ -138,11 +138,11 @@ CalendarView::CalendarView( TQWidget *parent, const char *name )
#ifndef KORG_NOSPLITTER #ifndef KORG_NOSPLITTER
// create the main layout frames. // create the main layout frames.
mPanner = new TQSplitter( Qt::Horizontal, this, mPanner = new TQSplitter( TQt::Horizontal, this,
"CalendarView::Panner" ); "CalendarView::Panner" );
topLayout->addWidget( mPanner ); topLayout->addWidget( mPanner );
mLeftSplitter = new TQSplitter( Qt::Vertical, mPanner, mLeftSplitter = new TQSplitter( TQt::Vertical, mPanner,
"CalendarView::LeftFrame" ); "CalendarView::LeftFrame" );
// mPanner->setResizeMode( mLeftSplitter, TQSplitter::Stretch ); // mPanner->setResizeMode( mLeftSplitter, TQSplitter::Stretch );

@ -50,7 +50,7 @@ ImportDialog::ImportDialog( const KURL &url, TQWidget *parent, bool isPart )
topLayout->addWidget( new TQLabel( txt, topFrame ) ); topLayout->addWidget( new TQLabel( txt, topFrame ) );
TQButtonGroup *radioBox = new TQButtonGroup( 1, Qt::Horizontal, topFrame ); TQButtonGroup *radioBox = new TQButtonGroup( 1, TQt::Horizontal, topFrame );
radioBox->setFlat( true ); radioBox->setFlat( true );
topLayout->addWidget( radioBox ); topLayout->addWidget( radioBox );

@ -574,7 +574,7 @@ bool KOAgenda::eventFilter_wheel ( TQObject *object, TQWheelEvent *e )
// e->type()<<" delta: "<< e->delta()<< endl; // e->type()<<" delta: "<< e->delta()<< endl;
emit zoomView( -e->delta() , emit zoomView( -e->delta() ,
contentsToGrid( viewportToContents( viewportPos ) ), contentsToGrid( viewportToContents( viewportPos ) ),
Qt::Horizontal ); TQt::Horizontal );
accepted=true; accepted=true;
} }
@ -586,7 +586,7 @@ bool KOAgenda::eventFilter_wheel ( TQObject *object, TQWheelEvent *e )
} }
emit zoomView( -e->delta() , emit zoomView( -e->delta() ,
contentsToGrid( viewportToContents( viewportPos ) ), contentsToGrid( viewportToContents( viewportPos ) ),
Qt::Vertical ); TQt::Vertical );
emit mousePosSignal(gridToContents(contentsToGrid(viewportToContents( viewportPos )))); emit mousePosSignal(gridToContents(contentsToGrid(viewportToContents( viewportPos ))));
accepted=true; accepted=true;
} }
@ -607,7 +607,7 @@ bool KOAgenda::eventFilter_mouse(TQObject *object, TQMouseEvent *me)
case TQEvent::MouseButtonPress: case TQEvent::MouseButtonPress:
// kdDebug(5850) << "koagenda: filtered button press" << endl; // kdDebug(5850) << "koagenda: filtered button press" << endl;
if (object != viewport()) { if (object != viewport()) {
if (me->button() == Qt::RightButton) { if (me->button() == TQt::RightButton) {
mClickedItem = dynamic_cast<KOAgendaItem *>(object); mClickedItem = dynamic_cast<KOAgendaItem *>(object);
if (mClickedItem) { if (mClickedItem) {
selectItem(mClickedItem); selectItem(mClickedItem);
@ -639,7 +639,7 @@ bool KOAgenda::eventFilter_mouse(TQObject *object, TQMouseEvent *me)
} }
} }
} else { } else {
if ( me->button() == Qt::RightButton ) { if ( me->button() == TQt::RightButton ) {
// if mouse pointer is not in selection, select the cell below the cursor // if mouse pointer is not in selection, select the cell below the cursor
TQPoint gpos = contentsToGrid( viewportToContents( viewportPos ) ); TQPoint gpos = contentsToGrid( viewportToContents( viewportPos ) );
if ( !ptInSelection( gpos ) ) { if ( !ptInSelection( gpos ) ) {

@ -198,7 +198,7 @@ class KOAgenda : public TQScrollView
void droppedToDo( Todo*todo, const TQPoint &gpos, bool allDay ); void droppedToDo( Todo*todo, const TQPoint &gpos, bool allDay );
void enableAgendaUpdate( bool enable ); void enableAgendaUpdate( bool enable );
void zoomView( const int delta, const TQPoint &pos, const Qt::Orientation ); void zoomView( const int delta, const TQPoint &pos, const TQt::Orientation );
void mousePosSignal(const TQPoint &pos); void mousePosSignal(const TQPoint &pos);
void enterAgenda(); void enterAgenda();

@ -284,7 +284,7 @@ KOAgendaView::KOAgendaView( Calendar *cal,
// Create agenda splitter // Create agenda splitter
#ifndef KORG_NOSPLITTER #ifndef KORG_NOSPLITTER
mSplitterAgenda = new TQSplitter(Qt::Vertical,this); mSplitterAgenda = new TQSplitter(TQt::Vertical,this);
topLayout->addWidget(mSplitterAgenda); topLayout->addWidget(mSplitterAgenda);
#if KDE_IS_VERSION( 3, 1, 93 ) #if KDE_IS_VERSION( 3, 1, 93 )
@ -377,8 +377,8 @@ KOAgendaView::KOAgendaView( Calendar *cal,
mTimeLabels, TQT_SLOT(positionChanged())); mTimeLabels, TQT_SLOT(positionChanged()));
connect( mAgenda, connect( mAgenda,
TQT_SIGNAL( zoomView( const int, const TQPoint & ,const Qt::Orientation ) ), TQT_SIGNAL( zoomView( const int, const TQPoint & ,const TQt::Orientation ) ),
TQT_SLOT( zoomView( const int, const TQPoint &, const Qt::Orientation ) ) ); TQT_SLOT( zoomView( const int, const TQPoint &, const TQt::Orientation ) ) );
connect(mTimeLabels->verticalScrollBar(),TQT_SIGNAL(valueChanged(int)), connect(mTimeLabels->verticalScrollBar(),TQT_SIGNAL(valueChanged(int)),
TQT_SLOT(setContentsPos(int))); TQT_SLOT(setContentsPos(int)));
@ -561,7 +561,7 @@ void KOAgendaView::zoomOutHorizontally( const TQDate &date )
} }
void KOAgendaView::zoomView( const int delta, const TQPoint &pos, void KOAgendaView::zoomView( const int delta, const TQPoint &pos,
const Qt::Orientation orient ) const TQt::Orientation orient )
{ {
static TQDate zoomDate; static TQDate zoomDate;
static TQTimer *t = new TQTimer( this ); static TQTimer *t = new TQTimer( this );
@ -569,7 +569,7 @@ void KOAgendaView::zoomView( const int delta, const TQPoint &pos,
//Zoom to the selected incidence, on the other way //Zoom to the selected incidence, on the other way
// zoom to the date on screen after the first mousewheel move. // zoom to the date on screen after the first mousewheel move.
if ( orient == Qt::Horizontal ) { if ( orient == TQt::Horizontal ) {
TQDate date=mAgenda->selectedIncidenceDate(); TQDate date=mAgenda->selectedIncidenceDate();
if ( date.isValid() ) if ( date.isValid() )
zoomDate=date; zoomDate=date;
@ -584,7 +584,7 @@ void KOAgendaView::zoomView( const int delta, const TQPoint &pos,
else else
zoomInHorizontally( zoomDate ); zoomInHorizontally( zoomDate );
} else { } else {
// Qt::Vertical zoom // Vertical zoom
TQPoint posConstentsOld = mAgenda->gridToContents(pos); TQPoint posConstentsOld = mAgenda->gridToContents(pos);
if ( delta > 0 ) { if ( delta > 0 ) {
zoomOutVertically(); zoomOutVertically();

@ -197,7 +197,7 @@ class KOAgendaView : public KOrg::AgendaView, public KCal::Calendar::Observer
void zoomView( const int delta, const TQPoint &pos, void zoomView( const int delta, const TQPoint &pos,
const Qt::Orientation orient=Qt::Horizontal ); const TQt::Orientation orient=TQt::Horizontal );
void clearTimeSpanSelection(); void clearTimeSpanSelection();

@ -189,7 +189,7 @@ AttachmentEditDialog::AttachmentEditDialog( AttachmentListItem *item,
i18n( "Type any string you desire here for the name of the attachment" ) ); i18n( "Type any string you desire here for the name of the attachment" ) );
grid->addMultiCellWidget( mLabelEdit, 0, 0, 1, 2 ); grid->addMultiCellWidget( mLabelEdit, 0, 0, 1, 2 );
KSeparator *sep = new KSeparator( Qt::Horizontal, topFrame ); KSeparator *sep = new KSeparator( TQt::Horizontal, topFrame );
grid->addMultiCellWidget( sep, 1, 1, 0, 2 ); grid->addMultiCellWidget( sep, 1, 1, 0, 2 );
TQLabel *label = new TQLabel( i18n( "Type:" ), topFrame ); TQLabel *label = new TQLabel( i18n( "Type:" ), topFrame );

@ -923,7 +923,7 @@ void KOEditorFreeBusy::showAttendeeStatusMenu()
void KOEditorFreeBusy::listViewClicked(int button, KDGanttViewItem * item) void KOEditorFreeBusy::listViewClicked(int button, KDGanttViewItem * item)
{ {
if ( button == Qt::LeftButton && item == 0 ) if ( button == TQt::LeftButton && item == 0 )
addNewAttendee(); addNewAttendee();
} }

@ -95,7 +95,7 @@ void KOEditorGeneralEvent::initTime(TQWidget *parent,TQBoxLayout *topLayout)
{ {
TQBoxLayout *timeLayout = new TQVBoxLayout(topLayout); TQBoxLayout *timeLayout = new TQVBoxLayout(topLayout);
TQGroupBox *timeGroupBox = new TQGroupBox(1,Qt::Horizontal, TQGroupBox *timeGroupBox = new TQGroupBox(1,TQt::Horizontal,
i18n("Date && Time"),parent); i18n("Date && Time"),parent);
TQWhatsThis::add( timeGroupBox, TQWhatsThis::add( timeGroupBox,
i18n("Sets options related to the date and time of the " i18n("Sets options related to the date and time of the "

@ -96,7 +96,7 @@ void KOEditorGeneralTodo::initTime(TQWidget *parent,TQBoxLayout *topLayout)
kdDebug(5850) << k_funcinfo << endl; kdDebug(5850) << k_funcinfo << endl;
TQBoxLayout *timeLayout = new TQVBoxLayout(topLayout); TQBoxLayout *timeLayout = new TQVBoxLayout(topLayout);
TQGroupBox *timeGroupBox = new TQGroupBox(1,Qt::Horizontal, TQGroupBox *timeGroupBox = new TQGroupBox(1,TQt::Horizontal,
i18n("Date && Time"),parent); i18n("Date && Time"),parent);
timeLayout->addWidget(timeGroupBox); timeLayout->addWidget(timeGroupBox);

@ -578,7 +578,7 @@ ExceptionsWidget::ExceptionsWidget( TQWidget *parent, const char *name ) :
{ {
TQBoxLayout *topLayout = new TQVBoxLayout( this ); TQBoxLayout *topLayout = new TQVBoxLayout( this );
TQGroupBox *groupBox = new TQGroupBox( 1, Qt::Horizontal, i18n("E&xceptions"), TQGroupBox *groupBox = new TQGroupBox( 1, TQt::Horizontal, i18n("E&xceptions"),
this ); this );
topLayout->addWidget( groupBox ); topLayout->addWidget( groupBox );
@ -700,7 +700,7 @@ RecurrenceRangeWidget::RecurrenceRangeWidget( TQWidget *parent,
{ {
TQBoxLayout *topLayout = new TQVBoxLayout( this ); TQBoxLayout *topLayout = new TQVBoxLayout( this );
mRangeGroupBox = new TQGroupBox( 1, Qt::Horizontal, i18n("Recurrence Range"), mRangeGroupBox = new TQGroupBox( 1, TQt::Horizontal, i18n("Recurrence Range"),
this ); this );
TQWhatsThis::add( mRangeGroupBox, TQWhatsThis::add( mRangeGroupBox,
i18n("Sets a range for which these recurrence rules will " i18n("Sets a range for which these recurrence rules will "
@ -891,7 +891,7 @@ RecurrenceChooser::RecurrenceChooser( TQWidget *parent, const char *name ) :
} else { } else {
mTypeCombo = 0; mTypeCombo = 0;
TQButtonGroup *ruleButtonGroup = new TQButtonGroup( 1, Qt::Horizontal, this ); TQButtonGroup *ruleButtonGroup = new TQButtonGroup( 1, TQt::Horizontal, this );
ruleButtonGroup->setFrameStyle( TQFrame::NoFrame ); ruleButtonGroup->setFrameStyle( TQFrame::NoFrame );
topLayout->addWidget( ruleButtonGroup ); topLayout->addWidget( ruleButtonGroup );
@ -980,7 +980,7 @@ KOEditorRecurrence::KOEditorRecurrence( TQWidget* parent, const char *name ) :
topLayout->addMultiCellWidget( mEnabledCheck, 0, 0, 0, 1 ); topLayout->addMultiCellWidget( mEnabledCheck, 0, 0, 0, 1 );
mTimeGroupBox = new TQGroupBox( 1, Qt::Horizontal, i18n("Appointment Time "), mTimeGroupBox = new TQGroupBox( 1, TQt::Horizontal, i18n("Appointment Time "),
this ); this );
TQWhatsThis::add( mTimeGroupBox, TQWhatsThis::add( mTimeGroupBox,
i18n("Displays appointment time information.") ); i18n("Displays appointment time information.") );
@ -998,9 +998,9 @@ KOEditorRecurrence::KOEditorRecurrence( TQWidget* parent, const char *name ) :
// mDateTimeLabel = new TQLabel( timeFrame ); // mDateTimeLabel = new TQLabel( timeFrame );
// layoutTimeFrame->addWidget( mDateTimeLabel ); // layoutTimeFrame->addWidget( mDateTimeLabel );
Qt::Orientation orientation; TQt::Orientation orientation;
if ( KOPrefs::instance()->mCompactDialogs ) orientation = Qt::Horizontal; if ( KOPrefs::instance()->mCompactDialogs ) orientation = TQt::Horizontal;
else orientation = Qt::Vertical; else orientation = TQt::Vertical;
mRuleBox = new TQGroupBox( 1, orientation, i18n("Recurrence Rule"), this ); mRuleBox = new TQGroupBox( 1, orientation, i18n("Recurrence Rule"), this );
TQWhatsThis::add( mRuleBox, TQWhatsThis::add( mRuleBox,

@ -135,9 +135,9 @@ bool KOListView::ListItemVisitor::visit( Event *e )
TQString endDateTime; TQString endDateTime;
mItem->setText( StartDateTime_Column, IncidenceFormatter::dateTimeToString( e->dtStart(), e->doesFloat() ) ); mItem->setText( StartDateTime_Column, IncidenceFormatter::dateTimeToString( e->dtStart(), e->doesFloat() ) );
mItem->setSortKey( StartDateTime_Column, e->dtStart().toString( Qt::ISODate ) ); mItem->setSortKey( StartDateTime_Column, e->dtStart().toString( TQt::ISODate ) );
mItem->setText( EndDateTime_Column, IncidenceFormatter::dateTimeToString( e->dtEnd(), e->doesFloat() ) ); mItem->setText( EndDateTime_Column, IncidenceFormatter::dateTimeToString( e->dtEnd(), e->doesFloat() ) );
mItem->setSortKey( EndDateTime_Column, e->dtEnd().toString( Qt::ISODate ) ); mItem->setSortKey( EndDateTime_Column, e->dtEnd().toString( TQt::ISODate ) );
mItem->setText( Categories_Column, e->categoriesStr() ); mItem->setText( Categories_Column, e->categoriesStr() );
return true; return true;
@ -167,14 +167,14 @@ bool KOListView::ListItemVisitor::visit( Todo *t )
if ( t->hasStartDate() ) { if ( t->hasStartDate() ) {
mItem->setText( StartDateTime_Column, IncidenceFormatter::dateTimeToString( t->dtStart(), t->doesFloat() ) ); mItem->setText( StartDateTime_Column, IncidenceFormatter::dateTimeToString( t->dtStart(), t->doesFloat() ) );
mItem->setSortKey( StartDateTime_Column, t->dtStart().toString( Qt::ISODate ) ); mItem->setSortKey( StartDateTime_Column, t->dtStart().toString( TQt::ISODate ) );
} else { } else {
mItem->setText( StartDateTime_Column, "---" ); mItem->setText( StartDateTime_Column, "---" );
} }
if ( t->hasDueDate() ) { if ( t->hasDueDate() ) {
mItem->setText( EndDateTime_Column, IncidenceFormatter::dateTimeToString( t->dtDue(), t->doesFloat() ) ); mItem->setText( EndDateTime_Column, IncidenceFormatter::dateTimeToString( t->dtDue(), t->doesFloat() ) );
mItem->setSortKey( EndDateTime_Column, t->dtDue().toString( Qt::ISODate ) ); mItem->setSortKey( EndDateTime_Column, t->dtDue().toString( TQt::ISODate ) );
} else { } else {
mItem->setText( EndDateTime_Column, "---" ); mItem->setText( EndDateTime_Column, "---" );
} }
@ -190,7 +190,7 @@ bool KOListView::ListItemVisitor::visit( Journal *j )
// Just use the first line // Just use the first line
mItem->setText( Summary_Column, j->description().section( "\n", 0, 0 ) ); mItem->setText( Summary_Column, j->description().section( "\n", 0, 0 ) );
mItem->setText( StartDateTime_Column, IncidenceFormatter::dateTimeToString( j->dtStart(), j->doesFloat() ) ); mItem->setText( StartDateTime_Column, IncidenceFormatter::dateTimeToString( j->dtStart(), j->doesFloat() ) );
mItem->setSortKey( StartDateTime_Column, j->dtStart().toString( Qt::ISODate ) ); mItem->setSortKey( StartDateTime_Column, j->dtStart().toString( TQt::ISODate ) );
return true; return true;
} }

@ -168,7 +168,7 @@ void KNoScrollListBox::mousePressEvent( TQMouseEvent *e )
{ {
TQListBox::mousePressEvent( e ); TQListBox::mousePressEvent( e );
if ( e->button() == Qt::RightButton ) { if ( e->button() == TQt::RightButton ) {
emit rightClick(); emit rightClick();
} }
} }

@ -100,7 +100,7 @@ KOPrefsDialogMain::KOPrefsDialogMain( TQWidget *parent, const char *name )
addWidString( KOPrefs::instance()->userNameItem(), mUserEmailSettings ); addWidString( KOPrefs::instance()->userNameItem(), mUserEmailSettings );
addWidString( KOPrefs::instance()->userEmailItem(), mUserEmailSettings ); addWidString( KOPrefs::instance()->userEmailItem(), mUserEmailSettings );
TQGroupBox *saveGroup = new TQGroupBox(1,Qt::Horizontal,i18n("Saving Calendar"), TQGroupBox *saveGroup = new TQGroupBox(1,TQt::Horizontal,i18n("Saving Calendar"),
topFrame); topFrame);
addWidBool( KOPrefs::instance()->htmlWithSaveItem(), saveGroup ); addWidBool( KOPrefs::instance()->htmlWithSaveItem(), saveGroup );
@ -319,7 +319,7 @@ class KOPrefsDialogTime : public KPrefsModule
topLayout->addWidget( defaultDuration->label(), 4, 0 ); topLayout->addWidget( defaultDuration->label(), 4, 0 );
topLayout->addWidget( defaultDuration->timeEdit(), 4, 1 ); topLayout->addWidget( defaultDuration->timeEdit(), 4, 1 );
TQGroupBox *remindersGroupBox = new TQGroupBox( 1, Qt::Horizontal, TQGroupBox *remindersGroupBox = new TQGroupBox( 1, TQt::Horizontal,
i18n( "Reminders" ), i18n( "Reminders" ),
topFrame ); topFrame );
topLayout->addMultiCellWidget( remindersGroupBox, 5, 5, 0, 1 ); topLayout->addMultiCellWidget( remindersGroupBox, 5, 5, 0, 1 );
@ -367,7 +367,7 @@ class KOPrefsDialogTime : public KPrefsModule
connect( mAlarmTimeDefaultCheckBox, TQT_SIGNAL( toggled( bool ) ), connect( mAlarmTimeDefaultCheckBox, TQT_SIGNAL( toggled( bool ) ),
TQT_SLOT( slotWidChanged() ) ); TQT_SLOT( slotWidChanged() ) );
TQGroupBox *workingHoursGroup = new TQGroupBox(1,Qt::Horizontal, TQGroupBox *workingHoursGroup = new TQGroupBox(1,TQt::Horizontal,
i18n("Working Hours"), i18n("Working Hours"),
topFrame); topFrame);
topLayout->addMultiCellWidget( workingHoursGroup, 7, 7, 0, 1 ); topLayout->addMultiCellWidget( workingHoursGroup, 7, 7, 0, 1 );
@ -510,7 +510,7 @@ class KOPrefsDialogViews : public KPrefsModule
topLayout->addWidget( showTodosAgenda->checkBox() ); topLayout->addWidget( showTodosAgenda->checkBox() );
/*** Date Navigator Group ***/ /*** Date Navigator Group ***/
TQGroupBox *dateNavGroup = new TQGroupBox( 1, Qt::Horizontal, TQGroupBox *dateNavGroup = new TQGroupBox( 1, TQt::Horizontal,
i18n("Date Navigator"), i18n("Date Navigator"),
topFrame ); topFrame );
addWidBool( KOPrefs::instance()->dailyRecurItem(), dateNavGroup ); addWidBool( KOPrefs::instance()->dailyRecurItem(), dateNavGroup );
@ -520,7 +520,7 @@ class KOPrefsDialogViews : public KPrefsModule
/*** Agenda View Group ***/ /*** Agenda View Group ***/
TQGroupBox *agendaGroup = new TQGroupBox( 1, Qt::Horizontal, TQGroupBox *agendaGroup = new TQGroupBox( 1, TQt::Horizontal,
i18n("Agenda View"), i18n("Agenda View"),
topFrame ); topFrame );
@ -554,7 +554,7 @@ class KOPrefsDialogViews : public KPrefsModule
topLayout->addWidget( agendaGroup ); topLayout->addWidget( agendaGroup );
/*** Month View Group ***/ /*** Month View Group ***/
TQGroupBox *monthGroup = new TQGroupBox( 1, Qt::Horizontal, TQGroupBox *monthGroup = new TQGroupBox( 1, TQt::Horizontal,
i18n("Month View"), i18n("Month View"),
topFrame ); topFrame );
addWidBool( KOPrefs::instance()->enableMonthScrollItem(), monthGroup ); addWidBool( KOPrefs::instance()->enableMonthScrollItem(), monthGroup );
@ -564,7 +564,7 @@ class KOPrefsDialogViews : public KPrefsModule
/*** Todo View Group ***/ /*** Todo View Group ***/
TQGroupBox *todoGroup = new TQGroupBox( 1, Qt::Horizontal, TQGroupBox *todoGroup = new TQGroupBox( 1, TQt::Horizontal,
i18n("To-do View"), i18n("To-do View"),
topFrame ); topFrame );
addWidBool( KOPrefs::instance()->fullViewTodoItem(), todoGroup ); addWidBool( KOPrefs::instance()->fullViewTodoItem(), todoGroup );
@ -700,7 +700,7 @@ KOPrefsDialogColors::KOPrefsDialogColors( TQWidget *parent, const char *name )
topLayout->addWidget( unsetCategoryColor->button(), 6, 1 ); topLayout->addWidget( unsetCategoryColor->button(), 6, 1 );
// categories colors // categories colors
TQGroupBox *categoryGroup = new TQGroupBox(1,Qt::Horizontal,i18n("Categories"), TQGroupBox *categoryGroup = new TQGroupBox(1,TQt::Horizontal,i18n("Categories"),
topFrame); topFrame);
topLayout->addMultiCellWidget(categoryGroup,7,7,0,1); topLayout->addMultiCellWidget(categoryGroup,7,7,0,1);
@ -721,7 +721,7 @@ KOPrefsDialogColors::KOPrefsDialogColors( TQWidget *parent, const char *name )
updateCategoryColor(); updateCategoryColor();
// resources colors // resources colors
TQGroupBox *resourceGroup = new TQGroupBox(1,Qt::Horizontal,i18n("Resources"), TQGroupBox *resourceGroup = new TQGroupBox(1,TQt::Horizontal,i18n("Resources"),
topFrame); topFrame);
topLayout->addMultiCellWidget(resourceGroup,8,8,0,1); topLayout->addMultiCellWidget(resourceGroup,8,8,0,1);

@ -122,7 +122,7 @@ AlarmDialog::AlarmDialog( KCal::CalendarResources *calendar, TQWidget *parent, c
TQLabel *label = new TQLabel( i18n("The following items triggered reminders:"), topBox ); TQLabel *label = new TQLabel( i18n("The following items triggered reminders:"), topBox );
topLayout->addWidget( label ); topLayout->addWidget( label );
mSplitter = new TQSplitter( Qt::Vertical, topBox ); mSplitter = new TQSplitter( TQt::Vertical, topBox );
mSplitter->setOpaqueResize( TDEGlobalSettings::opaqueResize() ); mSplitter->setOpaqueResize( TDEGlobalSettings::opaqueResize() );
topLayout->addWidget( mSplitter ); topLayout->addWidget( mSplitter );

@ -188,7 +188,7 @@ void AlarmDockWindow::enableAutostart( bool enable )
void AlarmDockWindow::mousePressEvent( TQMouseEvent *e ) void AlarmDockWindow::mousePressEvent( TQMouseEvent *e )
{ {
if ( e->button() == Qt::LeftButton ) { if ( e->button() == TQt::LeftButton ) {
kapp->startServiceByDesktopName( "korganizer", TQString() ); kapp->startServiceByDesktopName( "korganizer", TQString() );
} else { } else {
KSystemTray::mousePressEvent( e ); KSystemTray::mousePressEvent( e );

@ -299,7 +299,7 @@ void KOTodoListView::contentsMousePressEvent(TQMouseEvent* e)
treeStepSize() * (i->depth() + (rootIsDecorated() ? 1 : 0)) + treeStepSize() * (i->depth() + (rootIsDecorated() ? 1 : 0)) +
itemMargin() || itemMargin() ||
p.x() < header()->sectionPos(header()->mapToIndex(0))) { p.x() < header()->sectionPos(header()->mapToIndex(0))) {
if (e->button()==Qt::LeftButton) { if (e->button()==TQt::LeftButton) {
mPressPos = e->pos(); mPressPos = e->pos();
mMousePressed = true; mMousePressed = true;
} }

@ -57,7 +57,7 @@ MultiAgendaView::MultiAgendaView( Calendar * cal, CalendarView *calendarView,
TQVBox *topSideBox = new TQVBox( this ); TQVBox *topSideBox = new TQVBox( this );
mLeftTopSpacer = new TQWidget( topSideBox ); mLeftTopSpacer = new TQWidget( topSideBox );
mLeftTopSpacer->setFixedHeight( topLabelHeight ); mLeftTopSpacer->setFixedHeight( topLabelHeight );
mLeftSplitter = new TQSplitter( Qt::Vertical, topSideBox ); mLeftSplitter = new TQSplitter( TQt::Vertical, topSideBox );
mLeftSplitter->setOpaqueResize( TDEGlobalSettings::opaqueResize() ); mLeftSplitter->setOpaqueResize( TDEGlobalSettings::opaqueResize() );
TQLabel *label = new TQLabel( i18n("All Day"), mLeftSplitter ); TQLabel *label = new TQLabel( i18n("All Day"), mLeftSplitter );
label->setAlignment( TQt::AlignRight | TQt::AlignVCenter | TQt::WordBreak ); label->setAlignment( TQt::AlignRight | TQt::AlignVCenter | TQt::WordBreak );
@ -81,14 +81,14 @@ MultiAgendaView::MultiAgendaView( Calendar * cal, CalendarView *calendarView,
topSideBox = new TQVBox( this ); topSideBox = new TQVBox( this );
mRightTopSpacer = new TQWidget( topSideBox ); mRightTopSpacer = new TQWidget( topSideBox );
mRightTopSpacer->setFixedHeight( topLabelHeight ); mRightTopSpacer->setFixedHeight( topLabelHeight );
mRightSplitter = new TQSplitter( Qt::Vertical, topSideBox ); mRightSplitter = new TQSplitter( TQt::Vertical, topSideBox );
mRightSplitter->setOpaqueResize( TDEGlobalSettings::opaqueResize() ); mRightSplitter->setOpaqueResize( TDEGlobalSettings::opaqueResize() );
new TQWidget( mRightSplitter ); new TQWidget( mRightSplitter );
sideBox = new TQVBox( mRightSplitter ); sideBox = new TQVBox( mRightSplitter );
eiSpacer = new EventIndicator( EventIndicator::Top, sideBox ); eiSpacer = new EventIndicator( EventIndicator::Top, sideBox );
eiSpacer->setFixedHeight( eiSpacer->minimumHeight() ); eiSpacer->setFixedHeight( eiSpacer->minimumHeight() );
eiSpacer->changeColumns( 0 ); eiSpacer->changeColumns( 0 );
mScrollBar = new TQScrollBar( Qt::Vertical, sideBox ); mScrollBar = new TQScrollBar( TQt::Vertical, sideBox );
eiSpacer = new EventIndicator( EventIndicator::Bottom, sideBox ); eiSpacer = new EventIndicator( EventIndicator::Bottom, sideBox );
eiSpacer->setFixedHeight( eiSpacer->minimumHeight() ); eiSpacer->setFixedHeight( eiSpacer->minimumHeight() );
eiSpacer->changeColumns( 0 ); eiSpacer->changeColumns( 0 );
@ -249,11 +249,11 @@ void MultiAgendaView::setupViews()
TQT_SLOT(slotClearTimeSpanSelection()) ); TQT_SLOT(slotClearTimeSpanSelection()) );
disconnect( agenda->agenda(), disconnect( agenda->agenda(),
TQT_SIGNAL(zoomView(const int,const TQPoint&,const Qt::Orientation)), TQT_SIGNAL(zoomView(const int,const TQPoint&,const TQt::Orientation)),
agenda, 0 ); agenda, 0 );
connect( agenda->agenda(), connect( agenda->agenda(),
TQT_SIGNAL(zoomView(const int,const TQPoint&,const Qt::Orientation)), TQT_SIGNAL(zoomView(const int,const TQPoint&,const TQt::Orientation)),
TQT_SLOT(zoomView(const int,const TQPoint&,const Qt::Orientation)) ); TQT_SLOT(zoomView(const int,const TQPoint&,const TQt::Orientation)) );
} }
KOAgenda *anAgenda = mAgendaViews.first()->agenda(); KOAgenda *anAgenda = mAgendaViews.first()->agenda();
@ -520,9 +520,9 @@ void MultiAgendaView::resizeSpacers( int newY )
mRightTopSpacer->setFixedHeight( topLabelHeight ); mRightTopSpacer->setFixedHeight( topLabelHeight );
} }
void MultiAgendaView::zoomView( const int delta, const TQPoint & pos, const Qt::Orientation ori ) void MultiAgendaView::zoomView( const int delta, const TQPoint & pos, const TQt::Orientation ori )
{ {
if ( ori == Qt::Vertical ) { if ( ori == TQt::Vertical ) {
if ( delta > 0 ) { if ( delta > 0 ) {
if ( KOPrefs::instance()->mHourSize > 4 ) if ( KOPrefs::instance()->mHourSize > 4 )
KOPrefs::instance()->mHourSize--; KOPrefs::instance()->mHourSize--;

@ -91,7 +91,7 @@ class MultiAgendaView : public AgendaView
void resizeSplitters(); void resizeSplitters();
void resizeSpacers( int ); void resizeSpacers( int );
void setupScrollBar(); void setupScrollBar();
void zoomView( const int delta, const TQPoint &pos, const Qt::Orientation ori ); void zoomView( const int delta, const TQPoint &pos, const TQt::Orientation ori );
void slotResizeScrollView(); void slotResizeScrollView();
private: private:

@ -174,7 +174,7 @@ CalPrintDialog::CalPrintDialog( KOrg::PrintPlugin::List plugins,
TQVBox *page = makeVBoxMainWidget(); TQVBox *page = makeVBoxMainWidget();
TQSplitter *splitter = new TQSplitter( page ); TQSplitter *splitter = new TQSplitter( page );
splitter->setOrientation( Qt::Horizontal ); splitter->setOrientation( TQt::Horizontal );
mTypeGroup = new TQVButtonGroup( i18n("Print Style"), splitter, "buttonGroup" ); mTypeGroup = new TQVButtonGroup( i18n("Print Style"), splitter, "buttonGroup" );
// use the minimal width possible = max width of the radio buttons, not extensible // use the minimal width possible = max width of the radio buttons, not extensible

@ -76,7 +76,7 @@ SearchDialog::SearchDialog(Calendar *calendar,TQWidget *parent)
mTodosCheck->setChecked( true ); mTodosCheck->setChecked( true );
// Date range // Date range
TQGroupBox *rangeGroup = new TQGroupBox( 1, Qt::Horizontal, i18n( "Date Range" ), TQGroupBox *rangeGroup = new TQGroupBox( 1, TQt::Horizontal, i18n( "Date Range" ),
topFrame ); topFrame );
layout->addWidget( rangeGroup ); layout->addWidget( rangeGroup );

@ -171,11 +171,11 @@ void BoxContainerItem::runCommand( const TQString& cmd )
void BoxContainerItem::mouseButtonPressed( TQt::ButtonState state ) void BoxContainerItem::mouseButtonPressed( TQt::ButtonState state )
{ {
int button; int button;
if( state & Qt::LeftButton ) if( state & TQt::LeftButton )
button = 0; button = 0;
else if( state & Qt::RightButton ) else if( state & TQt::RightButton )
button = 2; button = 2;
else if( state & Qt::MidButton ) else if( state & TQt::MidButton )
button = 1; button = 1;
else else
return; //Invalid mouse button return; //Invalid mouse button

@ -24,11 +24,11 @@
#include <tqvbox.h> #include <tqvbox.h>
HVContainer::HVContainer( Qt::Orientation orientation, TQObject * parent, const char * name ) HVContainer::HVContainer( TQt::Orientation orientation, TQObject * parent, const char * name )
: BoxContainer( parent, name ), : BoxContainer( parent, name ),
box( 0 ) box( 0 )
{ {
if( orientation == Qt::Horizontal ) if( orientation == TQt::Horizontal )
box = new TQHBox( 0, "hbox" ); box = new TQHBox( 0, "hbox" );
else else
box = new TQVBox( 0, "vbox" ); box = new TQVBox( 0, "vbox" );

@ -38,7 +38,7 @@ public:
* *
* @param orientation The orientation of the box: it is a vertical or horizontal box? * @param orientation The orientation of the box: it is a vertical or horizontal box?
*/ */
HVContainer( Qt::Orientation orientation, TQObject * parent = 0 , const char * name = 0 ); HVContainer( TQt::Orientation orientation, TQObject * parent = 0 , const char * name = 0 );
~HVContainer(); ~HVContainer();
/** /**

@ -99,9 +99,9 @@ void KornShell::readConfig()
KOrnPassword::setUseWallet( _config->readBoolEntry( "usewallet", false ) ); KOrnPassword::setUseWallet( _config->readBoolEntry( "usewallet", false ) );
if( layout == 'H' ) if( layout == 'H' )
_box = new HVContainer( Qt::Horizontal, TQT_TQOBJECT(this), "horizontal container" ); _box = new HVContainer( TQt::Horizontal, TQT_TQOBJECT(this), "horizontal container" );
else if( layout == 'V' ) else if( layout == 'V' )
_box = new HVContainer( Qt::Vertical, TQT_TQOBJECT(this), "vertical container" ); _box = new HVContainer( TQt::Vertical, TQT_TQOBJECT(this), "vertical container" );
else else
_box = new DockedContainer( TQT_TQOBJECT(this), "docked container" ); _box = new DockedContainer( TQT_TQOBJECT(this), "docked container" );

@ -54,7 +54,7 @@ TQString KornMailSubject::toString() const
date.setTime_t(_date); date.setTime_t(_date);
return TQString("KornMailSubject, Id: ") + (_id?_id->toString():TQString("NULL")) + ", " + i18n("Subject:") + " " + _subject return TQString("KornMailSubject, Id: ") + (_id?_id->toString():TQString("NULL")) + ", " + i18n("Subject:") + " " + _subject
+ ", " + i18n("Sender:") + " " + _sender + ", " + i18n("Size:") + " " + TQString::number(_size) + ", " + i18n("Sender:") + " " + _sender + ", " + i18n("Size:") + " " + TQString::number(_size)
+ ", " + i18n("Date:") + " " + date.toString(Qt::ISODate); + ", " + i18n("Date:") + " " + date.toString(TQt::ISODate);
} }
TQString KornMailSubject::decodeRFC2047String(const TQCString& aStr) TQString KornMailSubject::decodeRFC2047String(const TQCString& aStr)

@ -624,8 +624,8 @@ void TQWinMetaFile::setBkColor( long, short* parm )
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void TQWinMetaFile::setBkMode( long, short* parm ) void TQWinMetaFile::setBkMode( long, short* parm )
{ {
if ( parm[ 0 ]==1 ) mPainter.setBackgroundMode( Qt::TransparentMode ); if ( parm[ 0 ]==1 ) mPainter.setBackgroundMode( TQt::TransparentMode );
else mPainter.setBackgroundMode( Qt::OpaqueMode ); else mPainter.setBackgroundMode( TQt::OpaqueMode );
} }
@ -929,26 +929,26 @@ void TQWinMetaFile::createEmptyObject( long, short* )
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void TQWinMetaFile::createBrushIndirect( long, short* parm ) void TQWinMetaFile::createBrushIndirect( long, short* parm )
{ {
static Qt::BrushStyle hatchedStyleTab[] = static TQt::BrushStyle hatchedStyleTab[] =
{ {
Qt::HorPattern, TQt::HorPattern,
Qt::FDiagPattern, TQt::FDiagPattern,
Qt::BDiagPattern, TQt::BDiagPattern,
Qt::CrossPattern, TQt::CrossPattern,
Qt::DiagCrossPattern TQt::DiagCrossPattern
}; };
static Qt::BrushStyle styleTab[] = static TQt::BrushStyle styleTab[] =
{ Qt::SolidPattern, { TQt::SolidPattern,
Qt::NoBrush, TQt::NoBrush,
Qt::FDiagPattern, /* hatched */ TQt::FDiagPattern, /* hatched */
Qt::Dense4Pattern, /* should be custom bitmap pattern */ TQt::Dense4Pattern, /* should be custom bitmap pattern */
Qt::HorPattern, /* should be BS_INDEXED (?) */ TQt::HorPattern, /* should be BS_INDEXED (?) */
Qt::VerPattern, /* should be device-independent bitmap */ TQt::VerPattern, /* should be device-independent bitmap */
Qt::Dense6Pattern, /* should be device-independent packed-bitmap */ TQt::Dense6Pattern, /* should be device-independent packed-bitmap */
Qt::Dense2Pattern, /* should be BS_PATTERN8x8 */ TQt::Dense2Pattern, /* should be BS_PATTERN8x8 */
Qt::Dense3Pattern /* should be device-independent BS_DIBPATTERN8x8 */ TQt::Dense3Pattern /* should be device-independent BS_DIBPATTERN8x8 */
}; };
Qt::BrushStyle style; TQt::BrushStyle style;
short arg; short arg;
WinObjBrushHandle* handle = new WinObjBrushHandle; WinObjBrushHandle* handle = new WinObjBrushHandle;
addHandle( handle ); addHandle( handle );
@ -961,7 +961,7 @@ void TQWinMetaFile::createBrushIndirect( long, short* parm )
else else
{ {
kdDebug() << "TQWinMetaFile::createBrushIndirect: invalid hatched brush " << arg << endl; kdDebug() << "TQWinMetaFile::createBrushIndirect: invalid hatched brush " << arg << endl;
style = Qt::SolidPattern; style = TQt::SolidPattern;
} }
} }
else if ( arg>=0 && arg<9 ) else if ( arg>=0 && arg<9 )
@ -969,7 +969,7 @@ void TQWinMetaFile::createBrushIndirect( long, short* parm )
else else
{ {
kdDebug() << "TQWinMetaFile::createBrushIndirect: invalid brush " << arg << endl; kdDebug() << "TQWinMetaFile::createBrushIndirect: invalid brush " << arg << endl;
style = Qt::SolidPattern; style = TQt::SolidPattern;
} }
handle->brush.setStyle( style ); handle->brush.setStyle( style );
handle->brush.setColor( color( parm+1 ) ); handle->brush.setColor( color( parm+1 ) );
@ -979,10 +979,10 @@ void TQWinMetaFile::createBrushIndirect( long, short* parm )
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void TQWinMetaFile::createPenIndirect( long, short* parm ) void TQWinMetaFile::createPenIndirect( long, short* parm )
{ {
static Qt::PenStyle styleTab[] = static TQt::PenStyle styleTab[] =
{ Qt::SolidLine, Qt::DashLine, Qt::DotLine, Qt::DashDotLine, Qt::DashDotDotLine, { TQt::SolidLine, TQt::DashLine, TQt::DotLine, TQt::DashDotLine, TQt::DashDotDotLine,
Qt::NoPen, Qt::SolidLine }; TQt::NoPen, TQt::SolidLine };
Qt::PenStyle style; TQt::PenStyle style;
WinObjPenHandle* handle = new WinObjPenHandle; WinObjPenHandle* handle = new WinObjPenHandle;
addHandle( handle ); addHandle( handle );
@ -990,12 +990,12 @@ void TQWinMetaFile::createPenIndirect( long, short* parm )
else else
{ {
kdDebug() << "TQWinMetaFile::createPenIndirect: invalid pen " << parm[ 0 ] << endl; kdDebug() << "TQWinMetaFile::createPenIndirect: invalid pen " << parm[ 0 ] << endl;
style = Qt::SolidLine; style = TQt::SolidLine;
} }
handle->pen.setStyle( style ); handle->pen.setStyle( style );
handle->pen.setColor( color( parm+3 ) ); handle->pen.setColor( color( parm+3 ) );
handle->pen.setCapStyle( Qt::RoundCap ); handle->pen.setCapStyle( TQt::RoundCap );
//int width = 0; //int width = 0;
// TODO : width of pen proportional to device context width // TODO : width of pen proportional to device context width

@ -41,7 +41,7 @@ ResourceCachedReloadConfig::ResourceCachedReloadConfig( TQWidget *parent,
{ {
TQBoxLayout *topLayout = new TQVBoxLayout( this ); TQBoxLayout *topLayout = new TQVBoxLayout( this );
mGroup = new TQButtonGroup( 1, Qt::Horizontal, i18n("Automatic Reload"), this ); mGroup = new TQButtonGroup( 1, TQt::Horizontal, i18n("Automatic Reload"), this );
topLayout->addWidget( mGroup ); topLayout->addWidget( mGroup );
new TQRadioButton( i18n("Never"), mGroup ); new TQRadioButton( i18n("Never"), mGroup );
new TQRadioButton( i18n("On startup"), mGroup ); new TQRadioButton( i18n("On startup"), mGroup );
@ -81,7 +81,7 @@ ResourceCachedSaveConfig::ResourceCachedSaveConfig( TQWidget *parent,
{ {
TQBoxLayout *topLayout = new TQVBoxLayout( this ); TQBoxLayout *topLayout = new TQVBoxLayout( this );
mGroup = new TQButtonGroup( 1, Qt::Horizontal, i18n("Automatic Save"), this ); mGroup = new TQButtonGroup( 1, TQt::Horizontal, i18n("Automatic Save"), this );
topLayout->addWidget( mGroup ); topLayout->addWidget( mGroup );
new TQRadioButton( i18n("Never"), mGroup ); new TQRadioButton( i18n("Never"), mGroup );
new TQRadioButton( i18n("On exit"), mGroup ); new TQRadioButton( i18n("On exit"), mGroup );

@ -51,7 +51,7 @@ ResourceLocalConfig::ResourceLocalConfig( TQWidget* parent, const char* name )
mainLayout->addWidget( label, 1, 0 ); mainLayout->addWidget( label, 1, 0 );
mainLayout->addWidget( mURL, 1, 1 ); mainLayout->addWidget( mURL, 1, 1 );
formatGroup = new TQButtonGroup( 1, Qt::Horizontal, i18n( "Calendar Format" ), this ); formatGroup = new TQButtonGroup( 1, TQt::Horizontal, i18n( "Calendar Format" ), this );
icalButton = new TQRadioButton( i18n("iCalendar"), formatGroup ); icalButton = new TQRadioButton( i18n("iCalendar"), formatGroup );
vcalButton = new TQRadioButton( i18n("vCalendar"), formatGroup ); vcalButton = new TQRadioButton( i18n("vCalendar"), formatGroup );

@ -1383,7 +1383,7 @@ KeyApprovalDialog::KeyApprovalDialog( const TQStringList& addresses,
//hbox->setStretchFactor( keyidLB, 10 ); //hbox->setStretchFactor( keyidLB, 10 );
//mKeyIdListBoxes.insert( 0, keyidLB ); //mKeyIdListBoxes.insert( 0, keyidLB );
new KSeparator( Qt::Horizontal, bigvbox ); new KSeparator( TQt::Horizontal, bigvbox );
} }
else { else {
mEncryptToSelf = 0; mEncryptToSelf = 0;
@ -1402,7 +1402,7 @@ KeyApprovalDialog::KeyApprovalDialog( const TQStringList& addresses,
++kit; // skip the sender's key id ++kit; // skip the sender's key id
} }
else { else {
new KSeparator( Qt::Horizontal, bigvbox ); new KSeparator( TQt::Horizontal, bigvbox );
} }
TQHBox *hbox = new TQHBox( bigvbox ); TQHBox *hbox = new TQHBox( bigvbox );

@ -401,7 +401,7 @@ void ExchangeDownload::slotPropFindResult( TDEIO::Job *job )
TQString lastModified = prop.namedItem( "lastmodified" ).toElement().text(); TQString lastModified = prop.namedItem( "lastmodified" ).toElement().text();
if ( !lastModified.isEmpty() ) { if ( !lastModified.isEmpty() ) {
TQDateTime dt = utcAsZone( TQDateTime::fromString( lastModified, Qt::ISODate ), localTimeZoneId ); TQDateTime dt = utcAsZone( TQDateTime::fromString( lastModified, TQt::ISODate ), localTimeZoneId );
event->setLastModified( dt ); event->setLastModified( dt );
kdDebug() << "Got lastModified:" << lastModified << ", " << dt.toString() << endl; kdDebug() << "Got lastModified:" << lastModified << ", " << dt.toString() << endl;
} }
@ -436,7 +436,7 @@ void ExchangeDownload::slotPropFindResult( TDEIO::Job *job )
TQString created = prop.namedItem( "created" ).toElement().text(); TQString created = prop.namedItem( "created" ).toElement().text();
if ( !created.isEmpty() ) { if ( !created.isEmpty() ) {
TQDateTime dt = utcAsZone( TQDateTime::fromString( created, Qt::ISODate ), TQDateTime dt = utcAsZone( TQDateTime::fromString( created, TQt::ISODate ),
localTimeZoneId ); localTimeZoneId );
event->setCreated( dt ); event->setCreated( dt );
kdDebug() << "got created: " << dt.toString() << endl; kdDebug() << "got created: " << dt.toString() << endl;
@ -444,7 +444,7 @@ void ExchangeDownload::slotPropFindResult( TDEIO::Job *job )
TQString dtstart = prop.namedItem( "dtstart" ).toElement().text(); TQString dtstart = prop.namedItem( "dtstart" ).toElement().text();
if ( !dtstart.isEmpty() ) { if ( !dtstart.isEmpty() ) {
TQDateTime dt = utcAsZone( TQDateTime::fromString( dtstart, Qt::ISODate ), TQDateTime dt = utcAsZone( TQDateTime::fromString( dtstart, TQt::ISODate ),
localTimeZoneId ); localTimeZoneId );
event->setDtStart( dt ); event->setDtStart( dt );
kdDebug() << "got dtstart: " << dtstart << " becomes in timezone " << dt.toString() << endl; kdDebug() << "got dtstart: " << dtstart << " becomes in timezone " << dt.toString() << endl;
@ -457,7 +457,7 @@ void ExchangeDownload::slotPropFindResult( TDEIO::Job *job )
TQString dtend = prop.namedItem( "dtend" ).toElement().text(); TQString dtend = prop.namedItem( "dtend" ).toElement().text();
if ( !dtend.isEmpty() ) { if ( !dtend.isEmpty() ) {
TQDateTime dt = utcAsZone( TQDateTime::fromString( dtend, Qt::ISODate ), TQDateTime dt = utcAsZone( TQDateTime::fromString( dtend, TQt::ISODate ),
localTimeZoneId ); localTimeZoneId );
// Outlook thinks differently about floating event timing than libkcal // Outlook thinks differently about floating event timing than libkcal
if ( floats ) dt = dt.addDays( -1 ); if ( floats ) dt = dt.addDays( -1 );
@ -510,7 +510,7 @@ void ExchangeDownload::slotPropFindResult( TDEIO::Job *job )
list = exdate.elementsByTagNameNS( "xml:", "v" ); list = exdate.elementsByTagNameNS( "xml:", "v" );
for( uint i=0; i < list.count(); i++ ) { for( uint i=0; i < list.count(); i++ ) {
TQDomElement item = list.item(i).toElement(); TQDomElement item = list.item(i).toElement();
TQDate date = utcAsZone( TQDateTime::fromString( item.text(), Qt::ISODate ), localTimeZoneId ).date(); TQDate date = utcAsZone( TQDateTime::fromString( item.text(), TQt::ISODate ), localTimeZoneId ).date();
exdates.append( date ); exdates.append( date );
// kdDebug() << "Got exdate: " << date.toString() << endl; // kdDebug() << "Got exdate: " << date.toString() << endl;
} }

@ -262,11 +262,11 @@ void ExchangeUpload::startUpload( const KURL &url )
kdDebug() << "ExchangeUpload::mTimeZoneId=" << mTimeZoneId << endl; kdDebug() << "ExchangeUpload::mTimeZoneId=" << mTimeZoneId << endl;
addElement( doc, prop, "urn:schemas:calendar:", "dtstart", addElement( doc, prop, "urn:schemas:calendar:", "dtstart",
zoneAsUtc( event->dtStart(), mTimeZoneId ).toString( Qt::ISODate ) + "Z" ); zoneAsUtc( event->dtStart(), mTimeZoneId ).toString( TQt::ISODate ) + "Z" );
// event->dtStart().toString( "yyyy-MM-ddThh:mm:ss.zzzZ" ) ); // event->dtStart().toString( "yyyy-MM-ddThh:mm:ss.zzzZ" ) );
// 2002-06-04T08:00:00.000Z" ); // 2002-06-04T08:00:00.000Z" );
addElement( doc, prop, "urn:schemas:calendar:", "dtend", addElement( doc, prop, "urn:schemas:calendar:", "dtend",
zoneAsUtc( event->dtEnd(), mTimeZoneId ).toString( Qt::ISODate ) + "Z" ); zoneAsUtc( event->dtEnd(), mTimeZoneId ).toString( TQt::ISODate ) + "Z" );
#if 0 #if 0
addElement( doc, prop, "urn:schemas:calendar:", "dtstart", addElement( doc, prop, "urn:schemas:calendar:", "dtstart",
event->dtStart().toString( "yyyy-MM-ddThh:mm:ss.zzz" )+ offsetString ); event->dtStart().toString( "yyyy-MM-ddThh:mm:ss.zzz" )+ offsetString );
@ -275,7 +275,7 @@ void ExchangeUpload::startUpload( const KURL &url )
addElement( doc, prop, "urn:schemas:calendar:", "dtend", addElement( doc, prop, "urn:schemas:calendar:", "dtend",
event->dtEnd().toString( "yyyy-MM-ddThh:mm:ss.zzz" ) + offsetString ); event->dtEnd().toString( "yyyy-MM-ddThh:mm:ss.zzz" ) + offsetString );
#endif #endif
addElement( doc, prop, "urn:schemas:calendar:", "lastmodified", zoneAsUtc( event->lastModified(), mTimeZoneId ).toString( Qt::ISODate )+"Z" ); addElement( doc, prop, "urn:schemas:calendar:", "lastmodified", zoneAsUtc( event->lastModified(), mTimeZoneId ).toString( TQt::ISODate )+"Z" );
// addElement( doc, prop, "urn:schemas:calendar:", "meetingstatus", "confirmed" ); // addElement( doc, prop, "urn:schemas:calendar:", "meetingstatus", "confirmed" );
addElement( doc, prop, "urn:schemas:httpmail:", "textdescription", event->description() ); addElement( doc, prop, "urn:schemas:httpmail:", "textdescription", event->description() );
@ -308,7 +308,7 @@ void ExchangeUpload::startUpload( const KURL &url )
KCal::DateList::iterator it; KCal::DateList::iterator it;
for ( it = exdates.begin(); it != exdates.end(); ++it ) { for ( it = exdates.begin(); it != exdates.end(); ++it ) {
TQString date = (*it).toString( "yyyy-MM-ddT00:00:00.000" )+ offsetString; TQString date = (*it).toString( "yyyy-MM-ddT00:00:00.000" )+ offsetString;
// TQString date = zoneAsUtc( (*it), mTimeZoneId ).toString( Qt::ISODate ); // TQString date = zoneAsUtc( (*it), mTimeZoneId ).toString( TQt::ISODate );
addElement( doc, exdate, "xml:", "v", date ); addElement( doc, exdate, "xml:", "v", date );
} }
} }

@ -346,7 +346,7 @@ void AddresseeLineEdit::mouseReleaseEvent( TQMouseEvent *e )
if ( m_useCompletion if ( m_useCompletion
&& TQApplication::clipboard()->supportsSelection() && TQApplication::clipboard()->supportsSelection()
&& !isReadOnly() && !isReadOnly()
&& e->button() == Qt::MidButton ) { && e->button() == TQt::MidButton ) {
m_smartPaste = true; 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 // avoid selection of headers on button press, or move or release while
// a button is pressed // a button is pressed
if ( e->type() == TQEvent::MouseButtonPress if ( e->type() == TQEvent::MouseButtonPress
|| me->state() & Qt::LeftButton || me->state() & Qt::MidButton || me->state() & TQt::LeftButton || me->state() & TQt::MidButton
|| me->state() & Qt::RightButton ) { || me->state() & TQt::RightButton ) {
if ( itemIsHeader(item) ) { if ( itemIsHeader(item) ) {
return true; // eat the event, we don't want anything to happen return true; // eat the event, we don't want anything to happen
} else { } else {

@ -187,13 +187,13 @@ void DesignerFields::load( DesignerFields::Storage *storage )
wdg->setChecked( value == "true" || value == "1" ); wdg->setChecked( value == "true" || value == "1" );
} else if ( it.data()->inherits( "TQDateTimeEdit" ) ) { } else if ( it.data()->inherits( "TQDateTimeEdit" ) ) {
TQDateTimeEdit *wdg = static_cast<TQDateTimeEdit*>( it.data() ); 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" ) ) { } else if ( it.data()->inherits( "KDateTimeWidget" ) ) {
KDateTimeWidget *wdg = static_cast<KDateTimeWidget*>( it.data() ); 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" ) ) { } else if ( it.data()->inherits( "KDatePicker" ) ) {
KDatePicker *wdg = static_cast<KDatePicker*>( it.data() ); 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" ) ) { } else if ( it.data()->inherits( "TQComboBox" ) ) {
TQComboBox *wdg = static_cast<TQComboBox*>( it.data() ); TQComboBox *wdg = static_cast<TQComboBox*>( it.data() );
wdg->setCurrentText( value ); wdg->setCurrentText( value );
@ -221,13 +221,13 @@ void DesignerFields::save( DesignerFields::Storage *storage )
value = ( wdg->isChecked() ? "true" : "false" ); value = ( wdg->isChecked() ? "true" : "false" );
} else if ( it.data()->inherits( "TQDateTimeEdit" ) ) { } else if ( it.data()->inherits( "TQDateTimeEdit" ) ) {
TQDateTimeEdit *wdg = static_cast<TQDateTimeEdit*>( it.data() ); 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" ) ) { } else if ( it.data()->inherits( "KDateTimeWidget" ) ) {
KDateTimeWidget *wdg = static_cast<KDateTimeWidget*>( it.data() ); 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" ) ) { } else if ( it.data()->inherits( "KDatePicker" ) ) {
KDatePicker *wdg = static_cast<KDatePicker*>( it.data() ); 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" ) ) { } else if ( it.data()->inherits( "TQComboBox" ) ) {
TQComboBox *wdg = static_cast<TQComboBox*>( it.data() ); TQComboBox *wdg = static_cast<TQComboBox*>( it.data() );
value = wdg->currentText(); value = wdg->currentText();

@ -284,7 +284,7 @@ void KCMDesignerFields::initGUI()
mPageView->setFullWidth( true ); mPageView->setFullWidth( true );
hbox->addWidget( mPageView ); 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 = new TQLabel( box );
mPagePreview->setMinimumWidth( 300 ); mPagePreview->setMinimumWidth( 300 );

@ -307,7 +307,7 @@ bool KDateEdit::eventFilter( TQObject *object, TQEvent *event )
void KDateEdit::mousePressEvent( TQMouseEvent *event ) void KDateEdit::mousePressEvent( TQMouseEvent *event )
{ {
if ( event->button() == Qt::LeftButton && mDiscardNextMousePress ) { if ( event->button() == TQt::LeftButton && mDiscardNextMousePress ) {
mDiscardNextMousePress = false; mDiscardNextMousePress = false;
return; return;
} }

@ -104,7 +104,7 @@ KIncidenceChooser::KIncidenceChooser(TQWidget *parent, char *name) :
#else #else
mDiffBut = 0; mDiffBut = 0;
#endif #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); topLayout->addMultiCellWidget(mBg, iii,iii,0,2);
++iii; ++iii;
mBg->insert( new TQRadioButton ( i18n("Take local entry on conflict"), mBg ), KIncidenceChooser::local); mBg->insert( new TQRadioButton ( i18n("Take local entry on conflict"), mBg ), KIncidenceChooser::local);

@ -218,7 +218,7 @@ bool KPixmapRegionSelectorWidget::eventFilter(TQObject *obj, TQEvent *ev)
TQMouseEvent *mev= (TQMouseEvent *)(ev); TQMouseEvent *mev= (TQMouseEvent *)(ev);
//kdDebug() << TQString("click at %1,%2").arg( mev->x() ).arg( mev->y() ) << endl; //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( ); TDEPopupMenu *popup = createPopupMenu( );
popup->exec( mev->globalPos() ); popup->exec( mev->globalPos() );

@ -401,7 +401,7 @@ KPrefsWidRadios::KPrefsWidRadios( TDEConfigSkeleton::ItemEnum *item,
TQWidget *parent ) TQWidget *parent )
: mItem( item ) : 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() ) ); connect( mBox, TQT_SIGNAL( clicked( int ) ), TQT_SIGNAL( changed() ) );
} }

@ -136,7 +136,7 @@ LDAPSearchDialog::LDAPSearchDialog( TQWidget* parent, const char* name )
page ); page );
groupBox->setFrameShape( TQGroupBox::Box ); groupBox->setFrameShape( TQGroupBox::Box );
groupBox->setFrameShadow( TQGroupBox::Sunken ); groupBox->setFrameShadow( TQGroupBox::Sunken );
groupBox->setColumnLayout( 0, Qt::Vertical ); groupBox->setColumnLayout( 0, TQt::Vertical );
TQGridLayout *boxLayout = new TQGridLayout( groupBox->layout(), 2, TQGridLayout *boxLayout = new TQGridLayout( groupBox->layout(), 2,
5, spacingHint() ); 5, spacingHint() );
boxLayout->setColStretch( 1, 1 ); boxLayout->setColStretch( 1, 1 );

@ -268,7 +268,7 @@ bool StatusbarProgressWidget::eventFilter( TQObject *, TQEvent *ev )
if ( ev->type() == TQEvent::MouseButtonPress ) { if ( ev->type() == TQEvent::MouseButtonPress ) {
TQMouseEvent *e = (TQMouseEvent*)ev; 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 // Consensus seems to be that we should show/hide the fancy dialog when the user
// clicks anywhere in the small one. // clicks anywhere in the small one.
mProgressDialog->slotToggleVisibility(); mProgressDialog->slotToggleVisibility();

@ -220,7 +220,7 @@ bool ResourceTDEABC::doLoad()
TQString anniversary_string = (*it).custom( "KADDRESSBOOK", "X-Anniversary" ); TQString anniversary_string = (*it).custom( "KADDRESSBOOK", "X-Anniversary" );
if (anniversary_string.isEmpty() ) if (anniversary_string.isEmpty() )
continue; continue;
TQDateTime anniversary = TQDate::fromString( anniversary_string, Qt::ISODate ); TQDateTime anniversary = TQDate::fromString( anniversary_string, TQt::ISODate );
if ( !anniversary.isValid() ) if ( !anniversary.isValid() )
continue; continue;
@ -232,7 +232,7 @@ bool ResourceTDEABC::doLoad()
for ( addrIt = anniversaries.begin(); addrIt != anniversaries.end(); ++addrIt ) { for ( addrIt = anniversaries.begin(); addrIt != anniversaries.end(); ++addrIt ) {
if ( name == (*addrIt).realName() ) { if ( name == (*addrIt).realName() ) {
TQDate spouseAnniversary = TQDate spouseAnniversary =
TQDate::fromString( (*addrIt).custom( "KADDRESSBOOK", "X-Anniversary" ), Qt::ISODate ); TQDate::fromString( (*addrIt).custom( "KADDRESSBOOK", "X-Anniversary" ), TQt::ISODate );
if ( anniversary == TQDateTime(spouseAnniversary) ) { if ( anniversary == TQDateTime(spouseAnniversary) ) {
found = true; found = true;
break; break;
@ -247,7 +247,7 @@ bool ResourceTDEABC::doLoad()
} }
for ( addrIt = anniversaries.begin(); addrIt != anniversaries.end(); ++addrIt ) { for ( addrIt = anniversaries.begin(); addrIt != anniversaries.end(); ++addrIt ) {
TQDate anniversary = TQDate::fromString( (*addrIt).custom( "KADDRESSBOOK", "X-Anniversary" ), Qt::ISODate ); TQDate anniversary = TQDate::fromString( (*addrIt).custom( "KADDRESSBOOK", "X-Anniversary" ), TQt::ISODate );
kdDebug(5800) << "found a anniversary " << TQString(anniversary.toString()) << endl; kdDebug(5800) << "found a anniversary " << TQString(anniversary.toString()) << endl;
TQString name; TQString name;
TQString name_1 = (*addrIt).nickName(); TQString name_1 = (*addrIt).nickName();

@ -113,7 +113,7 @@ CalDavReloadConfig::CalDavReloadConfig( TQWidget *parent )
d->mIntervalSpin->setRange( 1, 900 ); d->mIntervalSpin->setRange( 1, 900 );
d->mIntervalSpin->setEnabled( false ); d->mIntervalSpin->setEnabled( false );
groupBox->setColumnLayout(1, Qt::Vertical); groupBox->setColumnLayout(1, TQt::Vertical);
TQVBoxLayout *vbox = new TQVBoxLayout(groupBox->layout()); TQVBoxLayout *vbox = new TQVBoxLayout(groupBox->layout());
vbox->addWidget(intervalRadio); vbox->addWidget(intervalRadio);
vbox->addWidget(intervalBox); vbox->addWidget(intervalBox);
@ -206,7 +206,7 @@ CalDavSaveConfig::CalDavSaveConfig( TQWidget *parent )
intervalRadio->hide(); intervalRadio->hide();
intervalBox->hide(); intervalBox->hide();
groupBox->setColumnLayout(1, Qt::Vertical); groupBox->setColumnLayout(1, TQt::Vertical);
TQVBoxLayout *vbox = new TQVBoxLayout(groupBox->layout()); TQVBoxLayout *vbox = new TQVBoxLayout(groupBox->layout());
vbox->addWidget(delay); vbox->addWidget(delay);
vbox->addWidget(every); vbox->addWidget(every);

@ -112,7 +112,7 @@ CardDavReloadConfig::CardDavReloadConfig( TQWidget *parent )
d->mIntervalSpin->setRange( 1, 900 ); d->mIntervalSpin->setRange( 1, 900 );
d->mIntervalSpin->setEnabled( false ); d->mIntervalSpin->setEnabled( false );
groupBox->setColumnLayout(1, Qt::Vertical); groupBox->setColumnLayout(1, TQt::Vertical);
TQVBoxLayout *vbox = new TQVBoxLayout(groupBox->layout()); TQVBoxLayout *vbox = new TQVBoxLayout(groupBox->layout());
vbox->addWidget(intervalRadio); vbox->addWidget(intervalRadio);
vbox->addWidget(intervalBox); vbox->addWidget(intervalBox);
@ -205,7 +205,7 @@ CardDavSaveConfig::CardDavSaveConfig( TQWidget *parent )
intervalRadio->hide(); intervalRadio->hide();
intervalBox->hide(); intervalBox->hide();
groupBox->setColumnLayout(1, Qt::Vertical); groupBox->setColumnLayout(1, TQt::Vertical);
TQVBoxLayout *vbox = new TQVBoxLayout(groupBox->layout()); TQVBoxLayout *vbox = new TQVBoxLayout(groupBox->layout());
vbox->addWidget(delay); vbox->addWidget(delay);
vbox->addWidget(every); vbox->addWidget(every);

@ -222,7 +222,7 @@ TQString Query::marshal( const TQVariant &arg ) const
case TQVariant::ByteArray: case TQVariant::ByteArray:
return "<value><base64>" + KCodecs::base64Encode( arg.toByteArray() ) + "</base64></value>\r\n"; return "<value><base64>" + KCodecs::base64Encode( arg.toByteArray() ) + "</base64></value>\r\n";
case TQVariant::DateTime: case TQVariant::DateTime:
return "<value><datetime.iso8601>" + arg.toDateTime().toString( Qt::ISODate ) + "</datetime.iso8601></value>\r\n"; return "<value><datetime.iso8601>" + arg.toDateTime().toString( TQt::ISODate ) + "</datetime.iso8601></value>\r\n";
case TQVariant::List: case TQVariant::List:
{ {
TQString markup = "<value><array><data>\r\n"; TQString markup = "<value><array><data>\r\n";
@ -279,7 +279,7 @@ TQVariant Query::demarshal( const TQDomElement &elem ) const
else if ( typeName == "base64" ) else if ( typeName == "base64" )
return TQVariant( KCodecs::base64Decode( TQCString(typeElement.text().latin1()) ) ); return TQVariant( KCodecs::base64Decode( TQCString(typeElement.text().latin1()) ) );
else if ( typeName == "datetime" || typeName == "datetime.iso8601" ) else if ( typeName == "datetime" || typeName == "datetime.iso8601" )
return TQVariant( TQDateTime::fromString( typeElement.text(), Qt::ISODate ) ); return TQVariant( TQDateTime::fromString( typeElement.text(), TQt::ISODate ) );
else if ( typeName == "array" ) else if ( typeName == "array" )
{ {
TQValueList<TQVariant> values; TQValueList<TQVariant> values;

@ -67,8 +67,8 @@ char* GWConverter::qStringToChar( const TQString &string )
TQDate GWConverter::charToTQDate( const char *str ) TQDate GWConverter::charToTQDate( const char *str )
{ {
if ( !str ) return TQDate(); // FIXME: Qt::ISODate is probably no good here because it expects yyyy-MM-dd not yyyyMMdd if ( !str ) return TQDate(); // FIXME: TQt::ISODate is probably no good here because it expects yyyy-MM-dd not yyyyMMdd
return TQDate::fromString( TQString::fromUtf8( str ), Qt::ISODate ); return TQDate::fromString( TQString::fromUtf8( str ), TQt::ISODate );
} }
char *GWConverter::qDateTimeToChar( const TQDateTime &dt, char *GWConverter::qDateTimeToChar( const TQDateTime &dt,
@ -94,7 +94,7 @@ std::string* GWConverter::qDateTimeToString( const TQDateTime &dt )
TQDateTime GWConverter::stringToTQDateTime( const std::string* str ) TQDateTime GWConverter::stringToTQDateTime( const std::string* str )
{ {
TQDateTime dt = TQDateTime::fromString( TQString::fromUtf8( str->c_str() ), Qt::ISODate ); TQDateTime dt = TQDateTime::fromString( TQString::fromUtf8( str->c_str() ), TQt::ISODate );
return dt; return dt;
} }
@ -111,15 +111,15 @@ std::string* GWConverter::qDateToString( const TQDate &date )
TQDate GWConverter::stringToTQDate( std::string* str ) TQDate GWConverter::stringToTQDate( std::string* str )
{ {
//NB this ISODate may become unnecessary, if GW stops sending in yyyy-mm-dd format again //NB this ISODate may become unnecessary, if GW stops sending in yyyy-mm-dd format again
return TQDate::fromString( TQString::fromLatin1( str->c_str() ), Qt::ISODate ); return TQDate::fromString( TQString::fromLatin1( str->c_str() ), TQt::ISODate );
} }
TQDateTime GWConverter::charToTQDateTime( const char *str ) TQDateTime GWConverter::charToTQDateTime( const char *str )
{ {
if ( !str ) return TQDateTime(); if ( !str ) return TQDateTime();
// kdDebug() << "charToTQDateTime(): " << str << endl; // kdDebug() << "charToTQDateTime(): " << str << endl;
// as above re Qt::ISODate // as above re TQt::ISODate
TQDateTime dt = TQDateTime::fromString( TQString::fromUtf8( str ), Qt::ISODate ); TQDateTime dt = TQDateTime::fromString( TQString::fromUtf8( str ), TQt::ISODate );
// kdDebug() << " " << dt.toString() << endl; // kdDebug() << " " << dt.toString() << endl;
return dt; return dt;
} }

@ -543,7 +543,7 @@ bool IncidenceConverter::convertFromCalendarItem( ngwt__CalendarItem* item,
std::vector<xsd__date>::const_iterator it; std::vector<xsd__date>::const_iterator it;
for ( it = dateList->begin(); it != dateList->end(); ++it ) { for ( it = dateList->begin(); it != dateList->end(); ++it ) {
TQDate date = TQDate::fromString( s2q( *it ), Qt::ISODate ); TQDate date = TQDate::fromString( s2q( *it ), TQt::ISODate );
if ( date.isValid() ) if ( date.isValid() )
} }
} }
@ -689,7 +689,7 @@ void IncidenceConverter::setRecurrence( KCal::Incidence * incidence, ngwt__Calen
// recurrence date - try setting it using the recurrence start date - didn't help // recurrence date - try setting it using the recurrence start date - didn't help
/* std::string startDate; /* std::string startDate;
startDate.append( recur->recurStart().date().toString( Qt::ISODate ).utf8() ); startDate.append( recur->recurStart().date().toString( TQt::ISODate ).utf8() );
item->rdate = soap_new_ngwt__RecurrenceDateType( soap(), -1 ); item->rdate = soap_new_ngwt__RecurrenceDateType( soap(), -1 );
item->rdate->date.push_back( startDate );*/ item->rdate->date.push_back( startDate );*/
// exceptions list - try sending empty list even if no exceptions // exceptions list - try sending empty list even if no exceptions
@ -704,7 +704,7 @@ void IncidenceConverter::setRecurrence( KCal::Incidence * incidence, ngwt__Calen
for ( KCal::DateList::ConstIterator it = exceptions.begin(); it != exceptions.end(); ++it ) for ( KCal::DateList::ConstIterator it = exceptions.begin(); it != exceptions.end(); ++it )
{ {
std::string startDate; std::string startDate;
startDate.append( TQString((*it).toString( Qt::ISODate )).utf8() ); startDate.append( TQString((*it).toString( TQt::ISODate )).utf8() );
item->exdate->date.push_back( startDate ); item->exdate->date.push_back( startDate );
} }
} }

@ -409,12 +409,12 @@ TQDomDocument KolabBase::domTree()
TQString KolabBase::dateTimeToString( const TQDateTime& time ) TQString KolabBase::dateTimeToString( const TQDateTime& time )
{ {
return time.toString( Qt::ISODate ) + 'Z'; return time.toString( TQt::ISODate ) + 'Z';
} }
TQString KolabBase::dateToString( const TQDate& date ) TQString KolabBase::dateToString( const TQDate& date )
{ {
return date.toString( Qt::ISODate ); return date.toString( TQt::ISODate );
} }
TQDateTime KolabBase::stringToDateTime( const TQString& _date ) TQDateTime KolabBase::stringToDateTime( const TQString& _date )
@ -423,15 +423,15 @@ TQDateTime KolabBase::stringToDateTime( const TQString& _date )
//Deal with data from some clients that always append a Z to dates. //Deal with data from some clients that always append a Z to dates.
if ( date.endsWith( "ZZ" ) ) if ( date.endsWith( "ZZ" ) )
date.truncate( date.length() - 2 ); date.truncate( date.length() - 2 );
//In TQt3, Qt::ISODate cannot handle a trailing Z for UTC, so remove if found. //In TQt3, TQt::ISODate cannot handle a trailing Z for UTC, so remove if found.
else if ( date.endsWith( "Z" ) ) else if ( date.endsWith( "Z" ) )
date.truncate( date.length() - 1 ); date.truncate( date.length() - 1 );
return TQDateTime::fromString( date, Qt::ISODate ); return TQDateTime::fromString( date, TQt::ISODate );
} }
TQDate KolabBase::stringToDate( const TQString& date ) TQDate KolabBase::stringToDate( const TQString& date )
{ {
return TQDate::fromString( date, Qt::ISODate ); return TQDate::fromString( date, TQt::ISODate );
} }
TQString KolabBase::sensitivityToString( Sensitivity s ) TQString KolabBase::sensitivityToString( Sensitivity s )

@ -47,7 +47,7 @@ FolderConfig::FolderConfig( TQWidget *parent )
TQBoxLayout *topLayout = new TQVBoxLayout( this ); TQBoxLayout *topLayout = new TQVBoxLayout( this );
topLayout->addSpacing( KDialog::spacingHint() ); topLayout->addSpacing( KDialog::spacingHint() );
TQGroupBox *topBox = new TQGroupBox( 1, Qt::Horizontal, i18n("Folder Selection"), TQGroupBox *topBox = new TQGroupBox( 1, TQt::Horizontal, i18n("Folder Selection"),
this ); this );
topLayout->addWidget( topBox ); topLayout->addWidget( topBox );

@ -147,10 +147,10 @@ void FolderListView::slotPopupHandler( int z )
void FolderListView::slotMousePressed(int btn, TQListViewItem* i, const TQPoint& pos, int c) void FolderListView::slotMousePressed(int btn, TQListViewItem* i, const TQPoint& pos, int c)
{ {
if ( dynamic_cast<FolderListItem*>(i) ) { if ( dynamic_cast<FolderListItem*>(i) ) {
if ( btn == Qt::RightButton ) { if ( btn == TQt::RightButton ) {
showPopupMenu( (FolderListItem*)i, /*mapToGlobal(*/pos/*)*/ ); showPopupMenu( (FolderListItem*)i, /*mapToGlobal(*/pos/*)*/ );
} }
else if ( btn == Qt::LeftButton && c > 0 ) { else if ( btn == TQt::LeftButton && c > 0 ) {
// map pos to item/column and call FolderListItem::activate(col, pos) // map pos to item/column and call FolderListItem::activate(col, pos)
((FolderListItem*)i)->activate( c, viewport()->mapFromGlobal( pos ) - TQPoint( 0, itemRect(i).top() ) ); ((FolderListItem*)i)->activate( c, viewport()->mapFromGlobal( pos ) - TQPoint( 0, itemRect(i).top() ) );
// } else { // } else {

@ -120,7 +120,7 @@ bool WebdavHandler::extractDateTime( const TQDomElement &node, const TQString &e
{ {
TQDomElement element = node.namedItem( entry ).toElement(); TQDomElement element = node.namedItem( entry ).toElement();
if ( !element.isNull() && !element.text().isEmpty() ) { if ( !element.isNull() && !element.text().isEmpty() ) {
value = TQDateTime::fromString( element.text(), Qt::ISODate ); value = TQDateTime::fromString( element.text(), TQt::ISODate );
return true; return true;
} }
return false; return false;

@ -410,7 +410,7 @@ kdDebug()<<"ExchangeConverterCalendar::readIncidence: ERROR: No UID given"<<endl
TQStringList::Iterator it = tmplst.begin(); TQStringList::Iterator it = tmplst.begin();
KCal::DateList exdates; KCal::DateList exdates;
for ( ; it != tmplst.end(); ++it ) { for ( ; it != tmplst.end(); ++it ) {
exdates.append( /*utcAsZone(*/ TQDateTime::fromString( *it, Qt::ISODate )/*, exdates.append( /*utcAsZone(*/ TQDateTime::fromString( *it, TQt::ISODate )/*,
localTimeZoneId )*/.date() ); localTimeZoneId )*/.date() );
} }
event->recurrence()->setExDates( exdates ); event->recurrence()->setExDates( exdates );
@ -593,7 +593,7 @@ class ExchangeConverterCalendar::createWebDAVVisitor : public IncidenceBase::Vis
void addDateProp( TQDomElement &el ) { el.setAttribute( "b:dt", "dateTime.tz" ); } void addDateProp( TQDomElement &el ) { el.setAttribute( "b:dt", "dateTime.tz" ); }
void addFloatProp( TQDomElement &el ) { el.setAttribute( "b:dt", "float" ); } void addFloatProp( TQDomElement &el ) { el.setAttribute( "b:dt", "float" ); }
void addIntProp( TQDomElement &el ) { el.setAttribute( "b:dt", "int" ); } void addIntProp( TQDomElement &el ) { el.setAttribute( "b:dt", "int" ); }
TQString timePropString( const TQDateTime &dt ) { return dt.toString( Qt::ISODate )+"Z"; } TQString timePropString( const TQDateTime &dt ) { return dt.toString( TQt::ISODate )+"Z"; }
bool visitIncidence( Incidence *incidence ) bool visitIncidence( Incidence *incidence )
{ {
@ -730,8 +730,8 @@ class ExchangeConverterCalendar::createWebDAVVisitor : public IncidenceBase::Vis
/* FIXME: /* FIXME:
domCalendarProperty( "uid", todo->uid() ); domCalendarProperty( "uid", todo->uid() );
domCalendarProperty( "created", todo->created().toString( Qt::ISODate ) ); domCalendarProperty( "created", todo->created().toString( TQt::ISODate ) );
domCalendarProperty( "lastmodified", todo->lastModified().toString( Qt::ISODate ) );*/ domCalendarProperty( "lastmodified", todo->lastModified().toString( TQt::ISODate ) );*/
// TODO // TODO
/*propertyTask1( TaskProp_Owner ); /*propertyTask1( TaskProp_Owner );
propertyTask2( TaskProp_ContactNames ); propertyTask2( TaskProp_ContactNames );
@ -758,8 +758,8 @@ class ExchangeConverterCalendar::createWebDAVVisitor : public IncidenceBase::Vis
"outlookmessageclass", "IPM.Journal" ); "outlookmessageclass", "IPM.Journal" );
/* FIXME: /* FIXME:
domCalendarProperty( "uid", todo->uid() ); domCalendarProperty( "uid", todo->uid() );
domCalendarProperty( "created", todo->created().toString( Qt::ISODate ) ); domCalendarProperty( "created", todo->created().toString( TQt::ISODate ) );
domCalendarProperty( "lastmodified", todo->lastModified().toString( Qt::ISODate ) );*/ domCalendarProperty( "lastmodified", todo->lastModified().toString( TQt::ISODate ) );*/
// TODO // TODO
return true; return true;
} }

@ -38,7 +38,7 @@ OutOfOfficePage::OutOfOfficePage( TQWidget *parent )
{ {
TQGridLayout *layout = new TQGridLayout( this, 4, 2, 11, 6 ); TQGridLayout *layout = new TQGridLayout( this, 4, 2, 11, 6 );
TQButtonGroup *group = new TQButtonGroup( 1, Qt::Vertical, this ); TQButtonGroup *group = new TQButtonGroup( 1, TQt::Vertical, this );
mDisabled = new TQRadioButton( i18n( "I am in the office" ), group ); mDisabled = new TQRadioButton( i18n( "I am in the office" ), group );
mDisabled->setChecked( true ); mDisabled->setChecked( true );

@ -372,12 +372,12 @@ TQDomDocument ScalixBase::domTree()
TQString ScalixBase::dateTimeToString( const TQDateTime& time ) TQString ScalixBase::dateTimeToString( const TQDateTime& time )
{ {
return time.toString( Qt::ISODate ) + 'Z'; return time.toString( TQt::ISODate ) + 'Z';
} }
TQString ScalixBase::dateToString( const TQDate& date ) TQString ScalixBase::dateToString( const TQDate& date )
{ {
return date.toString( Qt::ISODate ); return date.toString( TQt::ISODate );
} }
TQDateTime ScalixBase::stringToDateTime( const TQString& _date ) TQDateTime ScalixBase::stringToDateTime( const TQString& _date )
@ -385,12 +385,12 @@ TQDateTime ScalixBase::stringToDateTime( const TQString& _date )
TQString date( _date ); TQString date( _date );
if ( date.endsWith( "Z" ) ) if ( date.endsWith( "Z" ) )
date.truncate( date.length() - 1 ); date.truncate( date.length() - 1 );
return TQDateTime::fromString( date, Qt::ISODate ); return TQDateTime::fromString( date, TQt::ISODate );
} }
TQDate ScalixBase::stringToDate( const TQString& date ) TQDate ScalixBase::stringToDate( const TQString& date )
{ {
return TQDate::fromString( date, Qt::ISODate ); return TQDate::fromString( date, TQt::ISODate );
} }
TQString ScalixBase::sensitivityToString( Sensitivity s ) TQString ScalixBase::sensitivityToString( Sensitivity s )

@ -71,7 +71,7 @@ TQString Contact::toXml( const TDEABC::Addressee &addr )
xml += "<reminder_set>" + custom( "reminder_set", addr, "false" ) + "</reminder_set>\n"; xml += "<reminder_set>" + custom( "reminder_set", addr, "false" ) + "</reminder_set>\n";
xml += "<send_rich_info>" + custom( "send_rich_info", addr, "false" ) + "</send_rich_info>\n"; xml += "<send_rich_info>" + custom( "send_rich_info", addr, "false" ) + "</send_rich_info>\n";
xml += "<subject>" + addr.formattedName() + "</subject>\n"; xml += "<subject>" + addr.formattedName() + "</subject>\n";
xml += "<last_modification_time>" + addr.revision().toString( Qt::ISODate ) + "</last_modification_time>\n"; xml += "<last_modification_time>" + addr.revision().toString( TQt::ISODate ) + "</last_modification_time>\n";
xml += "<display_name_prefix>" + addr.prefix() + "</display_name_prefix>\n"; xml += "<display_name_prefix>" + addr.prefix() + "</display_name_prefix>\n";
xml += "<first_name>" + addr.givenName() + "</first_name>\n"; xml += "<first_name>" + addr.givenName() + "</first_name>\n";
@ -166,7 +166,7 @@ TQString Contact::toXml( const TDEABC::Addressee &addr )
xml += "<office_location>" + addr.custom( "KADDRESSBOOK", "X-Office" ) + "</office_location>\n"; xml += "<office_location>" + addr.custom( "KADDRESSBOOK", "X-Office" ) + "</office_location>\n";
xml += "<spouse>" + addr.custom( "KADDRESSBOOK", "X-SpousesName" ) + "</spouse>\n"; xml += "<spouse>" + addr.custom( "KADDRESSBOOK", "X-SpousesName" ) + "</spouse>\n";
xml += "<bday>" + addr.birthday().toString( Qt::ISODate ) + "</bday>\n"; xml += "<bday>" + addr.birthday().toString( TQt::ISODate ) + "</bday>\n";
xml += "<anniversary>" + addr.custom( "KADDRESSBOOK", "X-Anniversary" ) + "</anniversary>\n"; xml += "<anniversary>" + addr.custom( "KADDRESSBOOK", "X-Anniversary" ) + "</anniversary>\n";
xml += "<mapi_charset>" + custom( "mapi_charset", addr, "UTF8" ) + "</mapi_charset>"; xml += "<mapi_charset>" + custom( "mapi_charset", addr, "UTF8" ) + "</mapi_charset>";
@ -235,7 +235,7 @@ TDEABC::Addressee Contact::fromXml( const TQString &xml )
else if ( element.tagName() == "send_rich_info" ) else if ( element.tagName() == "send_rich_info" )
setCustom( "send_rich_info", element.text(), addr ); setCustom( "send_rich_info", element.text(), addr );
else if ( element.tagName() == "last_modification_time" ) else if ( element.tagName() == "last_modification_time" )
addr.setRevision( TQDateTime::fromString( element.text(), Qt::ISODate ) ); addr.setRevision( TQDateTime::fromString( element.text(), TQt::ISODate ) );
// name // name
else if ( element.tagName() == "display_name_prefix" ) else if ( element.tagName() == "display_name_prefix" )
@ -352,7 +352,7 @@ TDEABC::Addressee Contact::fromXml( const TQString &xml )
addr.insertCustom( "KADDRESSBOOK", "X-SpousesName", element.text() ); addr.insertCustom( "KADDRESSBOOK", "X-SpousesName", element.text() );
else if ( element.tagName() == "bday" ) else if ( element.tagName() == "bday" )
addr.setBirthday( TQDateTime::fromString( element.text(), Qt::ISODate ) ); addr.setBirthday( TQDateTime::fromString( element.text(), TQt::ISODate ) );
else if ( element.tagName() == "anniversary" ) else if ( element.tagName() == "anniversary" )
addr.insertCustom( "KADDRESSBOOK", "X-Anniversary", element.text() ); addr.insertCustom( "KADDRESSBOOK", "X-Anniversary", element.text() );
else else

@ -402,7 +402,7 @@ void ResourceSlox::parseContactAttribute( const TQDomElement &e, Addressee &a )
a.insertCustom( "KADDRESSBOOK", "X-SpousesName", text ); a.insertCustom( "KADDRESSBOOK", "X-SpousesName", text );
} else if ( tag == fieldName( Anniversary ) ) { } else if ( tag == fieldName( Anniversary ) ) {
TQDateTime dt = WebdavHandler::sloxToTQDateTime( text ); TQDateTime dt = WebdavHandler::sloxToTQDateTime( text );
a.insertCustom( "KADDRESSBOOK", "X-Anniversary", dt.toString( Qt::ISODate ) ); a.insertCustom( "KADDRESSBOOK", "X-Anniversary", dt.toString( TQt::ISODate ) );
} else if ( tag == fieldName( Categories ) ) { } else if ( tag == fieldName( Categories ) ) {
a.setCategories( TQStringList::split( TQRegExp(",\\s*"), text ) ); a.setCategories( TQStringList::split( TQRegExp(",\\s*"), text ) );
} else if ( type() == "ox" ) { // FIXME: Address reading is missing for SLOX } else if ( type() == "ox" ) { // FIXME: Address reading is missing for SLOX
@ -577,7 +577,7 @@ void ResourceSlox::createAddresseeFields( TQDomDocument &doc, TQDomElement &prop
TQString anniversary = a.custom( "KADDRESSBOOK", "X-Anniversary" ); TQString anniversary = a.custom( "KADDRESSBOOK", "X-Anniversary" );
if ( !anniversary.isEmpty() ) if ( !anniversary.isEmpty() )
WebdavHandler::addSloxElement( this, doc, prop, fieldName( Anniversary ), WebdavHandler::addSloxElement( this, doc, prop, fieldName( Anniversary ),
WebdavHandler::qDateTimeToSlox( TQDateTime::fromString( anniversary, Qt::ISODate ).date() ) ); WebdavHandler::qDateTimeToSlox( TQDateTime::fromString( anniversary, TQt::ISODate ).date() ) );
else else
WebdavHandler::addSloxElement( this, doc, prop, fieldName( Anniversary ) ); WebdavHandler::addSloxElement( this, doc, prop, fieldName( Anniversary ) );
} }

@ -199,7 +199,7 @@ TQDateTime WebdavHandler::sloxToTQDateTime( const TQString &str )
TQDateTime dt; TQDateTime dt;
if (preEpoch) { if (preEpoch) {
dt.setTime_t( 0, Qt::UTC ); dt.setTime_t( 0, TQt::UTC );
if (ticks > INT_MAX) { if (ticks > INT_MAX) {
dt = dt.addSecs(-INT_MAX); dt = dt.addSecs(-INT_MAX);
ticks -= INT_MAX; ticks -= INT_MAX;
@ -208,7 +208,7 @@ TQDateTime WebdavHandler::sloxToTQDateTime( const TQString &str )
} }
else else
{ {
dt.setTime_t( ticks, Qt::UTC ); dt.setTime_t( ticks, TQt::UTC );
} }
return dt; return dt;

@ -314,7 +314,7 @@ GroupwiseWizard::GroupwiseWizard() : TDEConfigWizard( new GroupwisePropagator )
topLayout = new TQGridLayout( mEmailPage ); topLayout = new TQGridLayout( mEmailPage );
topLayout->setSpacing( spacingHint() ); topLayout->setSpacing( spacingHint() );
mEmailBox = new TQGroupBox( 1, Qt::Horizontal, mEmailBox = new TQGroupBox( 1, TQt::Horizontal,
i18n("Create Mail Account"), mEmailPage ); i18n("Create Mail Account"), mEmailPage );
mEmailBox->setCheckable( true ); mEmailBox->setCheckable( true );
topLayout->addWidget( mEmailBox, 0, 0 ); topLayout->addWidget( mEmailBox, 0, 0 );

Loading…
Cancel
Save