Replace Qt with TQt

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/60/head
Michele Calgaro 6 months 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>";
break;
case TQVariant::DateTime:
s += "<datetime.iso8601>" + arg.toDateTime().toString( Qt::ISODate ) + "</datetime.iso8601>";
s += "<datetime.iso8601>" + arg.toDateTime().toString( TQt::ISODate ) + "</datetime.iso8601>";
break;
case TQVariant::List: {
s += "<array><data>";
@ -257,7 +257,7 @@ TQVariant Query::demarshal( const TQDomElement &elem )
} else if ( typeName == "base64" )
return TQVariant( KCodecs::base64Decode( TQCString(typeElement.text().latin1() )) );
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" ) {
TQValueList<TQVariant> values;
TQDomNode valueNode = typeElement.firstChild().firstChild();

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

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

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

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

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

@ -118,7 +118,7 @@ DropTarget::~DropTarget()
void
DropTarget::mousePressEvent(TQMouseEvent * e)
{
if (e->button() == Qt::LeftButton)
if (e->button() == TQt::LeftButton)
{
// toggleMinimizeRestore ();
// oldX = 0;
@ -127,14 +127,14 @@ DropTarget::mousePressEvent(TQMouseEvent * e)
dx = TQCursor::pos().x() - pos().x();
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_Max, tdemain->isHidden());
popupMenu->popup(TQCursor::pos());
}
else if (e->button() == Qt::MidButton)
else if (e->button() == TQt::MidButton)
{
tdemain->slotPasteTransfer();
}
@ -224,7 +224,7 @@ void DropTarget::mouseReleaseEvent(TQMouseEvent *)
/** No descriptions */
void DropTarget::mouseDoubleClickEvent(TQMouseEvent * e)
{
if (e->button() == Qt::LeftButton)
if (e->button() == TQt::LeftButton)
toggleMinimizeRestore();
}

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

@ -270,7 +270,7 @@ void NewsScroller::enterEvent(TQEvent *)
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();
if (m_activeHeadline)
@ -280,14 +280,14 @@ void NewsScroller::mousePressEvent(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_mouseDrag) {
m_activeHeadline->article()->open();
m_tempHeadline = TQString();
}
if (e->button() == Qt::RightButton)
if (e->button() == TQt::RightButton)
emit(contextMenu());
if (m_mouseDrag) {
@ -307,7 +307,7 @@ void NewsScroller::mouseMoveEvent(TQMouseEvent *e)
dragDistance = TQABS(e->x() - m_dragPos.x());
else
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());
if (m_mouseDrag) // Stop the scroller if we just started a drag.
m_scrollTimer->stop();

