Replace Qt with TQt

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/60/head
Michele Calgaro 1 year ago
parent 82b0c5074d
commit b53c83209a
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -200,7 +200,7 @@ TQString Query::marshal( const TQVariant &arg )
s += "<base64>" + KCodecs::base64Encode( arg.toByteArray() ) + "</base64>"; s += "<base64>" + KCodecs::base64Encode( arg.toByteArray() ) + "</base64>";
break; break;
case TQVariant::DateTime: case TQVariant::DateTime:
s += "<datetime.iso8601>" + arg.toDateTime().toString( Qt::ISODate ) + "</datetime.iso8601>"; s += "<datetime.iso8601>" + arg.toDateTime().toString( TQt::ISODate ) + "</datetime.iso8601>";
break; break;
case TQVariant::List: { case TQVariant::List: {
s += "<array><data>"; s += "<array><data>";
@ -257,7 +257,7 @@ TQVariant Query::demarshal( const TQDomElement &elem )
} 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;
TQDomNode valueNode = typeElement.firstChild().firstChild(); TQDomNode valueNode = typeElement.firstChild().firstChild();

@ -219,7 +219,7 @@ int DictApplet::heightForWidth(int width) const
void DictApplet::resizeEvent(TQResizeEvent*) void DictApplet::resizeEvent(TQResizeEvent*)
{ {
if (orientation() ==Qt::Horizontal) { if (orientation() ==TQt::Horizontal) {
verticalBtn->hide(); verticalBtn->hide();
baseWidget->show(); baseWidget->show();
baseWidget->setFixedSize(width(),height()); baseWidget->setFixedSize(width(),height());
@ -246,7 +246,7 @@ void DictApplet::resizeEvent(TQResizeEvent*)
} }
baseWidget->updateGeometry(); baseWidget->updateGeometry();
} else { // orientation() ==Qt::Vertical } else { // orientation() ==TQt::Vertical
verticalBtn->show(); verticalBtn->show();
baseWidget->hide(); baseWidget->hide();
verticalBtn->setFixedSize(width(),width()); verticalBtn->setFixedSize(width(),width());
@ -338,7 +338,7 @@ void DictApplet::startQuery(const TQString &s)
sendCommand("definePhrase(TQString)",query); sendCommand("definePhrase(TQString)",query);
if (orientation() ==Qt::Vertical) if (orientation() ==TQt::Vertical)
popupBox->hide(); popupBox->hide();
} }

@ -217,7 +217,7 @@ void MatchView::enableGetButton()
void MatchView::mouseButtonPressed(int button, TQListViewItem *, const TQPoint &, int) void MatchView::mouseButtonPressed(int button, TQListViewItem *, const TQPoint &, int)
{ {
if (button == Qt::MidButton) if (button == TQt::MidButton)
emit(clipboardRequested()); emit(clipboardRequested());
} }

@ -120,7 +120,7 @@ DictHTMLPart::~DictHTMLPart()
void DictHTMLPart::tdehtmlMouseReleaseEvent(tdehtml::MouseReleaseEvent *event) void DictHTMLPart::tdehtmlMouseReleaseEvent(tdehtml::MouseReleaseEvent *event)
{ {
if (event->qmouseEvent()->button()==Qt::MidButton) if (event->qmouseEvent()->button()==TQt::MidButton)
emit(middleButtonClicked()); emit(middleButtonClicked());
else else
TDEHTMLPart::tdehtmlMouseReleaseEvent(event); TDEHTMLPart::tdehtmlMouseReleaseEvent(event);

@ -89,7 +89,7 @@ TopLevel::TopLevel(TQWidget* parent, const char* name)
if (global->showMatchList) if (global->showMatchList)
{ // show splitter, html view & match list { // show splitter, html view & match list
splitter = new TQSplitter(Qt::Horizontal,this); splitter = new TQSplitter(TQt::Horizontal,this);
splitter->setOpaqueResize( TDEGlobalSettings::opaqueResize() ); splitter->setOpaqueResize( TDEGlobalSettings::opaqueResize() );
queryView->reparent(splitter,0,queryView->pos(),true); queryView->reparent(splitter,0,queryView->pos(),true);
matchView->reparent(splitter,0,matchView->pos(),true); matchView->reparent(splitter,0,matchView->pos(),true);
@ -648,7 +648,7 @@ void TopLevel::toggleMatchListShow()
else // list is not visible -> show it else // list is not visible -> show it
{ {
global->showMatchList = true; global->showMatchList = true;
splitter = new TQSplitter(Qt::Horizontal,this); splitter = new TQSplitter(TQt::Horizontal,this);
splitter->setOpaqueResize( TDEGlobalSettings::opaqueResize() ); splitter->setOpaqueResize( TDEGlobalSettings::opaqueResize() );
setCentralWidget(splitter); setCentralWidget(splitter);
splitter->show(); splitter->show();

@ -90,7 +90,7 @@ void DockWidget::dropEvent(TQDropEvent * event)
void DockWidget::mousePressEvent(TQMouseEvent * e) void DockWidget::mousePressEvent(TQMouseEvent * e)
{ {
if (e->button() == Qt::MidButton) { if (e->button() == TQt::MidButton) {
parent->slotPasteTransfer(); parent->slotPasteTransfer();
} else { } else {
KSystemTray::mousePressEvent(e); KSystemTray::mousePressEvent(e);

@ -118,7 +118,7 @@ DropTarget::~DropTarget()
void void
DropTarget::mousePressEvent(TQMouseEvent * e) DropTarget::mousePressEvent(TQMouseEvent * e)
{ {
if (e->button() == Qt::LeftButton) if (e->button() == TQt::LeftButton)
{ {
// toggleMinimizeRestore (); // toggleMinimizeRestore ();
// oldX = 0; // oldX = 0;
@ -127,14 +127,14 @@ DropTarget::mousePressEvent(TQMouseEvent * e)
dx = TQCursor::pos().x() - pos().x(); dx = TQCursor::pos().x() - pos().x();
dy = TQCursor::pos().y() - pos().y(); dy = TQCursor::pos().y() - pos().y();
} }
else if (e->button() == Qt::RightButton) else if (e->button() == TQt::RightButton)
{ {
popupMenu->setItemEnabled(pop_Min, tdemain->isVisible()); popupMenu->setItemEnabled(pop_Min, tdemain->isVisible());
popupMenu->setItemEnabled(pop_Max, tdemain->isHidden()); popupMenu->setItemEnabled(pop_Max, tdemain->isHidden());
popupMenu->popup(TQCursor::pos()); popupMenu->popup(TQCursor::pos());
} }
else if (e->button() == Qt::MidButton) else if (e->button() == TQt::MidButton)
{ {
tdemain->slotPasteTransfer(); tdemain->slotPasteTransfer();
} }
@ -224,7 +224,7 @@ void DropTarget::mouseReleaseEvent(TQMouseEvent *)
/** No descriptions */ /** No descriptions */
void DropTarget::mouseDoubleClickEvent(TQMouseEvent * e) void DropTarget::mouseDoubleClickEvent(TQMouseEvent * e)
{ {
if (e->button() == Qt::LeftButton) if (e->button() == TQt::LeftButton)
toggleMinimizeRestore(); toggleMinimizeRestore();
} }

@ -224,7 +224,7 @@ void KNewsTicker::slotNewsSourceFailed(const NewsSourceBase::Ptr &ns)
void KNewsTicker::mousePressEvent(TQMouseEvent *e) void KNewsTicker::mousePressEvent(TQMouseEvent *e)
{ {
if (e->button() == Qt::RightButton) if (e->button() == TQt::RightButton)
slotOpenContextMenu(); slotOpenContextMenu();
} }
@ -261,7 +261,7 @@ void KNewsTicker::positionChange(Position)
TQBoxLayout *layout; TQBoxLayout *layout;
if (orientation() ==Qt::Horizontal) if (orientation() ==TQt::Horizontal)
layout = new TQHBoxLayout(this); layout = new TQHBoxLayout(this);
else else
layout = new TQVBoxLayout(this); layout = new TQVBoxLayout(this);
@ -387,16 +387,16 @@ void KNewsTicker::setHighlightedColor(const TQColor &highlightedColor)
void KNewsTicker::setupArrowButton() void KNewsTicker::setupArrowButton()
{ {
Qt::ArrowType at; TQt::ArrowType at;
if (orientation() ==Qt::Horizontal) { if (orientation() ==TQt::Horizontal) {
m_arrowButton->setFixedWidth(12); m_arrowButton->setFixedWidth(12);
m_arrowButton->setMaximumHeight(128); m_arrowButton->setMaximumHeight(128);
at = (position() == KPanelApplet::pTop ? Qt::DownArrow : Qt::UpArrow); at = (position() == KPanelApplet::pTop ? TQt::DownArrow : TQt::UpArrow);
} else { } else {
m_arrowButton->setMaximumWidth(128); m_arrowButton->setMaximumWidth(128);
m_arrowButton->setFixedHeight(12); m_arrowButton->setFixedHeight(12);
at = (position() == KPanelApplet::pLeft ? Qt::RightArrow : Qt::LeftArrow); at = (position() == KPanelApplet::pLeft ? TQt::RightArrow : TQt::LeftArrow);
} }
m_arrowButton->setArrowType(at); m_arrowButton->setArrowType(at);
} }

@ -270,7 +270,7 @@ void NewsScroller::enterEvent(TQEvent *)
void NewsScroller::mousePressEvent(TQMouseEvent *e) void NewsScroller::mousePressEvent(TQMouseEvent *e)
{ {
if (e->button() == Qt::LeftButton || e->button() == Qt::MidButton) { if (e->button() == TQt::LeftButton || e->button() == TQt::MidButton) {
m_dragPos = e->pos(); m_dragPos = e->pos();
if (m_activeHeadline) if (m_activeHeadline)
@ -280,14 +280,14 @@ void NewsScroller::mousePressEvent(TQMouseEvent *e)
void NewsScroller::mouseReleaseEvent(TQMouseEvent *e) void NewsScroller::mouseReleaseEvent(TQMouseEvent *e)
{ {
if ((e->button() == Qt::LeftButton || e->button() == Qt::MidButton) if ((e->button() == TQt::LeftButton || e->button() == TQt::MidButton)
&& m_activeHeadline && m_activeHeadline->article()->headline() == m_tempHeadline && m_activeHeadline && m_activeHeadline->article()->headline() == m_tempHeadline
&& !m_mouseDrag) { && !m_mouseDrag) {
m_activeHeadline->article()->open(); m_activeHeadline->article()->open();
m_tempHeadline = TQString(); m_tempHeadline = TQString();
} }
if (e->button() == Qt::RightButton) if (e->button() == TQt::RightButton)
emit(contextMenu()); emit(contextMenu());
if (m_mouseDrag) { if (m_mouseDrag) {
@ -307,7 +307,7 @@ void NewsScroller::mouseMoveEvent(TQMouseEvent *e)
dragDistance = TQABS(e->x() - m_dragPos.x()); dragDistance = TQABS(e->x() - m_dragPos.x());
else else
dragDistance = TQABS(e->y() - m_dragPos.y()); dragDistance = TQABS(e->y() - m_dragPos.y());
m_mouseDrag = (e->state() & Qt::LeftButton != 0) && m_mouseDrag = (e->state() & TQt::LeftButton != 0) &&
dragDistance >= TDEGlobal::config()->readNumEntry("StartDragDist", TDEApplication::startDragDistance()); dragDistance >= TDEGlobal::config()->readNumEntry("StartDragDist", TDEApplication::startDragDistance());
if (m_mouseDrag) // Stop the scroller if we just started a drag. if (m_mouseDrag) // Stop the scroller if we just started a drag.
m_scrollTimer->stop(); m_scrollTimer->stop();

@ -106,7 +106,7 @@ KopeteEmailWindow::KopeteEmailWindow( Kopete::ChatSession *manager, EmailWindowP
setMinimumSize( TQSize( 75, 20 ) ); setMinimumSize( TQSize( 75, 20 ) );
d->split = new TQSplitter( v ); d->split = new TQSplitter( v );
d->split->setOrientation( Qt::Vertical ); d->split->setOrientation( TQt::Vertical );
d->messagePart = new ChatMessagePart( manager, d->split, "messagePart" ); d->messagePart = new ChatMessagePart( manager, d->split, "messagePart" );

@ -1205,7 +1205,7 @@ void KopeteContactListView::findDrop(const TQPoint &pos, TQListViewItem *&parent
void KopeteContactListView::contentsMousePressEvent( TQMouseEvent *e ) void KopeteContactListView::contentsMousePressEvent( TQMouseEvent *e )
{ {
TDEListView::contentsMousePressEvent( e ); TDEListView::contentsMousePressEvent( e );
if (e->button() == Qt::LeftButton ) if (e->button() == TQt::LeftButton )
{ {
TQPoint p=contentsToViewport(e->pos()); TQPoint p=contentsToViewport(e->pos());
TQListViewItem *i=itemAt( p ); TQListViewItem *i=itemAt( p );

@ -44,11 +44,11 @@ KopeteAccountStatusBarIcon::~KopeteAccountStatusBarIcon()
void KopeteAccountStatusBarIcon::mousePressEvent( TQMouseEvent *me ) void KopeteAccountStatusBarIcon::mousePressEvent( TQMouseEvent *me )
{ {
if( me->button() == Qt::RightButton ) if( me->button() == TQt::RightButton )
{ {
emit rightClicked( m_account, TQPoint( me->globalX(), me->globalY() ) ); emit rightClicked( m_account, TQPoint( me->globalX(), me->globalY() ) );
} }
else if( me->button() == Qt::LeftButton ) else if( me->button() == TQt::LeftButton )
{ {
emit leftClicked( m_account, TQPoint( me->globalX(), me->globalY() ) ); emit leftClicked( m_account, TQPoint( me->globalX(), me->globalY() ) );
} }

@ -50,7 +50,7 @@ ClickableLabel::ClickableLabel(TQWidget *parent, const char *name)
void ClickableLabel::mouseReleaseEvent(TQMouseEvent *event) void ClickableLabel::mouseReleaseEvent(TQMouseEvent *event)
{ {
if(event->button() == Qt::LeftButton) if(event->button() == TQt::LeftButton)
{ {
emit clicked(); emit clicked();
event->accept(); event->accept();

@ -88,7 +88,7 @@ GlobalStatusMessageIconLabel::GlobalStatusMessageIconLabel(TQWidget *parent, con
void GlobalStatusMessageIconLabel::mouseReleaseEvent( TQMouseEvent *event ) void GlobalStatusMessageIconLabel::mouseReleaseEvent( TQMouseEvent *event )
{ {
if( event->button() == Qt::LeftButton || event->button() == Qt::RightButton ) if( event->button() == TQt::LeftButton || event->button() == TQt::RightButton )
{ {
emit iconClicked( event->globalPos() ); emit iconClicked( event->globalPos() );
event->accept(); event->accept();

@ -100,8 +100,8 @@ KopeteSystemTray::~KopeteSystemTray()
void KopeteSystemTray::mousePressEvent( TQMouseEvent *me ) void KopeteSystemTray::mousePressEvent( TQMouseEvent *me )
{ {
if ( if (
(me->button() == Qt::MidButton || (me->button() == TQt::MidButton ||
(me->button() == Qt::LeftButton && KopetePrefs::prefs()->trayflashNotifyLeftClickOpensMessage())) && (me->button() == TQt::LeftButton && KopetePrefs::prefs()->trayflashNotifyLeftClickOpensMessage())) &&
mIsBlinking ) mIsBlinking )
{ {
mouseDoubleClickEvent( me ); mouseDoubleClickEvent( me );

@ -141,7 +141,7 @@ KDialogBase( Plain, i18n("Select Public Key"), Details | Ok | Cancel, Ok, parent
keysList->setColumnWidth(0,210); keysList->setColumnWidth(0,210);
keysList->setColumnWidth(1,210); keysList->setColumnWidth(1,210);
boutonboxoptions=new TQButtonGroup(5,Qt::Vertical ,page,0); boutonboxoptions=new TQButtonGroup(5,TQt::Vertical ,page,0);
TDEActionCollection *actcol=new TDEActionCollection(this); TDEActionCollection *actcol=new TDEActionCollection(this);
(void) new TDEAction(i18n("&Go to Default Key"),goDefaultKey, TQT_TQOBJECT(this), TQT_SLOT(slotGotoDefaultKey()),actcol,"go_default_key"); (void) new TDEAction(i18n("&Go to Default Key"),goDefaultKey, TQT_TQOBJECT(this), TQT_SLOT(slotGotoDefaultKey()),actcol,"go_default_key");

@ -74,7 +74,7 @@ private:
TDEListViewDateItem::TDEListViewDateItem(TDEListView* parent, TQDate date, Kopete::MetaContact *mc) TDEListViewDateItem::TDEListViewDateItem(TDEListView* parent, TQDate date, Kopete::MetaContact *mc)
: TDEListViewItem(parent, date.toString(Qt::ISODate), mc->displayName()) : TDEListViewItem(parent, date.toString(TQt::ISODate), mc->displayName())
{ {
mDate = date; mDate = date;
mMetaContact = mc; mMetaContact = mc;

@ -377,7 +377,7 @@ TQValueList<Kopete::Message> HistoryLogger::readMessages(TQDate date)
Kopete::Message msg(dt, from, to, msgElem2.text(), dir); Kopete::Message msg(dt, from, to, msgElem2.text(), dir);
msg.setBody( TQString::fromLatin1("<span title=\"%1\">%2</span>") msg.setBody( TQString::fromLatin1("<span title=\"%1\">%2</span>")
.arg( dt.toString(Qt::LocalDate), msg.escapedBody() ), .arg( dt.toString(TQt::LocalDate), msg.escapedBody() ),
Kopete::Message::RichText); Kopete::Message::RichText);
@ -595,7 +595,7 @@ TQValueList<Kopete::Message> HistoryLogger::readMessages(unsigned int lines,
if (colorize) if (colorize)
{ {
msg.setBody( TQString::fromLatin1("<span style=\"color:%1\" title=\"%2\">%3</span>") msg.setBody( TQString::fromLatin1("<span style=\"color:%1\" title=\"%2\">%3</span>")
.arg( fgColor.name(), timestamp.toString(Qt::LocalDate), msg.escapedBody() ), .arg( fgColor.name(), timestamp.toString(TQt::LocalDate), msg.escapedBody() ),
Kopete::Message::RichText Kopete::Message::RichText
); );
msg.setFg( fgColor ); msg.setFg( fgColor );
@ -603,7 +603,7 @@ TQValueList<Kopete::Message> HistoryLogger::readMessages(unsigned int lines,
else else
{ {
msg.setBody( TQString::fromLatin1("<span title=\"%1\">%2</span>") msg.setBody( TQString::fromLatin1("<span title=\"%1\">%2</span>")
.arg( timestamp.toString(Qt::LocalDate), msg.escapedBody() ), .arg( timestamp.toString(TQt::LocalDate), msg.escapedBody() ),
Kopete::Message::RichText Kopete::Message::RichText
); );
} }

@ -714,7 +714,7 @@ GaduSession::checkDescriptor()
gaduMessage.message = gaduMessage.message =
textcodec->toUnicode((const char*)event->event.msg.message); textcodec->toUnicode((const char*)event->event.msg.message);
gaduMessage.sender_id = event->event.msg.sender; gaduMessage.sender_id = event->event.msg.sender;
gaduMessage.sendTime.setTime_t( event->event.msg.time, Qt::LocalTime ); gaduMessage.sendTime.setTime_t( event->event.msg.time, TQt::LocalTime );
gaduMessage.message = rtf->convertToHtml( gaduMessage.message, event->event.msg.formats_length, event->event.msg.formats ); gaduMessage.message = rtf->convertToHtml( gaduMessage.message, event->event.msg.formats_length, event->event.msg.formats );
emit messageReceived( &gaduMessage ); emit messageReceived( &gaduMessage );
} }

@ -414,7 +414,7 @@ void JabberBaseContact::setPropertiesFromVCard ( const XMPP::VCard &vCard )
// update vCard cache timestamp if this is not a temporary contact // update vCard cache timestamp if this is not a temporary contact
if ( metaContact() && !metaContact()->isTemporary () ) if ( metaContact() && !metaContact()->isTemporary () )
{ {
setProperty ( protocol()->propVCardCacheTimeStamp, TQDateTime::currentDateTime().toString ( Qt::ISODate ) ); setProperty ( protocol()->propVCardCacheTimeStamp, TQDateTime::currentDateTime().toString ( TQt::ISODate ) );
} }

@ -246,7 +246,7 @@ void JabberCapabilitiesManager::CapabilitiesInformation::updateLastSeen()
TQDomElement JabberCapabilitiesManager::CapabilitiesInformation::toXml(TQDomDocument *doc) const TQDomElement JabberCapabilitiesManager::CapabilitiesInformation::toXml(TQDomDocument *doc) const
{ {
TQDomElement info = doc->createElement("info"); TQDomElement info = doc->createElement("info");
//info.setAttribute("last-seen",lastSeen_.toString(Qt::ISODate)); //info.setAttribute("last-seen",lastSeen_.toString(TQt::ISODate));
// Identities // Identities
DiscoItem::Identities::ConstIterator discoIt = m_identities.constBegin(), discoItEnd = m_identities.constEnd(); DiscoItem::Identities::ConstIterator discoIt = m_identities.constBegin(), discoItEnd = m_identities.constEnd();
@ -280,7 +280,7 @@ void JabberCapabilitiesManager::CapabilitiesInformation::fromXml(const TQDomElem
} }
//if (!e.attribute("last-seen").isEmpty()) //if (!e.attribute("last-seen").isEmpty())
// lastSeen_ = TQDate::fromString(e.attribute("last-seen"),Qt::ISODate); // lastSeen_ = TQDate::fromString(e.attribute("last-seen"),TQt::ISODate);
for(TQDomNode node = element.firstChild(); !node.isNull(); node = node.nextSibling()) for(TQDomNode node = element.firstChild(); !node.isNull(); node = node.nextSibling())
{ {

@ -442,7 +442,7 @@ void JabberContact::slotCheckVCard ()
if ( cacheDateString.isNull () ) if ( cacheDateString.isNull () )
cacheDate = TQDateTime::currentDateTime().addDays ( -2 ); cacheDate = TQDateTime::currentDateTime().addDays ( -2 );
else else
cacheDate = TQDateTime::fromString ( cacheDateString.value().toString (), Qt::ISODate ); cacheDate = TQDateTime::fromString ( cacheDateString.value().toString (), TQt::ISODate );
kdDebug ( JABBER_DEBUG_GLOBAL ) << k_funcinfo << "Cached vCard data for " << contactId () << " from " << cacheDate.toString () << endl; kdDebug ( JABBER_DEBUG_GLOBAL ) << k_funcinfo << "Cached vCard data for " << contactId () << " from " << cacheDate.toString () << endl;
@ -506,7 +506,7 @@ void JabberContact::slotGotVCard ()
// update timestamp of last vCard retrieval // update timestamp of last vCard retrieval
if ( metaContact() && !metaContact()->isTemporary () ) if ( metaContact() && !metaContact()->isTemporary () )
{ {
setProperty ( protocol()->propVCardCacheTimeStamp, TQDateTime::currentDateTime().toString ( Qt::ISODate ) ); setProperty ( protocol()->propVCardCacheTimeStamp, TQDateTime::currentDateTime().toString ( TQt::ISODate ) );
} }
mVCardUpdateInProgress = false; mVCardUpdateInProgress = false;

@ -282,7 +282,7 @@ void WinPopupLib::readMessages(const KFileItemList &items)
// second line is time // second line is time
TQString tmpTime = stream.readLine(); TQString tmpTime = stream.readLine();
time = TQDateTime::fromString(tmpTime, Qt::ISODate); time = TQDateTime::fromString(tmpTime, TQt::ISODate);
while (!stream.atEnd()) { while (!stream.atEnd()) {
text.append(stream.readLine()); text.append(stream.readLine());

@ -1147,7 +1147,7 @@ void YahooAccount::slotGotIm( const TQString &who, const TQString &msg, long tm,
msgDT.setTime_t(time(0L)); msgDT.setTime_t(time(0L));
else else
//msgDT = TQDateTime::fromTime_t(tm); //msgDT = TQDateTime::fromTime_t(tm);
msgDT.setTime_t(tm, Qt::LocalTime); msgDT.setTime_t(tm, TQt::LocalTime);
TQString newMsgText = prepareIncomingMessage( msg ); TQString newMsgText = prepareIncomingMessage( msg );
@ -1185,7 +1185,7 @@ void YahooAccount::slotGotBuzz( const TQString &who, long tm )
msgDT.setTime_t(time(0L)); msgDT.setTime_t(time(0L));
else else
//msgDT = TQDateTime::fromTime_t(tm); //msgDT = TQDateTime::fromTime_t(tm);
msgDT.setTime_t(tm, Qt::LocalTime); msgDT.setTime_t(tm, TQt::LocalTime);
justMe.append(myself()); justMe.append(myself());

@ -763,8 +763,8 @@ void YahooContact::writeYABEntry()
setProperty( YahooProtocol::protocol()->propWorkURL, m_YABEntry->workURL ); setProperty( YahooProtocol::protocol()->propWorkURL, m_YABEntry->workURL );
// Miscellanous // Miscellanous
setProperty( YahooProtocol::protocol()->propBirthday, TQString(m_YABEntry->birthday.toString( Qt::ISODate )) ); setProperty( YahooProtocol::protocol()->propBirthday, TQString(m_YABEntry->birthday.toString( TQt::ISODate )) );
setProperty( YahooProtocol::protocol()->propAnniversary, TQString(m_YABEntry->anniversary.toString( Qt::ISODate )) ); setProperty( YahooProtocol::protocol()->propAnniversary, TQString(m_YABEntry->anniversary.toString( TQt::ISODate )) );
setProperty( YahooProtocol::protocol()->propNotes, m_YABEntry->notes ); setProperty( YahooProtocol::protocol()->propNotes, m_YABEntry->notes );
setProperty( YahooProtocol::protocol()->propAdditional1, m_YABEntry->additional1 ); setProperty( YahooProtocol::protocol()->propAdditional1, m_YABEntry->additional1 );
setProperty( YahooProtocol::protocol()->propAdditional2, m_YABEntry->additional2 ); setProperty( YahooProtocol::protocol()->propAdditional2, m_YABEntry->additional2 );
@ -826,8 +826,8 @@ void YahooContact::readYABEntry()
m_YABEntry->workURL = property( YahooProtocol::protocol()->propWorkURL ).value().toString(); m_YABEntry->workURL = property( YahooProtocol::protocol()->propWorkURL ).value().toString();
// Miscellanous // Miscellanous
m_YABEntry->birthday = TQDate::fromString( property( YahooProtocol::protocol()->propBirthday ).value().toString(), Qt::ISODate ); m_YABEntry->birthday = TQDate::fromString( property( YahooProtocol::protocol()->propBirthday ).value().toString(), TQt::ISODate );
m_YABEntry->anniversary = TQDate::fromString( property( YahooProtocol::protocol()->propAnniversary ).value().toString(), Qt::ISODate ); m_YABEntry->anniversary = TQDate::fromString( property( YahooProtocol::protocol()->propAnniversary ).value().toString(), TQt::ISODate );
m_YABEntry->notes = property( YahooProtocol::protocol()->propNotes ).value().toString(); m_YABEntry->notes = property( YahooProtocol::protocol()->propNotes ).value().toString();
m_YABEntry->additional1 = property( YahooProtocol::protocol()->propAdditional1 ).value().toString(); m_YABEntry->additional1 = property( YahooProtocol::protocol()->propAdditional1 ).value().toString();
m_YABEntry->additional2 = property( YahooProtocol::protocol()->propAdditional2 ).value().toString(); m_YABEntry->additional2 = property( YahooProtocol::protocol()->propAdditional2 ).value().toString();

@ -148,7 +148,7 @@ namespace KPF
if (0 == serverCount) if (0 == serverCount)
serverCount = 1; serverCount = 1;
if (Qt::Vertical == orientation()) if (TQt::Vertical == orientation())
return h / serverCount; return h / serverCount;
else else
return h * serverCount; return h * serverCount;
@ -162,7 +162,7 @@ namespace KPF
if (0 == serverCount) if (0 == serverCount)
serverCount = 1; serverCount = 1;
if (Qt::Vertical == orientation()) if (TQt::Vertical == orientation())
return w * serverCount; return w * serverCount;
else else
return w / serverCount; return w / serverCount;
@ -220,7 +220,7 @@ namespace KPF
} }
void void
Applet::orientationChange(Qt::Orientation) Applet::orientationChange(TQt::Orientation)
{ {
resetLayout(); resetLayout();
} }
@ -248,7 +248,7 @@ namespace KPF
switch (orientation()) switch (orientation())
{ {
case Qt::Vertical: case TQt::Vertical:
{ {
uint itemHeight = height() / itemList_.count(); uint itemHeight = height() / itemList_.count();
@ -262,7 +262,7 @@ namespace KPF
} }
break; break;
case Qt::Horizontal: case TQt::Horizontal:
{ {
uint itemWidth = width() / itemList_.count(); uint itemWidth = width() / itemList_.count();
@ -282,7 +282,7 @@ namespace KPF
void void
Applet::mousePressEvent(TQMouseEvent * ev) Applet::mousePressEvent(TQMouseEvent * ev)
{ {
if (Qt::RightButton != ev->button() && Qt::LeftButton != ev->button()) if (TQt::RightButton != ev->button() && TQt::LeftButton != ev->button())
return; return;
switch (popup_->exec(TQCursor::pos())) switch (popup_->exec(TQCursor::pos()))

@ -124,7 +124,7 @@ namespace KPF
* Overridden to keep track of orientation change and update layout * Overridden to keep track of orientation change and update layout
* accordingly. * accordingly.
*/ */
virtual void orientationChange(Qt::Orientation); virtual void orientationChange(TQt::Orientation);
/** /**
* Overridden to update layout accordingly. * Overridden to update layout accordingly.

@ -137,7 +137,7 @@ namespace KPF
break; break;
} }
if (Qt::LeftButton == e->button()) if (TQt::LeftButton == e->button())
{ {
// Show monitor. // Show monitor.
@ -168,7 +168,7 @@ namespace KPF
break; break;
} }
if (Qt::RightButton != e->button() && Qt::LeftButton != e->button()) if (TQt::RightButton != e->button() && TQt::LeftButton != e->button())
break; break;
if (server_->paused()) if (server_->paused())

@ -114,12 +114,12 @@ void DockWidget::stop_stats() {
void DockWidget::mousePressEvent(TQMouseEvent *e) { void DockWidget::mousePressEvent(TQMouseEvent *e) {
// open/close connect-window on right mouse button // open/close connect-window on right mouse button
if ( e->button() == Qt::LeftButton ) { if ( e->button() == TQt::LeftButton ) {
toggle_window_state(); toggle_window_state();
} }
// open popup menu on left mouse button // open popup menu on left mouse button
if ( e->button() == Qt::RightButton ) { if ( e->button() == TQt::RightButton ) {
TQString text; TQString text;
if(p_kppp->con_win->isVisible()) if(p_kppp->con_win->isVisible())
text = i18n("Minimize"); text = i18n("Minimize");

@ -487,7 +487,7 @@ ModemWidget2::ModemWidget2(TQWidget *parent, const char *name)
TQLabel *volumeLabel = new TQLabel(i18n("Modem &volume:"), parent); TQLabel *volumeLabel = new TQLabel(i18n("Modem &volume:"), parent);
hbl->addWidget(volumeLabel); hbl->addWidget(volumeLabel);
volume = new TQSlider(0, 2, 1, gpppdata.volume(), Qt::Horizontal, parent); volume = new TQSlider(0, 2, 1, gpppdata.volume(), TQt::Horizontal, parent);
volumeLabel->setBuddy(volume); volumeLabel->setBuddy(volume);
volume->setTickmarks(TQSlider::Below); volume->setTickmarks(TQSlider::Below);
hbl->addWidget(volume); hbl->addWidget(volume);
@ -619,7 +619,7 @@ GraphSetup::GraphSetup(TQWidget *parent, const char *name) :
enable_check = new TQCheckBox(i18n("&Enable throughput graph"), parent); enable_check = new TQCheckBox(i18n("&Enable throughput graph"), parent);
tl->addWidget(enable_check); tl->addWidget(enable_check);
grpColor = new TQGroupBox(2, Qt::Horizontal, grpColor = new TQGroupBox(2, TQt::Horizontal,
i18n("Graph Colors"), parent); i18n("Graph Colors"), parent);
tl->addWidget(grpColor); tl->addWidget(grpColor);

@ -228,7 +228,7 @@ MonthlyWidget::MonthlyWidget(TQWidget *parent) :
connect(cboConnections, TQT_SIGNAL(activated(int)), connect(cboConnections, TQT_SIGNAL(activated(int)),
this, TQT_SLOT(slotConnections(int))); this, TQT_SLOT(slotConnections(int)));
bbox = new KButtonBox(this, Qt::Vertical); bbox = new KButtonBox(this, TQt::Vertical);
prev = bbox->addButton(i18n("&Prev Month")); prev = bbox->addButton(i18n("&Prev Month"));
next = bbox->addButton(i18n("&Next Month")); next = bbox->addButton(i18n("&Next Month"));
bbox->addStretch(1); bbox->addStretch(1);

@ -71,7 +71,7 @@ ModemCommands::ModemCommands(TQWidget *parent, const char *name)
FORMATSLIDERLABEL(lpreinitslider); FORMATSLIDERLABEL(lpreinitslider);
preinitslider = new TQSlider(0, 300, 1, 0, preinitslider = new TQSlider(0, 300, 1, 0,
Qt::Horizontal, dummyWidget); TQt::Horizontal, dummyWidget);
preinitslider->setFixedHeight(preinitslider->sizeHint().height()); preinitslider->setFixedHeight(preinitslider->sizeHint().height());
connect(preinitslider, TQT_SIGNAL(valueChanged(int)), connect(preinitslider, TQT_SIGNAL(valueChanged(int)),
lpreinitslider, TQT_SLOT(setNum(int))); lpreinitslider, TQT_SLOT(setNum(int)));
@ -95,7 +95,7 @@ ModemCommands::ModemCommands(TQWidget *parent, const char *name)
linitslider = new TQLabel("MMMM", dummyWidget); linitslider = new TQLabel("MMMM", dummyWidget);
FORMATSLIDERLABEL(linitslider); FORMATSLIDERLABEL(linitslider);
initslider = new TQSlider(1, 300, 1, 0, initslider = new TQSlider(1, 300, 1, 0,
Qt::Horizontal, dummyWidget); TQt::Horizontal, dummyWidget);
initslider->setFixedHeight(initslider->sizeHint().height()); initslider->setFixedHeight(initslider->sizeHint().height());
connect(initslider, TQT_SIGNAL(valueChanged(int)), connect(initslider, TQT_SIGNAL(valueChanged(int)),
linitslider, TQT_SLOT(setNum(int))); linitslider, TQT_SLOT(setNum(int)));
@ -111,7 +111,7 @@ ModemCommands::ModemCommands(TQWidget *parent, const char *name)
ldurationslider = new TQLabel("MMMM", dummyWidget); ldurationslider = new TQLabel("MMMM", dummyWidget);
FORMATSLIDERLABEL(ldurationslider); FORMATSLIDERLABEL(ldurationslider);
durationslider = new TQSlider(1, 255, 1, 0, durationslider = new TQSlider(1, 255, 1, 0,
Qt::Horizontal, dummyWidget); TQt::Horizontal, dummyWidget);
durationslider->setFixedHeight(durationslider->sizeHint().height()); durationslider->setFixedHeight(durationslider->sizeHint().height());
connect(durationslider, TQT_SIGNAL(valueChanged(int)), connect(durationslider, TQT_SIGNAL(valueChanged(int)),
ldurationslider, TQT_SLOT(setNum(int))); ldurationslider, TQT_SLOT(setNum(int)));
@ -227,7 +227,7 @@ ModemCommands::ModemCommands(TQWidget *parent, const char *name)
FORMATSLIDERLABEL(lslider); FORMATSLIDERLABEL(lslider);
slider = new TQSlider(0, 255, 1, 0, slider = new TQSlider(0, 255, 1, 0,
Qt::Horizontal, dummyWidget); TQt::Horizontal, dummyWidget);
slider->setFixedHeight(slider->sizeHint().height()); slider->setFixedHeight(slider->sizeHint().height());
connect(slider, TQT_SIGNAL(valueChanged(int)), connect(slider, TQT_SIGNAL(valueChanged(int)),
lslider, TQT_SLOT(setNum(int))); lslider, TQT_SLOT(setNum(int)));

@ -585,7 +585,7 @@ void KRDC::switchToNormal(bool scaling)
} }
if (!m_toolbar) { if (!m_toolbar) {
m_dockArea = new TQDockArea(Qt::Horizontal, TQDockArea::Normal, this); m_dockArea = new TQDockArea(TQt::Horizontal, TQDockArea::Normal, this);
m_dockArea->setSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding, m_dockArea->setSizePolicy(TQSizePolicy(TQSizePolicy::MinimumExpanding,
TQSizePolicy::Fixed)); TQSizePolicy::Fixed));
TDEToolBar *t = new TDEToolBar(m_dockArea); TDEToolBar *t = new TDEToolBar(m_dockArea);

@ -542,19 +542,19 @@ void KVncView::mouseEvent(TQMouseEvent *e) {
if ( e->type() != TQEvent::MouseMove ) { if ( e->type() != TQEvent::MouseMove ) {
if ( (e->type() == TQEvent::MouseButtonPress) || if ( (e->type() == TQEvent::MouseButtonPress) ||
(e->type() == TQEvent::MouseButtonDblClick)) { (e->type() == TQEvent::MouseButtonDblClick)) {
if ( e->button() & Qt::LeftButton ) if ( e->button() & TQt::LeftButton )
m_buttonMask |= 0x01; m_buttonMask |= 0x01;
if ( e->button() & Qt::MidButton ) if ( e->button() & TQt::MidButton )
m_buttonMask |= 0x02; m_buttonMask |= 0x02;
if ( e->button() & Qt::RightButton ) if ( e->button() & TQt::RightButton )
m_buttonMask |= 0x04; m_buttonMask |= 0x04;
} }
else if ( e->type() == TQEvent::MouseButtonRelease ) { else if ( e->type() == TQEvent::MouseButtonRelease ) {
if ( e->button() & Qt::LeftButton ) if ( e->button() & TQt::LeftButton )
m_buttonMask &= 0xfe; m_buttonMask &= 0xfe;
if ( e->button() & Qt::MidButton ) if ( e->button() & TQt::MidButton )
m_buttonMask &= 0xfd; m_buttonMask &= 0xfd;
if ( e->button() & Qt::RightButton ) if ( e->button() & TQt::RightButton )
m_buttonMask &= 0xfb; m_buttonMask &= 0xfb;
} }
} }

@ -218,8 +218,8 @@ void Configuration::saveToDialogs() {
Invitation &inv = *(it++); Invitation &inv = *(it++);
if (!inv.getViewItem()) if (!inv.getViewItem())
inv.setViewItem(new TDEListViewItem(invMngDlg.listView, inv.setViewItem(new TDEListViewItem(invMngDlg.listView,
inv.creationTime().toString(Qt::LocalDate), inv.creationTime().toString(TQt::LocalDate),
inv.expirationTime().toString(Qt::LocalDate))); inv.expirationTime().toString(TQt::LocalDate)));
} }
invMngDlg.adjustSize(); invMngDlg.adjustSize();
} }

@ -50,5 +50,5 @@ void PersonalInviteDialog::setPassword( const TQString &passwd )
void PersonalInviteDialog::setExpiration( const TQDateTime &expire ) void PersonalInviteDialog::setExpiration( const TQDateTime &expire )
{ {
m_inviteWidget->expirationLabel->setText( expire.toString( Qt::LocalDate ) ); m_inviteWidget->expirationLabel->setText( expire.toString( TQt::LocalDate ) );
} }

@ -127,7 +127,7 @@ void TrayIcon::mousePressEvent(TQMouseEvent *e)
if (!rect().contains(e->pos())) if (!rect().contains(e->pos()))
return; return;
if (e->button() == Qt::LeftButton) { if (e->button() == TQt::LeftButton) {
contextMenuAboutToShow(contextMenu()); contextMenuAboutToShow(contextMenu());
contextMenu()->popup(e->globalPos()); contextMenu()->popup(e->globalPos());
} }

@ -18,7 +18,7 @@
PageShortcuts::PageShortcuts( TQWidget *parent, const char *name ) : PageShortcutsBase( parent, name) PageShortcuts::PageShortcuts( TQWidget *parent, const char *name ) : PageShortcutsBase( parent, name)
{ {
globalGB->setColumnLayout( 0, Qt::Horizontal ); globalGB->setColumnLayout( 0, TQt::Horizontal );
m_key = new KKeyChooser(servercontroller::self()->getGlobalAccel(), globalGB); m_key = new KKeyChooser(servercontroller::self()->getGlobalAccel(), globalGB);
connect(m_key, TQT_SIGNAL(keyChange()), this, TQT_SLOT(changed())); connect(m_key, TQT_SIGNAL(keyChange()), this, TQT_SLOT(changed()));

@ -109,7 +109,7 @@ void KSPainter::colourDrawText(TQPainter *p, int startx, int starty,
} }
if(bcolour < maxcolour ){ if(bcolour < maxcolour ){
p->setBackgroundColor(num2colour[bcolour]); p->setBackgroundColor(num2colour[bcolour]);
p->setBackgroundMode(Qt::OpaqueMode); p->setBackgroundMode(TQt::OpaqueMode);
} }
} }
@ -118,7 +118,7 @@ void KSPainter::colourDrawText(TQPainter *p, int startx, int starty,
else if(str[i] == 0x03){ else if(str[i] == 0x03){
i++; i++;
p->setPen(qpDefPen); p->setPen(qpDefPen);
p->setBackgroundMode(Qt::TransparentMode); p->setBackgroundMode(TQt::TransparentMode);
} }
else if((str[i] == '~') && ((str[i+1] >= 0x61) || (str[i+1] <= 0x7a))){ else if((str[i] == '~') && ((str[i+1] >= 0x61) || (str[i+1] <= 0x7a))){
TQFont fnt = p->font(); TQFont fnt = p->font();
@ -126,11 +126,11 @@ void KSPainter::colourDrawText(TQPainter *p, int startx, int starty,
switch(str[i+1]){ switch(str[i+1]){
case 'c': case 'c':
p->setPen(qpDefPen); p->setPen(qpDefPen);
p->setBackgroundMode(Qt::TransparentMode); p->setBackgroundMode(TQt::TransparentMode);
break; break;
case 'C': case 'C':
p->setPen(qpDefPen); p->setPen(qpDefPen);
p->setBackgroundMode(Qt::TransparentMode); p->setBackgroundMode(TQt::TransparentMode);
fnt.setBold(FALSE); fnt.setBold(FALSE);
fnt.setItalic(FALSE); fnt.setItalic(FALSE);
fnt.setUnderline(FALSE); fnt.setUnderline(FALSE);
@ -139,11 +139,11 @@ void KSPainter::colourDrawText(TQPainter *p, int startx, int starty,
case 'r': case 'r':
if(ReverseText == TRUE) { if(ReverseText == TRUE) {
ReverseText = FALSE; ReverseText = FALSE;
p->setBackgroundMode(Qt::TransparentMode); p->setBackgroundMode(TQt::TransparentMode);
} }
else { else {
ReverseText = TRUE; ReverseText = TRUE;
p->setBackgroundMode(Qt::OpaqueMode); p->setBackgroundMode(TQt::OpaqueMode);
} }
temppen = p->pen().color(); temppen = p->pen().color();
p->setPen( p->backgroundColor() ); p->setPen( p->backgroundColor() );

@ -231,7 +231,7 @@ void KSTicker::timerEvent(TQTimerEvent *)
} }
bAtEnd = FALSE; bAtEnd = FALSE;
static Qt::BGMode bgmode = Qt::TransparentMode; static TQt::BGMode bgmode = TQt::TransparentMode;
bitBlt(pic, -tickStep, 0, pic); bitBlt(pic, -tickStep, 0, pic);
TQPainter p(pic); TQPainter p(pic);
@ -275,12 +275,12 @@ void KSTicker::timerEvent(TQTimerEvent *)
int col = buf.toInt(); int col = buf.toInt();
if((col >= 0) || (col <= KSPainter::maxcolour)){ if((col >= 0) || (col <= KSPainter::maxcolour)){
bg = KSPainter::num2colour[col]; bg = KSPainter::num2colour[col];
bgmode = Qt::OpaqueMode; bgmode = TQt::OpaqueMode;
} }
} }
} }
else{ else{
bgmode = Qt::TransparentMode; bgmode = TQt::TransparentMode;
} }
} }
else { else {
@ -352,7 +352,7 @@ void KSTicker::timerEvent(TQTimerEvent *)
p.setPen(fg); p.setPen(fg);
p.setBackgroundColor(bg); p.setBackgroundColor(bg);
p.setBackgroundMode(Qt::OpaqueMode); p.setBackgroundMode(TQt::OpaqueMode);
p.drawText(this->width() - cOffset + onechar, // remove -onechar. p.drawText(this->width() - cOffset + onechar, // remove -onechar.
this->height() / 4 + p.fontMetrics().height() / 2, this->height() / 4 + p.fontMetrics().height() / 2,
currentStr.mid(currentChar, 1), currentStr.mid(currentChar, 1),
@ -415,7 +415,7 @@ void KSTicker::mouseDoubleClickEvent( TQMouseEvent * )
void KSTicker::mousePressEvent( TQMouseEvent *e) void KSTicker::mousePressEvent( TQMouseEvent *e)
{ {
if(e->button() == Qt::RightButton){ if(e->button() == TQt::RightButton){
popup->popup(this->cursor().pos()); popup->popup(this->cursor().pos());
} }
else{ else{

@ -18,7 +18,7 @@ MaxSize {32767 32767}
Grid {10} Grid {10}
Slider { Slider {
Qt::Orientation {Horizontal} TQt::Orientation {Horizontal}
MinValue {10} MinValue {10}
MaxValue {200} MaxValue {200}
Initial {30} Initial {30}
@ -36,7 +36,7 @@ Slider {
MaximumSize {32767 32767} MaximumSize {32767 32767}
} }
Slider { Slider {
Qt::Orientation {Horizontal} TQt::Orientation {Horizontal}
MinValue {1} MinValue {1}
MaxValue {10} MaxValue {10}
Initial {3} Initial {3}

@ -26,7 +26,7 @@ speeddialogData::speeddialogData ( TQWidget* parent, const char* name )
sliderTick = new TQSlider( this, "Slider_1" ); sliderTick = new TQSlider( this, "Slider_1" );
grid->addWidget( sliderTick, 0, 1 ); grid->addWidget( sliderTick, 0, 1 );
connect( sliderTick, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(updateTick(int)) ); connect( sliderTick, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(updateTick(int)) );
sliderTick->setOrientation( Qt::Horizontal ); sliderTick->setOrientation( TQt::Horizontal );
sliderTick->setRange( 10, 200 ); sliderTick->setRange( 10, 200 );
sliderTick->setSteps( 10, 50 ); sliderTick->setSteps( 10, 50 );
sliderTick->setValue( 30 ); sliderTick->setValue( 30 );
@ -38,7 +38,7 @@ speeddialogData::speeddialogData ( TQWidget* parent, const char* name )
grid->addWidget( sliderStep, 1, 1 ); grid->addWidget( sliderStep, 1, 1 );
connect( sliderStep, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(updateStep(int)) ); connect( sliderStep, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(updateStep(int)) );
sliderStep->setOrientation( Qt::Horizontal ); sliderStep->setOrientation( TQt::Horizontal );
sliderStep->setRange( 1, 10 ); sliderStep->setRange( 1, 10 );
sliderStep->setSteps( 1, 2 ); sliderStep->setSteps( 1, 2 );
sliderStep->setValue( 3 ); sliderStep->setValue( 3 );

@ -398,7 +398,7 @@ void aHistLineEdit::paintEvent ( TQPaintEvent *p )
TQPainter paint(this); TQPainter paint(this);
TQPen pen = paint.pen(); TQPen pen = paint.pen();
pen.setWidth(5); pen.setWidth(5);
pen.setStyle(Qt::SolidLine); pen.setStyle(TQt::SolidLine);
pen.setColor(palette().active().highlight()); pen.setColor(palette().active().highlight());
paint.setPen(pen); paint.setPen(pen);
TQRect r = frameRect(); TQRect r = frameRect();

@ -261,7 +261,7 @@ void dockServerController::subItemActivated(int sub_id)
void dockServerController::mousePressEvent( TQMouseEvent *e ) void dockServerController::mousePressEvent( TQMouseEvent *e )
{ {
if(e->button() == Qt::LeftButton){ if(e->button() == TQt::LeftButton){
showPopupMenu(mainPop); showPopupMenu(mainPop);
} }
else { else {

@ -1827,18 +1827,18 @@ void TextView::clearSelectionInternal()
void TextView::contentsMousePressEvent( TQMouseEvent *ev ) void TextView::contentsMousePressEvent( TQMouseEvent *ev )
{ {
if ( ev->button() & Qt::RightButton ) { if ( ev->button() & TQt::RightButton ) {
emitLinkClickedForMouseEvent( ev ); emitLinkClickedForMouseEvent( ev );
return; return;
} }
if ( !( ev->button() & Qt::LeftButton ) && !(ev->button() & Qt::MidButton ) ) if ( !( ev->button() & TQt::LeftButton ) && !(ev->button() & TQt::MidButton ) )
return; return;
clearSelection( true ); clearSelection( true );
SelectionPoint p; SelectionPoint p;
Item *itemUnderMouse = itemAt( ev->pos(), &p, Item::SelectFuzzy ); Item *itemUnderMouse = itemAt( ev->pos(), &p, Item::SelectFuzzy );
if ( p.item && ( ev->button() & Qt::LeftButton ) ) { if ( p.item && ( ev->button() & TQt::LeftButton ) ) {
m_selectionMaybeStart = p; m_selectionMaybeStart = p;
p.item->setSelectionStatus( Item::NoSelection ); p.item->setSelectionStatus( Item::NoSelection );
} }
@ -1847,7 +1847,7 @@ void TextView::contentsMousePressEvent( TQMouseEvent *ev )
if ( !href.isNull() ) { if ( !href.isNull() ) {
m_dragStartPos = ev->pos(); m_dragStartPos = ev->pos();
m_dragURL = href.toTQString(); m_dragURL = href.toTQString();
if ( ev->button() & Qt::LeftButton ) if ( ev->button() & TQt::LeftButton )
m_mousePressed = true; m_mousePressed = true;
else else
m_mmbPressed = true; m_mmbPressed = true;
@ -1857,7 +1857,7 @@ void TextView::contentsMousePressEvent( TQMouseEvent *ev )
void TextView::contentsMouseMoveEvent( TQMouseEvent *ev ) void TextView::contentsMouseMoveEvent( TQMouseEvent *ev )
{ {
if ( m_mousePressed && ev->state() == Qt::NoButton ) if ( m_mousePressed && ev->state() == TQt::NoButton )
{ {
m_mousePressed = false; m_mousePressed = false;
m_mmbPressed = false; m_mmbPressed = false;
@ -1881,8 +1881,8 @@ void TextView::contentsMouseMoveEvent( TQMouseEvent *ev )
if ( !i && !p.item ) if ( !i && !p.item )
return; return;
if ( (ev->state() & Qt::LeftButton && m_selectionStart.item && p.item) || if ( (ev->state() & TQt::LeftButton && m_selectionStart.item && p.item) ||
(ev->state() & Qt::LeftButton && m_selectionMaybeStart.item && p.item)) (ev->state() & TQt::LeftButton && m_selectionMaybeStart.item && p.item))
{ {
if(m_selectionMaybeStart.item != 0){ if(m_selectionMaybeStart.item != 0){
@ -1952,7 +1952,7 @@ void TextView::contentsMouseReleaseEvent( TQMouseEvent *ev )
m_selectionMaybeStart = SelectionPoint(); m_selectionMaybeStart = SelectionPoint();
if ( (ev->button() & Qt::LeftButton) && !m_selectedText.isEmpty() ) if ( (ev->button() & TQt::LeftButton) && !m_selectedText.isEmpty() )
TQApplication::clipboard()->setText( m_selectedText, TQClipboard::Selection ); TQApplication::clipboard()->setText( m_selectedText, TQClipboard::Selection );
if ( clicked ) { if ( clicked ) {
@ -1960,7 +1960,7 @@ void TextView::contentsMouseReleaseEvent( TQMouseEvent *ev )
return; return;
} }
if (ev->button() & Qt::MidButton) if (ev->button() & TQt::MidButton)
{ {
emit pasteReq( TDEApplication::clipboard()->text( TQClipboard::Selection ) ); emit pasteReq( TDEApplication::clipboard()->text( TQClipboard::Selection ) );
return; return;

@ -270,13 +270,13 @@ void KSircView::enableTimeStamps(bool enable)
void KSircView::anchorClicked(const TQMouseEvent *ev, const TQString &url) void KSircView::anchorClicked(const TQMouseEvent *ev, const TQString &url)
{ {
if ( (ev->button() & Qt::LeftButton) && (ev->state() & ShiftButton ) ) if ( (ev->button() & TQt::LeftButton) && (ev->state() & ShiftButton ) )
saveURL( url ); saveURL( url );
else if ( (ev->button() & Qt::LeftButton) || (ev->button() & Qt::MidButton) ) else if ( (ev->button() & TQt::LeftButton) || (ev->button() & TQt::MidButton) )
{ {
openBrowser( url ); openBrowser( url );
} }
else if ( ev->button() & Qt::RightButton ) else if ( ev->button() & TQt::RightButton )
{ {
static const int openURLID = 0; static const int openURLID = 0;
static const int copyLinkLocationID = 1; static const int copyLinkLocationID = 1;

@ -19,7 +19,7 @@
void KSTabWidget::mousePressEvent(TQMouseEvent *e) void KSTabWidget::mousePressEvent(TQMouseEvent *e)
{ {
if(e->button() == Qt::RightButton){ if(e->button() == TQt::RightButton){
TQPoint p = tabBar()->mapFromParent(e->pos()); TQPoint p = tabBar()->mapFromParent(e->pos());
TQTab *tab = tabBar()->selectTab(p); TQTab *tab = tabBar()->selectTab(p);
if(tab){ if(tab){

@ -236,7 +236,7 @@ KSircTopLevel::KSircTopLevel(KSircProcess *_proc, const KSircChannel &channelInf
TQCString kstn = TQCString(TQT_TQOBJECT(this)->name()) + "_"; TQCString kstn = TQCString(TQT_TQOBJECT(this)->name()) + "_";
pan = new TQSplitter(Qt::Horizontal, top, kstn + "splitter"); pan = new TQSplitter(TQt::Horizontal, top, kstn + "splitter");
#if KDE_IS_VERSION(3,1,92) #if KDE_IS_VERSION(3,1,92)
pan->setOpaqueResize( TDEGlobalSettings::opaqueResize() ); pan->setOpaqueResize( TDEGlobalSettings::opaqueResize() );
#else #else
@ -1505,7 +1505,7 @@ void KSircTopLevel::pasteToNickList(int button,
TQListBoxItem *item, TQListBoxItem *item,
const TQPoint &) const TQPoint &)
{ {
if(button == Qt::MidButton && item){ if(button == TQt::MidButton && item){
KSircChannel ci(m_channelInfo.server(), item->text().lower()); KSircChannel ci(m_channelInfo.server(), item->text().lower());
emit open_toplevel(ci); emit open_toplevel(ci);

@ -63,7 +63,7 @@ KSoundPageConfig::KSoundPageConfig( TQWidget *parent, const char* name,
KDialog::spacingHint() ); KDialog::spacingHint() );
TQGroupBox* extprg_box = new TQGroupBox(this); TQGroupBox* extprg_box = new TQGroupBox(this);
extprg_box->setColumnLayout( 0, Qt::Horizontal ); extprg_box->setColumnLayout( 0, TQt::Horizontal );
toplay->addWidget(extprg_box); toplay->addWidget(extprg_box);
TQGridLayout* l = new TQGridLayout(extprg_box->layout()); TQGridLayout* l = new TQGridLayout(extprg_box->layout());

@ -81,7 +81,7 @@ LisaSettings::LisaSettings(const TQString& config, TQWidget *parent)
TQToolTip::add(m_pingAddresses, comment); TQToolTip::add(m_pingAddresses, comment);
label->setBuddy(m_pingAddresses); label->setBuddy(m_pingAddresses);
TQGrid *addressesGrid = new TQGrid(2, Qt::Horizontal, this); TQGrid *addressesGrid = new TQGrid(2, TQt::Horizontal, this);
addressesGrid->setSpacing(10); addressesGrid->setSpacing(10);
layout->setStretchFactor(addressesGrid,0); layout->setStretchFactor(addressesGrid,0);
@ -129,7 +129,7 @@ LisaSettings::LisaSettings(const TQString& config, TQWidget *parent)
dummy->setMinimumHeight(10); dummy->setMinimumHeight(10);
m_deliverUnnamedHosts=new TQCheckBox(i18n("Show &hosts without DNS names"),vbox); m_deliverUnnamedHosts=new TQCheckBox(i18n("Show &hosts without DNS names"),vbox);
TQGrid *advGrid = new TQGrid(2, Qt::Horizontal, vbox); TQGrid *advGrid = new TQGrid(2, TQt::Horizontal, vbox);
advGrid->setSpacing(10); advGrid->setSpacing(10);
label=new TQLabel(i18n("Host list update interval:"),advGrid); label=new TQLabel(i18n("Host list update interval:"),advGrid);

@ -91,7 +91,7 @@ ResLisaSettings::ResLisaSettings(const TQString& config, TQWidget *parent)
m_deliverUnnamedHosts=new TQCheckBox(i18n("Show &hosts without DNS names"),vbox); m_deliverUnnamedHosts=new TQCheckBox(i18n("Show &hosts without DNS names"),vbox);
TQGrid *advGrid = new TQGrid(2, Qt::Horizontal, vbox); TQGrid *advGrid = new TQGrid(2, TQt::Horizontal, vbox);
advGrid->setSpacing(10); advGrid->setSpacing(10);
label=new TQLabel(i18n("Host list update interval:"),advGrid); label=new TQLabel(i18n("Host list update interval:"),advGrid);

@ -38,7 +38,7 @@ IOSlaveSettings::IOSlaveSettings(const TQString& config, TQWidget *parent)
TQVBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint()); TQVBoxLayout *layout = new TQVBoxLayout(this, KDialog::marginHint(), KDialog::spacingHint());
layout->setAutoAdd(true); layout->setAutoAdd(true);
TQGroupBox* group=new TQGroupBox(1,Qt::Horizontal, i18n("Show Links for Following Services"), this); TQGroupBox* group=new TQGroupBox(1,TQt::Horizontal, i18n("Show Links for Following Services"), this);
m_ftpSettings=new PortSettingsBar(i18n("FTP (TCP, port 21): "), group); m_ftpSettings=new PortSettingsBar(i18n("FTP (TCP, port 21): "), group);
m_httpSettings=new PortSettingsBar(i18n("HTTP (TCP, port 80): "),group); m_httpSettings=new PortSettingsBar(i18n("HTTP (TCP, port 80): "),group);

@ -183,7 +183,7 @@ void KWireLessWidget::setMode(KWireLessWidget::Mode _mode)
void KWireLessWidget::mousePressEvent(TQMouseEvent *e) void KWireLessWidget::mousePressEvent(TQMouseEvent *e)
{ {
if( e->button() == Qt::LeftButton) if( e->button() == TQt::LeftButton)
{ {
PropertiesDialog dialog(this); PropertiesDialog dialog(this);
connect(this, TQT_SIGNAL(updateDeviceInfo(TQPtrList<DeviceInfo> *)), connect(this, TQT_SIGNAL(updateDeviceInfo(TQPtrList<DeviceInfo> *)),
@ -206,7 +206,7 @@ void KWireLessWidget::paintEvent(TQPaintEvent*)
// non-nil): // non-nil):
space = 3 * frameWidth + qualityBarWidth + signalBarWidth + noiseBarWidth+1; space = 3 * frameWidth + qualityBarWidth + signalBarWidth + noiseBarWidth+1;
if(mode ==Qt::Horizontal) if(mode ==TQt::Horizontal)
{ {
h = space; h = space;
w = width(); w = width();
@ -221,11 +221,11 @@ void KWireLessWidget::paintEvent(TQPaintEvent*)
painter.drawRect(0, 0, w, h); painter.drawRect(0, 0, w, h);
int x = qualityBarWidth + frameWidth; int x = qualityBarWidth + frameWidth;
mode ==Qt::Vertical mode ==TQt::Vertical
? painter.drawLine(x, frameWidth, x, h-frameWidth) ? painter.drawLine(x, frameWidth, x, h-frameWidth)
: painter.drawLine(frameWidth, x, w-frameWidth, x); : painter.drawLine(frameWidth, x, w-frameWidth, x);
x += signalBarWidth + frameWidth; x += signalBarWidth + frameWidth;
mode ==Qt::Vertical mode ==TQt::Vertical
? painter.drawLine(x, frameWidth, x, h-frameWidth) ? painter.drawLine(x, frameWidth, x, h-frameWidth)
: painter.drawLine(frameWidth, x, w-frameWidth, x); : painter.drawLine(frameWidth, x, w-frameWidth, x);
@ -247,7 +247,7 @@ void KWireLessWidget::paintEvent(TQPaintEvent*)
color = TQt::darkGreen; color = TQt::darkGreen;
brush = TQt::green; brush = TQt::green;
}; };
if(mode ==Qt::Vertical) if(mode ==TQt::Vertical)
{ {
int position = (int)(((float)(h-2*frameWidth))*(1-device->quality())+0.5); int position = (int)(((float)(h-2*frameWidth))*(1-device->quality())+0.5);
@ -275,7 +275,7 @@ void KWireLessWidget::paintEvent(TQPaintEvent*)
painter.setPen(TQPen(TQt::darkRed)); painter.setPen(TQPen(TQt::darkRed));
painter.setBrush(TQt::red); painter.setBrush(TQt::red);
if(mode ==Qt::Vertical) if(mode ==TQt::Vertical)
{ {
int x = 2 * frameWidth + qualityBarWidth; int x = 2 * frameWidth + qualityBarWidth;
int h1 = (int)(((float)(h-2*frameWidth))*(1-device->signal())+0.5); int h1 = (int)(((float)(h-2*frameWidth))*(1-device->signal())+0.5);
@ -292,7 +292,7 @@ void KWireLessWidget::paintEvent(TQPaintEvent*)
painter.setPen(TQPen(TQt::gray)); painter.setPen(TQPen(TQt::gray));
painter.setBrush(TQt::lightGray); painter.setBrush(TQt::lightGray);
if(mode ==Qt::Vertical) if(mode ==TQt::Vertical)
{ {
int x = 3 * frameWidth + qualityBarWidth + signalBarWidth; int x = 3 * frameWidth + qualityBarWidth + signalBarWidth;
int h1 = (int)(((float)(h-2*frameWidth))*(1-device->noise())+0.5); int h1 = (int)(((float)(h-2*frameWidth))*(1-device->noise())+0.5);

@ -38,7 +38,7 @@ bool Status::generateStatsWidget ()
qual = 0; qual = 0;
device->get_current_quality (sig, noi, qual); device->get_current_quality (sig, noi, qual);
content = content =
new TQGroupBox (2, Qt::Horizontal, i18n ("Status of Active Connection"), new TQGroupBox (2, TQt::Horizontal, i18n ("Status of Active Connection"),
this); this);
bool has_freq = device->get_device_freq (freq); bool has_freq = device->get_device_freq (freq);
if ((!has_freq) || (qual == 0)) if ((!has_freq) || (qual == 0))

Loading…
Cancel
Save