@ -106,7 +106,7 @@ KopeteEmailWindow::KopeteEmailWindow( Kopete::ChatSession *manager, EmailWindowP
setMinimumSize( TQSize( 75, 20 ) );
d->split = new TQSplitter( v );
d->split->setOrientation( Qt::Vertical );
d->split->setOrientation( TQt::Vertical );
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 )
{
TDEListView::contentsMousePressEvent( e );
if (e->button() == Qt::LeftButton )
if (e->button() == TQt::LeftButton )
{
TQPoint p=contentsToViewport(e->pos());
TQListViewItem *i=itemAt( p );

@ -44,11 +44,11 @@ KopeteAccountStatusBarIcon::~KopeteAccountStatusBarIcon()
void KopeteAccountStatusBarIcon::mousePressEvent( TQMouseEvent *me )
{
if( me->button() == Qt::RightButton )
if( me->button() == TQt::RightButton )
{
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() ) );
}

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

@ -88,7 +88,7 @@ GlobalStatusMessageIconLabel::GlobalStatusMessageIconLabel(TQWidget *parent, con
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() );
event->accept();

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

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

@ -74,7 +74,7 @@ private:
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;
mMetaContact = mc;

@ -377,7 +377,7 @@ TQValueList<Kopete::Message> HistoryLogger::readMessages(TQDate date)
Kopete::Message msg(dt, from, to, msgElem2.text(), dir);
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);
@ -595,7 +595,7 @@ TQValueList<Kopete::Message> HistoryLogger::readMessages(unsigned int lines,
if (colorize)
{
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
);
msg.setFg( fgColor );
@ -603,7 +603,7 @@ TQValueList<Kopete::Message> HistoryLogger::readMessages(unsigned int lines,
else
{
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
);
}

@ -714,7 +714,7 @@ GaduSession::checkDescriptor()
gaduMessage.message =
textcodec->toUnicode((const char*)event->event.msg.message);
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 );
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
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 info = doc->createElement("info");
//info.setAttribute("last-seen",lastSeen_.toString(Qt::ISODate));
//info.setAttribute("last-seen",lastSeen_.toString(TQt::ISODate));
// Identities
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())
// 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())
{

@ -442,7 +442,7 @@ void JabberContact::slotCheckVCard ()
if ( cacheDateString.isNull () )
cacheDate = TQDateTime::currentDateTime().addDays ( -2 );
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;
@ -506,7 +506,7 @@ void JabberContact::slotGotVCard ()
// update timestamp of last vCard retrieval
if ( metaContact() && !metaContact()->isTemporary () )
{
setProperty ( protocol()->propVCardCacheTimeStamp, TQDateTime::currentDateTime().toString ( Qt::ISODate ) );
setProperty ( protocol()->propVCardCacheTimeStamp, TQDateTime::currentDateTime().toString ( TQt::ISODate ) );
}
mVCardUpdateInProgress = false;

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

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

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

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

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

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

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

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

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

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

@ -585,7 +585,7 @@ void KRDC::switchToNormal(bool scaling)
}
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,
TQSizePolicy::Fixed));
TDEToolBar *t = new TDEToolBar(m_dockArea);

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

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

@ -50,5 +50,5 @@ void PersonalInviteDialog::setPassword( const TQString &passwd )
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()))
return;
if (e->button() == Qt::LeftButton) {
if (e->button() == TQt::LeftButton) {
contextMenuAboutToShow(contextMenu());
contextMenu()->popup(e->globalPos());
}

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

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

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

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

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

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

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

@ -270,13 +270,13 @@ void KSircView::enableTimeStamps(bool enable)
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 );
else if ( (ev->button() & Qt::LeftButton) || (ev->button() & Qt::MidButton) )
else if ( (ev->button() & TQt::LeftButton) || (ev->button() & TQt::MidButton) )
{
openBrowser( url );
}
else if ( ev->button() & Qt::RightButton )
else if ( ev->button() & TQt::RightButton )
{
static const int openURLID = 0;
static const int copyLinkLocationID = 1;

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

@ -236,7 +236,7 @@ KSircTopLevel::KSircTopLevel(KSircProcess *_proc, const KSircChannel &channelInf
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)
pan->setOpaqueResize( TDEGlobalSettings::opaqueResize() );
#else
@ -1505,7 +1505,7 @@ void KSircTopLevel::pasteToNickList(int button,
TQListBoxItem *item,
const TQPoint &)
{
if(button == Qt::MidButton && item){
if(button == TQt::MidButton && item){
KSircChannel ci(m_channelInfo.server(), item->text().lower());
emit open_toplevel(ci);

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

@ -81,7 +81,7 @@ LisaSettings::LisaSettings(const TQString& config, TQWidget *parent)
TQToolTip::add(m_pingAddresses, comment);
label->setBuddy(m_pingAddresses);
TQGrid *addressesGrid = new TQGrid(2, Qt::Horizontal, this);
TQGrid *addressesGrid = new TQGrid(2, TQt::Horizontal, this);
addressesGrid->setSpacing(10);
layout->setStretchFactor(addressesGrid,0);
@ -129,7 +129,7 @@ LisaSettings::LisaSettings(const TQString& config, TQWidget *parent)
dummy->setMinimumHeight(10);
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);
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);
TQGrid *advGrid = new TQGrid(2, Qt::Horizontal, vbox);
TQGrid *advGrid = new TQGrid(2, TQt::Horizontal, vbox);
advGrid->setSpacing(10);
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());
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_httpSettings=new PortSettingsBar(i18n("HTTP (TCP, port 80): "),group);

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

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

Loading…
Cancel
Save