Replace Qt with TQt

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/236/head
Michele Calgaro 1 year ago
parent 419c185be7
commit c8ece3630d
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -196,7 +196,7 @@ The preferred means of defining a shortcut, however, is to use <b>TDEAction</b>.
have been removed. (Nobody on the list knew what its function was
supposed to be.) Calls to <i>insert()</i> and the equivalent
<i>key(TDEStdAccel::Insert)</i> can be replaced with the former default
of <i>Qt::CTRL+Qt::Key_Insert</i>.</li>
of <i>TQt::CTRL+TQt::Key_Insert</i>.</li>
<li>The following functions have been deprecated and will need to be changed if KDE_NO_COMPAT is defined:
<table border=1>
<tr><th>Old</th><th>New</th></tr>

@ -49,7 +49,7 @@ KFullscreenVideoWidget::KFullscreenVideoWidget( KVideoWidget *parent, const char
{
this->videoWidget = parent;
setEraseColor( black );
setCursor(TQCursor(Qt::BlankCursor));
setCursor(TQCursor(TQt::BlankCursor));
}
void KFullscreenVideoWidget::windowActivationChange( bool )
@ -306,7 +306,7 @@ void KVideoWidget::mousePressEvent( TQMouseEvent *event )
emit mouseButtonPressed( event->button(), pos, event->state() );
// ### Remove in KDE4
if ( event->button() == Qt::RightButton )
if ( event->button() == TQt::RightButton )
emit rightButtonPressed( pos );
}

@ -197,7 +197,7 @@
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Symbol" defStyleNum="dsNormal" spellChecking="false"/>
<itemData name="Preprocessor" defStyleNum="dsOthers" spellChecking="false"/>
<itemData name="Prep. Lib" defStyleNum="dsOthers" spellChecking="false"/> <!--,Qt::darkYellow,Qt::yellow,false,false)); -->
<itemData name="Prep. Lib" defStyleNum="dsOthers" spellChecking="false"/> <!--,TQt::darkYellow,TQt::yellow,false,false)); -->
<itemData name="Alert" defStyleNum="dsAlert" spellChecking="false"/>
<itemData name="Region Marker" defStyleNum="dsRegionMarker" spellChecking="false"/>
<itemData name="Error" defStyleNum="dsError" spellChecking="false"/>

@ -347,7 +347,7 @@
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Symbol" defStyleNum="dsNormal"/>
<itemData name="Preprocessor" defStyleNum="dsOthers"/>
<itemData name="Prep. Lib" defStyleNum="dsOthers"/> <!--,Qt::darkYellow,Qt::yellow,false,false)); -->
<itemData name="Prep. Lib" defStyleNum="dsOthers"/> <!--,TQt::darkYellow,TQt::yellow,false,false)); -->
<itemData name="Alert" defStyleNum="dsAlert" />
</itemDatas>
</highlighting>

@ -159,7 +159,7 @@
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Symbol" defStyleNum="dsNormal"/>
<itemData name="Preprocessor" defStyleNum="dsOthers"/>
<itemData name="Prep. Lib" defStyleNum="dsOthers"/> <!--,Qt::darkYellow,Qt::yellow,false,false)); -->
<itemData name="Prep. Lib" defStyleNum="dsOthers"/> <!--,TQt::darkYellow,TQt::yellow,false,false)); -->
<itemData name="Alert" defStyleNum="dsAlert" />
</itemDatas>
</highlighting>

@ -100,7 +100,7 @@
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Symbol" defStyleNum="dsNormal"/>
<itemData name="Preprocessor" defStyleNum="dsOthers"/>
<itemData name="Prep. Lib" defStyleNum="dsOthers"/> <!--,Qt::darkYellow,Qt::yellow,false,false)); -->
<itemData name="Prep. Lib" defStyleNum="dsOthers"/> <!--,TQt::darkYellow,TQt::yellow,false,false)); -->
<itemData name="Alert" defStyleNum="dsAlert" />
</itemDatas>
</highlighting>

@ -172,7 +172,7 @@
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Symbol" defStyleNum="dsNormal"/>
<itemData name="Preprocessor" defStyleNum="dsOthers"/>
<itemData name="Prep. Lib" defStyleNum="dsOthers"/> <!--,Qt::darkYellow,Qt::yellow,false,false)); -->
<itemData name="Prep. Lib" defStyleNum="dsOthers"/> <!--,TQt::darkYellow,TQt::yellow,false,false)); -->
</itemDatas>
</highlighting>
<general>

@ -230,7 +230,7 @@
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Symbol" defStyleNum="dsNormal"/>
<itemData name="Preprocessor" defStyleNum="dsOthers"/>
<itemData name="Prep. Lib" defStyleNum="dsOthers"/> <!--,Qt::darkYellow,Qt::yellow,false,false)); -->
<itemData name="Prep. Lib" defStyleNum="dsOthers"/> <!--,TQt::darkYellow,TQt::yellow,false,false)); -->
</itemDatas>
</highlighting>
<general>

@ -241,7 +241,7 @@
<itemData name="Comment" defStyleNum="dsComment"/>
<itemData name="Symbol" defStyleNum="dsNormal" spellChecking="false"/>
<itemData name="Preprocessor" defStyleNum="dsOthers" spellChecking="false"/>
<itemData name="Prep. Lib" defStyleNum="dsOthers" spellChecking="false"/> <!--,Qt::darkYellow,Qt::yellow,false,false)); -->
<itemData name="Prep. Lib" defStyleNum="dsOthers" spellChecking="false"/> <!--,TQt::darkYellow,TQt::yellow,false,false)); -->
<itemData name="Alert" defStyleNum="dsAlert" spellChecking="false"/>
<itemData name="Region Marker" defStyleNum="dsRegionMarker" spellChecking="false"/>
<itemData name="Error" defStyleNum="dsError" spellChecking="false"/>

@ -395,7 +395,7 @@ KateArgHint::KateArgHint( KateView* parent, const char* name )
: TQFrame( parent, name, (WFlags)WType_Popup )
{
setBackgroundColor( black );
setPaletteForegroundColor( Qt::black );
setPaletteForegroundColor( TQt::black );
labelDict.setAutoDelete( true );
layout = new TQVBoxLayout( this, 1, 2 );

@ -1155,13 +1155,13 @@ void KateRendererConfig::setSchemaInternal( int schema )
// same std colors like in KateDocument::markColor
TQColor mark[7];
mark[0] = Qt::blue;
mark[1] = Qt::red;
mark[2] = Qt::yellow;
mark[3] = Qt::magenta;
mark[4] = Qt::gray;
mark[5] = Qt::green;
mark[6] = Qt::red;
mark[0] = TQt::blue;
mark[1] = TQt::red;
mark[2] = TQt::yellow;
mark[3] = TQt::magenta;
mark[4] = TQt::gray;
mark[5] = TQt::green;
mark[6] = TQt::red;
for (int i = 1; i <= KTextEditor::MarkInterface::reservedMarkersCount(); i++) {
TQColor col = config->readColorEntry(TQString("Color MarkType%1").arg(i), &mark[i - 1]);

@ -179,7 +179,7 @@ KateIndentConfigTab::KateIndentConfigTab(TQWidget *parent)
opt[4] = new TQCheckBox(i18n("&Backspace key indents"), keys);
TQRadioButton *rb1, *rb2, *rb3;
m_tabs = new TQButtonGroup( 1, Qt::Horizontal, i18n("Tab Key Mode if Nothing Selected"), this );
m_tabs = new TQButtonGroup( 1, TQt::Horizontal, i18n("Tab Key Mode if Nothing Selected"), this );
m_tabs->setRadioButtonExclusive( true );
m_tabs->insert( rb1=new TQRadioButton( i18n("Insert indent &characters"), m_tabs ), 0 );
m_tabs->insert( rb2=new TQRadioButton( i18n("I&nsert tab character"), m_tabs ), 1 );
@ -376,7 +376,7 @@ KateSelectConfigTab::KateSelectConfigTab(TQWidget *parent)
TQRadioButton *rb1, *rb2;
m_tabs = new TQButtonGroup( 1, Qt::Horizontal, i18n("Selection Mode"), this );
m_tabs = new TQButtonGroup( 1, TQt::Horizontal, i18n("Selection Mode"), this );
layout->add (m_tabs);
m_tabs->setRadioButtonExclusive( true );
@ -684,7 +684,7 @@ KateViewDefaultsConfig::KateViewDefaultsConfig(TQWidget *parent)
blay->addWidget(gbBar);
m_bmSort = new TQButtonGroup( 1, Qt::Horizontal, i18n("Sort Bookmarks Menu"), this );
m_bmSort = new TQButtonGroup( 1, TQt::Horizontal, i18n("Sort Bookmarks Menu"), this );
m_bmSort->setRadioButtonExclusive( true );
m_bmSort->insert( rb1=new TQRadioButton( i18n("By &position"), m_bmSort ), 0 );
m_bmSort->insert( rb2=new TQRadioButton( i18n("By c&reation"), m_bmSort ), 1 );
@ -895,7 +895,7 @@ KateSaveConfigTab::KateSaveConfigTab( TQWidget *parent )
dirSearchDepth->setSpecialValueText( i18n("Do not use config file") );
dirSearchDepth->setLabel(i18n("Se&arch depth for config file:"), AlignVCenter);
TQGroupBox *gb = new TQGroupBox( 1, Qt::Horizontal, i18n("Backup on Save"), this );
TQGroupBox *gb = new TQGroupBox( 1, TQt::Horizontal, i18n("Backup on Save"), this );
layout->addWidget( gb );
cbLocalFiles = new TQCheckBox( i18n("&Local files"), gb );
cbRemoteFiles = new TQCheckBox( i18n("&Remote files"), gb );
@ -1130,7 +1130,7 @@ KatePartPluginConfigPage::KatePartPluginConfigPage (TQWidget *parent) : KateConf
btnConfigure = new TQPushButton( i18n("Configure..."), this );
btnConfigure->setEnabled( false );
grid->addWidget( btnConfigure, 1, 0, Qt::AlignRight );
grid->addWidget( btnConfigure, 1, 0, TQt::AlignRight );
connect( btnConfigure, TQT_SIGNAL(clicked()), this, TQT_SLOT(slotConfigure()) );
connect( listView, TQT_SIGNAL(selectionChanged(TQListViewItem*)), this, TQT_SLOT(slotCurrentChanged(TQListViewItem*)) );
@ -1276,7 +1276,7 @@ KateHlConfigPage::KateHlConfigPage (TQWidget *parent, KateDocument *doc)
hlCombo->insertItem(KateHlManager::self()->hlNameTranslated(i));
}
TQGroupBox *gbInfo = new TQGroupBox( 1, Qt::Horizontal, i18n("Information"), this );
TQGroupBox *gbInfo = new TQGroupBox( 1, TQt::Horizontal, i18n("Information"), this );
layout->add (gbInfo);
// author
@ -1290,7 +1290,7 @@ KateHlConfigPage::KateHlConfigPage (TQWidget *parent, KateDocument *doc)
new TQLabel( i18n("License:"), hb2 );
license = new TQLabel (hb2);
TQGroupBox *gbProps = new TQGroupBox( 1, Qt::Horizontal, i18n("Properties"), this );
TQGroupBox *gbProps = new TQGroupBox( 1, TQt::Horizontal, i18n("Properties"), this );
layout->add (gbProps);
// file & mime types

@ -4654,7 +4654,7 @@ void KateDocument::readVariableLine( TQString t, bool onlyViewAndRenderer )
bool found = false;
for (TQStringList::size_type i = 0; !found && i < wildcards.size(); ++i)
{
TQRegExp wildcard (wildcards[i], true/*Qt::CaseSensitive*/, true/*TQRegExp::Wildcard*/);
TQRegExp wildcard (wildcards[i], true/*TQt::CaseSensitive*/, true/*TQRegExp::Wildcard*/);
found = wildcard.exactMatch (nameOfFile);
}

@ -282,7 +282,7 @@ KateFileTypeConfigTab::KateFileTypeConfigTab( TQWidget *parent )
btndel = new TQPushButton( i18n("&Delete"), hbHl );
connect( btndel, TQT_SIGNAL(clicked()), this, TQT_SLOT(deleteType()) );
gbProps = new TQGroupBox( 2, Qt::Horizontal, i18n("Properties"), this );
gbProps = new TQGroupBox( 2, TQt::Horizontal, i18n("Properties"), this );
layout->add (gbProps);
// file & mime types

@ -3193,79 +3193,79 @@ void KateHlManager::getDefaults(uint schema, KateAttributeList &list)
list.setAutoDelete(true);
KateAttribute* normal = new KateAttribute();
normal->setTextColor(Qt::black);
normal->setSelectedTextColor(Qt::white);
normal->setTextColor(TQt::black);
normal->setSelectedTextColor(TQt::white);
list.append(normal);
KateAttribute* keyword = new KateAttribute();
keyword->setTextColor(Qt::black);
keyword->setSelectedTextColor(Qt::white);
keyword->setTextColor(TQt::black);
keyword->setSelectedTextColor(TQt::white);
keyword->setBold(true);
list.append(keyword);
KateAttribute* dataType = new KateAttribute();
dataType->setTextColor(Qt::darkRed);
dataType->setSelectedTextColor(Qt::white);
dataType->setTextColor(TQt::darkRed);
dataType->setSelectedTextColor(TQt::white);
list.append(dataType);
KateAttribute* decimal = new KateAttribute();
decimal->setTextColor(Qt::blue);
decimal->setSelectedTextColor(Qt::cyan);
decimal->setTextColor(TQt::blue);
decimal->setSelectedTextColor(TQt::cyan);
list.append(decimal);
KateAttribute* basen = new KateAttribute();
basen->setTextColor(Qt::darkCyan);
basen->setSelectedTextColor(Qt::cyan);
basen->setTextColor(TQt::darkCyan);
basen->setSelectedTextColor(TQt::cyan);
list.append(basen);
KateAttribute* floatAttribute = new KateAttribute();
floatAttribute->setTextColor(Qt::darkMagenta);
floatAttribute->setSelectedTextColor(Qt::cyan);
floatAttribute->setTextColor(TQt::darkMagenta);
floatAttribute->setSelectedTextColor(TQt::cyan);
list.append(floatAttribute);
KateAttribute* charAttribute = new KateAttribute();
charAttribute->setTextColor(Qt::magenta);
charAttribute->setSelectedTextColor(Qt::magenta);
charAttribute->setTextColor(TQt::magenta);
charAttribute->setSelectedTextColor(TQt::magenta);
list.append(charAttribute);
KateAttribute* string = new KateAttribute();
string->setTextColor(TQColor("#D00"));
string->setSelectedTextColor(Qt::red);
string->setSelectedTextColor(TQt::red);
list.append(string);
KateAttribute* comment = new KateAttribute();
comment->setTextColor(Qt::darkGray);
comment->setSelectedTextColor(Qt::gray);
comment->setTextColor(TQt::darkGray);
comment->setSelectedTextColor(TQt::gray);
comment->setItalic(true);
list.append(comment);
KateAttribute* others = new KateAttribute();
others->setTextColor(Qt::darkGreen);
others->setSelectedTextColor(Qt::green);
others->setTextColor(TQt::darkGreen);
others->setSelectedTextColor(TQt::green);
list.append(others);
KateAttribute* alert = new KateAttribute();
alert->setTextColor(Qt::black);
alert->setTextColor(TQt::black);
alert->setSelectedTextColor( TQColor("#FCC") );
alert->setBold(true);
alert->setBGColor( TQColor("#FCC") );
list.append(alert);
KateAttribute* functionAttribute = new KateAttribute();
functionAttribute->setTextColor(Qt::darkBlue);
functionAttribute->setSelectedTextColor(Qt::white);
functionAttribute->setTextColor(TQt::darkBlue);
functionAttribute->setSelectedTextColor(TQt::white);
list.append(functionAttribute);
KateAttribute* regionmarker = new KateAttribute();
regionmarker->setTextColor(Qt::white);
regionmarker->setBGColor(Qt::gray);
regionmarker->setSelectedTextColor(Qt::gray);
regionmarker->setTextColor(TQt::white);
regionmarker->setBGColor(TQt::gray);
regionmarker->setSelectedTextColor(TQt::gray);
list.append(regionmarker);
KateAttribute* error = new KateAttribute();
error->setTextColor(Qt::red);
error->setTextColor(TQt::red);
error->setUnderline(true);
error->setSelectedTextColor(Qt::red);
error->setSelectedTextColor(TQt::red);
list.append(error);
TDEConfig *config = KateHlManager::self()->self()->getTDEConfig();

@ -228,9 +228,9 @@ bool KatePrinter::print (KateDocument *doc)
headerTagList = TQStringList::split('|', headerTags, true);
if (!headerBgColor.isValid())
headerBgColor = Qt::lightGray;
headerBgColor = TQt::lightGray;
if (!headerFgColor.isValid())
headerFgColor = Qt::black;
headerFgColor = TQt::black;
}
if (useFooter)
@ -255,9 +255,9 @@ bool KatePrinter::print (KateDocument *doc)
footerTagList = TQStringList::split('|', footerTags, true);
if (!footerBgColor.isValid())
footerBgColor = Qt::lightGray;
footerBgColor = TQt::lightGray;
if (!footerFgColor.isValid())
footerFgColor = Qt::black;
footerFgColor = TQt::black;
// adjust maxheight, so we can know when/where to print footer
maxHeight -= footerHeight;
}
@ -275,7 +275,7 @@ bool KatePrinter::print (KateDocument *doc)
if ( useBox )
{
if (!boxColor.isValid())
boxColor = Qt::black;
boxColor = TQt::black;
if (boxWidth < 1) // shouldn't be pssible no more!
boxWidth = 1;
// set maxwidth to something sensible
@ -307,7 +307,7 @@ bool KatePrinter::print (KateDocument *doc)
// get a title and add the height required to draw it
TQString _title = i18n("Typographical Conventions for %1").arg(doc->highlight()->name());
guideHeight += paint.boundingRect( 0, 0, _w, 1000, Qt::AlignTop|Qt::AlignHCenter, _title ).height();
guideHeight += paint.boundingRect( 0, 0, _w, 1000, TQt::AlignTop|TQt::AlignHCenter, _title ).height();
// see how many columns we can fit in
int _widest( 0 );
@ -417,8 +417,8 @@ bool KatePrinter::print (KateDocument *doc)
if (headerTagList.count() == 3)
{
int valign = ( (useBox||headerDrawBg||useBackground) ?
Qt::AlignVCenter : Qt::AlignTop );
int align = valign|Qt::AlignLeft;
TQt::AlignVCenter : TQt::AlignTop );
int align = valign|TQt::AlignLeft;
int marg = ( useBox || headerDrawBg ) ? innerMargin : 0;
if ( useBox ) marg += boxWidth;
TQString s;
@ -427,7 +427,7 @@ bool KatePrinter::print (KateDocument *doc)
s = headerTagList[i];
if (s.find("%p") != -1) s.replace("%p", TQString::number(currentPage));
paint.drawText(marg, 0, headerWidth-(marg*2), headerHeight, align, s);
align = valign|(i == 0 ? Qt::AlignHCenter : Qt::AlignRight);
align = valign|(i == 0 ? TQt::AlignHCenter : TQt::AlignRight);
}
}
if ( ! ( headerDrawBg || useBox || useBackground ) ) // draw a 1 px (!?) line to separate header from contents
@ -446,7 +446,7 @@ bool KatePrinter::print (KateDocument *doc)
paint.fillRect(0, maxHeight+innerMargin+boxWidth, headerWidth, footerHeight, footerBgColor);
if (footerTagList.count() == 3)
{
int align = Qt::AlignVCenter|Qt::AlignLeft;
int align = TQt::AlignVCenter|TQt::AlignLeft;
int marg = ( useBox || footerDrawBg ) ? innerMargin : 0;
if ( useBox ) marg += boxWidth;
TQString s;
@ -455,7 +455,7 @@ bool KatePrinter::print (KateDocument *doc)
s = footerTagList[i];
if (s.find("%p") != -1) s.replace("%p", TQString::number(currentPage));
paint.drawText(marg, maxHeight+innerMargin, headerWidth-(marg*2), footerHeight, align, s);
align = Qt::AlignVCenter|(i == 0 ? Qt::AlignHCenter : Qt::AlignRight);
align = TQt::AlignVCenter|(i == 0 ? TQt::AlignHCenter : TQt::AlignRight);
}
}
} // done footer
@ -524,7 +524,7 @@ bool KatePrinter::print (KateDocument *doc)
paint.setFont( renderer.config()->fontStruct()->myFontBold );
TQRect _r;
paint.drawText( _marg, y, pdmWidth-(2*_marg), maxHeight - y,
Qt::AlignTop|Qt::AlignHCenter,
TQt::AlignTop|TQt::AlignHCenter,
i18n("Typographical Conventions for %1").arg(doc->highlight()->name()), -1, &_r );
int _w = pdmWidth - (_marg*2) - (innerMargin*2);
int _x = _marg + innerMargin;
@ -543,7 +543,7 @@ bool KatePrinter::print (KateDocument *doc)
paint.setPen( renderer.attribute(_i)->textColor() );
paint.setFont( renderer.attribute(_i)->font( *renderer.currentFont() ) );
paint.drawText(( _x + ((_i%guideCols)*_cw)), y, _cw, renderer.fontHeight(),
Qt::AlignVCenter|Qt::AlignLeft, _d->name, -1, &_r );
TQt::AlignVCenter|TQt::AlignLeft, _d->name, -1, &_r );
_i++;
if ( _i && ! ( _i%guideCols ) ) y += renderer.fontHeight();
++_it;
@ -561,7 +561,7 @@ bool KatePrinter::print (KateDocument *doc)
paint.setPen( renderer.config()->lineNumberColor() );
paint.drawText( (( useBox || useBackground ) ? innerMargin : 0), y,
lineNumberWidth, renderer.fontHeight(),
Qt::AlignRight, TQString("%1").arg( lineCount + 1 ) );
TQt::AlignRight, TQString("%1").arg( lineCount + 1 ) );
}
endCol = renderer.textWidth(doc->kateTextLine(lineCount), startCol, maxWidth, &needWrap);
@ -721,7 +721,7 @@ KatePrintHeaderFooter::KatePrintHeaderFooter( KPrinter * /*printer*/, TQWidget *
lo2->addWidget( btnChooseFont );
connect( btnChooseFont, TQT_SIGNAL(clicked()), this, TQT_SLOT(setHFFont()) );
// header
gbHeader = new TQGroupBox( 2, Qt::Horizontal, i18n("Header Properties"), this );
gbHeader = new TQGroupBox( 2, TQt::Horizontal, i18n("Header Properties"), this );
lo->addWidget( gbHeader );
TQLabel *lHeaderFormat = new TQLabel( i18n("&Format:"), gbHeader );
@ -740,7 +740,7 @@ KatePrintHeaderFooter::KatePrintHeaderFooter( KPrinter * /*printer*/, TQWidget *
cbHeaderEnableBgColor = new TQCheckBox( i18n("Bac&kground"), hbHeaderColors );
kcbtnHeaderBg = new KColorButton( hbHeaderColors );
gbFooter = new TQGroupBox( 2, Qt::Horizontal, i18n("Footer Properties"), this );
gbFooter = new TQGroupBox( 2, TQt::Horizontal, i18n("Footer Properties"), this );
lo->addWidget( gbFooter );
// footer
@ -922,7 +922,7 @@ KatePrintLayout::KatePrintLayout( KPrinter * /*printer*/, TQWidget *parent, cons
cbEnableBox = new TQCheckBox( i18n("Draw &boxes"), this );
lo->addWidget( cbEnableBox );
gbBoxProps = new TQGroupBox( 2, Qt::Horizontal, i18n("Box Properties"), this );
gbBoxProps = new TQGroupBox( 2, TQt::Horizontal, i18n("Box Properties"), this );
lo->addWidget( gbBoxProps );
TQLabel *lBoxWidth = new TQLabel( i18n("W&idth:"), gbBoxProps );

@ -352,7 +352,7 @@ void KateRenderer::paintTextLine(TQPainter& paint, const KateLineRange* range, i
// Draws the dashed underline at the start of a folded block of text.
if (range->startsInvisibleBlock) {
paint.setPen(TQPen(config()->wordWrapMarkerColor(), 1, Qt::DashLine));
paint.setPen(TQPen(config()->wordWrapMarkerColor(), 1, TQt::DashLine));
paint.drawLine(0, fs->fontHeight - 1, xEnd - xStart, fs->fontHeight - 1);
}

@ -431,13 +431,13 @@ void KateSchemaConfigColorTab::schemaChanged ( int newSchema )
// same std colors like in KateDocument::markColor
TQValueVector <TQColor> mark(KTextEditor::MarkInterface::reservedMarkersCount());
Q_ASSERT(mark.size() > 6);
mark[0] = Qt::blue;
mark[1] = Qt::red;
mark[2] = Qt::yellow;
mark[3] = Qt::magenta;
mark[4] = Qt::gray;
mark[5] = Qt::green;
mark[6] = Qt::red;
mark[0] = TQt::blue;
mark[1] = TQt::red;
mark[2] = TQt::yellow;
mark[3] = TQt::magenta;
mark[4] = TQt::gray;
mark[5] = TQt::green;
mark[6] = TQt::red;
SchemaColors c;
TDEConfig *config = KateFactory::self()->schemaManager()->schema(newSchema);
@ -1153,7 +1153,7 @@ void KateStyleListView::unsetColor( int c )
void KateStyleListView::slotMousePressed(int btn, TQListViewItem* i, const TQPoint& pos, int c)
{
if ( dynamic_cast<KateStyleListItem*>(i) ) {
if ( btn == Qt::LeftButton && c > 0 ) {
if ( btn == TQt::LeftButton && c > 0 ) {
// map pos to item/column and call KateStyleListItem::activate(col, pos)
((KateStyleListItem*)i)->activate( c, viewport()->mapFromGlobal( pos ) - TQPoint( 0, itemRect(i).top() ) );
}

@ -729,8 +729,8 @@ bool KateSearch::doSearch( const TQString& text )
if (arbitraryHLExample) {
KateArbitraryHighlightRange* hl = new KateArbitraryHighlightRange(new KateSuperCursor(m_doc, true, s.cursor), new KateSuperCursor(m_doc, true, s.cursor.line(), s.cursor.col() + s.matchedLength), this);
hl->setBold();
hl->setTextColor(Qt::white);
hl->setBGColor(Qt::black);
hl->setTextColor(TQt::white);
hl->setBGColor(TQt::black);
// destroy the highlight upon change
connect(hl, TQT_SIGNAL(contentsChanged()), hl, TQT_SIGNAL(eliminated()));
m_arbitraryHLList->append(hl);

@ -124,7 +124,7 @@ KateTemplateHandler::KateTemplateHandler(
connect( doc, TQT_SIGNAL( aboutToRemoveText( const KateTextRange& ) ), this, TQT_SLOT( slotAboutToRemoveText( const KateTextRange& ) ) );
connect( doc, TQT_SIGNAL( textRemoved() ), this, TQT_SLOT( slotTextRemoved() ) );
( *this ) ( Qt::Key_Tab );
( *this ) ( TQt::Key_Tab );
}
KateTemplateHandler::~KateTemplateHandler()
@ -283,7 +283,7 @@ void KateTemplateHandler::locateRange( const KateTextCursor& cursor )
bool KateTemplateHandler::operator() ( KKey key )
{
if ( key==Qt::Key_Tab )
if ( key==TQt::Key_Tab )
{
m_currentTabStop++;

@ -241,10 +241,10 @@ void KateView::setupActions()
" when the view is resized."));
// setup Tools menu
a=new TDEAction(i18n("&Indent"), "format-indent-more", Qt::CTRL+Qt::Key_I, TQT_TQOBJECT(this), TQT_SLOT(indent()), ac, "tools_indent");
a=new TDEAction(i18n("&Indent"), "format-indent-more", TQt::CTRL+TQt::Key_I, TQT_TQOBJECT(this), TQT_SLOT(indent()), ac, "tools_indent");
a->setWhatsThis(i18n("Use this to indent a selected block of text.<br><br>"
"You can configure whether tabs should be honored and used or replaced with spaces, in the configuration dialog."));
a=new TDEAction(i18n("&Unindent"), "format-indent-less", Qt::CTRL+Qt::SHIFT+Qt::Key_I, TQT_TQOBJECT(this), TQT_SLOT(unIndent()), ac, "tools_unindent");
a=new TDEAction(i18n("&Unindent"), "format-indent-less", TQt::CTRL+TQt::SHIFT+TQt::Key_I, TQT_TQOBJECT(this), TQT_SLOT(unIndent()), ac, "tools_unindent");
a->setWhatsThis(i18n("Use this to unindent a selected block of text."));
a=new TDEAction(i18n("&Clean Indentation"), 0, TQT_TQOBJECT(this), TQT_SLOT(cleanIndent()), ac, "tools_cleanIndent");
@ -254,12 +254,12 @@ void KateView::setupActions()
a=new TDEAction(i18n("&Align"), 0, TQT_TQOBJECT(this), TQT_SLOT(align()), ac, "tools_align");
a->setWhatsThis(i18n("Use this to align the current line or block of text to its proper indent level."));
a=new TDEAction(i18n("C&omment"), CTRL+Qt::Key_D, TQT_TQOBJECT(this), TQT_SLOT(comment()),
a=new TDEAction(i18n("C&omment"), CTRL+TQt::Key_D, TQT_TQOBJECT(this), TQT_SLOT(comment()),
ac, "tools_comment");
a->setWhatsThis(i18n("This command comments out the current line or a selected block of text.<BR><BR>"
"The characters for single/multiple line comments are defined within the language's highlighting."));
a=new TDEAction(i18n("Unco&mment"), CTRL+SHIFT+Qt::Key_D, TQT_TQOBJECT(this), TQT_SLOT(uncomment()),
a=new TDEAction(i18n("Unco&mment"), CTRL+SHIFT+TQt::Key_D, TQT_TQOBJECT(this), TQT_SLOT(uncomment()),
ac, "tools_uncomment");
a->setWhatsThis(i18n("This command removes comments from the current line or a selected block of text.<BR><BR>"
"The characters for single/multiple line comments are defined within the language's highlighting."));
@ -269,17 +269,17 @@ void KateView::setupActions()
ac, "tools_toggle_write_lock" );
a->setWhatsThis( i18n("Lock/unlock the document for writing") );
a = new TDEAction( i18n("Uppercase"), CTRL + Qt::Key_U, TQT_TQOBJECT(this),
a = new TDEAction( i18n("Uppercase"), CTRL + TQt::Key_U, TQT_TQOBJECT(this),
TQT_SLOT(uppercase()), ac, "tools_uppercase" );
a->setWhatsThis( i18n("Convert the selection to uppercase, or the character to the "
"right of the cursor if no text is selected.") );
a = new TDEAction( i18n("Lowercase"), CTRL + SHIFT + Qt::Key_U, TQT_TQOBJECT(this),
a = new TDEAction( i18n("Lowercase"), CTRL + SHIFT + TQt::Key_U, TQT_TQOBJECT(this),
TQT_SLOT(lowercase()), ac, "tools_lowercase" );
a->setWhatsThis( i18n("Convert the selection to lowercase, or the character to the "
"right of the cursor if no text is selected.") );
a = new TDEAction( i18n("Capitalize"), CTRL + ALT + Qt::Key_U, TQT_TQOBJECT(this),
a = new TDEAction( i18n("Capitalize"), CTRL + ALT + TQt::Key_U, TQT_TQOBJECT(this),
TQT_SLOT(capitalize()), ac, "tools_capitalize" );
a->setWhatsThis( i18n("Capitalize the selection, or the word under the "
"cursor if no text is selected.") );
@ -288,7 +288,7 @@ void KateView::setupActions()
TQT_SLOT( killLine() ), ac, "tools_delete_line");
a->setWhatsThis(i18n("Use this to delete the current line."));
a = new TDEAction( i18n("Join Lines"), CTRL + Qt::Key_J, TQT_TQOBJECT(this),
a = new TDEAction( i18n("Join Lines"), CTRL + TQt::Key_J, TQT_TQOBJECT(this),
TQT_SLOT( joinLines() ), ac, "tools_join_lines" );
a->setWhatsThis(i18n("Use this to join lines together."));
}

@ -73,7 +73,7 @@ KateScrollBar::KateScrollBar (Orientation orientation, KateViewInternal* parent,
void KateScrollBar::mousePressEvent(TQMouseEvent* e)
{
if (e->button() == Qt::MidButton)
if (e->button() == TQt::MidButton)
m_middleMouseDown = true;
TQScrollBar::mousePressEvent(e);
@ -94,7 +94,7 @@ void KateScrollBar::mouseMoveEvent(TQMouseEvent* e)
{
TQScrollBar::mouseMoveEvent(e);
if (e->state() | Qt::LeftButton)
if (e->state() | TQt::LeftButton)
redrawMarks();
}
@ -953,7 +953,7 @@ void KateIconBorder::paintBorder (int /*x*/, int y, int /*width*/, int height)
if (realLine > -1)
if (m_viewInternal->lineRanges[z].startCol == 0) {
if (m_lineNumbersOn)
p.drawText( lnX + 1, y, lnWidth-4, h, Qt::AlignRight|Qt::AlignVCenter, TQString("%1").arg( realLine + 1 ) );
p.drawText( lnX + 1, y, lnWidth-4, h, TQt::AlignRight|TQt::AlignVCenter, TQString("%1").arg( realLine + 1 ) );
} else if (m_view->dynWordWrap() && m_dynWrapIndicatorsOn) {
p.drawPixmap(lnX + lnWidth - m_arrow.width() - 4, y, m_arrow);
}
@ -1069,7 +1069,7 @@ void KateIconBorder::mouseReleaseEvent( TQMouseEvent* e )
{
BorderArea area = positionToArea( e->pos() );
if( area == IconBorder) {
if (e->button() == Qt::LeftButton) {
if (e->button() == TQt::LeftButton) {
if( m_doc->editableMarks() & KateViewConfig::global()->defaultMarkType() ) {
if( m_doc->mark( cursorOnLine ) & KateViewConfig::global()->defaultMarkType() )
m_doc->removeMark( cursorOnLine, KateViewConfig::global()->defaultMarkType() );
@ -1080,7 +1080,7 @@ void KateIconBorder::mouseReleaseEvent( TQMouseEvent* e )
}
}
else
if (e->button() == Qt::RightButton) {
if (e->button() == TQt::RightButton) {
showMarkMenu( cursorOnLine, TQCursor::pos() );
}
}

@ -94,7 +94,7 @@ KateViewInternal::KateViewInternal(KateView *view, KateDocument *doc)
//
// scrollbar for lines
//
m_lineScroll = new KateScrollBar(Qt::Vertical, this);
m_lineScroll = new KateScrollBar(TQt::Vertical, this);
m_lineScroll->show();
m_lineScroll->setTracking (true);
@ -131,7 +131,7 @@ KateViewInternal::KateViewInternal(KateView *view, KateDocument *doc)
//
// scrollbar for columns
//
m_columnScroll = new TQScrollBar(Qt::Horizontal,m_view);
m_columnScroll = new TQScrollBar(TQt::Horizontal,m_view);
// hide the column scrollbar in the dynamic word wrap mode
if (m_view->dynWordWrap())
@ -1216,7 +1216,7 @@ void KateViewInternal::moveEdge( Bias bias, bool sel )
void KateViewInternal::home( bool sel )
{
if (m_view->m_codeCompletion->codeCompletionVisible()) {
TQKeyEvent e(TQEvent::KeyPress, Qt::Key_Home, 0, 0);
TQKeyEvent e(TQEvent::KeyPress, TQt::Key_Home, 0, 0);
m_view->m_codeCompletion->handleKey(&e);
return;
}
@ -1257,7 +1257,7 @@ void KateViewInternal::home( bool sel )
void KateViewInternal::end( bool sel )
{
if (m_view->m_codeCompletion->codeCompletionVisible()) {
TQKeyEvent e(TQEvent::KeyPress, Qt::Key_End, 0, 0);
TQKeyEvent e(TQEvent::KeyPress, TQt::Key_End, 0, 0);
m_view->m_codeCompletion->handleKey(&e);
return;
}
@ -1687,7 +1687,7 @@ int KateViewInternal::lineMaxCol(const KateLineRange& range)
void KateViewInternal::cursorUp(bool sel)
{
if (m_view->m_codeCompletion->codeCompletionVisible()) {
TQKeyEvent e(TQEvent::KeyPress, Qt::Key_Up, 0, 0);
TQKeyEvent e(TQEvent::KeyPress, TQt::Key_Up, 0, 0);
m_view->m_codeCompletion->handleKey(&e);
return;
}
@ -1754,7 +1754,7 @@ void KateViewInternal::cursorUp(bool sel)
void KateViewInternal::cursorDown(bool sel)
{
if (m_view->m_codeCompletion->codeCompletionVisible()) {
TQKeyEvent e(TQEvent::KeyPress, Qt::Key_Down, 0, 0);
TQKeyEvent e(TQEvent::KeyPress, TQt::Key_Down, 0, 0);
m_view->m_codeCompletion->handleKey(&e);
return;
}
@ -1889,7 +1889,7 @@ void KateViewInternal::setAutoCenterLines(int viewLines, bool updateView)
void KateViewInternal::pageUp( bool sel )
{
if (m_view->m_codeCompletion->codeCompletionVisible()) {
TQKeyEvent e(TQEvent::KeyPress, Qt::Key_PageUp, 0, 0);
TQKeyEvent e(TQEvent::KeyPress, TQt::Key_PageUp, 0, 0);
m_view->m_codeCompletion->handleKey(&e);
return;
}
@ -1938,7 +1938,7 @@ void KateViewInternal::pageUp( bool sel )
void KateViewInternal::pageDown( bool sel )
{
if (m_view->m_codeCompletion->codeCompletionVisible()) {
TQKeyEvent e(TQEvent::KeyPress, Qt::Key_PageDown, 0, 0);
TQKeyEvent e(TQEvent::KeyPress, TQt::Key_PageDown, 0, 0);
m_view->m_codeCompletion->handleKey(&e);
return;
}
@ -2025,7 +2025,7 @@ void KateViewInternal::bottom( bool sel )
void KateViewInternal::top_home( bool sel )
{
if (m_view->m_codeCompletion->codeCompletionVisible()) {
TQKeyEvent e(TQEvent::KeyPress, Qt::Key_Home, 0, 0);
TQKeyEvent e(TQEvent::KeyPress, TQt::Key_Home, 0, 0);
m_view->m_codeCompletion->handleKey(&e);
return;
}
@ -2037,7 +2037,7 @@ void KateViewInternal::top_home( bool sel )
void KateViewInternal::bottom_end( bool sel )
{
if (m_view->m_codeCompletion->codeCompletionVisible()) {
TQKeyEvent e(TQEvent::KeyPress, Qt::Key_End, 0, 0);
TQKeyEvent e(TQEvent::KeyPress, TQt::Key_End, 0, 0);
m_view->m_codeCompletion->handleKey(&e);
return;
}
@ -2465,7 +2465,7 @@ bool KateViewInternal::eventFilter( TQObject *obj, TQEvent *e )
m_view->m_codeCompletion->abortCompletion();
}
if ((k->key() == Qt::Key_Escape) && !m_view->config()->persistentSelection() )
if ((k->key() == TQt::Key_Escape) && !m_view->config()->persistentSelection() )
{
m_view->clearSelection();
return true;
@ -2525,7 +2525,7 @@ void KateViewInternal::keyPressEvent( TQKeyEvent* e )
kdDebug (13030) << "hint around" << endl;
if( e->key() == Key_Enter || e->key() == Key_Return ||
(key == SHIFT + Qt::Key_Return) || (key == SHIFT + Qt::Key_Enter)) {
(key == SHIFT + TQt::Key_Return) || (key == SHIFT + TQt::Key_Enter)) {
m_view->m_codeCompletion->doComplete();
e->accept();
return;
@ -2538,14 +2538,14 @@ void KateViewInternal::keyPressEvent( TQKeyEvent* e )
return;
}
if ((key == Qt::Key_Return) || (key == Qt::Key_Enter))
if ((key == TQt::Key_Return) || (key == TQt::Key_Enter))
{
m_view->keyReturn();
e->accept();
return;
}
if ((key == SHIFT + Qt::Key_Return) || (key == SHIFT + Qt::Key_Enter))
if ((key == SHIFT + TQt::Key_Return) || (key == SHIFT + TQt::Key_Enter))
{
uint ln = cursor.line();
int col = cursor.col();
@ -2573,7 +2573,7 @@ void KateViewInternal::keyPressEvent( TQKeyEvent* e )
return;
}
if (key == Qt::Key_Backspace || key == SHIFT + Qt::Key_Backspace)
if (key == TQt::Key_Backspace || key == SHIFT + TQt::Key_Backspace)
{
m_view->backspace();
e->accept();
@ -2584,7 +2584,7 @@ void KateViewInternal::keyPressEvent( TQKeyEvent* e )
return;
}
if (key == Qt::Key_Tab || key == SHIFT+Qt::Key_Backtab || key == Qt::Key_Backtab)
if (key == TQt::Key_Tab || key == SHIFT+TQt::Key_Backtab || key == TQt::Key_Backtab)
{
if (m_doc->invokeTabInterceptor(key)) {
e->accept();
@ -2592,7 +2592,7 @@ void KateViewInternal::keyPressEvent( TQKeyEvent* e )
} else
if (m_doc->configFlags() & KateDocumentConfig::cfTabIndents)
{
if( key == Qt::Key_Tab )
if( key == TQt::Key_Tab )
{
if (m_view->hasSelection() || (m_doc->configFlags() & KateDocumentConfig::cfTabIndentsMode))
m_doc->indent( m_view, cursor.line(), 1 );
@ -2609,7 +2609,7 @@ void KateViewInternal::keyPressEvent( TQKeyEvent* e )
return;
}
if (key == SHIFT+Qt::Key_Backtab || key == Qt::Key_Backtab)
if (key == SHIFT+TQt::Key_Backtab || key == TQt::Key_Backtab)
{
m_doc->indent( m_view, cursor.line(), -1 );
e->accept();
@ -2693,7 +2693,7 @@ void KateViewInternal::mousePressEvent( TQMouseEvent* e )
{
switch (e->button())
{
case Qt::LeftButton:
case TQt::LeftButton:
m_selChangedByUser = false;
if (possibleTripleClick)
@ -2820,7 +2820,7 @@ void KateViewInternal::mouseDoubleClickEvent(TQMouseEvent *e)
{
switch (e->button())
{
case Qt::LeftButton:
case TQt::LeftButton:
m_selectionMode = Word;
if ( e->state() & TQt::ShiftButton )
@ -2927,7 +2927,7 @@ void KateViewInternal::mouseReleaseEvent( TQMouseEvent* e )
{
switch (e->button())
{
case Qt::LeftButton:
case TQt::LeftButton:
m_selectionMode = Default;
// selStartCached.setLine( -1 );
@ -2956,7 +2956,7 @@ void KateViewInternal::mouseReleaseEvent( TQMouseEvent* e )
e->accept ();
break;
case Qt::MidButton:
case TQt::MidButton:
placeCursor( e->pos() );
if( m_doc->isReadWrite() )
@ -2977,7 +2977,7 @@ void KateViewInternal::mouseReleaseEvent( TQMouseEvent* e )
void KateViewInternal::mouseMoveEvent( TQMouseEvent* e )
{
if( e->state() & Qt::LeftButton )
if( e->state() & TQt::LeftButton )
{
if (dragInfo.state == diPending)
{
@ -3276,7 +3276,7 @@ void KateViewInternal::wheelEvent(TQWheelEvent* e)
}
else
{
if (m_lineScroll->minValue() != m_lineScroll->maxValue() && e->orientation() != Qt::Horizontal)
if (m_lineScroll->minValue() != m_lineScroll->maxValue() && e->orientation() != TQt::Horizontal)
{
// React to this as a vertical event
if ( e->state() & ShiftButton )

@ -225,7 +225,7 @@ bool ISearchPluginView::eventFilter( TQObject* o, TQEvent* e )
if( e->type() == TQEvent::KeyPress ) {
TQKeyEvent *keyEvent = (TQKeyEvent*)e;
if( keyEvent->key() == Qt::Key_Escape )
if( keyEvent->key() == TQt::Key_Escape )
quitToView( TQString::null );
}

@ -747,7 +747,7 @@ extern "C" KDE_EXPORT int kdemain(int argc, char **argv)
#ifdef KBUILDSYCOCA_GUI
silent = args->isSet("silent");
showprogress = args->isSet("showprogress");
TQLabel progress( TQString("<p><br><nobr> %1 </nobr><br>").arg( i18n("Reloading TDE configuration, please wait...") ), 0, "", Qt::WType_Dialog | Qt::WStyle_DialogBorder | Qt::WStyle_Customize| Qt::WStyle_Title );
TQLabel progress( TQString("<p><br><nobr> %1 </nobr><br>").arg( i18n("Reloading TDE configuration, please wait...") ), 0, "", TQt::WType_Dialog | TQt::WStyle_DialogBorder | TQt::WStyle_Customize| TQt::WStyle_Title );
TQString capt = i18n("TDE Configuration Manager");
if (!silent) {
if (KMessageBox::No == KMessageBox::questionYesNo(0, i18n("Do you want to reload TDE configuration?"), capt, i18n("Reload"), i18n("Do Not Reload")))

@ -92,7 +92,7 @@ AddresseeDialog::AddresseeDialog( TQWidget *parent, bool multiple ) :
topLayout->addLayout( selectedLayout );
topLayout->setSpacing( spacingHint() );
TQGroupBox *selectedGroup = new TQGroupBox( 1, Qt::Horizontal, i18n("Selected"),
TQGroupBox *selectedGroup = new TQGroupBox( 1, TQt::Horizontal, i18n("Selected"),
topWidget );
selectedLayout->addWidget( selectedGroup );

@ -190,7 +190,7 @@ void AddressLineEdit::keyPressEvent(TQKeyEvent *e)
void AddressLineEdit::mouseReleaseEvent( TQMouseEvent * e )
{
if (m_useCompletion && (e->button() == Qt::MidButton))
if (m_useCompletion && (e->button() == TQt::MidButton))
{
m_smartPaste = true;
KLineEdit::mouseReleaseEvent(e);

@ -66,7 +66,7 @@ EmailSelector::EmailSelector( const TQStringList &emails, const TQString &curren
TQFrame *topFrame = plainPage();
TQBoxLayout *topLayout = new TQVBoxLayout( topFrame );
mButtonGroup = new TQButtonGroup( 1, Qt::Horizontal, i18n("Email Addresses"),
mButtonGroup = new TQButtonGroup( 1, TQt::Horizontal, i18n("Email Addresses"),
topFrame );
topLayout->addWidget( mButtonGroup );

@ -46,7 +46,7 @@ EmailSelectDialog::EmailSelectDialog( const TQStringList &emails, const TQString
TQFrame *topFrame = plainPage();
TQBoxLayout *topLayout = new TQVBoxLayout( topFrame );
mButtonGroup = new TQButtonGroup( 1, Qt::Horizontal, i18n("Email Addresses"),
mButtonGroup = new TQButtonGroup( 1, TQt::Horizontal, i18n("Email Addresses"),
topFrame );
mButtonGroup->setRadioButtonExclusive( true );
topLayout->addWidget( mButtonGroup );

@ -213,7 +213,7 @@ void LdapConfigWidget::initWidget()
if ( mFlags & W_AUTHBOX ) {
TQButtonGroup *authbox =
new TQButtonGroup( 3, Qt::Horizontal, i18n( "Authentication" ), this );
new TQButtonGroup( 3, TQt::Horizontal, i18n( "Authentication" ), this );
mAnonymous = new TQRadioButton( i18n( "Anonymous" ), authbox, "kcfg_ldapanon" );
mSimple = new TQRadioButton( i18n( "Simple" ), authbox, "kcfg_ldapsimple" );

@ -342,7 +342,7 @@ OfflineDialog::OfflineDialog( bool autoCache, int cachePolicy, const KURL &src,
layout->setAutoAdd( true );
mSrc = src; mDst = dst;
mCacheGroup = new TQButtonGroup( 1, Qt::Horizontal,
mCacheGroup = new TQButtonGroup( 1, TQt::Horizontal,
i18n("Offline Cache Policy"), page );
TQRadioButton *bt;

@ -247,7 +247,7 @@ bool ResourceSql::save( Ticket * )
(*it).prefix() + "','" +
(*it).suffix() + "','" +
(*it).nickName() + "','" +
(*it).birthday().toString( Qt::ISODate ) + "','" +
(*it).birthday().toString( TQt::ISODate ) + "','" +
(*it).mailer() + "','" +
TQString::number( (*it).timeZone().offset() ) + "','" +
TQString::number( (*it).geo().latitude() ) + "','" +
@ -257,7 +257,7 @@ bool ResourceSql::save( Ticket * )
(*it).organization() + "','" +
(*it).note() + "','" +
(*it).productId() + "','" +
(*it).revision().toString( Qt::ISODate ) + "','" +
(*it).revision().toString( TQt::ISODate ) + "','" +
(*it).sortString() + "','" +
(*it).url().url() + "')"
);

@ -42,7 +42,7 @@ ResourceSelectDialog::ResourceSelectDialog( AddressBook *ab, TQWidget *parent, c
TQVBoxLayout *mainLayout = new TQVBoxLayout( this );
mainLayout->setMargin( marginHint() );
TQGroupBox *groupBox = new TQGroupBox( 2, Qt::Horizontal, this );
TQGroupBox *groupBox = new TQGroupBox( 2, TQt::Horizontal, this );
groupBox->setTitle( i18n( "Resources" ) );
mResourceId = new TDEListBox( groupBox );

@ -121,7 +121,7 @@ TQString Field::value( const TDEABC::Addressee &a )
return a.preferredEmail();
case FieldImpl::Birthday:
if ( a.birthday().isValid() )
return a.birthday().date().toString( Qt::ISODate );
return a.birthday().date().toString( TQt::ISODate );
else
return TQString::null;
case FieldImpl::Url:
@ -362,7 +362,7 @@ bool Field::setValue( TDEABC::Addressee &a, const TQString &value )
return true;
}
case FieldImpl::Birthday:
a.setBirthday( TQDate::fromString( value, Qt::ISODate ) );
a.setBirthday( TQDate::fromString( value, TQt::ISODate ) );
return true;
case FieldImpl::CustomField:
a.insertCustom( mImpl->app(), mImpl->key(), value );

@ -629,7 +629,7 @@ void KCertPart::displayCACert(KSSLCertificate *c) {
// Set the valid period
TQPalette cspl = _ca_validFrom->palette();
if (TQDateTime::currentDateTime(Qt::UTC) < c->getQDTNotBefore()) {
if (TQDateTime::currentDateTime(TQt::UTC) < c->getQDTNotBefore()) {
cspl.setColor(TQColorGroup::Foreground, TQColor(196,33,21));
} else {
cspl.setColor(TQColorGroup::Foreground, TQColor(42,153,59));
@ -638,7 +638,7 @@ void KCertPart::displayCACert(KSSLCertificate *c) {
_ca_validFrom->setText(c->getNotBefore());
cspl = _ca_validUntil->palette();
if (TQDateTime::currentDateTime(Qt::UTC) > c->getQDTNotAfter()) {
if (TQDateTime::currentDateTime(TQt::UTC) > c->getQDTNotAfter()) {
cspl.setColor(TQColorGroup::Foreground, TQColor(196,33,21));
} else {
cspl.setColor(TQColorGroup::Foreground, TQColor(42,153,59));
@ -670,7 +670,7 @@ void KCertPart::displayPKCS12Cert(KSSLCertificate *c) {
// Set the valid period
TQPalette cspl = _p12_validFrom->palette();
if (TQDateTime::currentDateTime(Qt::UTC) < c->getQDTNotBefore()) {
if (TQDateTime::currentDateTime(TQt::UTC) < c->getQDTNotBefore()) {
cspl.setColor(TQColorGroup::Foreground, TQColor(196,33,21));
} else {
cspl.setColor(TQColorGroup::Foreground, TQColor(42,153,59));
@ -679,7 +679,7 @@ void KCertPart::displayPKCS12Cert(KSSLCertificate *c) {
_p12_validFrom->setText(c->getNotBefore());
cspl = _p12_validUntil->palette();
if (TQDateTime::currentDateTime(Qt::UTC) > c->getQDTNotAfter()) {
if (TQDateTime::currentDateTime(TQt::UTC) > c->getQDTNotAfter()) {
cspl.setColor(TQColorGroup::Foreground, TQColor(196,33,21));
} else {
cspl.setColor(TQColorGroup::Foreground, TQColor(42,153,59));

@ -201,7 +201,7 @@ KonfUpdate::log()
}
}
(*m_textStream) << TQDateTime::currentDateTime().toString( Qt::ISODate ) << " ";
(*m_textStream) << TQDateTime::currentDateTime().toString( TQt::ISODate ) << " ";
return *m_textStream;
}

@ -16,7 +16,7 @@
symbols may now refer to different variables
(e.g. if X11 #defined NoButton, after this file
is included NoButton would no longer be X11's
NoButton, but Qt::NoButton instead). At this time,
NoButton, but TQt::NoButton instead). At this time,
there's no conflict known that could cause problems.
The original X11 symbols are still accessible

@ -18,7 +18,7 @@ sed -n '/enum Key/!d
| sed -n 's/\s*Key_/{ "/
s/,.*$/ },/
s/ =/",/
s/Key_/Qt::Key_/
s/Key_/TQt::Key_/
$s/.*/& }/
p' \
> kckey_a

@ -76,7 +76,7 @@ const KKeys kde_KKEYS[NB_KEYS] = {
{ "Direction_L", 0x1059 },
{ "Direction_R", 0x1060 },
{ "Space", 0x20 }, // translated
{ "Any", Qt::Key_Space },
{ "Any", TQt::Key_Space },
{ "Exclam", 0x21 }, // translated
{ "QuoteDbl", 0x22 },
{ "NumberSign", 0x23 }, // translated

@ -873,7 +873,7 @@ public:
* the key-binding simply simply @p sum up the values of the
* modifier and the actual key. For example, to use CTRL+E as
* a key binding for one of the items, you would simply supply
* @p "Qt::CtrlButton + Qt::Key_E" as the second argument to this
* @p "TQt::CtrlButton + TQt::Key_E" as the second argument to this
* function.
*
* @param item the feature whose key-binding needs to be set:

@ -743,7 +743,7 @@ TDEIconEffect::visualActivate(TQWidget * widget, TQRect rect)
TQPainter p(widget);
// Use NotROP to avoid having to repaint the pixmap each time.
p.setPen(TQPen(Qt::black, 2, Qt::DotLine));
p.setPen(TQPen(TQt::black, 2, TQt::DotLine));
p.setRasterOp(TQt::NotROP);
// The spacing between the rects we draw.

@ -111,7 +111,7 @@ class TDECORE_EXPORT KKeyNative
/**
* Returns the qt key code.
* @return the qt key code or 0 if there is no key set.
* @see Qt::Key
* @see TQt::Key
*/
int keyCodeQt() const;

@ -48,14 +48,14 @@
#else
# include <kckey.h>
# define X11_ONLY(arg)
# define XK_ISO_Left_Tab Qt::Key_Backtab
# define XK_BackSpace Qt::Key_Backspace
# define XK_Sys_Req Qt::Key_SysReq
# define XK_Caps_Lock Qt::Key_CapsLock
# define XK_Num_Lock Qt::Key_NumLock
# define XK_Scroll_Lock Qt::Key_ScrollLock
# define XK_Prior Qt::Key_Prior
# define XK_Next Qt::Key_Next
# define XK_ISO_Left_Tab TQt::Key_Backtab
# define XK_BackSpace TQt::Key_Backspace
# define XK_Sys_Req TQt::Key_SysReq
# define XK_Caps_Lock TQt::Key_CapsLock
# define XK_Num_Lock TQt::Key_NumLock
# define XK_Scroll_Lock TQt::Key_ScrollLock
# define XK_Prior TQt::Key_Prior
# define XK_Next TQt::Key_Next
#endif
namespace KKeyServer
@ -108,9 +108,9 @@ struct TransKey {
static ModInfo g_rgModInfo[KKey::MOD_FLAG_COUNT] =
{
{ KKey::SHIFT, Qt::SHIFT, X11_ONLY(ShiftMask) I18N_NOOP("Shift"), TQString() },
{ KKey::CTRL, Qt::CTRL, X11_ONLY(ControlMask) I18N_NOOP("Ctrl"), TQString() },
{ KKey::ALT, Qt::ALT, X11_ONLY(Mod1Mask) I18N_NOOP("Alt"), TQString() },
{ KKey::SHIFT, TQt::SHIFT, X11_ONLY(ShiftMask) I18N_NOOP("Shift"), TQString() },
{ KKey::CTRL, TQt::CTRL, X11_ONLY(ControlMask) I18N_NOOP("Ctrl"), TQString() },
{ KKey::ALT, TQt::ALT, X11_ONLY(Mod1Mask) I18N_NOOP("Alt"), TQString() },
{ KKey::WIN, KKey::QtWIN, X11_ONLY(Mod4Mask) I18N_NOOP("Win"), TQString() }
};
@ -156,85 +156,85 @@ static SymVariation g_rgSymVariation[] =
// These are the X equivalents to the Qt keycodes 0x1000 - 0x1026
static const TransKey g_rgQtToSymX[] =
{
{ Qt::Key_Escape, XK_Escape },
{ Qt::Key_Tab, XK_Tab },
{ Qt::Key_Backtab, XK_ISO_Left_Tab },
{ Qt::Key_Backspace, XK_BackSpace },
{ Qt::Key_Return, XK_Return },
{ Qt::Key_Enter, XK_KP_Enter },
{ Qt::Key_Insert, XK_Insert },
{ Qt::Key_Delete, XK_Delete },
{ Qt::Key_Pause, XK_Pause },
{ TQt::Key_Escape, XK_Escape },
{ TQt::Key_Tab, XK_Tab },
{ TQt::Key_Backtab, XK_ISO_Left_Tab },
{ TQt::Key_Backspace, XK_BackSpace },
{ TQt::Key_Return, XK_Return },
{ TQt::Key_Enter, XK_KP_Enter },
{ TQt::Key_Insert, XK_Insert },
{ TQt::Key_Delete, XK_Delete },
{ TQt::Key_Pause, XK_Pause },
#ifdef sun
{ Qt::Key_Print, XK_F22 },
{ TQt::Key_Print, XK_F22 },
#else
{ Qt::Key_Print, XK_Print },
{ TQt::Key_Print, XK_Print },
#endif
{ Qt::Key_SysReq, XK_Sys_Req },
{ Qt::Key_Home, XK_Home },
{ Qt::Key_End, XK_End },
{ Qt::Key_Left, XK_Left },
{ Qt::Key_Up, XK_Up },
{ Qt::Key_Right, XK_Right },
{ Qt::Key_Down, XK_Down },
{ TQt::Key_SysReq, XK_Sys_Req },
{ TQt::Key_Home, XK_Home },
{ TQt::Key_End, XK_End },
{ TQt::Key_Left, XK_Left },
{ TQt::Key_Up, XK_Up },
{ TQt::Key_Right, XK_Right },
{ TQt::Key_Down, XK_Down },
{ TQt::Key_Prior, XK_Prior },
{ TQt::Key_Next, XK_Next },
//{ Qt::Key_Shift, 0 },
//{ Qt::Key_Control, 0 },
//{ Qt::Key_Meta, 0 },
//{ Qt::Key_Alt, 0 },
{ Qt::Key_CapsLock, XK_Caps_Lock },
{ Qt::Key_NumLock, XK_Num_Lock },
{ Qt::Key_ScrollLock, XK_Scroll_Lock },
{ Qt::Key_F1, XK_F1 },
{ Qt::Key_F2, XK_F2 },
{ Qt::Key_F3, XK_F3 },
{ Qt::Key_F4, XK_F4 },
{ Qt::Key_F5, XK_F5 },
{ Qt::Key_F6, XK_F6 },
{ Qt::Key_F7, XK_F7 },
{ Qt::Key_F8, XK_F8 },
{ Qt::Key_F9, XK_F9 },
{ Qt::Key_F10, XK_F10 },
{ Qt::Key_F11, XK_F11 },
{ Qt::Key_F12, XK_F12 },
{ Qt::Key_F13, XK_F13 },
{ Qt::Key_F14, XK_F14 },
{ Qt::Key_F15, XK_F15 },
{ Qt::Key_F16, XK_F16 },
{ Qt::Key_F17, XK_F17 },
{ Qt::Key_F18, XK_F18 },
{ Qt::Key_F19, XK_F19 },
{ Qt::Key_F20, XK_F20 },
{ Qt::Key_F21, XK_F21 },
{ Qt::Key_F22, XK_F22 },
{ Qt::Key_F23, XK_F23 },
{ Qt::Key_F24, XK_F24 },
{ Qt::Key_F25, XK_F25 },
{ Qt::Key_F26, XK_F26 },
{ Qt::Key_F27, XK_F27 },
{ Qt::Key_F28, XK_F28 },
{ Qt::Key_F29, XK_F29 },
{ Qt::Key_F30, XK_F30 },
{ Qt::Key_F31, XK_F31 },
{ Qt::Key_F32, XK_F32 },
{ Qt::Key_F33, XK_F33 },
{ Qt::Key_F34, XK_F34 },
{ Qt::Key_F35, XK_F35 },
{ Qt::Key_Super_L, XK_Super_L },
{ Qt::Key_Super_R, XK_Super_R },
{ Qt::Key_Menu, XK_Menu },
{ Qt::Key_Hyper_L, XK_Hyper_L },
{ Qt::Key_Hyper_R, XK_Hyper_R },
{ Qt::Key_Help, XK_Help },
//{ Qt::Key_Direction_L, XK_Direction_L }, These keys don't exist in X11
//{ Qt::Key_Direction_R, XK_Direction_R },
//{ TQt::Key_Shift, 0 },
//{ TQt::Key_Control, 0 },
//{ TQt::Key_Meta, 0 },
//{ TQt::Key_Alt, 0 },
{ TQt::Key_CapsLock, XK_Caps_Lock },
{ TQt::Key_NumLock, XK_Num_Lock },
{ TQt::Key_ScrollLock, XK_Scroll_Lock },
{ TQt::Key_F1, XK_F1 },
{ TQt::Key_F2, XK_F2 },
{ TQt::Key_F3, XK_F3 },
{ TQt::Key_F4, XK_F4 },
{ TQt::Key_F5, XK_F5 },
{ TQt::Key_F6, XK_F6 },
{ TQt::Key_F7, XK_F7 },
{ TQt::Key_F8, XK_F8 },
{ TQt::Key_F9, XK_F9 },
{ TQt::Key_F10, XK_F10 },
{ TQt::Key_F11, XK_F11 },
{ TQt::Key_F12, XK_F12 },
{ TQt::Key_F13, XK_F13 },
{ TQt::Key_F14, XK_F14 },
{ TQt::Key_F15, XK_F15 },
{ TQt::Key_F16, XK_F16 },
{ TQt::Key_F17, XK_F17 },
{ TQt::Key_F18, XK_F18 },
{ TQt::Key_F19, XK_F19 },
{ TQt::Key_F20, XK_F20 },
{ TQt::Key_F21, XK_F21 },
{ TQt::Key_F22, XK_F22 },
{ TQt::Key_F23, XK_F23 },
{ TQt::Key_F24, XK_F24 },
{ TQt::Key_F25, XK_F25 },
{ TQt::Key_F26, XK_F26 },
{ TQt::Key_F27, XK_F27 },
{ TQt::Key_F28, XK_F28 },
{ TQt::Key_F29, XK_F29 },
{ TQt::Key_F30, XK_F30 },
{ TQt::Key_F31, XK_F31 },
{ TQt::Key_F32, XK_F32 },
{ TQt::Key_F33, XK_F33 },
{ TQt::Key_F34, XK_F34 },
{ TQt::Key_F35, XK_F35 },
{ TQt::Key_Super_L, XK_Super_L },
{ TQt::Key_Super_R, XK_Super_R },
{ TQt::Key_Menu, XK_Menu },
{ TQt::Key_Hyper_L, XK_Hyper_L },
{ TQt::Key_Hyper_R, XK_Hyper_R },
{ TQt::Key_Help, XK_Help },
//{ TQt::Key_Direction_L, XK_Direction_L }, These keys don't exist in X11
//{ TQt::Key_Direction_R, XK_Direction_R },
{ '/', XK_KP_Divide },
{ '*', XK_KP_Multiply },
{ '-', XK_KP_Subtract },
{ '+', XK_KP_Add },
{ Qt::Key_Return, XK_KP_Enter }
{ TQt::Key_Return, XK_KP_Enter }
#if TQT_VERSION >= 0x030100
// the next lines are taken from XFree > 4.0 (X11/XF86keysyms.h), defining some special
@ -285,46 +285,46 @@ static const TransKey g_rgQtToSymX[] =
#define XF86XK_KbdBrightnessDown 0x1008FF06 /* Keyboards may be lit */
// end of XF86keysyms.h
,
{ Qt::Key_Standby, XF86XK_Standby },
{ Qt::Key_VolumeDown, XF86XK_AudioLowerVolume },
{ Qt::Key_VolumeMute, XF86XK_AudioMute },
{ Qt::Key_VolumeUp, XF86XK_AudioRaiseVolume },
{ Qt::Key_MediaPlay, XF86XK_AudioPlay },
{ Qt::Key_MediaStop, XF86XK_AudioStop },
{ TQt::Key_Standby, XF86XK_Standby },
{ TQt::Key_VolumeDown, XF86XK_AudioLowerVolume },
{ TQt::Key_VolumeMute, XF86XK_AudioMute },
{ TQt::Key_VolumeUp, XF86XK_AudioRaiseVolume },
{ TQt::Key_MediaPlay, XF86XK_AudioPlay },
{ TQt::Key_MediaStop, XF86XK_AudioStop },
{ TQt::Key_MediaPrev, XF86XK_AudioPrev },
{ Qt::Key_MediaNext, XF86XK_AudioNext },
{ Qt::Key_HomePage, XF86XK_HomePage },
{ Qt::Key_LaunchMail, XF86XK_Mail },
{ Qt::Key_Search, XF86XK_Search },
{ Qt::Key_MediaRecord, XF86XK_AudioRecord },
{ Qt::Key_LaunchMedia, XF86XK_AudioMedia },
{ Qt::Key_Launch1, XF86XK_Calculator },
{ Qt::Key_Back, XF86XK_Back },
{ Qt::Key_Forward, XF86XK_Forward },
{ Qt::Key_Stop, XF86XK_Stop },
{ Qt::Key_Refresh, XF86XK_Refresh },
{ Qt::Key_Favorites, XF86XK_Favorites },
{ Qt::Key_Launch0, XF86XK_MyComputer },
{ Qt::Key_OpenUrl, XF86XK_OpenURL },
{ Qt::Key_Launch2, XF86XK_Launch0 },
{ Qt::Key_Launch3, XF86XK_Launch1 },
{ Qt::Key_Launch4, XF86XK_Launch2 },
{ Qt::Key_Launch5, XF86XK_Launch3 },
{ Qt::Key_Launch6, XF86XK_Launch4 },
{ Qt::Key_Launch7, XF86XK_Launch5 },
{ Qt::Key_Launch8, XF86XK_Launch6 },
{ Qt::Key_Launch9, XF86XK_Launch7 },
{ Qt::Key_LaunchA, XF86XK_Launch8 },
{ Qt::Key_LaunchB, XF86XK_Launch9 },
{ Qt::Key_LaunchC, XF86XK_LaunchA },
{ Qt::Key_LaunchD, XF86XK_LaunchB },
{ Qt::Key_LaunchE, XF86XK_LaunchC },
{ Qt::Key_LaunchF, XF86XK_LaunchD },
{ Qt::Key_MonBrightnessUp, XF86XK_MonBrightnessUp },
{ Qt::Key_MonBrightnessDown, XF86XK_MonBrightnessDown },
{ Qt::Key_KeyboardLightOnOff, XF86XK_KbdLightOnOff },
{ Qt::Key_KeyboardBrightnessUp, XF86XK_KbdBrightnessUp },
{ Qt::Key_KeyboardBrightnessDown, XF86XK_KbdBrightnessDown },
{ TQt::Key_MediaNext, XF86XK_AudioNext },
{ TQt::Key_HomePage, XF86XK_HomePage },
{ TQt::Key_LaunchMail, XF86XK_Mail },
{ TQt::Key_Search, XF86XK_Search },
{ TQt::Key_MediaRecord, XF86XK_AudioRecord },
{ TQt::Key_LaunchMedia, XF86XK_AudioMedia },
{ TQt::Key_Launch1, XF86XK_Calculator },
{ TQt::Key_Back, XF86XK_Back },
{ TQt::Key_Forward, XF86XK_Forward },
{ TQt::Key_Stop, XF86XK_Stop },
{ TQt::Key_Refresh, XF86XK_Refresh },
{ TQt::Key_Favorites, XF86XK_Favorites },
{ TQt::Key_Launch0, XF86XK_MyComputer },
{ TQt::Key_OpenUrl, XF86XK_OpenURL },
{ TQt::Key_Launch2, XF86XK_Launch0 },
{ TQt::Key_Launch3, XF86XK_Launch1 },
{ TQt::Key_Launch4, XF86XK_Launch2 },
{ TQt::Key_Launch5, XF86XK_Launch3 },
{ TQt::Key_Launch6, XF86XK_Launch4 },
{ TQt::Key_Launch7, XF86XK_Launch5 },
{ TQt::Key_Launch8, XF86XK_Launch6 },
{ TQt::Key_Launch9, XF86XK_Launch7 },
{ TQt::Key_LaunchA, XF86XK_Launch8 },
{ TQt::Key_LaunchB, XF86XK_Launch9 },
{ TQt::Key_LaunchC, XF86XK_LaunchA },
{ TQt::Key_LaunchD, XF86XK_LaunchB },
{ TQt::Key_LaunchE, XF86XK_LaunchC },
{ TQt::Key_LaunchF, XF86XK_LaunchD },
{ TQt::Key_MonBrightnessUp, XF86XK_MonBrightnessUp },
{ TQt::Key_MonBrightnessDown, XF86XK_MonBrightnessDown },
{ TQt::Key_KeyboardLightOnOff, XF86XK_KbdLightOnOff },
{ TQt::Key_KeyboardBrightnessUp, XF86XK_KbdBrightnessUp },
{ TQt::Key_KeyboardBrightnessDown, XF86XK_KbdBrightnessDown },
#endif
};
#endif //Q_WS_X11
@ -416,7 +416,7 @@ bool Sym::initQt( int keyQt )
{
int symQt = keyQt & 0xffff;
if( (keyQt & Qt::UNICODE_ACCEL) || symQt < 0x1000 ) {
if( (keyQt & TQt::UNICODE_ACCEL) || symQt < 0x1000 ) {
m_sym = TQChar(symQt).lower().unicode();
return true;
}
@ -433,8 +433,8 @@ bool Sym::initQt( int keyQt )
}
m_sym = 0;
if( symQt != Qt::Key_Shift && symQt != Qt::Key_Control && symQt != Qt::Key_Alt &&
symQt != Qt::Key_Meta && symQt != Qt::Key_Direction_L && symQt != Qt::Key_Direction_R )
if( symQt != TQt::Key_Shift && symQt != TQt::Key_Control && symQt != TQt::Key_Alt &&
symQt != TQt::Key_Meta && symQt != TQt::Key_Direction_L && symQt != TQt::Key_Direction_R )
kdDebug(125) << "Sym::initQt( " << TQString::number(keyQt,16) << " ): failed to convert key." << endl;
return false;
#elif defined(Q_WS_MACX)
@ -495,7 +495,7 @@ int Sym::qt() const
return m_sym;
#elif defined(Q_WS_X11)
if( m_sym < 0x3000 )
return m_sym | Qt::UNICODE_ACCEL;
return m_sym | TQt::UNICODE_ACCEL;
for( uint i = 0; i < sizeof(g_rgQtToSymX)/sizeof(TransKey); i++ )
if( g_rgQtToSymX[i].keySymX == m_sym )
@ -648,10 +648,10 @@ bool keyQtToMod( int keyQt, uint& mod )
{
mod = 0;
if( keyQt & Qt::SHIFT ) mod |= KKey::SHIFT;
if( keyQt & Qt::CTRL ) mod |= KKey::CTRL;
if( keyQt & Qt::ALT ) mod |= KKey::ALT;
if( keyQt & Qt::META ) mod |= KKey::WIN;
if( keyQt & TQt::SHIFT ) mod |= KKey::SHIFT;
if( keyQt & TQt::CTRL ) mod |= KKey::CTRL;
if( keyQt & TQt::ALT ) mod |= KKey::ALT;
if( keyQt & TQt::META ) mod |= KKey::WIN;
return true;
}
@ -688,9 +688,9 @@ bool modXToModQt( uint modX, int& modQt )
TDECORE_EXPORT int qtButtonStateToMod( TQt::ButtonState s )
{
int modQt = 0;
if (s & Qt::ShiftButton) modQt |= KKey::SHIFT;
if (s & Qt::ControlButton) modQt |= KKey::CTRL;
if (s & Qt::AltButton) modQt |= KKey::ALT;
if (s & TQt::ShiftButton) modQt |= KKey::SHIFT;
if (s & TQt::ControlButton) modQt |= KKey::CTRL;
if (s & TQt::AltButton) modQt |= KKey::ALT;
return modQt;
}
@ -841,7 +841,7 @@ uint stringUserToMod( const TQString& mod )
if( keySymQt < 0x1000 ) {
// For reasons unbeknownst to me, Qt converts 'a-z' to 'A-Z'.
// So convert it back to lowercase if SHIFT isn't held down.
if( keySymQt >= Qt::Key_A && keySymQt <= Qt::Key_Z && !(keyCombQt & Qt::SHIFT) )
if( keySymQt >= TQt::Key_A && keySymQt <= TQt::Key_Z && !(keyCombQt & TQt::SHIFT) )
keySymQt = tolower( keySymQt );
keySymX = keySymQt;
}

@ -71,7 +71,7 @@ namespace KKeyServer
* Initializes the symbol with the given Qt key code.
* @param keyQt the qt key code
* @return true if successful, false otherwise
* @see Qt::Key
* @see TQt::Key
*/
bool initQt( int keyQt );
@ -153,7 +153,7 @@ namespace KKeyServer
* @param key the key to get the data from
* @param bQt true to take the Qt keycode, false
* for the native key code
* @see Qt::Key
* @see TQt::Key
* @see KKeyNative
*/
bool init( const KKey& key, bool bQt );
@ -162,7 +162,7 @@ namespace KKeyServer
* Checks whether the key code is a native code.
* @return true if native code of the window system,
* false if it is a Qt keycode
* @see Qt::Key
* @see TQt::Key
* @see KKeyNative
*/
bool isNative() const { return m_code != CODE_FOR_QT; }
@ -351,7 +351,7 @@ namespace KKeyServer
* @param keyQt the qt key code
* @param sym if successful, the symbol will be written here
* @return true if successful, false otherwise
* @see Qt::Key
* @see TQt::Key
* @see Sym
*/
TDECORE_EXPORT bool keyQtToSym( int keyQt, uint& sym );
@ -362,7 +362,7 @@ namespace KKeyServer
* @param keyQt the qt key code
* @param mod if successful, the modifiers will be written here
* @return true if successful, false otherwise
* @see Qt::Key
* @see TQt::Key
*/
TDECORE_EXPORT bool keyQtToMod( int keyQt, uint& mod );
@ -371,7 +371,7 @@ namespace KKeyServer
* @param sym the symbol
* @param keyQt if successful, the qt key code will be written here
* @return true if successful, false otherwise
* @see Qt::Key
* @see TQt::Key
* @see Sym
*/
TDECORE_EXPORT bool symToKeyQt( uint sym, int& keyQt );
@ -383,7 +383,7 @@ namespace KKeyServer
* @param modQt the mask of Qt key code modifiers will be written here,
* if successful
* @return true if successful, false otherwise
* @see Qt::Key
* @see TQt::Key
* @see KKey
*/
TDECORE_EXPORT bool modToModQt( uint mod, int& modQt );
@ -406,7 +406,7 @@ namespace KKeyServer
* @param modQt the mask of Qt key code modifiers will be written here
* if successful
* @return true if successful, false otherwise
* @see Qt::Key
* @see TQt::Key
*/
//wrapped for win32
TDECORE_EXPORT bool modXToModQt( uint modX, int& modQt );
@ -414,7 +414,7 @@ namespace KKeyServer
/**
* Converts the Qt-compatible button state to x11 modifier.
*/
TDECORE_EXPORT int qtButtonStateToMod( Qt::ButtonState s );
TDECORE_EXPORT int qtButtonStateToMod( TQt::ButtonState s );
/**
* Converts the mask of ORed X11 modifiers to
@ -435,7 +435,7 @@ namespace KKeyServer
* @param modX the mask of ORed X11 modifiers
* @param symX if successful, the X11 symbol will be written here
* @return true if successful, false otherwise
* @see Qt::Key
* @see TQt::Key
* @see Sym
*/
TDECORE_EXPORT bool codeXToSym( uchar codeX, uint modX, uint& symX );

@ -245,7 +245,7 @@ TQDateTime KTimezone::convert(const KTimezone *newZone, const TQDateTime &dateTi
::setenv("TZ", newZone->name().utf8(), 1);
tzset();
TQDateTime remoteTime;
remoteTime.setTime_t(utc, Qt::LocalTime);
remoteTime.setTime_t(utc, TQt::LocalTime);
// Now restore things
if (!originalZone)
@ -280,7 +280,7 @@ TQString KTimezone::name() const
return m_name;
}
int KTimezone::offset(Qt::TimeSpec basisSpec) const
int KTimezone::offset(TQt::TimeSpec basisSpec) const
{
char *originalZone = ::getenv("TZ");
@ -290,7 +290,7 @@ int KTimezone::offset(Qt::TimeSpec basisSpec) const
// Set the timezone and find out what time it is there compared to the basis.
::setenv("TZ", m_name.utf8(), 1);
tzset();
TQDateTime remoteTime = TQDateTime::currentDateTime(Qt::LocalTime);
TQDateTime remoteTime = TQDateTime::currentDateTime(TQt::LocalTime);
int offset = remoteTime.secsTo(basisTime);
// Now restore things
@ -605,7 +605,7 @@ const KTimezone *KTimezones::local()
for (ZoneMap::Iterator it = m_zones->begin(); it != m_zones->end(); ++it)
{
KTimezone *zone = it.data();
int candidateOffset = QABS(zone->offset(Qt::LocalTime));
int candidateOffset = QABS(zone->offset(TQt::LocalTime));
if (zone->parse(matcher) && matcher.test() && (candidateOffset < bestOffset))
{
// kdError() << "local=" << zone->name() << endl;

@ -156,7 +156,7 @@ public:
*
* @return offset in seconds.
*/
int offset(Qt::TimeSpec basisSpec = Qt::UTC) const;
int offset(TQt::TimeSpec basisSpec = TQt::UTC) const;
/**
* Returns the offset of the given timezone to UTC at the given

@ -334,8 +334,8 @@ KUniqueApplication::KUniqueApplication(bool allowStyles, bool GUIenabled, bool c
#ifdef Q_WS_X11
KUniqueApplication::KUniqueApplication(Display *display, Qt::HANDLE visual,
Qt::HANDLE colormap, bool allowStyles, bool configUnique)
KUniqueApplication::KUniqueApplication(Display *display, TQt::HANDLE visual,
TQt::HANDLE colormap, bool allowStyles, bool configUnique)
: TDEApplication( display, visual, colormap, allowStyles, initHack( configUnique )),
DCOPObject(TDECmdLineArgs::about->appName())
{

@ -90,8 +90,8 @@ public:
* @since KDE 3.3
*/
KUniqueApplication( Display *display,
Qt::HANDLE visual=0,
Qt::HANDLE colormap=0,
TQt::HANDLE visual=0,
TQt::HANDLE colormap=0,
bool allowStyles=true,
bool configUnique=false);
#endif

@ -57,7 +57,7 @@ public:
m_clipSVP = 0;
m_fillColor = Qt::black;
m_fillColor = TQt::black;
m_useFill = true;
m_useStroke = false;

@ -49,7 +49,7 @@
//---------------------------------------------------------------------
//
// In TDEAccelEventHandler::x11Event we do our own X11 keyboard event handling
// This allows us to map the Win key to Qt::MetaButton, Qt does not know about
// This allows us to map the Win key to TQt::MetaButton, Qt does not know about
// the Win key.
//
// TDEAccelEventHandler::x11Event will generate an AccelOverride event. The

@ -74,7 +74,7 @@ class TDEAccelPrivate;
* // Insert an action "Scroll Up" which is associated with the "Up" key:
* pAccel->insert( "Scroll Up", i18n("Scroll up"),
* i18n("Scroll up the current document by one line."),
* Qt::Key_Up, this, TQT_SLOT(slotScrollUp()) );
* TQt::Key_Up, this, TQT_SLOT(slotScrollUp()) );
* // Insert an standard acclerator action.
* pAccel->insert( TDEStdAccel::Print, this, TQT_SLOT(slotPrint()) );
*

@ -329,8 +329,8 @@ void TDEAcceleratorManagerPrivate::manageWidget(TQWidget *w, Item *item)
if ( !label->buddy() )
label = 0;
else {
if ( label->textFormat() == Qt::RichText ||
( label->textFormat() == Qt::AutoText &&
if ( label->textFormat() == TQt::RichText ||
( label->textFormat() == TQt::AutoText &&
TQStyleSheet::mightBeRichText( label->text() ) ) )
label = 0;
}

@ -586,7 +586,7 @@ bool TDEApplication::notify(TQObject *receiver, TQEvent *event)
}
}
// Ctrl-U deletes from start of line.
if (key == KKey(Qt::CTRL + Qt::Key_U))
if (key == KKey(TQt::CTRL + TQt::Key_U))
{
if (t == TQEvent::KeyPress)
{
@ -817,7 +817,7 @@ TDEApplication::TDEApplication( Display *dpy, bool allowStyles ) :
d->m_KAppDCOPInterface = new KAppDCOPInterface(this);
}
TDEApplication::TDEApplication( Display *dpy, bool disable_argb, Qt::HANDLE visual, Qt::HANDLE colormap, bool allowStyles ) :
TDEApplication::TDEApplication( Display *dpy, bool disable_argb, TQt::HANDLE visual, TQt::HANDLE colormap, bool allowStyles ) :
TQApplication( dpy, *TDECmdLineArgs::tqt_argc(), *TDECmdLineArgs::tqt_argv(),
disable_argb?visual:getX11RGBAVisual(dpy), disable_argb?colormap:getX11RGBAColormap(dpy) ),
TDEInstance( TDECmdLineArgs::about), display(0L), d (new TDEApplicationPrivate)
@ -834,7 +834,7 @@ TDEApplication::TDEApplication( Display *dpy, bool disable_argb, Qt::HANDLE visu
d->m_KAppDCOPInterface = new KAppDCOPInterface(this);
}
TDEApplication::TDEApplication( Display *dpy, Qt::HANDLE visual, Qt::HANDLE colormap,
TDEApplication::TDEApplication( Display *dpy, TQt::HANDLE visual, TQt::HANDLE colormap,
bool allowStyles ) :
TQApplication( dpy, *TDECmdLineArgs::tqt_argc(), *TDECmdLineArgs::tqt_argv(),
visual?visual:getX11RGBAVisual(dpy), colormap?colormap:getX11RGBAColormap(dpy) ),
@ -853,7 +853,7 @@ TDEApplication::TDEApplication( Display *dpy, Qt::HANDLE visual, Qt::HANDLE colo
d->m_KAppDCOPInterface = new KAppDCOPInterface(this);
}
TDEApplication::TDEApplication( Display *dpy, Qt::HANDLE visual, Qt::HANDLE colormap,
TDEApplication::TDEApplication( Display *dpy, TQt::HANDLE visual, TQt::HANDLE colormap,
bool allowStyles, TDEInstance * _instance ) :
TQApplication( dpy, *TDECmdLineArgs::tqt_argc(), *TDECmdLineArgs::tqt_argv(),
visual?visual:getX11RGBAVisual(dpy), colormap?colormap:getX11RGBAColormap(dpy) ),
@ -2032,23 +2032,23 @@ Display* TDEApplication::openX11RGBADisplay() {
return dpy;
}
Qt::HANDLE TDEApplication::getX11RGBAVisual(Display *dpy) {
TQt::HANDLE TDEApplication::getX11RGBAVisual(Display *dpy) {
getX11RGBAInformation(dpy);
if (TDEApplication::isCompositionManagerAvailable() == true) {
return argb_x11_visual;
}
else {
return (Qt::HANDLE)NULL;
return (TQt::HANDLE)NULL;
}
}
Qt::HANDLE TDEApplication::getX11RGBAColormap(Display *dpy) {
TQt::HANDLE TDEApplication::getX11RGBAColormap(Display *dpy) {
getX11RGBAInformation(dpy);
if (TDEApplication::isCompositionManagerAvailable() == true) {
return argb_x11_colormap;
}
else {
return (Qt::HANDLE)NULL;
return (TQt::HANDLE)NULL;
}
}
@ -2089,8 +2089,8 @@ void TDEApplication::getX11RGBAInformation(Display *dpy) {
}
if( argb_visual ) {
argb_x11_visual = Qt::HANDLE( visual );
argb_x11_colormap = Qt::HANDLE( colormap );
argb_x11_visual = TQt::HANDLE( visual );
argb_x11_colormap = TQt::HANDLE( colormap );
argb_visual = true;
return;
}
@ -2144,11 +2144,11 @@ Display* TDEApplication::openX11RGBADisplay() {
return 0;
}
Qt::HANDLE TDEApplication::getX11RGBAVisual(Display *dpy) {
TQt::HANDLE TDEApplication::getX11RGBAVisual(Display *dpy) {
return 0;
}
Qt::HANDLE TDEApplication::getX11RGBAColormap(Display *dpy) {
TQt::HANDLE TDEApplication::getX11RGBAColormap(Display *dpy) {
return 0;
}
@ -2462,12 +2462,12 @@ TQPalette TDEApplication::createApplicationPalette( TDEConfig *config, int contr
if (v > 128)
// dark bg, light fg - need a darker disabled fg
disfg = disfg.dark(lowlightVal);
else if (disfg != Qt::black)
else if (disfg != TQt::black)
// light bg, dark fg - need a lighter disabled fg - but only if !black
disfg = disfg.light(highlightVal);
else
// black fg - use darkgray disabled fg
disfg = Qt::darkGray;
disfg = TQt::darkGray;
TQColorGroup disabledgrp(disfg, background,
@ -2500,12 +2500,12 @@ TQPalette TDEApplication::createApplicationPalette( TDEConfig *config, int contr
if (v > 128)
// dark button, light buttonText - need a darker disabled buttonText
disbtntext = disbtntext.dark(lowlightVal);
else if (disbtntext != Qt::black)
else if (disbtntext != TQt::black)
// light buttonText, dark button - need a lighter disabled buttonText - but only if !black
disbtntext = disbtntext.light(highlightVal);
else
// black button - use darkgray disabled buttonText
disbtntext = Qt::darkGray;
disbtntext = TQt::darkGray;
disabledgrp.setColor(TQColorGroup::ButtonText, disbtntext);
disabledgrp.setColor(TQColorGroup::Midlight, background.light(110));
@ -2591,15 +2591,15 @@ void TDEApplication::propagateSettings(SettingsCategory arg)
TQApplication::setWheelScrollLines(num);
bool b = config->readBoolEntry("EffectAnimateMenu", false);
TQApplication::setEffectEnabled( Qt::UI_AnimateMenu, b);
TQApplication::setEffectEnabled( TQt::UI_AnimateMenu, b);
b = config->readBoolEntry("EffectFadeMenu", false);
TQApplication::setEffectEnabled( Qt::UI_FadeMenu, b);
TQApplication::setEffectEnabled( TQt::UI_FadeMenu, b);
b = config->readBoolEntry("EffectAnimateCombo", false);
TQApplication::setEffectEnabled( Qt::UI_AnimateCombo, b);
TQApplication::setEffectEnabled( TQt::UI_AnimateCombo, b);
b = config->readBoolEntry("EffectAnimateTooltip", false);
TQApplication::setEffectEnabled( Qt::UI_AnimateTooltip, b);
TQApplication::setEffectEnabled( TQt::UI_AnimateTooltip, b);
b = config->readBoolEntry("EffectFadeTooltip", false);
TQApplication::setEffectEnabled( Qt::UI_FadeTooltip, b);
TQApplication::setEffectEnabled( TQt::UI_FadeTooltip, b);
b = !config->readBoolEntry("EffectNoTooltip", false);
TQToolTip::setGloballyEnabled( b );
@ -3632,7 +3632,7 @@ uint TDEApplication::mouseState()
return mousestate & 0xff00;
}
Qt::ButtonState TDEApplication::keyboardMouseState()
TQt::ButtonState TDEApplication::keyboardMouseState()
{
int ret = 0;
#ifdef Q_WS_X11

@ -187,7 +187,7 @@ public:
*
* @see RGBADisplay()
*/
TDEApplication(Display *display, bool disable_argb, Qt::HANDLE visual, Qt::HANDLE colormap, bool allowStyles);
TDEApplication(Display *display, bool disable_argb, TQt::HANDLE visual, TQt::HANDLE colormap, bool allowStyles);
/**
* Constructor. Parses command-line arguments. Use this constructor when you
@ -212,7 +212,7 @@ public:
*
* @since KDE 3.3
*/
TDEApplication(Display *display, Qt::HANDLE visual = 0, Qt::HANDLE colormap = 0,
TDEApplication(Display *display, TQt::HANDLE visual = 0, TQt::HANDLE colormap = 0,
bool allowStyles=true);
/**
@ -984,14 +984,14 @@ public:
*
* @return A pointer to the X11 display visual
*/
Qt::HANDLE getX11RGBAVisual(Display *dpy);
TQt::HANDLE getX11RGBAVisual(Display *dpy);
/**
* Returns the X11 display colormap
*
* @return An X11 display colormap object
*/
Qt::HANDLE getX11RGBAColormap(Display *dpy);
TQt::HANDLE getX11RGBAColormap(Display *dpy);
/**
* Returns whether or not X11 composition is available
@ -1266,7 +1266,7 @@ protected:
/**
* @internal Used by KUniqueApplication
*/
TDEApplication( Display *display, Qt::HANDLE visual, Qt::HANDLE colormap,
TDEApplication( Display *display, TQt::HANDLE visual, TQt::HANDLE colormap,
bool allowStyles, TDEInstance* _instance );
/**
@ -1353,8 +1353,8 @@ private:
bool argb_visual;
#if defined(Q_WS_X11)
Qt::HANDLE argb_x11_visual;
Qt::HANDLE argb_x11_colormap;
TQt::HANDLE argb_x11_visual;
TQt::HANDLE argb_x11_colormap;
#endif
public:

@ -187,7 +187,7 @@ bool TDEConfigDialogManager::parseChildren(const TQWidget *widget, bool trackCha
{
// If the class name of the widget wasn't in the monitored widgets map, then look for
// it again using the super class name. This fixes a problem with using QtRuby/Korundum
// widgets with TDEConfigXT where 'Qt::Widget' wasn't being seen a the real deal, even
// widgets with TDEConfigXT where 'TQt::Widget' wasn't being seen a the real deal, even
// though it was a 'TQWidget'.
changedIt = changedMap.find(childWidget->metaObject()->superClassName());
}

@ -429,7 +429,7 @@ TQColor TDEGlobalSettings::alternateBackgroundColor()
TQColor TDEGlobalSettings::calculateAlternateBackgroundColor(const TQColor& base)
{
if (base == Qt::white)
if (base == TQt::white)
return TQColor(238,246,255);
else
{
@ -437,7 +437,7 @@ TQColor TDEGlobalSettings::calculateAlternateBackgroundColor(const TQColor& base
base.hsv( &h, &s, &v );
if (v > 128)
return base.dark(106);
else if (base != Qt::black)
else if (base != TQt::black)
return base.light(110);
return TQColor(32,32,32);

@ -89,10 +89,10 @@ bool KKey::init( const TQKeySequence& key )
bool KKey::init( const TQKeyEvent* pEvent )
{
int keyQt = pEvent->key();
if( pEvent->state() & TQt::ShiftButton ) keyQt |= Qt::SHIFT;
if( pEvent->state() & TQt::ControlButton ) keyQt |= Qt::CTRL;
if( pEvent->state() & TQt::AltButton ) keyQt |= Qt::ALT;
if( pEvent->state() & TQt::MetaButton ) keyQt |= Qt::META;
if( pEvent->state() & TQt::ShiftButton ) keyQt |= TQt::SHIFT;
if( pEvent->state() & TQt::ControlButton ) keyQt |= TQt::CTRL;
if( pEvent->state() & TQt::AltButton ) keyQt |= TQt::ALT;
if( pEvent->state() & TQt::MetaButton ) keyQt |= TQt::META;
return init( keyQt );
}

@ -45,7 +45,7 @@ class TDECORE_EXPORT KKey
* @see ModFlag
*/
enum { MOD_FLAG_COUNT = 4 };
enum { QtWIN = (Qt::META) };
enum { QtWIN = (TQt::META) };
/**
* Flags to represent the modifiers. You can combine modifiers
* by ORing them.
@ -68,7 +68,7 @@ class TDECORE_EXPORT KKey
/**
* Creates a new key for the given Qt key code.
* @param keyQt the qt keycode
* @see Qt::Key
* @see TQt::Key
*/
KKey( int keyQt );
@ -115,7 +115,7 @@ class TDECORE_EXPORT KKey
* Initializes the key with the given Qt key code.
* @param keyQt the qt keycode
* @return true if successful, false otherwise
* @see Qt::Key
* @see TQt::Key
*/
bool init( int keyQt );
@ -217,7 +217,7 @@ class TDECORE_EXPORT KKey
/**
* Returns the qt key code.
* @return the qt key code or 0 if there is no key set.
* @see Qt::Key
* @see TQt::Key
*/
int keyCodeQt() const;
@ -469,7 +469,7 @@ class TDECORE_EXPORT KKeySequence
*/
bool operator < ( const KKeySequence& seq ) const
{ return compare( seq ) < 0; }
// TODO: consider adding Qt::SequenceMatch matches(...) methods for TQKeySequence equivalence
// TODO: consider adding TQt::SequenceMatch matches(...) methods for TQKeySequence equivalence
/**
* Converts this key sequence to a TQKeySequence.
@ -480,7 +480,7 @@ class TDECORE_EXPORT KKeySequence
/**
* Returns the qt key code of the first key.
* @return the qt key code of the first key
* @see Qt::Key
* @see TQt::Key
* @see KKey::keyCodeQt()
*/
int keyCodeQt() const;
@ -561,7 +561,7 @@ class TDECORE_EXPORT TDEShortcut
* Creates a new shortcut with the given Qt key code
* as the only key sequence.
* @param keyQt the qt keycode
* @see Qt::Key
* @see TQt::Key
*/
TDEShortcut( int keyQt );
@ -622,7 +622,7 @@ class TDECORE_EXPORT TDEShortcut
* Initializes the shortcut with the given Qt key code
* as the only key sequence.
* @param keyQt the qt keycode
* @see Qt::Key
* @see TQt::Key
*/
bool init( int keyQt );
@ -686,7 +686,7 @@ class TDECORE_EXPORT TDEShortcut
* Returns the key code of the first key sequence, or
* null if there is no first key sequence.
* @return the key code of the first sequence's first key
* @see Qt::Key
* @see TQt::Key
* @see KKeySequence::keyCodeQt()
*/
int keyCodeQt() const;

@ -104,8 +104,8 @@ void TDEShortcutMenu::keyPressEvent( TQKeyEvent* pEvent )
if( iItem == -1 ) {
// Let Up and Down keys navigate menu,
// And permit Enter, Return to select the item.
if( pEvent->key() == Qt::Key_Up || pEvent->key() == Qt::Key_Down ||
pEvent->key() == Qt::Key_Enter || pEvent->key() == Qt::Key_Return )
if( pEvent->key() == TQt::Key_Up || pEvent->key() == TQt::Key_Down ||
pEvent->key() == TQt::Key_Enter || pEvent->key() == TQt::Key_Return )
TQPopupMenu::keyPressEvent( pEvent );
else
close();

@ -50,59 +50,59 @@ struct TDEStdAccelInfo
static TDEStdAccelInfo g_infoStdAccel[] =
{
{AccelNone, "Group:File", I18N_NOOP("File"), 0, 0, 0, 0, TDEShortcut(), false },
{ Open, I18N_NOOP("Open"), 0, Qt::CTRL+Qt::Key_O, 0, 0, 0, TDEShortcut(), false },
{ New, I18N_NOOP("New"), 0, Qt::CTRL+Qt::Key_N, 0, 0, 0, TDEShortcut(), false },
{ Close, I18N_NOOP("Close"), 0, Qt::CTRL+Qt::Key_W, Qt::CTRL+Qt::Key_Escape, 0, Qt::CTRL+Qt::Key_W, TDEShortcut(), false },
{ Save, I18N_NOOP("Save"), 0, Qt::CTRL+Qt::Key_S, 0, 0, 0, TDEShortcut(), false },
{ Print, I18N_NOOP("Print"), 0, Qt::CTRL+Qt::Key_P, 0, 0, 0, TDEShortcut(), false },
{ Quit, I18N_NOOP("Quit"), 0, Qt::CTRL+Qt::Key_Q, 0, 0, 0, TDEShortcut(), false },
{ Open, I18N_NOOP("Open"), 0, TQt::CTRL+TQt::Key_O, 0, 0, 0, TDEShortcut(), false },
{ New, I18N_NOOP("New"), 0, TQt::CTRL+TQt::Key_N, 0, 0, 0, TDEShortcut(), false },
{ Close, I18N_NOOP("Close"), 0, TQt::CTRL+TQt::Key_W, TQt::CTRL+TQt::Key_Escape, 0, TQt::CTRL+TQt::Key_W, TDEShortcut(), false },
{ Save, I18N_NOOP("Save"), 0, TQt::CTRL+TQt::Key_S, 0, 0, 0, TDEShortcut(), false },
{ Print, I18N_NOOP("Print"), 0, TQt::CTRL+TQt::Key_P, 0, 0, 0, TDEShortcut(), false },
{ Quit, I18N_NOOP("Quit"), 0, TQt::CTRL+TQt::Key_Q, 0, 0, 0, TDEShortcut(), false },
{AccelNone, "Group:Edit", I18N_NOOP("Edit"), 0, 0, 0, 0, TDEShortcut(), false },
{ Undo, I18N_NOOP("Undo"), 0, Qt::CTRL+Qt::Key_Z, 0, 0, 0, TDEShortcut(), false },
{ Redo, I18N_NOOP("Redo"), 0, Qt::CTRL+Qt::SHIFT+Qt::Key_Z, 0, 0, 0, TDEShortcut(), false },
{ Cut, I18N_NOOP("Cut"), 0, Qt::CTRL+Qt::Key_X, 0, Qt::SHIFT+Qt::Key_Delete, 0, TDEShortcut(), false },
{ Copy, I18N_NOOP("Copy"), 0, Qt::CTRL+Qt::Key_C, 0, Qt::CTRL+Qt::Key_Insert, 0, TDEShortcut(), false },
{ Paste, I18N_NOOP("Paste"), 0, Qt::CTRL+Qt::Key_V, 0, Qt::SHIFT+Qt::Key_Insert, 0, TDEShortcut(), false },
{ PasteSelection, I18N_NOOP("Paste Selection"), 0, 0, 0, Qt::CTRL+Qt::SHIFT+Qt::Key_Insert, 0, TDEShortcut(), false },
{ SelectAll, "SelectAll", I18N_NOOP("Select All"), Qt::CTRL+Qt::Key_A, 0, 0, 0, TDEShortcut(), false },
{ Deselect, I18N_NOOP("Deselect"), 0, Qt::CTRL+Qt::SHIFT+Qt::Key_A, 0, 0, 0, TDEShortcut(), false },
{ DeleteWordBack, "DeleteWordBack", I18N_NOOP("Delete Word Backwards"), Qt::CTRL+Qt::Key_Backspace, 0, 0, 0, TDEShortcut(), false },
{ DeleteWordForward, "DeleteWordForward", I18N_NOOP("Delete Word Forward"), Qt::CTRL+Qt::Key_Delete, 0, 0, 0, TDEShortcut(), false },
{ Find, I18N_NOOP("Find"), 0, Qt::CTRL+Qt::Key_F, 0, 0, 0, TDEShortcut(), false },
{ FindNext, "FindNext", I18N_NOOP("Find Next"), Qt::Key_F3, 0, 0, 0, TDEShortcut(), false },
{ FindPrev, "FindPrev", I18N_NOOP("Find Prev"), Qt::SHIFT+Qt::Key_F3, 0, 0, 0, TDEShortcut(), false },
{ Replace, I18N_NOOP("Replace"), 0, Qt::CTRL+Qt::Key_R, 0, 0, 0, TDEShortcut(), false },
{ Undo, I18N_NOOP("Undo"), 0, TQt::CTRL+TQt::Key_Z, 0, 0, 0, TDEShortcut(), false },
{ Redo, I18N_NOOP("Redo"), 0, TQt::CTRL+TQt::SHIFT+TQt::Key_Z, 0, 0, 0, TDEShortcut(), false },
{ Cut, I18N_NOOP("Cut"), 0, TQt::CTRL+TQt::Key_X, 0, TQt::SHIFT+TQt::Key_Delete, 0, TDEShortcut(), false },
{ Copy, I18N_NOOP("Copy"), 0, TQt::CTRL+TQt::Key_C, 0, TQt::CTRL+TQt::Key_Insert, 0, TDEShortcut(), false },
{ Paste, I18N_NOOP("Paste"), 0, TQt::CTRL+TQt::Key_V, 0, TQt::SHIFT+TQt::Key_Insert, 0, TDEShortcut(), false },
{ PasteSelection, I18N_NOOP("Paste Selection"), 0, 0, 0, TQt::CTRL+TQt::SHIFT+TQt::Key_Insert, 0, TDEShortcut(), false },
{ SelectAll, "SelectAll", I18N_NOOP("Select All"), TQt::CTRL+TQt::Key_A, 0, 0, 0, TDEShortcut(), false },
{ Deselect, I18N_NOOP("Deselect"), 0, TQt::CTRL+TQt::SHIFT+TQt::Key_A, 0, 0, 0, TDEShortcut(), false },
{ DeleteWordBack, "DeleteWordBack", I18N_NOOP("Delete Word Backwards"), TQt::CTRL+TQt::Key_Backspace, 0, 0, 0, TDEShortcut(), false },
{ DeleteWordForward, "DeleteWordForward", I18N_NOOP("Delete Word Forward"), TQt::CTRL+TQt::Key_Delete, 0, 0, 0, TDEShortcut(), false },
{ Find, I18N_NOOP("Find"), 0, TQt::CTRL+TQt::Key_F, 0, 0, 0, TDEShortcut(), false },
{ FindNext, "FindNext", I18N_NOOP("Find Next"), TQt::Key_F3, 0, 0, 0, TDEShortcut(), false },
{ FindPrev, "FindPrev", I18N_NOOP("Find Prev"), TQt::SHIFT+TQt::Key_F3, 0, 0, 0, TDEShortcut(), false },
{ Replace, I18N_NOOP("Replace"), 0, TQt::CTRL+TQt::Key_R, 0, 0, 0, TDEShortcut(), false },
{AccelNone, "Group:Navigation", I18N_NOOP("Navigation"), 0, 0, 0, 0, TDEShortcut(), false },
{ Home, I18N_NOOP2("Opposite to End","Home"), 0, Qt::CTRL+Qt::Key_Home, 0, Qt::Key_HomePage, 0, TDEShortcut(), false },
{ End, I18N_NOOP("End"), 0, Qt::CTRL+Qt::Key_End, 0, 0, 0, TDEShortcut(), false },
{ BeginningOfLine, "BeginningOfLine", I18N_NOOP("Beginning of Line"), Qt::Key_Home, 0, 0, 0, TDEShortcut(), false},
{ EndOfLine, "EndOfLine", I18N_NOOP("End of Line"), Qt::Key_End, 0, 0, 0, TDEShortcut(), false},
{ Home, I18N_NOOP2("Opposite to End","Home"), 0, TQt::CTRL+TQt::Key_Home, 0, TQt::Key_HomePage, 0, TDEShortcut(), false },
{ End, I18N_NOOP("End"), 0, TQt::CTRL+TQt::Key_End, 0, 0, 0, TDEShortcut(), false },
{ BeginningOfLine, "BeginningOfLine", I18N_NOOP("Beginning of Line"), TQt::Key_Home, 0, 0, 0, TDEShortcut(), false},
{ EndOfLine, "EndOfLine", I18N_NOOP("End of Line"), TQt::Key_End, 0, 0, 0, TDEShortcut(), false},
{ Prior, I18N_NOOP("Prior"), 0, TQt::Key_Prior, 0, 0, 0, TDEShortcut(), false },
{ Next, I18N_NOOP2("Opposite to Prior","Next"), 0, TQt::Key_Next, 0, 0, 0, TDEShortcut(), false },
{ GotoLine, "GotoLine", I18N_NOOP("Go to Line"), Qt::CTRL+Qt::Key_G, 0, 0, 0, TDEShortcut(), false },
{ AddBookmark, "AddBookmark", I18N_NOOP("Add Bookmark"), Qt::CTRL+Qt::Key_B, 0, 0, 0, TDEShortcut(), false },
{ ZoomIn, "ZoomIn", I18N_NOOP("Zoom In"), Qt::CTRL+Qt::Key_Plus, 0, 0, 0, TDEShortcut(), false },
{ ZoomOut, "ZoomOut", I18N_NOOP("Zoom Out"), Qt::CTRL+Qt::Key_Minus, 0, 0, 0, TDEShortcut(), false },
{ Up, I18N_NOOP("Up"), 0, Qt::ALT+Qt::Key_Up, 0, 0, 0, TDEShortcut(), false },
{ Back, I18N_NOOP("Back"), 0, Qt::ALT+Qt::Key_Left, 0, Qt::Key_Back, 0, TDEShortcut(), false },
{ Forward, I18N_NOOP("Forward"), 0, Qt::ALT+Qt::Key_Right, 0, Qt::Key_Forward, 0, TDEShortcut(), false },
{ Reload, I18N_NOOP("Reload"), 0, Qt::Key_F5, 0, Qt::Key_Refresh, 0, TDEShortcut(), false },
{ PopupMenuContext, "PopupMenuContext", I18N_NOOP("Popup Menu Context"), Qt::Key_Menu, 0, 0, 0, TDEShortcut(), false },
{ ShowMenubar, "ShowMenubar", I18N_NOOP("Show Menu Bar"), Qt::CTRL+Qt::Key_M, 0, 0, 0, TDEShortcut(), false },
{ BackwardWord, "BackwardWord", I18N_NOOP("Backward Word"), Qt::CTRL+Qt::Key_Left, 0, 0, 0, TDEShortcut(), false },
{ ForwardWord, "ForwardWord", I18N_NOOP("Forward Word"), Qt::CTRL+Qt::Key_Right, 0, 0, 0, TDEShortcut(), false },
{ TabNext, I18N_NOOP("Activate Next Tab"), 0, Qt::CTRL+Qt::Key_Period, 0, Qt::CTRL+Qt::Key_BracketRight, 0, TDEShortcut(), false },
{ TabPrev, I18N_NOOP("Activate Previous Tab"), 0, Qt::CTRL+Qt::Key_Comma, 0, Qt::CTRL+Qt::Key_BracketLeft, 0, TDEShortcut(), false },
{ FullScreen, "FullScreen", I18N_NOOP("Full Screen Mode"), Qt::CTRL+Qt::SHIFT+Qt::Key_F, 0, 0, 0, TDEShortcut(), false },
{ GotoLine, "GotoLine", I18N_NOOP("Go to Line"), TQt::CTRL+TQt::Key_G, 0, 0, 0, TDEShortcut(), false },
{ AddBookmark, "AddBookmark", I18N_NOOP("Add Bookmark"), TQt::CTRL+TQt::Key_B, 0, 0, 0, TDEShortcut(), false },
{ ZoomIn, "ZoomIn", I18N_NOOP("Zoom In"), TQt::CTRL+TQt::Key_Plus, 0, 0, 0, TDEShortcut(), false },
{ ZoomOut, "ZoomOut", I18N_NOOP("Zoom Out"), TQt::CTRL+TQt::Key_Minus, 0, 0, 0, TDEShortcut(), false },
{ Up, I18N_NOOP("Up"), 0, TQt::ALT+TQt::Key_Up, 0, 0, 0, TDEShortcut(), false },
{ Back, I18N_NOOP("Back"), 0, TQt::ALT+TQt::Key_Left, 0, TQt::Key_Back, 0, TDEShortcut(), false },
{ Forward, I18N_NOOP("Forward"), 0, TQt::ALT+TQt::Key_Right, 0, TQt::Key_Forward, 0, TDEShortcut(), false },
{ Reload, I18N_NOOP("Reload"), 0, TQt::Key_F5, 0, TQt::Key_Refresh, 0, TDEShortcut(), false },
{ PopupMenuContext, "PopupMenuContext", I18N_NOOP("Popup Menu Context"), TQt::Key_Menu, 0, 0, 0, TDEShortcut(), false },
{ ShowMenubar, "ShowMenubar", I18N_NOOP("Show Menu Bar"), TQt::CTRL+TQt::Key_M, 0, 0, 0, TDEShortcut(), false },
{ BackwardWord, "BackwardWord", I18N_NOOP("Backward Word"), TQt::CTRL+TQt::Key_Left, 0, 0, 0, TDEShortcut(), false },
{ ForwardWord, "ForwardWord", I18N_NOOP("Forward Word"), TQt::CTRL+TQt::Key_Right, 0, 0, 0, TDEShortcut(), false },
{ TabNext, I18N_NOOP("Activate Next Tab"), 0, TQt::CTRL+TQt::Key_Period, 0, TQt::CTRL+TQt::Key_BracketRight, 0, TDEShortcut(), false },
{ TabPrev, I18N_NOOP("Activate Previous Tab"), 0, TQt::CTRL+TQt::Key_Comma, 0, TQt::CTRL+TQt::Key_BracketLeft, 0, TDEShortcut(), false },
{ FullScreen, "FullScreen", I18N_NOOP("Full Screen Mode"), TQt::CTRL+TQt::SHIFT+TQt::Key_F, 0, 0, 0, TDEShortcut(), false },
{AccelNone, "Group:Help", I18N_NOOP("Help"), 0, 0, 0, 0, TDEShortcut(), false },
{ Help, I18N_NOOP("Help"), 0, Qt::Key_F1, 0, 0, 0, TDEShortcut(), false },
{ WhatsThis, "WhatsThis", I18N_NOOP("What's This"), Qt::SHIFT+Qt::Key_F1, 0, 0, 0, TDEShortcut(), false },
{ Help, I18N_NOOP("Help"), 0, TQt::Key_F1, 0, 0, 0, TDEShortcut(), false },
{ WhatsThis, "WhatsThis", I18N_NOOP("What's This"), TQt::SHIFT+TQt::Key_F1, 0, 0, 0, TDEShortcut(), false },
{AccelNone, "Group:TextCompletion", I18N_NOOP("Text Completion"), 0, 0, 0, 0, TDEShortcut(), false },
{ TextCompletion, "TextCompletion", I18N_NOOP("Text Completion"), Qt::CTRL+Qt::Key_E, 0, 0, 0, TDEShortcut(), false },
{ PrevCompletion, "PrevCompletion", I18N_NOOP("Previous Completion Match"), Qt::CTRL+Qt::Key_Up, 0, 0, 0, TDEShortcut(), false },
{ NextCompletion, "NextCompletion", I18N_NOOP("Next Completion Match"), Qt::CTRL+Qt::Key_Down, 0, 0, 0, TDEShortcut(), false },
{ SubstringCompletion, "SubstringCompletion", I18N_NOOP("Substring Completion"), Qt::CTRL+Qt::Key_T, 0, 0, 0, TDEShortcut(), false },
{ RotateUp, "RotateUp", I18N_NOOP("Previous Item in List"), Qt::Key_Up, 0, 0, 0, TDEShortcut(), false },
{ RotateDown, "RotateDown", I18N_NOOP("Next Item in List"), Qt::Key_Down, 0, 0, 0, TDEShortcut(), false },
{ TextCompletion, "TextCompletion", I18N_NOOP("Text Completion"), TQt::CTRL+TQt::Key_E, 0, 0, 0, TDEShortcut(), false },
{ PrevCompletion, "PrevCompletion", I18N_NOOP("Previous Completion Match"), TQt::CTRL+TQt::Key_Up, 0, 0, 0, TDEShortcut(), false },
{ NextCompletion, "NextCompletion", I18N_NOOP("Next Completion Match"), TQt::CTRL+TQt::Key_Down, 0, 0, 0, TDEShortcut(), false },
{ SubstringCompletion, "SubstringCompletion", I18N_NOOP("Substring Completion"), TQt::CTRL+TQt::Key_T, 0, 0, 0, TDEShortcut(), false },
{ RotateUp, "RotateUp", I18N_NOOP("Previous Item in List"), TQt::Key_Up, 0, 0, 0, TDEShortcut(), false },
{ RotateDown, "RotateDown", I18N_NOOP("Next Item in List"), TQt::Key_Down, 0, 0, 0, TDEShortcut(), false },
{ AccelNone, 0, 0, 0, 0, 0, 0, TDEShortcut(), false }
};

@ -64,7 +64,7 @@ public:
TQVariant v( 0.12345 );
kdDebug() << "Variant: " << v << endl;
v = TQPen( Qt::red );
v = TQPen( TQt::red );
kdDebug() << "Variant: " << v << endl;
TQByteArray data( 6 );

@ -22,8 +22,8 @@ int main(int argc, char *argv[])
// Find some offsets for Europe/London.
const char *london = "Europe/London";
timezone = timezones.zone(london);
TQDateTime winter(TQDateTime::fromString("2005-01-01T00:00:00", Qt::ISODate));
TQDateTime summer(TQDateTime::fromString("2005-06-01T00:00:00", Qt::ISODate));
TQDateTime winter(TQDateTime::fromString("2005-01-01T00:00:00", TQt::ISODate));
TQDateTime summer(TQDateTime::fromString("2005-06-01T00:00:00", TQt::ISODate));
printf( "%s winter timezone offset should be 0: %d\n", london, timezone->offset(winter) );
printf( "%s summer timezone offset should be 3600: %d\n", london, timezone->offset(summer) );
@ -34,13 +34,13 @@ int main(int argc, char *argv[])
const char *gmtBeforePst = "2005-10-30T01:00:00";
const char *gmtAfterPst = "2005-12-01T00:00:00";
TQString result;
result = timezone->convert(losAngeles, TQDateTime::fromString(bstBeforePdt, Qt::ISODate)).toString(Qt::ISODate);
result = timezone->convert(losAngeles, TQDateTime::fromString(bstBeforePdt, TQt::ISODate)).toString(TQt::ISODate);
printf( "BST before PDT, %s should be 2005-03-27T15:00:00: %s\n", bstBeforePdt, result.latin1() );
result = timezone->convert(losAngeles, TQDateTime::fromString(bstAfterPdt, Qt::ISODate)).toString(Qt::ISODate);
result = timezone->convert(losAngeles, TQDateTime::fromString(bstAfterPdt, TQt::ISODate)).toString(TQt::ISODate);
printf( "BST and PDT, %s should be 2005-04-30T16:00:00: %s\n", bstAfterPdt, result.latin1() );
result = timezone->convert(losAngeles, TQDateTime::fromString(gmtBeforePst, Qt::ISODate)).toString(Qt::ISODate);
result = timezone->convert(losAngeles, TQDateTime::fromString(gmtBeforePst, TQt::ISODate)).toString(TQt::ISODate);
printf( "GMT before PST, %s should be 2005-10-29T17:00:00: %s\n", gmtBeforePst, result.latin1() );
result = timezone->convert(losAngeles, TQDateTime::fromString(gmtAfterPst, Qt::ISODate)).toString(Qt::ISODate);
result = timezone->convert(losAngeles, TQDateTime::fromString(gmtAfterPst, TQt::ISODate)).toString(TQt::ISODate);
printf( "GMT and PST, %s should be 2005-11-30T16:00:00: %s\n", gmtAfterPst, result.latin1() );
printf( "Latitude 89 should be valid: %svalid\n", KTimezone::isValidLatitude(89.0) ? "" : "in");
printf( "Latitude 91 should be invalid: %svalid\n", KTimezone::isValidLatitude(91.0) ? "" : "in");

@ -27,13 +27,13 @@ TDEFX_EXPORT void kDrawNextButton(TQPainter *p, int x, int y, int w, int h,
int y2 = y+h-1;
p->fillRect(x+1, y+1, w-2, h-2,
fill ? *fill : g.brush(TQColorGroup::Button));
p->setPen(sunken ? Qt::black : g.light());
p->setPen(sunken ? TQt::black : g.light());
p->drawLine(x, y, x2-1, y);
p->drawLine(x, y, x, y2-1);
p->setPen(sunken ? g.midlight() : g.mid());
p->drawLine(x+1, y2-1, x2-1, y2-1);
p->drawLine(x2-1, y+1, x2-1, y2-1);
p->setPen(sunken ? g.light() : Qt::black);
p->setPen(sunken ? g.light() : TQt::black);
p->drawLine(x, y2, x2, y2);
p->drawLine(x2, y, x2, y2);
p->setPen(oldPen);
@ -161,10 +161,10 @@ TDEFX_EXPORT void kDrawRoundMask(TQPainter *p, int x, int y, int w, int h, bool
3,1,3,2,3,3,3,4,3,0,4,1,4,2,4,3,4,4,4 };
if(clear)
p->fillRect(x, y, w, h, TQBrush(Qt::color0, Qt::SolidPattern));
p->fillRect(x, y, w, h, TQBrush(TQt::color0, TQt::SolidPattern));
TQBrush fillBrush(Qt::color1, Qt::SolidPattern);
p->setPen(Qt::color1);
TQBrush fillBrush(TQt::color1, TQt::SolidPattern);
p->setPen(TQt::color1);
if(w > 16 && h > 16){
int x2 = x+w-1;
int y2 = y+h-1;
@ -223,7 +223,7 @@ TDEFX_EXPORT void kColorBitmaps(TQPainter *p, const TQColorGroup &g, int x, int
blackColor, whiteColor};
TQColor colors[]={g.light(), g.mid(), g.midlight(), g.dark(),
Qt::black, Qt::white};
TQt::black, TQt::white};
int i;
for(i=0; i < 6; ++i){
@ -246,7 +246,7 @@ TDEFX_EXPORT void kColorBitmaps(TQPainter *p, const TQColorGroup &g, int x, int
blackColor, whiteColor};
TQColor colors[]={g.light(), g.mid(), g.midlight(), g.dark(),
Qt::black, Qt::white};
TQt::black, TQt::white};
int i;
TQBitmap b;

@ -125,7 +125,7 @@ TDEFX_EXPORT void kRoundMaskRegion(TQRegion &r, int x, int y, int w, int h);
* @c \#include @c <kdrawutil.h>
*
* Paints the pixels covered by a round button of the given size with
* Qt::color1. This function is useful in TQStyle::drawControlMask().
* TQt::color1. This function is useful in TQStyle::drawControlMask().
*
* @param p The painter to use for drawing the button.
* @param x The X coordinate of the button.
@ -133,7 +133,7 @@ TDEFX_EXPORT void kRoundMaskRegion(TQRegion &r, int x, int y, int w, int h);
* @param w The width of the button.
* @param h The height of the button.
* @param clear Whether to clear the rectangle specified by @p (x, y, w, h) to
* Qt::color0 before drawing the mask.
* TQt::color0 before drawing the mask.
*/
TDEFX_EXPORT void kDrawRoundMask(TQPainter *p, int x, int y, int w, int h, bool clear=false);

@ -2820,7 +2820,7 @@ void KImageEffect::threshold(TQImage &img, unsigned int threshold)
data = (unsigned int *)img.tqcolorTable();
}
for(i=0; i < count; ++i)
data[i] = intensityValue(data[i]) < threshold ? TQColor(Qt::black).rgb() : TQColor(Qt::white).rgb();
data[i] = intensityValue(data[i]) < threshold ? TQColor(TQt::black).rgb() : TQColor(TQt::white).rgb();
}
void KImageEffect::hull(const int x_offset, const int y_offset,

@ -42,7 +42,7 @@ class KPixmapSplitterPrivate;
* splitter.setItemSize( TQSize( 20, 10 ));
*
* TQPixmap item( 20, 10 );
* item.fill( Qt::white );
* item.fill( TQt::white );
* TQRect rect = splitter.coordinates( 4 );
* if ( !rect.isEmpty() )
* bitBlt( &item, TQPoint(0,0), &somePixmap, rect, CopyROP );

@ -537,7 +537,7 @@ void TDEStyle::drawTDEStylePrimitive( TDEStylePrimitive kpe,
break;
default:
p->fillRect(r, Qt::yellow); // Something really bad happened - highlight.
p->fillRect(r, TQt::yellow); // Something really bad happened - highlight.
break;
}
}
@ -1937,7 +1937,7 @@ bool TDEStyle::objectEventHandler( const TQStyleControlElementData &ceData, Cont
TQToolBar *toolbar = ::tqqt_cast< TQToolBar *>( frame );
TQRect r = pe->rect();
if (toolbar && toolbar->orientation() == Qt::Vertical)
if (toolbar && toolbar->orientation() == TQt::Vertical)
horizontal = false;
if (horizontal) {

@ -624,7 +624,7 @@ public:
* keys below represents the allowable modifier parameters for this
* method (note: this was not documented properly in earlier versions):
*
* Qt::ShiftButton, Qt::AltButton, Qt::ControlButton, Qt::MetaButton
* TQt::ShiftButton, TQt::AltButton, TQt::ControlButton, TQt::MetaButton
*
* Parameters:
*
@ -709,7 +709,7 @@ public:
* return false. The list of keys below represents the allowable
* modifier parameters for this method (warning: this was not documented
* properly in earlier versions):
* Qt::ShiftButton, Qt::AltButton, Qt::ControlButton, Qt::MetaButton
* TQt::ShiftButton, TQt::AltButton, TQt::ControlButton, TQt::MetaButton
*
* Parameters:
*

@ -210,7 +210,7 @@ void SourceDisplay::drawContents(TQPainter *p, int clipx, int clipy, int clipw,
p->fillRect(0,height*lineno,linenoWidth,height,palette().active().mid());
p->setPen(palette().active().text());
p->drawText(0,height*lineno,linenoWidth,height,Qt::AlignRight,linenoStr);
p->drawText(0,height*lineno,linenoWidth,height,TQt::AlignRight,linenoStr);
TQColor bgColor;
TQColor textColor;
@ -232,7 +232,7 @@ void SourceDisplay::drawContents(TQPainter *p, int clipx, int clipy, int clipw,
p->fillRect(linenoWidth,height*lineno,right-linenoWidth,height,bgColor);
p->setPen(textColor);
p->drawText(linenoWidth+4,height*lineno,contentsWidth()-linenoWidth-4,height,
Qt::AlignLeft,m_lines[lineno]);
TQt::AlignLeft,m_lines[lineno]);
}
int remainingTop = height*(lastLine+1);
@ -333,7 +333,7 @@ EvalMultiLineEdit::EvalMultiLineEdit(TQWidget *parent)
void EvalMultiLineEdit::keyPressEvent(TQKeyEvent * e)
{
if (e->key() == Qt::Key_Return) {
if (e->key() == TQt::Key_Return) {
if (hasSelectedText()) {
m_code = selectedText();
} else {
@ -374,7 +374,7 @@ KJSDebugWin::KJSDebugWin(TQWidget *parent, const char *name)
TQVBoxLayout *vl = new TQVBoxLayout(mainWidget,5);
// frame list & code
TQSplitter *hsplitter = new TQSplitter(Qt::Vertical,mainWidget);
TQSplitter *hsplitter = new TQSplitter(TQt::Vertical,mainWidget);
TQSplitter *vsplitter = new TQSplitter(hsplitter);
TQFont font(TDEGlobalSettings::fixedFont());
@ -443,20 +443,20 @@ KJSDebugWin::KJSDebugWin(TQWidget *parent, const char *name)
m_actionCollection->setInstance(this);
// Venkman use F12, KDevelop F10
TDEShortcut scNext = TDEShortcut(KKeySequence(KKey(Qt::Key_F12)));
scNext.append(KKeySequence(KKey(Qt::Key_F10)));
TDEShortcut scNext = TDEShortcut(KKeySequence(KKey(TQt::Key_F12)));
scNext.append(KKeySequence(KKey(TQt::Key_F10)));
m_nextAction = new TDEAction(i18n("Next breakpoint","&Next"),"dbgnext",scNext,TQT_TQOBJECT(this),TQT_SLOT(slotNext()),
m_actionCollection,"next");
m_stepAction = new TDEAction(i18n("&Step"),"dbgstep",TDEShortcut(Qt::Key_F11),TQT_TQOBJECT(this),TQT_SLOT(slotStep()),
m_stepAction = new TDEAction(i18n("&Step"),"dbgstep",TDEShortcut(TQt::Key_F11),TQT_TQOBJECT(this),TQT_SLOT(slotStep()),
m_actionCollection,"step");
// Venkman use F5, Kdevelop F9
TDEShortcut scCont = TDEShortcut(KKeySequence(KKey(Qt::Key_F5)));
scCont.append(KKeySequence(KKey(Qt::Key_F9)));
TDEShortcut scCont = TDEShortcut(KKeySequence(KKey(TQt::Key_F5)));
scCont.append(KKeySequence(KKey(TQt::Key_F9)));
m_continueAction = new TDEAction(i18n("&Continue"),"dbgrun",scCont,TQT_TQOBJECT(this),TQT_SLOT(slotContinue()),
m_actionCollection,"cont");
m_stopAction = new TDEAction(i18n("St&op"),"process-stop",TDEShortcut(Qt::Key_F4),TQT_TQOBJECT(this),TQT_SLOT(slotStop()),
m_stopAction = new TDEAction(i18n("St&op"),"process-stop",TDEShortcut(TQt::Key_F4),TQT_TQOBJECT(this),TQT_SLOT(slotStop()),
m_actionCollection,"stop");
m_breakAction = new TDEAction(i18n("&Break at Next Statement"),"dbgrunto",TDEShortcut(Qt::Key_F8),TQT_TQOBJECT(this),TQT_SLOT(slotBreakNext()),
m_breakAction = new TDEAction(i18n("&Break at Next Statement"),"dbgrunto",TDEShortcut(TQt::Key_F8),TQT_TQOBJECT(this),TQT_SLOT(slotBreakNext()),
m_actionCollection,"breaknext");

@ -1018,12 +1018,12 @@ void HTMLGenericFormElementImpl::defaultEventHandler(EventImpl *evt)
// handle tabbing out, either from a single or repeated key event.
if ( evt->id() == EventImpl::KEYPRESS_EVENT && evt->isKeyRelatedEvent() ) {
TQKeyEvent* const k = static_cast<KeyEventBaseImpl *>(evt)->qKeyEvent();
if ( k && (k->key() == Qt::Key_Tab || k->key() == TQt::Key_BackTab) ) {
if ( k && (k->key() == TQt::Key_Tab || k->key() == TQt::Key_BackTab) ) {
TQWidget* const widget = static_cast<RenderWidget*>(m_render)->widget();
TQFocusEvent::setReason( k->key() == Qt::Key_Tab ? TQFocusEvent::Tab : TQFocusEvent::Backtab );
TQFocusEvent::setReason( k->key() == TQt::Key_Tab ? TQFocusEvent::Tab : TQFocusEvent::Backtab );
if (widget)
static_cast<FocusHandleWidget *>(widget)
->focusNextPrev(k->key() == Qt::Key_Tab);
->focusNextPrev(k->key() == TQt::Key_Tab);
TQFocusEvent::resetReason();
evt->setDefaultHandled();
}
@ -1119,7 +1119,7 @@ void HTMLButtonElementImpl::defaultEventHandler(EventImpl *evt)
bool act = (evt->id() == EventImpl::DOMACTIVATE_EVENT);
if (!act && evt->id()==EventImpl::KEYUP_EVENT && evt->isKeyRelatedEvent()) {
TQKeyEvent* const ke = static_cast<KeyEventBaseImpl *>(evt)->qKeyEvent();
if (ke && active() && (ke->key() == Qt::Key_Return || ke->key() == Qt::Key_Enter || ke->key() == Qt::Key_Space))
if (ke && active() && (ke->key() == TQt::Key_Return || ke->key() == TQt::Key_Enter || ke->key() == TQt::Key_Space))
act = true;
}
if (act)
@ -1143,7 +1143,7 @@ void HTMLButtonElementImpl::activate()
void HTMLButtonElementImpl::click()
{
TQMouseEvent me(TQEvent::MouseButtonRelease, TQPoint(0,0),Qt::LeftButton, 0);
TQMouseEvent me(TQEvent::MouseButtonRelease, TQPoint(0,0),TQt::LeftButton, 0);
dispatchMouseEvent(&me,EventImpl::CLICK_EVENT, 1);
}
@ -1359,7 +1359,7 @@ void HTMLInputElementImpl::select( )
void HTMLInputElementImpl::click()
{
TQMouseEvent me(TQEvent::MouseButtonRelease, TQPoint(0,0),Qt::LeftButton, 0);
TQMouseEvent me(TQEvent::MouseButtonRelease, TQPoint(0,0),TQt::LeftButton, 0);
dispatchMouseEvent(&me,0, 1);
dispatchMouseEvent(&me,EventImpl::CLICK_EVENT, 1);
}
@ -1801,7 +1801,7 @@ void HTMLInputElementImpl::defaultEventHandler(EventImpl *evt)
bool act = (evt->id() == EventImpl::DOMACTIVATE_EVENT);
if (!act && evt->id() == EventImpl::KEYUP_EVENT && evt->isKeyRelatedEvent()) {
TQKeyEvent* const ke = static_cast<KeyEventBaseImpl *>(evt)->qKeyEvent();
if (ke && active() && (ke->key() == Qt::Key_Return || ke->key() == Qt::Key_Enter || ke->key() == Qt::Key_Space))
if (ke && active() && (ke->key() == TQt::Key_Return || ke->key() == TQt::Key_Enter || ke->key() == TQt::Key_Space))
act = true;
}
if (act)
@ -1917,7 +1917,7 @@ void HTMLLabelElementImpl::defaultEventHandler(EventImpl *evt)
else if ( evt->isKeyRelatedEvent() && ( evt->id() == EventImpl::KEYUP_EVENT ||
evt->id() == EventImpl::KEYPRESS_EVENT ) ) {
TQKeyEvent* const ke = static_cast<KeyEventBaseImpl *>(evt)->qKeyEvent();
if (ke && active() && (ke->key() == Qt::Key_Return || ke->key() == Qt::Key_Enter || ke->key() == Qt::Key_Space))
if (ke && active() && (ke->key() == TQt::Key_Return || ke->key() == TQt::Key_Enter || ke->key() == TQt::Key_Space))
act = true;
}

@ -132,11 +132,11 @@ void HTMLAnchorElementImpl::defaultEventHandler(EventImpl *evt)
state |= TQt::MetaButton;
if ( e->button() == 0 )
button = Qt::LeftButton;
button = TQt::LeftButton;
else if ( e->button() == 1 )
button = Qt::MidButton;
button = TQt::MidButton;
else if ( e->button() == 2 )
button = Qt::RightButton;
button = TQt::RightButton;
}
else if ( k )
{
@ -166,7 +166,7 @@ void HTMLAnchorElementImpl::defaultEventHandler(EventImpl *evt)
void HTMLAnchorElementImpl::click()
{
TQMouseEvent me(TQEvent::MouseButtonRelease, TQPoint(0,0),Qt::LeftButton, 0);
TQMouseEvent me(TQEvent::MouseButtonRelease, TQPoint(0,0),TQt::LeftButton, 0);
dispatchMouseEvent(&me,EventImpl::CLICK_EVENT, 1);
}

@ -50,7 +50,7 @@ KJavaAppletWidget::KJavaAppletWidget( TQWidget* parent, const char* name )
d->tmplabel = new TQLabel( this );
d->tmplabel->setText( KJavaAppletServer::getAppletLabel() );
d->tmplabel->setAlignment( Qt::AlignCenter | TQt::WordBreak );
d->tmplabel->setAlignment( TQt::AlignCenter | TQt::WordBreak );
d->tmplabel->setFrameStyle( TQFrame::StyledPanel | TQFrame::Sunken );
d->tmplabel->show();

@ -695,9 +695,9 @@ void RenderBlock::layoutBlock(bool relayoutChildren)
if (scrollsOverflow() && m_layer) {
// For overflow:scroll blocks, ensure we have both scrollbars in place always.
if (style()->overflowX() == OSCROLL)
m_layer->showScrollbar( Qt::Horizontal, true );
m_layer->showScrollbar( TQt::Horizontal, true );
if (style()->overflowY() == OSCROLL)
m_layer->showScrollbar( Qt::Vertical, true );
m_layer->showScrollbar( TQt::Vertical, true );
}
setContainsPageBreak(false);

@ -644,8 +644,8 @@ void RenderBox::paintBackgroundExtended(TQPainter *p, const TQColor &c, const Ba
void RenderBox::outlineBox(TQPainter *p, int _tx, int _ty, const char *color)
{
p->setPen(TQPen(TQColor(color), 1, Qt::DotLine));
p->setBrush( Qt::NoBrush );
p->setPen(TQPen(TQColor(color), 1, TQt::DotLine));
p->setBrush( TQt::NoBrush );
p->drawRect(_tx, _ty, m_width, m_height);
}

@ -99,25 +99,25 @@ void RenderFormElement::layout()
setNeedsLayout(false);
}
Qt::AlignmentFlags RenderFormElement::textAlignment() const
TQt::AlignmentFlags RenderFormElement::textAlignment() const
{
switch (style()->textAlign()) {
case LEFT:
case TDEHTML_LEFT:
return Qt::AlignLeft;
return TQt::AlignLeft;
case RIGHT:
case TDEHTML_RIGHT:
return Qt::AlignRight;
return TQt::AlignRight;
case CENTER:
case TDEHTML_CENTER:
return Qt::AlignHCenter;
return TQt::AlignHCenter;
case JUSTIFY:
// Just fall into the auto code for justify.
case TAAUTO:
return style()->direction() == RTL ? Qt::AlignRight : Qt::AlignLeft;
return style()->direction() == RTL ? TQt::AlignRight : TQt::AlignLeft;
}
assert(false); // Should never be reached.
return Qt::AlignLeft;
return TQt::AlignLeft;
}
// -------------------------------------------------------------------------

@ -95,7 +95,7 @@ public:
protected:
virtual bool isRenderButton() const { return false; }
virtual bool isEditable() const { return false; }
Qt::AlignmentFlags textAlignment() const;
TQt::AlignmentFlags textAlignment() const;
TQPoint m_mousePos;
int m_state;

@ -66,7 +66,7 @@ RenderFrameSet::RenderFrameSet( HTMLFrameSetElementImpl *frameSet)
m_resizing = m_clientresizing= false;
m_cursor = Qt::ArrowCursor;
m_cursor = TQt::ArrowCursor;
m_hSplit = -1;
m_vSplit = -1;
@ -498,13 +498,13 @@ bool RenderFrameSet::userResize( MouseEventImpl *evt )
}
m_cursor = Qt::ArrowCursor;
m_cursor = TQt::ArrowCursor;
if(m_hSplit != -1 && m_vSplit != -1)
m_cursor = Qt::SizeAllCursor;
m_cursor = TQt::SizeAllCursor;
else if( m_vSplit != -1 )
m_cursor = Qt::SizeHorCursor;
m_cursor = TQt::SizeHorCursor;
else if( m_hSplit != -1 )
m_cursor = Qt::SizeVerCursor;
m_cursor = TQt::SizeVerCursor;
if(!m_resizing && evt->id() == EventImpl::MOUSEDOWN_EVENT)
{
@ -548,8 +548,8 @@ bool RenderFrameSet::userResize( MouseEventImpl *evt )
TDEHTMLView *view = canvas()->view();
if ((m_resizing || evt->id() == EventImpl::MOUSEUP_EVENT) && view) {
TQPainter paint( view );
paint.setPen( Qt::gray );
paint.setBrush( Qt::gray );
paint.setPen( TQt::gray );
paint.setBrush( TQt::gray );
paint.setRasterOp( TQt::XorROP );
TQRect r(xPos(), yPos(), width(), height());
const int rBord = 3;

@ -61,7 +61,7 @@ public:
bool canResize( int _x, int _y);
void setResizing(bool e);
Qt::CursorShape cursorShape() const { return m_cursor; }
TQt::CursorShape cursorShape() const { return m_cursor; }
bool nodeAtPoint(NodeInfo& info, int x, int y, int tx, int ty, HitTestAction hitTestAction, bool inside);
@ -73,7 +73,7 @@ public:
#endif
private:
Qt::CursorShape m_cursor;
TQt::CursorShape m_cursor;
int m_oldpos;
int m_gridLen[2];
int* m_gridDelta[2];

@ -358,7 +358,7 @@ void RenderGlyph::paint(PaintInfo& paintInfo, int _tx, int _ty)
p->drawEllipse( marker );
return;
case LCIRCLE:
p->setBrush( Qt::NoBrush );
p->setBrush( TQt::NoBrush );
p->drawEllipse( marker );
return;
case LSQUARE:
@ -366,7 +366,7 @@ void RenderGlyph::paint(PaintInfo& paintInfo, int _tx, int _ty)
p->drawRect( marker );
return;
case LBOX:
p->setBrush( Qt::NoBrush );
p->setBrush( TQt::NoBrush );
p->drawRect( marker );
return;
case LDIAMOND: {

@ -243,10 +243,10 @@ void RenderImage::paint(PaintInfo& paintInfo, int _tx, int _ty)
if (bUnfinishedImageFrame && paintInfo.phase == PaintActionForeground && cWidth > 2 && cHeight > 2 && !complete()) {
static TQPixmap *loadingIcon;
TQColor bg = tdehtml::retrieveBackgroundColor(this);
TQColor fg = tdehtml::hasSufficientContrast(Qt::gray, bg) ? Qt::gray :
(hasSufficientContrast(Qt::white, bg) ? Qt::white : Qt::black);
TQColor fg = tdehtml::hasSufficientContrast(TQt::gray, bg) ? TQt::gray :
(hasSufficientContrast(TQt::white, bg) ? TQt::white : TQt::black);
paintInfo.p->setPen(TQPen(fg, 1));
paintInfo.p->setBrush( Qt::NoBrush );
paintInfo.p->setBrush( TQt::NoBrush );
paintInfo.p->drawRect(_tx, _ty, m_width, m_height);
if (!(m_width <= 5 || m_height <= 5)) {
if (!loadingIcon) {
@ -289,7 +289,7 @@ void RenderImage::paint(PaintInfo& paintInfo, int _tx, int _ty)
}
else if (i && !i->isTransparent())
{
paintInfo.p->setPen( Qt::black ); // used for bitmaps
paintInfo.p->setPen( TQt::black ); // used for bitmaps
const TQPixmap& pix = i->pixmap();
if ( (cWidth != intrinsicWidth() || cHeight != intrinsicHeight()) &&
pix.width() > 0 && pix.height() > 0 && i->valid_rect().isValid())
@ -371,7 +371,7 @@ void RenderImage::paint(PaintInfo& paintInfo, int _tx, int _ty)
paintInfo.p->setBrushOrigin(_tx, _ty - paintInfo.r.y());
paintInfo.p->fillRect(_tx, _ty, width(), height(),
TQBrush(style()->palette().active().highlight(),
Qt::Dense4Pattern));
TQt::Dense4Pattern));
}
}
}

@ -678,7 +678,7 @@ static void paintOutlineSegment(RenderObject *o, TQPainter *p, int tx, int ty,
}
// kdDebug(6040) << "segment(" << x1 << "," << y1 << ") - (" << x2 << "," << y2 << ")" << endl;
/* p->setPen(Qt::gray);
/* p->setPen(TQt::gray);
p->drawLine(x1,y1,x2,y2);*/
switch (curBS) {
case RenderObject::BSLeft:

@ -604,9 +604,9 @@ void RenderLayer::updateScrollPositionFromScrollbars()
}
void
RenderLayer::showScrollbar(Qt::Orientation o, bool show)
RenderLayer::showScrollbar(TQt::Orientation o, bool show)
{
TQScrollBar *sb = (o == Qt::Horizontal) ? m_hBar : m_vBar;
TQScrollBar *sb = (o == TQt::Horizontal) ? m_hBar : m_vBar;
if (show && !sb) {
TQScrollView* scrollView = m_object->document()->view();
@ -623,7 +623,7 @@ RenderLayer::showScrollbar(Qt::Orientation o, bool show)
sb = 0;
}
if (o == Qt::Horizontal)
if (o == TQt::Horizontal)
m_hBar = sb;
else
m_vBar = sb;
@ -749,12 +749,12 @@ void RenderLayer::checkScrollbarsAfterLayout()
|| (hasOvf && m_object->style()->overflowY() == OAUTO && haveVerticalBar != needVerticalBar);
if (scrollbarsChanged) {
if (m_object->style()->overflowX() == OAUTO) {
showScrollbar(Qt::Horizontal, needHorizontalBar);
showScrollbar(TQt::Horizontal, needHorizontalBar);
if (m_hBar)
m_hBar->setEnabled(true);
}
if (m_object->style()->overflowY() == OAUTO) {
showScrollbar(Qt::Vertical, needVerticalBar);
showScrollbar(TQt::Vertical, needVerticalBar);
if (m_vBar)
m_vBar->setEnabled(true);
}
@ -956,8 +956,8 @@ void RenderLayer::paintLayer(RenderLayer* rootLayer, TQPainter *p,
int ax=0;
int ay=0;
renderer()->absolutePosition( ax, ay );
p->setPen(TQPen(TQColor("yellow"), 1, Qt::DotLine));
p->setBrush( Qt::NoBrush );
p->setPen(TQPen(TQColor("yellow"), 1, TQt::DotLine));
p->setBrush( TQt::NoBrush );
p->drawRect(ax, ay, width(), height());
}
#endif

@ -193,7 +193,7 @@ public:
void scrollToOffset(int x, int y, bool updateScrollbars = true, bool repaint = true);
void scrollToXOffset(int x) { scrollToOffset(x, m_scrollY); }
void scrollToYOffset(int y) { scrollToOffset(m_scrollX, y); }
void showScrollbar(Qt::Orientation, bool);
void showScrollbar(TQt::Orientation, bool);
TQScrollBar* horizontalScrollbar() { return m_hBar; }
TQScrollBar* verticalScrollbar() { return m_vBar; }
int verticalScrollbarWidth();

@ -299,7 +299,7 @@ void RenderListMarker::paint(PaintInfo& paintInfo, int _tx, int _ty)
}
#ifdef BOX_DEBUG
p->setPen( Qt::red );
p->setPen( TQt::red );
p->drawRect( _tx + xoff, _ty + yoff, offset, offset );
#endif
@ -312,7 +312,7 @@ void RenderListMarker::paint(PaintInfo& paintInfo, int _tx, int _ty)
p->drawEllipse( _tx + xoff, _ty + (3 * yoff)/2, (offset>>1)+1, (offset>>1)+1 );
return;
case LCIRCLE:
p->setBrush( Qt::NoBrush );
p->setBrush( TQt::NoBrush );
p->drawEllipse( _tx + xoff, _ty + (3 * yoff)/2, (offset>>1)+1, (offset>>1)+1 );
return;
case LSQUARE:
@ -320,7 +320,7 @@ void RenderListMarker::paint(PaintInfo& paintInfo, int _tx, int _ty)
p->drawRect( _tx + xoff, _ty + (3 * yoff)/2, (offset>>1)+1, (offset>>1)+1 );
return;
case LBOX:
p->setBrush( Qt::NoBrush );
p->setBrush( TQt::NoBrush );
p->drawRect( _tx + xoff, _ty + (3 * yoff)/2, (offset>>1)+1, (offset>>1)+1 );
return;
case LDIAMOND: {
@ -342,25 +342,25 @@ void RenderListMarker::paint(PaintInfo& paintInfo, int _tx, int _ty)
if (!m_item.isEmpty()) {
if(listPositionInside()) {
if( style()->direction() == LTR) {
p->drawText(_tx, _ty, 0, 0, Qt::AlignLeft|TQt::DontClip, m_item);
p->drawText(_tx + fm.width(m_item), _ty, 0, 0, Qt::AlignLeft|TQt::DontClip,
p->drawText(_tx, _ty, 0, 0, TQt::AlignLeft|TQt::DontClip, m_item);
p->drawText(_tx + fm.width(m_item), _ty, 0, 0, TQt::AlignLeft|TQt::DontClip,
TQString::fromLatin1(". "));
}
else {
const TQString& punct(TQString::fromLatin1(" ."));
p->drawText(_tx, _ty, 0, 0, Qt::AlignLeft|TQt::DontClip, punct);
p->drawText(_tx + fm.width(punct), _ty, 0, 0, Qt::AlignLeft|TQt::DontClip, m_item);
p->drawText(_tx, _ty, 0, 0, TQt::AlignLeft|TQt::DontClip, punct);
p->drawText(_tx + fm.width(punct), _ty, 0, 0, TQt::AlignLeft|TQt::DontClip, m_item);
}
} else {
if (style()->direction() == LTR) {
const TQString& punct(TQString::fromLatin1(". "));
p->drawText(_tx-offset/2, _ty, 0, 0, Qt::AlignRight|TQt::DontClip, punct);
p->drawText(_tx-offset/2-fm.width(punct), _ty, 0, 0, Qt::AlignRight|TQt::DontClip, m_item);
p->drawText(_tx-offset/2, _ty, 0, 0, TQt::AlignRight|TQt::DontClip, punct);
p->drawText(_tx-offset/2-fm.width(punct), _ty, 0, 0, TQt::AlignRight|TQt::DontClip, m_item);
}
else {
const TQString& punct(TQString::fromLatin1(" ."));
p->drawText(_tx+offset/2, _ty, 0, 0, Qt::AlignLeft|TQt::DontClip, punct);
p->drawText(_tx+offset/2+fm.width(punct), _ty, 0, 0, Qt::AlignLeft|TQt::DontClip, m_item);
p->drawText(_tx+offset/2, _ty, 0, 0, TQt::AlignLeft|TQt::DontClip, punct);
p->drawText(_tx+offset/2+fm.width(punct), _ty, 0, 0, TQt::AlignLeft|TQt::DontClip, m_item);
}
}
}

@ -722,7 +722,7 @@ static void calc3DColor(TQColor &color, bool darken)
int g = gb - (f0 * gb / 100);
int b = bb - (f0 * bb / 100);
if ((r == rb) && (g == gb) && (b == bb))
color = (color == Qt::black) ? DARK_GRAY : Qt::black;
color = (color == TQt::black) ? DARK_GRAY : TQt::black;
else
color.setRgb(r, g, b);
} else {
@ -730,7 +730,7 @@ static void calc3DColor(TQColor &color, bool darken)
int g = kMin(gb + (f1 * (MAX_COLOR - gb) / 100), 255);
int b = kMin(bb + (f1 * (MAX_COLOR - bb) / 100), 255);
if ((r == rb) && (g == gb) && (b == bb))
color = (color == Qt::white) ? LIGHT_GRAY : Qt::white;
color = (color == TQt::white) ? LIGHT_GRAY : TQt::white;
else
color.setRgb(r, g, b);
}
@ -749,12 +749,12 @@ void RenderObject::drawBorder(TQPainter *p, int x1, int y1, int x2, int y2,
if(invalidisInvert)
{
p->setRasterOp(TQt::XorROP);
c = Qt::white;
c = TQt::white;
}
else {
if(style == INSET || style == OUTSET || style == RIDGE || style ==
GROOVE)
c = Qt::white;
c = TQt::white;
else
c = textcolor;
}
@ -773,7 +773,7 @@ void RenderObject::drawBorder(TQPainter *p, int x1, int y1, int x2, int y2,
case DOTTED:
if ( width == 1 ) {
// workaround Qt brokenness
p->setPen(TQPen(c, width, Qt::SolidLine));
p->setPen(TQPen(c, width, TQt::SolidLine));
switch(s) {
case BSBottom:
case BSTop:
@ -788,11 +788,11 @@ void RenderObject::drawBorder(TQPainter *p, int x1, int y1, int x2, int y2,
break;
}
p->setPen(TQPen(c, width, Qt::DotLine));
p->setPen(TQPen(c, width, TQt::DotLine));
/* nobreak; */
case DASHED:
if(style == DASHED)
p->setPen(TQPen(c, width == 1 ? 0 : width, width == 1 ? Qt::DotLine : Qt::DashLine));
p->setPen(TQPen(c, width == 1 ? 0 : width, width == 1 ? TQt::DotLine : TQt::DashLine));
if (width > 0)
switch(s) {
@ -813,7 +813,7 @@ void RenderObject::drawBorder(TQPainter *p, int x1, int y1, int x2, int y2,
if (adjbw1 == 0 && adjbw2 == 0)
{
p->setPen(Qt::NoPen);
p->setPen(TQt::NoPen);
p->setBrush(c);
switch(s)
{
@ -921,7 +921,7 @@ void RenderObject::drawBorder(TQPainter *p, int x1, int y1, int x2, int y2,
(style == INSET && ( s == BSTop || s == BSLeft ) ) );
/* nobreak; */
case SOLID:
p->setPen(Qt::NoPen);
p->setPen(TQt::NoPen);
p->setBrush(c);
Q_ASSERT(x2>=x1);
Q_ASSERT(y2>=y1);

@ -316,12 +316,12 @@ void RenderWidget::updateFromElement()
if (v > 128)
// dark bg, light fg - need a darker disabled fg
disfg = disfg.dark(lowlightVal);
else if (disfg != Qt::black)
else if (disfg != TQt::black)
// light bg, dark fg - need a lighter disabled fg - but only if !black
disfg = disfg.light(highlightVal);
else
// black fg - use darkgray disabled fg
disfg = Qt::darkGray;
disfg = TQt::darkGray;
pal.setColor(TQPalette::Disabled,TQColorGroup::Foreground,disfg);
}
@ -784,13 +784,13 @@ bool RenderWidget::handleEvent(const DOM::EventImpl& ev)
}
switch (me.button()) {
case 0:
button = Qt::LeftButton;
button = TQt::LeftButton;
break;
case 1:
button = Qt::MidButton;
button = TQt::MidButton;
break;
case 2:
button = Qt::RightButton;
button = TQt::RightButton;
break;
default:
break;
@ -847,7 +847,7 @@ bool RenderWidget::handleEvent(const DOM::EventImpl& ev)
// DOM: Down Press | Press | Up
// Qt: (nothing) Press | Release(autorepeat) + Press(autorepeat) | Release
//
// Qt::KeyPress is sent for DOM keypress and not DOM keydown to allow
// TQt::KeyPress is sent for DOM keypress and not DOM keydown to allow
// sites to block a key with onkeypress, #99749
TQKeyEvent* const ke = domKeyEv.qKeyEvent();

@ -1450,7 +1450,7 @@ public:
static short initialBorderHorizontalSpacing() { return 0; }
static short initialBorderVerticalSpacing() { return 0; }
static ECursor initialCursor() { return CURSOR_AUTO; }
static TQColor initialColor() { return Qt::black; }
static TQColor initialColor() { return TQt::black; }
static CachedImage* initialBackgroundImage() { return 0; }
static CachedImage* initialListStyleImage() { return 0; }
static unsigned short initialBorderWidth() { return 3; }

@ -2699,8 +2699,8 @@ int RenderTableCell::borderBottom() const
static void outlineBox(TQPainter *p, int _tx, int _ty, int w, int h)
{
p->setPen(TQPen(TQColor("yellow"), 3, Qt::DotLine));
p->setBrush( Qt::NoBrush );
p->setPen(TQPen(TQColor("yellow"), 3, TQt::DotLine));
p->setBrush( TQt::NoBrush );
p->drawRect(_tx, _ty, w, h );
}
#endif

@ -398,7 +398,7 @@ void InlineTextBox::paintShadow(TQPainter *pt, const Font *f, int _tx, int _ty,
}
}
pt->drawImage(x-thickness, y-thickness, res, 0, 0, -1, -1, Qt::DiffuseAlphaDither | Qt::ColorOnly | Qt::PreferDither);
pt->drawImage(x-thickness, y-thickness, res, 0, 0, -1, -1, TQt::DiffuseAlphaDither | TQt::ColorOnly | TQt::PreferDither);
}
// Paint next shadow effect
if (shadow->next) paintShadow(pt, f, _tx, _ty, shadow->next);

@ -150,7 +150,7 @@ void TDEHTMLPartIface::activateNode()
{
KParts::ReadOnlyPart* p = part->currentFrame();
if ( p && p->widget() ) {
TQKeyEvent ev( TQKeyEvent::KeyPress, Qt::Key_Return, '\n', 0, "\n" );
TQKeyEvent ev( TQKeyEvent::KeyPress, TQt::Key_Return, '\n', 0, "\n" );
TQApplication::sendEvent( p->widget(), &ev );
}
}

@ -3933,7 +3933,7 @@ bool TDEHTMLPart::urlSelectedIntern( const TQString &url, int button, int state,
return true;
}
if ( button == Qt::LeftButton && ( state & ShiftButton ) )
if ( button == TQt::LeftButton && ( state & ShiftButton ) )
{
TDEIO::MetaData metaData;
metaData["referrer"] = d->m_referrer;
@ -3972,7 +3972,7 @@ bool TDEHTMLPart::urlSelectedIntern( const TQString &url, int button, int state,
args.metaData()["referrer"] = d->m_referrer;
if ( button == Qt::NoButton && (state & ShiftButton) && (state & ControlButton) )
if ( button == TQt::NoButton && (state & ShiftButton) && (state & ControlButton) )
{
emit d->m_extension->createNewWindow( cURL, args );
return true;
@ -5839,7 +5839,7 @@ TQString TDEHTMLPart::lastModified() const
// Done on demand to save time when this isn't needed - but can lead
// to slightly wrong results if updating the file on disk w/o reloading.
TQDateTime lastModif = TQFileInfo( m_url.path() ).lastModified();
d->m_lastModified = lastModif.toString( Qt::LocalDate );
d->m_lastModified = lastModif.toString( TQt::LocalDate );
}
//kdDebug(6050) << "TDEHTMLPart::lastModified: " << d->m_lastModified << endl;
return d->m_lastModified;
@ -6062,13 +6062,13 @@ void TDEHTMLPart::tdehtmlMousePressEvent( tdehtml::MousePressEvent *event )
else
d->m_strSelectedURL = d->m_strSelectedURLTarget = TQString();
if ( _mouse->button() == Qt::LeftButton ||
_mouse->button() == Qt::MidButton )
if ( _mouse->button() == TQt::LeftButton ||
_mouse->button() == TQt::MidButton )
{
d->m_bMousePressed = true;
#ifndef TDEHTML_NO_SELECTION
if ( _mouse->button() == Qt::LeftButton )
if ( _mouse->button() == TQt::LeftButton )
{
if ( (!d->m_strSelectedURL.isNull() && !isEditable())
|| (!d->m_mousePressNode.isNull() && d->m_mousePressNode.elementId() == ID_IMG) )
@ -6116,10 +6116,10 @@ void TDEHTMLPart::tdehtmlMousePressEvent( tdehtml::MousePressEvent *event )
#endif
}
if ( _mouse->button() == Qt::RightButton && parentPart() != 0 && d->m_bBackRightClick )
if ( _mouse->button() == TQt::RightButton && parentPart() != 0 && d->m_bBackRightClick )
{
d->m_bRightMousePressed = true;
} else if ( _mouse->button() == Qt::RightButton )
} else if ( _mouse->button() == TQt::RightButton )
{
popupMenu( d->m_strSelectedURL );
// might be deleted, don't touch "this"
@ -6129,7 +6129,7 @@ void TDEHTMLPart::tdehtmlMousePressEvent( tdehtml::MousePressEvent *event )
void TDEHTMLPart::tdehtmlMouseDoubleClickEvent( tdehtml::MouseDoubleClickEvent *event )
{
TQMouseEvent *_mouse = event->qmouseEvent();
if ( _mouse->button() == Qt::LeftButton )
if ( _mouse->button() == TQt::LeftButton )
{
d->m_bMousePressed = true;
DOM::Node innerNode = event->innerNode();
@ -6498,7 +6498,7 @@ void TDEHTMLPart::tdehtmlMouseMoveEvent( tdehtml::MouseMoveEvent *event )
#ifndef TDEHTML_NO_SELECTION
// selection stuff
if( d->m_bMousePressed && innerNode.handle() && innerNode.handle()->renderer() &&
( (_mouse->state() & Qt::LeftButton) != 0 )) {
( (_mouse->state() & TQt::LeftButton) != 0 )) {
extendSelectionTo(event->x(), event->y(),
event->absX(), event->absY(), innerNode);
#else
@ -6530,7 +6530,7 @@ void TDEHTMLPart::tdehtmlMouseReleaseEvent( tdehtml::MouseReleaseEvent *event )
d->m_bMousePressed = false;
TQMouseEvent *_mouse = event->qmouseEvent();
if ( _mouse->button() == Qt::RightButton && parentPart() != 0 && d->m_bBackRightClick )
if ( _mouse->button() == TQt::RightButton && parentPart() != 0 && d->m_bBackRightClick )
{
d->m_bRightMousePressed = false;
KParts::BrowserInterface *tmp_iface = d->m_extension->browserInterface();
@ -6539,7 +6539,7 @@ void TDEHTMLPart::tdehtmlMouseReleaseEvent( tdehtml::MouseReleaseEvent *event )
}
}
#ifndef TQT_NO_CLIPBOARD
if ((d->m_guiProfile == BrowserViewGUI) && (_mouse->button() == Qt::MidButton) && (event->url().isNull())) {
if ((d->m_guiProfile == BrowserViewGUI) && (_mouse->button() == TQt::MidButton) && (event->url().isNull())) {
kdDebug( 6050 ) << "TDEHTMLPart::tdehtmlMouseReleaseEvent() MMB shouldOpen="
<< d->m_bOpenMiddleClick << endl;

@ -941,7 +941,7 @@ void TDEHTMLView::closeEvent( TQCloseEvent* ev )
void TDEHTMLView::viewportMousePressEvent( TQMouseEvent *_mouse )
{
if (!m_part->xmlDocImpl()) return;
if (d->possibleTripleClick && ( _mouse->button() & Qt::MouseButtonMask ) == Qt::LeftButton)
if (d->possibleTripleClick && ( _mouse->button() & TQt::MouseButtonMask ) == TQt::LeftButton)
{
viewportMouseDoubleClickEvent( _mouse ); // it handles triple clicks too
return;
@ -958,7 +958,7 @@ void TDEHTMLView::viewportMousePressEvent( TQMouseEvent *_mouse )
//kdDebug(6000) << "innerNode="<<mev.innerNode.nodeName().string()<<endl;
if ( (_mouse->button() == Qt::MidButton) &&
if ( (_mouse->button() == TQt::MidButton) &&
!m_part->d->m_bOpenMiddleClick && !d->m_mouseScrollTimer &&
mev.url.isNull() && (mev.innerNode.elementId() != ID_INPUT) ) {
TQPoint point = mapFromGlobal( _mouse->globalPos() );
@ -1168,7 +1168,7 @@ void TDEHTMLView::viewportMouseMoveEvent( TQMouseEvent * _mouse )
DOM::NodeImpl::MouseEvent mev( _mouse->stateAfter(), DOM::NodeImpl::MouseMove );
// Do not modify :hover/:active state while mouse is pressed.
m_part->xmlDocImpl()->prepareMouseEvent( _mouse->state() & Qt::MouseButtonMask /*readonly ?*/, xm, ym, &mev );
m_part->xmlDocImpl()->prepareMouseEvent( _mouse->state() & TQt::MouseButtonMask /*readonly ?*/, xm, ym, &mev );
// kdDebug(6000) << "mouse move: " << _mouse->pos()
// << " button " << _mouse->button()
@ -1341,7 +1341,7 @@ void TDEHTMLView::viewportMouseReleaseEvent( TQMouseEvent * _mouse )
DOM::NodeImpl* fn = m_part->xmlDocImpl()->focusNode();
if (fn && fn != mev.innerNode.handle() &&
fn->renderer() && fn->renderer()->isWidget() &&
_mouse->button() != Qt::MidButton) {
_mouse->button() != TQt::MidButton) {
forwardPeripheralEvent(static_cast<tdehtml::RenderWidget*>(fn->renderer()), _mouse, xm, ym);
}
@ -2884,15 +2884,15 @@ void TDEHTMLView::print(bool quick)
if (printHeader)
{
int available_width = metrics.width() - 10 -
2 * kMax(p->boundingRect(0, 0, metrics.width(), p->fontMetrics().lineSpacing(), Qt::AlignLeft, headerLeft).width(),
p->boundingRect(0, 0, metrics.width(), p->fontMetrics().lineSpacing(), Qt::AlignLeft, headerRight).width());
2 * kMax(p->boundingRect(0, 0, metrics.width(), p->fontMetrics().lineSpacing(), TQt::AlignLeft, headerLeft).width(),
p->boundingRect(0, 0, metrics.width(), p->fontMetrics().lineSpacing(), TQt::AlignLeft, headerRight).width());
if (available_width < 150)
available_width = 150;
int mid_width;
int squeeze = 120;
do {
headerMid = KStringHandler::csqueeze(docname, squeeze);
mid_width = p->boundingRect(0, 0, metrics.width(), p->fontMetrics().lineSpacing(), Qt::AlignLeft, headerMid).width();
mid_width = p->boundingRect(0, 0, metrics.width(), p->fontMetrics().lineSpacing(), TQt::AlignLeft, headerMid).width();
squeeze -= 10;
} while (mid_width > available_width);
}
@ -2906,14 +2906,14 @@ void TDEHTMLView::print(bool quick)
if (printHeader)
{
int dy = p->fontMetrics().lineSpacing();
p->setPen(Qt::black);
p->setPen(TQt::black);
p->setFont(headerFont);
headerRight = TQString("#%1").arg(page);
p->drawText(0, 0, metrics.width(), dy, Qt::AlignLeft, headerLeft);
p->drawText(0, 0, metrics.width(), dy, Qt::AlignHCenter, headerMid);
p->drawText(0, 0, metrics.width(), dy, Qt::AlignRight, headerRight);
p->drawText(0, 0, metrics.width(), dy, TQt::AlignLeft, headerLeft);
p->drawText(0, 0, metrics.width(), dy, TQt::AlignHCenter, headerMid);
p->drawText(0, 0, metrics.width(), dy, TQt::AlignRight, headerRight);
}
@ -3156,13 +3156,13 @@ bool TDEHTMLView::dispatchMouseEvent(int eventId, DOM::NodeImpl *targetNode,
int screenY = _mouse->globalY();
int button = -1;
switch (_mouse->button()) {
case Qt::LeftButton:
case TQt::LeftButton:
button = 0;
break;
case Qt::MidButton:
case TQt::MidButton:
button = 1;
break;
case Qt::RightButton:
case TQt::RightButton:
button = 2;
break;
default:
@ -3278,12 +3278,12 @@ void TDEHTMLView::viewportWheelEvent(TQWheelEvent* e)
{
e->accept();
}
else if( ( (e->orientation() == Qt::Vertical &&
else if( ( (e->orientation() == TQt::Vertical &&
((d->ignoreWheelEvents && !verticalScrollBar()->isVisible())
|| e->delta() > 0 && contentsY() <= 0
|| e->delta() < 0 && contentsY() >= contentsHeight() - visibleHeight()))
||
(e->orientation() == Qt::Horizontal &&
(e->orientation() == TQt::Horizontal &&
((d->ignoreWheelEvents && !horizontalScrollBar()->isVisible())
|| e->delta() > 0 && contentsX() <=0
|| e->delta() < 0 && contentsX() >= contentsWidth() - visibleWidth())))
@ -3302,7 +3302,7 @@ void TDEHTMLView::viewportWheelEvent(TQWheelEvent* e)
TQScrollView::viewportWheelEvent( e );
#endif
TQMouseEvent *tempEvent = new TQMouseEvent( TQEvent::MouseMove, TQPoint(-1,-1), TQPoint(-1,-1), Qt::NoButton, e->state() );
TQMouseEvent *tempEvent = new TQMouseEvent( TQEvent::MouseMove, TQPoint(-1,-1), TQPoint(-1,-1), TQt::NoButton, e->state() );
emit viewportMouseMoveEvent ( tempEvent );
delete tempEvent;
}
@ -4604,9 +4604,9 @@ void TDEHTMLView::scrollViewWheelEvent( TQWheelEvent *e )
if ( ( e->state() & ControlButton ) || ( e->state() & ShiftButton ) )
step = pageStep;
if(e->orientation() == Qt::Horizontal)
if(e->orientation() == TQt::Horizontal)
scrollBy(-((e->delta()*step)/120), 0);
else if(e->orientation() == Qt::Vertical)
else if(e->orientation() == TQt::Vertical)
scrollBy(0,-((e->delta()*step)/120));
e->accept();

@ -965,7 +965,7 @@ TQImage RegressionTest::renderToImage()
TQPainter* tp = new TQPainter;
tp->begin( m_paintBuffer );
tp->translate( -px, -py );
tp->fillRect(px, py, 512, 128, Qt::magenta);
tp->fillRect(px, py, 512, 128, TQt::magenta);
m_part->document().handle()->renderer()->layer()->paint( tp, TQRect( px, py, 512, 128 ) );
tp->end();
delete tp;

@ -105,7 +105,7 @@ int main(int argc, char *argv[])
e.setAttribute( "name", "print" );
toolBar.insertBefore( e, toolBar.firstChild() );
(void)new TDEAction( "Reload", "reload", Qt::Key_F5, dummy, TQT_SLOT( reload() ), doc->actionCollection(), "reload" );
(void)new TDEAction( "Reload", "reload", TQt::Key_F5, dummy, TQT_SLOT( reload() ), doc->actionCollection(), "reload" );
(void)new TDEAction( "Benchmark...", 0, 0, dummy, TQT_SLOT( doBenchmark() ), doc->actionCollection(), "debugDoBenchmark" );
TDEAction* kprint = new TDEAction( "Print", "print", 0, doc->browserExtension(), TQT_SLOT( print() ), doc->actionCollection(), "print" );
kprint->setEnabled(true);
@ -120,7 +120,7 @@ int main(int argc, char *argv[])
doc->setJScriptEnabled(true);
doc->setJavaEnabled(true);
doc->setPluginsEnabled( true );
doc->setURLCursor(TQCursor(Qt::PointingHandCursor));
doc->setURLCursor(TQCursor(TQt::PointingHandCursor));
a.setTopWidget(doc->widget());
TQWidget::connect(doc, TQT_SIGNAL(setWindowCaption(const TQString &)),
doc->widget()->topLevelWidget(), TQT_SLOT(setCaption(const TQString &)));

@ -526,52 +526,52 @@ private:
/* Mapping between special Qt keycodes and virtual DOM codes */
IDTranslator<unsigned, unsigned, unsigned>::Info virtKeyToQtKeyTable[] =
{
{KeyEventBaseImpl::DOM_VK_BACK_SPACE, Qt::Key_Backspace},
{KeyEventBaseImpl::DOM_VK_ENTER, Qt::Key_Enter},
{KeyEventBaseImpl::DOM_VK_ENTER, Qt::Key_Return},
{KeyEventBaseImpl::DOM_VK_NUM_LOCK, Qt::Key_NumLock},
{KeyEventBaseImpl::DOM_VK_RIGHT_ALT, Qt::Key_Alt},
{KeyEventBaseImpl::DOM_VK_LEFT_CONTROL, Qt::Key_Control},
{KeyEventBaseImpl::DOM_VK_LEFT_SHIFT, Qt::Key_Shift},
{KeyEventBaseImpl::DOM_VK_META, Qt::Key_Meta},
{KeyEventBaseImpl::DOM_VK_CAPS_LOCK, Qt::Key_CapsLock},
{KeyEventBaseImpl::DOM_VK_DELETE, Qt::Key_Delete},
{KeyEventBaseImpl::DOM_VK_END, Qt::Key_End},
{KeyEventBaseImpl::DOM_VK_ESCAPE, Qt::Key_Escape},
{KeyEventBaseImpl::DOM_VK_HOME, Qt::Key_Home},
{KeyEventBaseImpl::DOM_VK_PAUSE, Qt::Key_Pause},
{KeyEventBaseImpl::DOM_VK_PRINTSCREEN, Qt::Key_Print},
{KeyEventBaseImpl::DOM_VK_SCROLL_LOCK, Qt::Key_ScrollLock},
{KeyEventBaseImpl::DOM_VK_LEFT, Qt::Key_Left},
{KeyEventBaseImpl::DOM_VK_RIGHT, Qt::Key_Right},
{KeyEventBaseImpl::DOM_VK_UP, Qt::Key_Up},
{KeyEventBaseImpl::DOM_VK_DOWN, Qt::Key_Down},
{KeyEventBaseImpl::DOM_VK_BACK_SPACE, TQt::Key_Backspace},
{KeyEventBaseImpl::DOM_VK_ENTER, TQt::Key_Enter},
{KeyEventBaseImpl::DOM_VK_ENTER, TQt::Key_Return},
{KeyEventBaseImpl::DOM_VK_NUM_LOCK, TQt::Key_NumLock},
{KeyEventBaseImpl::DOM_VK_RIGHT_ALT, TQt::Key_Alt},
{KeyEventBaseImpl::DOM_VK_LEFT_CONTROL, TQt::Key_Control},
{KeyEventBaseImpl::DOM_VK_LEFT_SHIFT, TQt::Key_Shift},
{KeyEventBaseImpl::DOM_VK_META, TQt::Key_Meta},
{KeyEventBaseImpl::DOM_VK_CAPS_LOCK, TQt::Key_CapsLock},
{KeyEventBaseImpl::DOM_VK_DELETE, TQt::Key_Delete},
{KeyEventBaseImpl::DOM_VK_END, TQt::Key_End},
{KeyEventBaseImpl::DOM_VK_ESCAPE, TQt::Key_Escape},
{KeyEventBaseImpl::DOM_VK_HOME, TQt::Key_Home},
{KeyEventBaseImpl::DOM_VK_PAUSE, TQt::Key_Pause},
{KeyEventBaseImpl::DOM_VK_PRINTSCREEN, TQt::Key_Print},
{KeyEventBaseImpl::DOM_VK_SCROLL_LOCK, TQt::Key_ScrollLock},
{KeyEventBaseImpl::DOM_VK_LEFT, TQt::Key_Left},
{KeyEventBaseImpl::DOM_VK_RIGHT, TQt::Key_Right},
{KeyEventBaseImpl::DOM_VK_UP, TQt::Key_Up},
{KeyEventBaseImpl::DOM_VK_DOWN, TQt::Key_Down},
{KeyEventBaseImpl::DOM_VK_PAGE_DOWN, TQt::Key_Next},
{KeyEventBaseImpl::DOM_VK_PAGE_UP, TQt::Key_Prior},
{KeyEventBaseImpl::DOM_VK_F1, Qt::Key_F1},
{KeyEventBaseImpl::DOM_VK_F2, Qt::Key_F2},
{KeyEventBaseImpl::DOM_VK_F3, Qt::Key_F3},
{KeyEventBaseImpl::DOM_VK_F4, Qt::Key_F4},
{KeyEventBaseImpl::DOM_VK_F5, Qt::Key_F5},
{KeyEventBaseImpl::DOM_VK_F6, Qt::Key_F6},
{KeyEventBaseImpl::DOM_VK_F7, Qt::Key_F7},
{KeyEventBaseImpl::DOM_VK_F8, Qt::Key_F8},
{KeyEventBaseImpl::DOM_VK_F9, Qt::Key_F9},
{KeyEventBaseImpl::DOM_VK_F10, Qt::Key_F10},
{KeyEventBaseImpl::DOM_VK_F11, Qt::Key_F11},
{KeyEventBaseImpl::DOM_VK_F12, Qt::Key_F12},
{KeyEventBaseImpl::DOM_VK_F13, Qt::Key_F13},
{KeyEventBaseImpl::DOM_VK_F14, Qt::Key_F14},
{KeyEventBaseImpl::DOM_VK_F15, Qt::Key_F15},
{KeyEventBaseImpl::DOM_VK_F16, Qt::Key_F16},
{KeyEventBaseImpl::DOM_VK_F17, Qt::Key_F17},
{KeyEventBaseImpl::DOM_VK_F18, Qt::Key_F18},
{KeyEventBaseImpl::DOM_VK_F19, Qt::Key_F19},
{KeyEventBaseImpl::DOM_VK_F20, Qt::Key_F20},
{KeyEventBaseImpl::DOM_VK_F21, Qt::Key_F21},
{KeyEventBaseImpl::DOM_VK_F22, Qt::Key_F22},
{KeyEventBaseImpl::DOM_VK_F23, Qt::Key_F23},
{KeyEventBaseImpl::DOM_VK_F24, Qt::Key_F24},
{KeyEventBaseImpl::DOM_VK_F1, TQt::Key_F1},
{KeyEventBaseImpl::DOM_VK_F2, TQt::Key_F2},
{KeyEventBaseImpl::DOM_VK_F3, TQt::Key_F3},
{KeyEventBaseImpl::DOM_VK_F4, TQt::Key_F4},
{KeyEventBaseImpl::DOM_VK_F5, TQt::Key_F5},
{KeyEventBaseImpl::DOM_VK_F6, TQt::Key_F6},
{KeyEventBaseImpl::DOM_VK_F7, TQt::Key_F7},
{KeyEventBaseImpl::DOM_VK_F8, TQt::Key_F8},
{KeyEventBaseImpl::DOM_VK_F9, TQt::Key_F9},
{KeyEventBaseImpl::DOM_VK_F10, TQt::Key_F10},
{KeyEventBaseImpl::DOM_VK_F11, TQt::Key_F11},
{KeyEventBaseImpl::DOM_VK_F12, TQt::Key_F12},
{KeyEventBaseImpl::DOM_VK_F13, TQt::Key_F13},
{KeyEventBaseImpl::DOM_VK_F14, TQt::Key_F14},
{KeyEventBaseImpl::DOM_VK_F15, TQt::Key_F15},
{KeyEventBaseImpl::DOM_VK_F16, TQt::Key_F16},
{KeyEventBaseImpl::DOM_VK_F17, TQt::Key_F17},
{KeyEventBaseImpl::DOM_VK_F18, TQt::Key_F18},
{KeyEventBaseImpl::DOM_VK_F19, TQt::Key_F19},
{KeyEventBaseImpl::DOM_VK_F20, TQt::Key_F20},
{KeyEventBaseImpl::DOM_VK_F21, TQt::Key_F21},
{KeyEventBaseImpl::DOM_VK_F22, TQt::Key_F22},
{KeyEventBaseImpl::DOM_VK_F23, TQt::Key_F23},
{KeyEventBaseImpl::DOM_VK_F24, TQt::Key_F24},
{0, 0}
};
@ -657,8 +657,8 @@ void KeyEventBaseImpl::buildQKeyEvent() const
}
//Neuter F keys as well.
if (key >= Qt::Key_F1 && key <= Qt::Key_F35)
key = Qt::Key_ScrollLock;
if (key >= TQt::Key_F1 && key <= TQt::Key_F35)
key = TQt::Key_ScrollLock;
m_keyEvent = new TQKeyEvent(id() == KEYUP_EVENT ? TQEvent::KeyRelease : TQEvent::KeyPress,
key, ascii, modifiers, text);

@ -299,7 +299,7 @@ DocumentImpl::DocumentImpl(DOMImplementationImpl *_implementation, TDEHTMLView *
m_paintDeviceMetrics = 0;
m_paintDevice = 0;
m_decoderMibEnum = 0;
m_textColor = Qt::black;
m_textColor = TQt::black;
m_view = v;
m_renderArena.reset();

@ -508,13 +508,13 @@ void NodeImpl::dispatchMouseEvent(TQMouseEvent *_mouse, int overrideId, int over
int button = -1;
switch (_mouse->button()) {
case Qt::LeftButton:
case TQt::LeftButton:
button = 0;
break;
case Qt::MidButton:
case TQt::MidButton:
button = 1;
break;
case Qt::RightButton:
case TQt::RightButton:
button = 2;
break;
default:

@ -265,7 +265,7 @@ void KBookmarkBar::slotBookmarkSelected( TDEAction::ActivationReason /*reason*/,
void KBookmarkBar::slotBookmarkSelected()
{
slotBookmarkSelected(TDEAction::ToolBarActivation, Qt::NoButton);
slotBookmarkSelected(TDEAction::ToolBarActivation, TQt::NoButton);
}
static const int const_sepId = -9999; // FIXME this is ugly,
@ -456,7 +456,7 @@ bool KBookmarkBar::eventFilter( TQObject *o, TQEvent *e )
// FIXME, see how this holds up on an empty toolbar
_a = handleToolbarMouseButton( mev->pos(), dptr()->m_actions, m_pManager, pt );
if (_a && mev->button() == Qt::RightButton)
if (_a && mev->button() == TQt::RightButton)
{
dptr()->m_highlightedAddress = _a->property("address").toString();
KBookmark bookmark = m_pManager->findByAddress( dptr()->m_highlightedAddress );

@ -756,7 +756,7 @@ void KBookmarkMenu::slotBookmarkSelected( TDEAction::ActivationReason /*reason*/
void KBookmarkMenu::slotBookmarkSelected()
{
slotBookmarkSelected(TDEAction::PopupMenuActivation, Qt::NoButton);
slotBookmarkSelected(TDEAction::PopupMenuActivation, TQt::NoButton);
}
KExtendedBookmarkOwner* KBookmarkMenu::extOwner()

@ -285,14 +285,14 @@ void KSSLInfoDlg::displayCert(KSSLCertificate *x) {
d->_serialNum->setText(x->getSerialNumber());
cspl = d->_validFrom->palette();
if (x->getQDTNotBefore() > TQDateTime::currentDateTime(Qt::UTC))
if (x->getQDTNotBefore() > TQDateTime::currentDateTime(TQt::UTC))
cspl.setColor(TQColorGroup::Foreground, TQColor(196,33,21));
else cspl.setColor(TQColorGroup::Foreground, TQColor(42,153,59));
d->_validFrom->setPalette(cspl);
d->_validFrom->setText(x->getNotBefore());
cspl = d->_validUntil->palette();
if (x->getQDTNotAfter() < TQDateTime::currentDateTime(Qt::UTC))
if (x->getQDTNotAfter() < TQDateTime::currentDateTime(TQt::UTC))
cspl.setColor(TQColorGroup::Foreground, TQColor(196,33,21));
else cspl.setColor(TQColorGroup::Foreground, TQColor(42,153,59));
d->_validUntil->setPalette(cspl);
@ -317,8 +317,8 @@ void KSSLInfoDlg::displayCert(KSSLCertificate *x) {
ksv = ksvl.first();
if (ksv == KSSLCertificate::SelfSigned) {
if (x->getQDTNotAfter() > TQDateTime::currentDateTime(Qt::UTC) &&
x->getQDTNotBefore() < TQDateTime::currentDateTime(Qt::UTC)) {
if (x->getQDTNotAfter() > TQDateTime::currentDateTime(TQt::UTC) &&
x->getQDTNotBefore() < TQDateTime::currentDateTime(TQt::UTC)) {
if (KSSLSigners().useForSSL(*x))
ksv = KSSLCertificate::Ok;
} else {
@ -411,37 +411,37 @@ void KSSLCertBox::setValues(TQString certName, TQWidget *mailCatcher) {
TQLabel *label = 0L;
if (!(tmp = cert.getValue("O")).isEmpty()) {
label = new TQLabel(i18n("Organization:"), _frame);
label->setAlignment(Qt::AlignLeft | Qt::AlignTop);
label->setAlignment(TQt::AlignLeft | TQt::AlignTop);
(new TQLabel(tmp, _frame))->setTextFormat(TQt::PlainText);
}
if (!(tmp = cert.getValue("OU")).isEmpty()) {
label = new TQLabel(i18n("Organizational unit:"), _frame);
label->setAlignment(Qt::AlignLeft | Qt::AlignTop);
label->setAlignment(TQt::AlignLeft | TQt::AlignTop);
(new TQLabel(tmp, _frame))->setTextFormat(TQt::PlainText);
}
if (!(tmp = cert.getValue("L")).isEmpty()) {
label = new TQLabel(i18n("Locality:"), _frame);
label->setAlignment(Qt::AlignLeft | Qt::AlignTop);
label->setAlignment(TQt::AlignLeft | TQt::AlignTop);
(new TQLabel(tmp, _frame))->setTextFormat(TQt::PlainText);
}
if (!(tmp = cert.getValue("ST")).isEmpty()) {
label = new TQLabel(i18n("Federal State","State:"), _frame);
label->setAlignment(Qt::AlignLeft | Qt::AlignTop);
label->setAlignment(TQt::AlignLeft | TQt::AlignTop);
(new TQLabel(tmp, _frame))->setTextFormat(TQt::PlainText);
}
if (!(tmp = cert.getValue("C")).isEmpty()) {
label = new TQLabel(i18n("Country:"), _frame);
label->setAlignment(Qt::AlignLeft | Qt::AlignTop);
label->setAlignment(TQt::AlignLeft | TQt::AlignTop);
(new TQLabel(tmp, _frame))->setTextFormat(TQt::PlainText);
}
if (!(tmp = cert.getValue("CN")).isEmpty()) {
label = new TQLabel(i18n("Common name:"), _frame);
label->setAlignment(Qt::AlignLeft | Qt::AlignTop);
label->setAlignment(TQt::AlignLeft | TQt::AlignTop);
(new TQLabel(tmp, _frame))->setTextFormat(TQt::PlainText);
}
if (!(tmp = cert.getValue("Email")).isEmpty()) {
label = new TQLabel(i18n("Email:"), _frame);
label->setAlignment(Qt::AlignLeft | Qt::AlignTop);
label->setAlignment(TQt::AlignLeft | TQt::AlignTop);
if (mailCatcher) {
KURLLabel *mail = new KURLLabel(tmp, tmp, _frame);
connect(mail, TQT_SIGNAL(leftClickedURL(const TQString &)), mailCatcher, TQT_SLOT(mailClicked(const TQString &)));

@ -213,7 +213,7 @@ void KACLListViewItem::paintCell( TQPainter* p, const TQColorGroup &cg,
const bool lastNonDefault = !isDefault && below && below->isDefault;
if ( type == KACLListView::Mask || lastUser || lastNonDefault )
{
p->setPen( TQPen( Qt::gray, 0, TQPen::DotLine ) );
p->setPen( TQPen( TQt::gray, 0, TQPen::DotLine ) );
if ( type == KACLListView::Mask )
p->drawLine( 0, 0, width - 1, 0 );
p->drawLine( 0, height() - 1, width - 1, height() - 1 );

@ -94,7 +94,7 @@ KCustomMenuEditor::KCustomMenuEditor(TQWidget *parent)
m_listView->addColumn(i18n("Menu"));
m_listView->setFullWidth(true);
m_listView->setSorting(-1);
KButtonBox *buttonBox = new KButtonBox(page, Qt::Vertical);
KButtonBox *buttonBox = new KButtonBox(page, TQt::Vertical);
buttonBox->addButton(i18n("New..."), TQT_TQOBJECT(this), TQT_SLOT(slotNewItem()));
d->pbRemove=buttonBox->addButton(i18n("Remove"), TQT_TQOBJECT(this), TQT_SLOT(slotRemoveItem()));
d->pbMoveUp=buttonBox->addButton(i18n("Move Up"), TQT_TQOBJECT(this), TQT_SLOT(slotMoveUp()));

@ -267,7 +267,7 @@ void TDEIconDialog::init()
TQVBoxLayout *top = new TQVBoxLayout(main);
top->setSpacing( spacingHint() );
TQButtonGroup *bgroup = new TQButtonGroup(0, Qt::Vertical, i18n("Icon Source"), main);
TQButtonGroup *bgroup = new TQButtonGroup(0, TQt::Vertical, i18n("Icon Source"), main);
bgroup->layout()->setSpacing(KDialog::spacingHint());
bgroup->layout()->setMargin(KDialog::marginHint());
top->addWidget(bgroup);

@ -43,7 +43,7 @@ KImageFilePreview::KImageFilePreview( TQWidget *parent )
imageLabel = new TQLabel( this );
imageLabel->setFrameStyle( TQFrame::NoFrame );
imageLabel->setAlignment( Qt::AlignHCenter | Qt::AlignVCenter );
imageLabel->setAlignment( TQt::AlignHCenter | TQt::AlignVCenter );
imageLabel->setSizePolicy( TQSizePolicy( TQSizePolicy::Expanding, TQSizePolicy::Expanding) );
vb->addWidget( imageLabel );

@ -150,7 +150,7 @@ void KFileMetaPropsPlugin::createLayout()
if (itemList.isEmpty())
continue;
TQGroupBox *groupBox = new TQGroupBox(2, Qt::Horizontal,
TQGroupBox *groupBox = new TQGroupBox(2, TQt::Horizontal,
TQStyleSheet::escape(mtinfo->groupInfo(*git)->translatedName()),
d->m_frame);

@ -133,7 +133,7 @@ namespace KNotify
TQHeader *header = static_cast<TQHeader*>( parentWidget() );
int section = 0;
if ( header->orientation() == Qt::Horizontal )
if ( header->orientation() == TQt::Horizontal )
section= header->sectionAt( p.x() );
else
section= header->sectionAt( p.y() );

@ -906,7 +906,7 @@ KFilePropsPlugin::KFilePropsPlugin( KPropertiesDialog *_props )
}
iconArea = iconLabel;
}
grid->addWidget(iconArea, curRow, 0, Qt::AlignLeft);
grid->addWidget(iconArea, curRow, 0, TQt::AlignLeft);
if (d->bMultiple || isTrash || isDevice || isMediaNode || hasRoot)
{
@ -1676,7 +1676,7 @@ KFilePermissionsPropsPlugin::KFilePermissionsPropsPlugin( KPropertiesDialog *_pr
TQPushButton* pbAdvancedPerm = 0;
/* Group: Access Permissions */
gb = new TQGroupBox ( 0, Qt::Vertical, i18n("Access Permissions"), d->m_frame );
gb = new TQGroupBox ( 0, TQt::Vertical, i18n("Access Permissions"), d->m_frame );
gb->layout()->setSpacing(KDialog::spacingHint());
gb->layout()->setMargin(KDialog::marginHint());
box->addWidget (gb);
@ -1737,7 +1737,7 @@ KFilePermissionsPropsPlugin::KFilePermissionsPropsPlugin( KPropertiesDialog *_pr
gl->addMultiCell(spacer, 5, 5, 0, 1);
pbAdvancedPerm = new TQPushButton(i18n("A&dvanced Permissions"), gb);
gl->addMultiCellWidget(pbAdvancedPerm, 6, 6, 0, 1, Qt::AlignRight);
gl->addMultiCellWidget(pbAdvancedPerm, 6, 6, 0, 1, TQt::AlignRight);
connect(pbAdvancedPerm, TQT_SIGNAL( clicked() ), this, TQT_SLOT( slotShowAdvancedPermissions() ));
}
else
@ -1745,7 +1745,7 @@ KFilePermissionsPropsPlugin::KFilePermissionsPropsPlugin( KPropertiesDialog *_pr
/**** Group: Ownership ****/
gb = new TQGroupBox ( 0, Qt::Vertical, i18n("Ownership"), d->m_frame );
gb = new TQGroupBox ( 0, TQt::Vertical, i18n("Ownership"), d->m_frame );
gb->layout()->setSpacing(KDialog::spacingHint());
gb->layout()->setMargin(KDialog::marginHint());
box->addWidget (gb);
@ -1941,7 +1941,7 @@ void KFilePermissionsPropsPlugin::slotShowAdvancedPermissions() {
TQVBox *mainVBox = dlg.makeVBoxMainWidget();
// Group: Access Permissions
gb = new TQGroupBox ( 0, Qt::Vertical, i18n("Access Permissions"), mainVBox );
gb = new TQGroupBox ( 0, TQt::Vertical, i18n("Access Permissions"), mainVBox );
gb->layout()->setSpacing(KDialog::spacingHint());
gb->layout()->setMargin(KDialog::marginHint());
@ -3702,7 +3702,7 @@ KExecPropsPlugin::KExecPropsPlugin( KPropertiesDialog *_props )
// The groupbox about swallowing
TQGroupBox* tmpQGroupBox;
tmpQGroupBox = new TQGroupBox( i18n("Panel Embedding"), d->m_frame );
tmpQGroupBox->setColumnLayout( 0, Qt::Horizontal );
tmpQGroupBox->setColumnLayout( 0, TQt::Horizontal );
mainlayout->addWidget(tmpQGroupBox);
@ -3729,7 +3729,7 @@ KExecPropsPlugin::KExecPropsPlugin( KPropertiesDialog *_props )
// The groupbox about run in terminal
tmpQGroupBox = new TQGroupBox( d->m_frame );
tmpQGroupBox->setColumnLayout( 0, Qt::Horizontal );
tmpQGroupBox->setColumnLayout( 0, TQt::Horizontal );
mainlayout->addWidget(tmpQGroupBox);
@ -3768,7 +3768,7 @@ KExecPropsPlugin::KExecPropsPlugin( KPropertiesDialog *_props )
// The groupbox about run with substituted uid.
tmpQGroupBox = new TQGroupBox( d->m_frame );
tmpQGroupBox->setColumnLayout( 0, Qt::Horizontal );
tmpQGroupBox->setColumnLayout( 0, TQt::Horizontal );
mainlayout->addWidget(tmpQGroupBox);

@ -377,7 +377,7 @@ KURLBarItem * KURLBar::insertDynamicItem(const KURL& url, const TQString& descri
return item;
}
void KURLBar::setOrientation( Qt::Orientation orient )
void KURLBar::setOrientation( TQt::Orientation orient )
{
m_listBox->setOrientation( orient );
setSizePolicy( TQSizePolicy( isVertical() ?
@ -388,7 +388,7 @@ void KURLBar::setOrientation( Qt::Orientation orient )
TQSizePolicy::Maximum ));
}
Qt::Orientation KURLBar::orientation() const
TQt::Orientation KURLBar::orientation() const
{
return m_listBox->orientation();
}
@ -399,7 +399,7 @@ void KURLBar::setListBox( KURLBarListBox *view )
if ( !view ) {
m_listBox = new KURLBarListBox( this, "urlbar listbox" );
setOrientation( Qt::Vertical );
setOrientation( TQt::Vertical );
}
else {
m_listBox = view;
@ -520,7 +520,7 @@ TQSize KURLBar::minimumSizeHint() const
void KURLBar::slotSelected( int button, TQListBoxItem *item )
{
if ( button != Qt::LeftButton )
if ( button != TQt::LeftButton )
return;
slotSelected( item );
@ -877,9 +877,9 @@ void KURLBarListBox::contextMenuEvent( TQContextMenuEvent *e )
}
}
void KURLBarListBox::setOrientation( Qt::Orientation orient )
void KURLBarListBox::setOrientation( TQt::Orientation orient )
{
if ( orient == Qt::Vertical ) {
if ( orient == TQt::Vertical ) {
setColumnMode( 1 );
setRowMode( Variable );
}

@ -277,7 +277,7 @@ public:
* horizontally in one row.
* @see orientation
*/
virtual void setOrientation( Qt::Orientation orient );
virtual void setOrientation( TQt::Orientation orient );
/**
* @returns the current orientation mode.
* @see setOrientation
@ -382,7 +382,7 @@ public:
/**
* @returns true if the bar is in vertical mode.
*/
bool isVertical() const { return orientation() == Qt::Vertical; }
bool isVertical() const { return orientation() == TQt::Vertical; }
public slots:
/**
@ -510,14 +510,14 @@ public:
* column.
* @see orientation
*/
virtual void setOrientation( Qt::Orientation orient );
virtual void setOrientation( TQt::Orientation orient );
/**
* @returns the current orientation.
* @see setOrientation
*/
Qt::Orientation orientation() const { return m_orientation; }
TQt::Orientation orientation() const { return m_orientation; }
bool isVertical() const { return m_orientation == Qt::Vertical; }
bool isVertical() const { return m_orientation == TQt::Vertical; }
signals:
/**
@ -537,7 +537,7 @@ protected:
virtual void paintEvent( TQPaintEvent* );
private:
Qt::Orientation m_orientation;
TQt::Orientation m_orientation;
KURLBarToolTip *m_toolTip;
protected:

@ -968,7 +968,7 @@ void KFileDialog::init(const TQString& startDir, const TQString& filter, TQWidge
menu->plug( toolbar );
//Insert a separator.
TDEToolBarSeparator* spacerWidget = new TDEToolBarSeparator(Qt::Horizontal, false /*no line*/,
TDEToolBarSeparator* spacerWidget = new TDEToolBarSeparator(TQt::Horizontal, false /*no line*/,
toolbar);
d->m_pathComboIndex = toolbar->insertWidget(-1, -1, spacerWidget);
toolbar->insertWidget(PATH_COMBO, 0, d->pathCombo);
@ -1083,13 +1083,13 @@ void KFileDialog::initGUI()
TQGridLayout* lafBox= new TQGridLayout(2, 3, KDialog::spacingHint());
lafBox->addWidget(d->locationLabel, 0, 0, Qt::AlignVCenter);
lafBox->addWidget(locationEdit, 0, 1, Qt::AlignVCenter);
lafBox->addWidget(d->okButton, 0, 2, Qt::AlignVCenter);
lafBox->addWidget(d->locationLabel, 0, 0, TQt::AlignVCenter);
lafBox->addWidget(locationEdit, 0, 1, TQt::AlignVCenter);
lafBox->addWidget(d->okButton, 0, 2, TQt::AlignVCenter);
lafBox->addWidget(d->filterLabel, 1, 0, Qt::AlignVCenter);
lafBox->addWidget(filterWidget, 1, 1, Qt::AlignVCenter);
lafBox->addWidget(d->cancelButton, 1, 2, Qt::AlignVCenter);
lafBox->addWidget(d->filterLabel, 1, 0, TQt::AlignVCenter);
lafBox->addWidget(filterWidget, 1, 1, TQt::AlignVCenter);
lafBox->addWidget(d->cancelButton, 1, 2, TQt::AlignVCenter);
lafBox->setColStretch(1, 4);

@ -194,7 +194,7 @@ void KFileSharePropsPlugin::init()
vbox->addWidget( label, 0 );
m_pbConfig = new TQPushButton( i18n("Configure File Sharing..."), m_widget );
connect( m_pbConfig, TQT_SIGNAL( clicked() ), TQT_SLOT( slotConfigureFileSharing() ) );
vbox->addWidget( m_pbConfig, 0, Qt::AlignHCenter );
vbox->addWidget( m_pbConfig, 0, TQt::AlignHCenter );
vbox->addStretch( 10 );
@ -221,7 +221,7 @@ void KFileSharePropsPlugin::init()
vbox->addLayout( hBox, 0 );
m_pbConfig = new TQPushButton( i18n("Configure File Sharing..."), m_widget );
connect( m_pbConfig, TQT_SIGNAL( clicked() ), TQT_SLOT( slotConfigureFileSharing() ) );
hBox->addWidget( m_pbConfig, 0, Qt::AlignHCenter );
hBox->addWidget( m_pbConfig, 0, TQt::AlignHCenter );
vbox->addStretch( 10 ); // align items on top
break;
}

@ -1794,7 +1794,7 @@ void FileCopyJob::startDataPump()
m_putJob = put( m_dest, m_permissions, m_overwrite, m_resume, false /* no GUI */);
if ( d->m_modificationTime != static_cast<time_t>( -1 ) ) {
TQDateTime dt; dt.setTime_t( d->m_modificationTime );
m_putJob->addMetaData( "modified", dt.toString( Qt::ISODate ) );
m_putJob->addMetaData( "modified", dt.toString( TQt::ISODate ) );
}
//kdDebug(7007) << "FileCopyJob: m_putJob = " << m_putJob << " m_dest=" << m_dest << endl;

@ -87,13 +87,13 @@ void PasswordDialog::init( const TQString& prompt, const TQString& user,
{
lbl = new TQLabel( main );
lbl->setPixmap( pix );
lbl->setAlignment( Qt::AlignLeft|Qt::AlignVCenter );
lbl->setAlignment( TQt::AlignLeft|TQt::AlignVCenter );
lbl->setFixedSize( lbl->sizeHint() );
d->layout->addWidget( lbl, 0, 0, Qt::AlignLeft );
d->layout->addWidget( lbl, 0, 0, TQt::AlignLeft );
}
d->prompt = new TQLabel( main );
d->prompt->setAlignment( Qt::AlignLeft|Qt::AlignVCenter|TQt::WordBreak );
d->layout->addWidget( d->prompt, 0, 2, Qt::AlignLeft );
d->prompt->setAlignment( TQt::AlignLeft|TQt::AlignVCenter|TQt::WordBreak );
d->layout->addWidget( d->prompt, 0, 2, TQt::AlignLeft );
if ( prompt.isEmpty() )
setPrompt( i18n( "You need to supply a username and a password" ) );
else
@ -106,7 +106,7 @@ void PasswordDialog::init( const TQString& prompt, const TQString& user,
// Row 4: Username field
d->userNameLabel = new TQLabel( i18n("&Username:"), main );
d->userNameLabel->setAlignment( Qt::AlignVCenter | Qt::AlignLeft );
d->userNameLabel->setAlignment( TQt::AlignVCenter | TQt::AlignLeft );
d->userNameLabel->setFixedSize( d->userNameLabel->sizeHint() );
d->userNameHBox = new TQHBox( main );
@ -123,7 +123,7 @@ void PasswordDialog::init( const TQString& prompt, const TQString& user,
// Row 6: Password field
lbl = new TQLabel( i18n("&Password:"), main );
lbl->setAlignment( Qt::AlignVCenter | Qt::AlignLeft );
lbl->setAlignment( TQt::AlignVCenter | TQt::AlignLeft );
lbl->setFixedSize( lbl->sizeHint() );
TQHBox* hbox = new TQHBox( main );
d->passEdit = new KLineEdit( hbox );
@ -239,13 +239,13 @@ void PasswordDialog::addCommentLine( const TQString& label,
TQWidget *main = mainWidget();
TQLabel* lbl = new TQLabel( label, main);
lbl->setAlignment( Qt::AlignVCenter|Qt::AlignRight );
lbl->setAlignment( TQt::AlignVCenter|TQt::AlignRight );
lbl->setFixedSize( lbl->sizeHint() );
d->layout->addWidget( lbl, d->nRow+2, 0, Qt::AlignLeft );
d->layout->addWidget( lbl, d->nRow+2, 0, TQt::AlignLeft );
lbl = new TQLabel( comment, main);
lbl->setAlignment( Qt::AlignVCenter|Qt::AlignLeft|TQt::WordBreak );
lbl->setAlignment( TQt::AlignVCenter|TQt::AlignLeft|TQt::WordBreak );
calculateLabelSize(lbl);
d->layout->addWidget( lbl, d->nRow+2, 2, Qt::AlignLeft );
d->layout->addWidget( lbl, d->nRow+2, 2, TQt::AlignLeft );
d->layout->addRowSpacing( 3, 10 ); // Add a spacer
d->nRow++;
}

@ -144,7 +144,7 @@ bool StatusbarProgress::eventFilter( TQObject *, TQEvent *ev ) {
if ( ev->type() == TQEvent::MouseButtonPress ) {
TQMouseEvent *e = (TQMouseEvent*)ev;
if ( e->button() == Qt::LeftButton ) { // toggle view on left mouse button
if ( e->button() == TQt::LeftButton ) { // toggle view on left mouse button
if ( mode == Label ) {
mode = Progress;
} else if ( mode == Progress ) {

@ -569,7 +569,7 @@ void FileProtocol::put( const KURL& url, int _mode, bool _overwrite, bool _resum
// set modification time
const TQString mtimeStr = metaData( "modified" );
if ( !mtimeStr.isEmpty() ) {
TQDateTime dt = TQDateTime::fromString( mtimeStr, Qt::ISODate );
TQDateTime dt = TQDateTime::fromString( mtimeStr, TQt::ISODate );
if ( dt.isValid() ) {
KDE_struct_stat dest_statbuf;
if (KDE_stat( _dest_orig.data(), &dest_statbuf ) == 0) {

@ -102,7 +102,7 @@ KCookieWin::KCookieWin( TQWidget *parent, KHttpCookieList cookieList,
hBox->setSpacing( KDialog::spacingHint() );
TQLabel* icon = new TQLabel( hBox );
icon->setPixmap( TQMessageBox::standardIcon(TQMessageBox::Warning) );
icon->setAlignment( Qt::AlignCenter );
icon->setAlignment( TQt::AlignCenter );
icon->setFixedSize( 2*icon->sizeHint() );
int count = cookieList.count();
@ -111,7 +111,7 @@ KCookieWin::KCookieWin( TQWidget *parent, KHttpCookieList cookieList,
TQString txt = i18n("You received a cookie from",
"You received %n cookies from", count);
TQLabel* lbl = new TQLabel( txt, vBox );
lbl->setAlignment( Qt::AlignCenter );
lbl->setAlignment( TQt::AlignCenter );
KHttpCookiePtr cookie = cookieList.first();
TQString host (cookie->host());
@ -128,10 +128,10 @@ KCookieWin::KCookieWin( TQWidget *parent, KHttpCookieList cookieList,
if (cookie->isCrossDomain())
txt += i18n(" <b>[Cross Domain!]</b>");
lbl = new TQLabel( txt, vBox );
lbl->setAlignment( Qt::AlignCenter );
lbl->setAlignment( TQt::AlignCenter );
lbl = new TQLabel( i18n("Do you want to accept or reject?"), vBox );
lbl->setAlignment( Qt::AlignCenter );
vlayout->addWidget( hBox, 0, Qt::AlignLeft );
lbl->setAlignment( TQt::AlignCenter );
vlayout->addWidget( hBox, 0, TQt::AlignLeft );
// Cookie Details dialog...
m_detailView = new KCookieDetail( cookieList, count, this );
@ -190,7 +190,7 @@ KCookieWin::KCookieWin( TQWidget *parent, KHttpCookieList cookieList,
bbLay->addStretch( 1 );
#ifndef TQT_NO_ACCEL
TQAccel* a = new TQAccel( this );
a->connectItem( a->insertItem(Qt::Key_Escape), btn, TQT_SLOT(animateClick()) );
a->connectItem( a->insertItem(TQt::Key_Escape), btn, TQT_SLOT(animateClick()) );
#endif
m_button = new TQPushButton( bbox );

@ -249,7 +249,7 @@ void KMdiChildArea::resizeEvent( TQResizeEvent* e )
void KMdiChildArea::mousePressEvent( TQMouseEvent *e )
{
//Popup the window menu
if ( e->button() & Qt::RightButton )
if ( e->button() & TQt::RightButton )
emit popupWindowMenu( mapToGlobal( e->pos() ) );
}

@ -283,7 +283,7 @@ void KMdiChildFrm::mouseMoveEvent( TQMouseEvent *e )
if ( m_bResizing )
{
if ( !( e->state() & Qt::RightButton ) && !( e->state() & Qt::MidButton ) )
if ( !( e->state() & TQt::RightButton ) && !( e->state() & TQt::MidButton ) )
{
// same as: if no button or left button pressed
TQPoint p = parentWidget()->mapFromGlobal( e->globalPos() );

@ -85,7 +85,7 @@ KMdiChildFrmCaption::~KMdiChildFrmCaption()
void KMdiChildFrmCaption::mousePressEvent( TQMouseEvent *e )
{
if ( e->button() == Qt::LeftButton )
if ( e->button() == TQt::LeftButton )
{
setMouseTracking( false );
if ( KMdiMainFrm::frameDecorOfAttachedViews() != KMdi::Win95Look )
@ -95,7 +95,7 @@ void KMdiChildFrmCaption::mousePressEvent( TQMouseEvent *e )
m_pParent->m_bDragging = true;
m_offset = mapToParent( e->pos() );
}
else if ( e->button() == Qt::RightButton )
else if ( e->button() == TQt::RightButton )
{
m_pParent->systemMenu()->popup( mapToGlobal( e->pos() ) );
}
@ -105,7 +105,7 @@ void KMdiChildFrmCaption::mousePressEvent( TQMouseEvent *e )
void KMdiChildFrmCaption::mouseReleaseEvent( TQMouseEvent *e )
{
if ( e->button() == Qt::LeftButton )
if ( e->button() == TQt::LeftButton )
{
if ( KMdiMainFrm::frameDecorOfAttachedViews() != KMdi::Win95Look )
TQApplication::restoreOverrideCursor();

@ -524,7 +524,7 @@ bool KMdiChildView::eventFilter( TQObject *obj, TQEvent *e )
if ( e->type() == TQEvent::KeyPress && isAttached() )
{
TQKeyEvent* ke = ( TQKeyEvent* ) e;
if ( ke->key() == Qt::Key_Tab )
if ( ke->key() == TQt::Key_Tab )
{
TQWidget* w = ( TQWidget* ) obj;
TQWidget::FocusPolicy wfp = w->focusPolicy();

@ -465,7 +465,7 @@ protected:
virtual void closeEvent( TQCloseEvent *e );
/**
* It only catches TQEvent::KeyPress events there. If a Qt::Key_Tab is pressed, the internal MDI focus
* It only catches TQEvent::KeyPress events there. If a TQt::Key_Tab is pressed, the internal MDI focus
* handling is called. That means if the last focusable child widget of this is called, it will jump to the
* first focusable child widget of this.
* See KMdiChildView::setFirstFocusableChildWidget and KMdiChildView::lastFirstFocusableChildWidget

@ -77,10 +77,10 @@ void KMdiTaskBarButton::mousePressEvent( TQMouseEvent* e )
{
switch ( e->button() )
{
case Qt::LeftButton:
case TQt::LeftButton:
emit leftMouseButtonClicked( m_pWindow );
break;
case Qt::RightButton:
case TQt::RightButton:
emit rightMouseButtonClicked( m_pWindow );
break;
default:
@ -363,7 +363,7 @@ void KMdiTaskBar::layoutTaskBar( int taskBarWidth )
newButtonWidth = buttonAreaWidth / buttonCount;
else
newButtonWidth = 0;
if ( orientation() == Qt::Vertical )
if ( orientation() == TQt::Vertical )
newButtonWidth = 80;
if ( newButtonWidth > 0 )
for ( b = m_pButtonList->first();b;b = m_pButtonList->next() )

@ -54,7 +54,7 @@ int main( int argc, char **argv )
Hello* h1 = new Hello( "Hello1", "Click the right mouse button on the mainframe!", mainWdg);
h1->setTabCaption("Tab changed");
h1->setBackgroundColor( Qt::white );
h1->setBackgroundColor( TQt::white );
mainWdg->addWindow( h1);
// SHOW(h1->caption());
// SHOW(h1->tabCaption());
@ -66,7 +66,7 @@ int main( int argc, char **argv )
// SHOW(h2->tabCaption());
Hello* h3 = new Hello( "Hello3", "Dock me using the taskbar button context menu!", 0);
h3->setBackgroundColor( Qt::white );
h3->setBackgroundColor( TQt::white );
h3->setFont( TQFont("times",20,TQFont::Bold) );
mainWdg->addWindow( h3, KMdi::Detach ); // undock this!
h3->setGeometry( 20, 20, 400, 100);

@ -439,7 +439,7 @@ int DownloadDialog::installStatus(Entry *entry)
if(datestring.isNull()) installed = 0;
else
{
date = TQDate::fromString(datestring, Qt::ISODate);
date = TQDate::fromString(datestring, TQt::ISODate);
if(!date.isValid()) installed = 0;
else if(date < entry->releaseDate()) installed = -1;
else installed = 1;
@ -668,7 +668,7 @@ void DownloadDialog::slotJobResult( TDEIO::Job *job )
void DownloadDialog::install(Entry *e)
{
kapp->config()->setGroup("TDENewStuffStatus");
kapp->config()->writeEntry(m_entryname, TQString(e->releaseDate().toString(Qt::ISODate)));
kapp->config()->writeEntry(m_entryname, TQString(e->releaseDate().toString(TQt::ISODate)));
kapp->config()->sync();
TQPixmap pix = TDEGlobal::iconLoader()->loadIcon("ok", TDEIcon::Small);

@ -332,7 +332,7 @@ void Entry::parseDomElement( const TQDomElement &element )
if ( e.tagName() == "version" ) setVersion( e.text().stripWhiteSpace() );
// if ( e.tagName() == "release" ) setRelease( e.text().toInt() );
if ( e.tagName() == "created" ) {
TQDate date = TQDate::fromString( e.text().stripWhiteSpace(), Qt::ISODate );
TQDate date = TQDate::fromString( e.text().stripWhiteSpace(), TQt::ISODate );
setReleaseDate( date );
}
if ( e.tagName() == "smallpreviewpic1" ) {
@ -366,7 +366,7 @@ TQDomElement Entry::createDomElement( TQDomDocument &doc,
addElement( doc, entry, "downloads", TQString::number( downloads() ) );
addElement( doc, entry, "created",
releaseDate().toString( Qt::ISODate ) );
releaseDate().toString( TQt::ISODate ) );
addElement( doc, entry, "description", summary() );
addElement( doc, entry, "preview", preview().url() );

@ -45,7 +45,7 @@ public:
m_selectedWidget = 0;
m_bAllowNestedParts = false;
m_bIgnoreScrollBars = false;
m_activationButtonMask = Qt::LeftButton | Qt::MidButton | Qt::RightButton;
m_activationButtonMask = TQt::LeftButton | TQt::MidButton | TQt::RightButton;
m_reason = PartManager::NoReason;
}
~PartManagerPrivate()
@ -56,9 +56,9 @@ public:
case TQEvent::MouseButtonPress:
case TQEvent::MouseButtonDblClick: {
TQMouseEvent* mev = TQT_TQMOUSEEVENT( ev );
m_reason = mev->button() == Qt::LeftButton
m_reason = mev->button() == TQt::LeftButton
? PartManager::ReasonLeftClick
: ( mev->button() == Qt::MidButton
: ( mev->button() == TQt::MidButton
? PartManager::ReasonMidClick
: PartManager::ReasonRightClick );
break;

@ -130,7 +130,7 @@ public:
/**
* Specifies which mouse buttons the partmanager should react upon.
* By default it reacts on all mouse buttons (LMB/MMB/RMB).
* @param buttonMask a combination of TQt::ButtonState values e.g. Qt::LeftButton | Qt::MidButton
* @param buttonMask a combination of TQt::ButtonState values e.g. TQt::LeftButton | TQt::MidButton
*/
void setActivationButtonMask( short int buttonMask );
/**

@ -64,7 +64,7 @@ CupsAddSmb::CupsAddSmb(TQWidget *parent, const char *name)
TQFont f(m_title->font());
f.setBold(true);
m_title->setFont(f);
KSeparator *m_sep = new KSeparator(Qt::Horizontal, this);
KSeparator *m_sep = new KSeparator(TQt::Horizontal, this);
m_textinfo = new TQLabel( this );
m_logined = new TQLineEdit( this );
m_passwded = new TQLineEdit( this );

@ -41,8 +41,8 @@ AddressDialog::AddressDialog(TQWidget *parent, const char *name)
TQGridLayout *m1 = new TQGridLayout(w, 2, 2, 0, 5);
m1->setColStretch(1, 1);
m1->addWidget(l1, 0, 0, Qt::AlignRight);
m1->addWidget(l2, 1, 0, Qt::AlignRight);
m1->addWidget(l1, 0, 0, TQt::AlignRight);
m1->addWidget(l2, 1, 0, TQt::AlignRight);
m1->addWidget(type_, 0, 1);
m1->addWidget(address_, 1, 1);

@ -49,9 +49,9 @@ BrowseDialog::BrowseDialog(TQWidget *parent, const char *name)
TQLabel *l3 = new TQLabel(i18n("To:"), dummy);
TQGridLayout *m1 = new TQGridLayout(dummy, 3, 2, 0, 5);
m1->addWidget(l1, 0, 0, Qt::AlignRight);
m1->addWidget(l2, 1, 0, Qt::AlignRight);
m1->addWidget(l3, 2, 0, Qt::AlignRight);
m1->addWidget(l1, 0, 0, TQt::AlignRight);
m1->addWidget(l2, 1, 0, TQt::AlignRight);
m1->addWidget(l3, 2, 0, TQt::AlignRight);
m1->addWidget(type_, 0, 1);
m1->addWidget(from_, 1, 1);
m1->addWidget(to_, 2, 1);

@ -79,12 +79,12 @@ CupsdBrowsingPage::CupsdBrowsingPage(TQWidget *parent, const char *name)
m2->addWidget(cups_);
m2->addWidget(slp_);
m2->addStretch(1);
m1->addWidget(l1, 1, 0, Qt::AlignRight);
m1->addWidget(l2, 2, 0, Qt::AlignRight);
m1->addWidget(l3, 3, 0, Qt::AlignRight);
m1->addWidget(l4, 4, 0, Qt::AlignRight|Qt::AlignTop);
m1->addWidget(l5, 5, 0, Qt::AlignRight);
m1->addWidget(l6, 6, 0, Qt::AlignRight|Qt::AlignTop);
m1->addWidget(l1, 1, 0, TQt::AlignRight);
m1->addWidget(l2, 2, 0, TQt::AlignRight);
m1->addWidget(l3, 3, 0, TQt::AlignRight);
m1->addWidget(l4, 4, 0, TQt::AlignRight|TQt::AlignTop);
m1->addWidget(l5, 5, 0, TQt::AlignRight);
m1->addWidget(l6, 6, 0, TQt::AlignRight|TQt::AlignTop);
m1->addWidget(browseport_, 1, 1);
m1->addWidget(browseinterval_, 2, 1);
m1->addWidget(browsetimeout_, 3, 1);

@ -54,13 +54,13 @@ CupsdDirPage::CupsdDirPage(TQWidget *parent, const char *name)
TQGridLayout *m1 = new TQGridLayout(this, 8, 2, 10, 7);
m1->setRowStretch(7, 1);
m1->setColStretch(1, 1);
m1->addWidget(l1, 0, 0, Qt::AlignRight);
m1->addWidget(l2, 1, 0, Qt::AlignRight);
m1->addWidget(l3, 2, 0, Qt::AlignRight|Qt::AlignTop);
m1->addWidget(l4, 3, 0, Qt::AlignRight);
m1->addWidget(l5, 4, 0, Qt::AlignRight);
m1->addWidget(l6, 5, 0, Qt::AlignRight);
m1->addWidget(l7, 6, 0, Qt::AlignRight);
m1->addWidget(l1, 0, 0, TQt::AlignRight);
m1->addWidget(l2, 1, 0, TQt::AlignRight);
m1->addWidget(l3, 2, 0, TQt::AlignRight|TQt::AlignTop);
m1->addWidget(l4, 3, 0, TQt::AlignRight);
m1->addWidget(l5, 4, 0, TQt::AlignRight);
m1->addWidget(l6, 5, 0, TQt::AlignRight);
m1->addWidget(l7, 6, 0, TQt::AlignRight);
m1->addWidget(datadir_, 0, 1);
m1->addWidget(documentdir_, 1, 1);
m1->addWidget(fontpath_, 2, 1);

@ -54,10 +54,10 @@ CupsdFilterPage::CupsdFilterPage(TQWidget *parent, const char *name)
TQGridLayout *m1 = new TQGridLayout(this, 5, 2, 10, 7);
m1->setRowStretch(4, 1);
m1->setColStretch(1, 1);
m1->addWidget(l1, 0, 0, Qt::AlignRight);
m1->addWidget(l2, 1, 0, Qt::AlignRight);
m1->addWidget(l3, 2, 0, Qt::AlignRight);
m1->addWidget(l4, 3, 0, Qt::AlignRight);
m1->addWidget(l1, 0, 0, TQt::AlignRight);
m1->addWidget(l2, 1, 0, TQt::AlignRight);
m1->addWidget(l3, 2, 0, TQt::AlignRight);
m1->addWidget(l4, 3, 0, TQt::AlignRight);
m1->addWidget(user_, 0, 1);
m1->addWidget(group_, 1, 1);
m1->addWidget(ripcache_, 2, 1);

@ -62,9 +62,9 @@ CupsdJobsPage::CupsdJobsPage(TQWidget *parent, const char *name)
m1->addWidget(keepjobhistory_, 0, 1);
m1->addWidget(keepjobfiles_, 1, 1);
m1->addWidget(autopurgejobs_, 2, 1);
m1->addWidget(l1, 3, 0, Qt::AlignRight);
m1->addWidget(l2, 4, 0, Qt::AlignRight);
m1->addWidget(l3, 5, 0, Qt::AlignRight);
m1->addWidget(l1, 3, 0, TQt::AlignRight);
m1->addWidget(l2, 4, 0, TQt::AlignRight);
m1->addWidget(l3, 5, 0, TQt::AlignRight);
m1->addWidget(maxjobs_, 3, 1);
m1->addWidget(maxjobsperprinter_, 4, 1);
m1->addWidget(maxjobsperuser_, 5, 1);

@ -66,11 +66,11 @@ CupsdLogPage::CupsdLogPage(TQWidget *parent, const char *name)
TQGridLayout *m1 = new TQGridLayout(this, 6, 2, 10, 7);
m1->setRowStretch(5, 1);
m1->setColStretch(1, 1);
m1->addWidget(l1, 0, 0, Qt::AlignRight);
m1->addWidget(l2, 1, 0, Qt::AlignRight);
m1->addWidget(l3, 2, 0, Qt::AlignRight);
m1->addWidget(l4, 3, 0, Qt::AlignRight);
m1->addWidget(l5, 4, 0, Qt::AlignRight);
m1->addWidget(l1, 0, 0, TQt::AlignRight);
m1->addWidget(l2, 1, 0, TQt::AlignRight);
m1->addWidget(l3, 2, 0, TQt::AlignRight);
m1->addWidget(l4, 3, 0, TQt::AlignRight);
m1->addWidget(l5, 4, 0, TQt::AlignRight);
m1->addWidget(accesslog_, 0, 1);
m1->addWidget(errorlog_, 1, 1);
m1->addWidget(pagelog_, 2, 1);

@ -74,12 +74,12 @@ CupsdNetworkPage::CupsdNetworkPage(TQWidget *parent, const char *name)
TQGridLayout *m1 = new TQGridLayout(this, 8, 2, 10, 7);
m1->setRowStretch(7, 1);
m1->setColStretch(1, 1);
m1->addWidget(l1, 0, 0, Qt::AlignRight);
m1->addWidget(l2, 2, 0, Qt::AlignRight);
m1->addWidget(l3, 3, 0, Qt::AlignRight);
m1->addWidget(l4, 4, 0, Qt::AlignRight);
m1->addWidget(l5, 5, 0, Qt::AlignRight);
m1->addWidget(l6, 6, 0, Qt::AlignTop|Qt::AlignRight);
m1->addWidget(l1, 0, 0, TQt::AlignRight);
m1->addWidget(l2, 2, 0, TQt::AlignRight);
m1->addWidget(l3, 3, 0, TQt::AlignRight);
m1->addWidget(l4, 4, 0, TQt::AlignRight);
m1->addWidget(l5, 5, 0, TQt::AlignRight);
m1->addWidget(l6, 6, 0, TQt::AlignTop|TQt::AlignRight);
m1->addWidget(keepalive_, 1, 1);
m1->addWidget(hostnamelookup_, 0, 1);
m1->addWidget(keepalivetimeout_, 2, 1);

@ -55,11 +55,11 @@ CupsdSecurityPage::CupsdSecurityPage(TQWidget *parent, const char *name)
TQGridLayout *m1 = new TQGridLayout(this, 6, 2, 10, 7);
m1->setRowStretch(5, 1);
m1->setColStretch(1, 1);
m1->addWidget(l1, 0, 0, Qt::AlignRight);
m1->addWidget(l2, 1, 0, Qt::AlignRight);
m1->addWidget(l3, 2, 0, Qt::AlignRight);
m1->addWidget(l4, 3, 0, Qt::AlignRight);
m1->addWidget(l5, 4, 0, Qt::AlignRight|Qt::AlignTop);
m1->addWidget(l1, 0, 0, TQt::AlignRight);
m1->addWidget(l2, 1, 0, TQt::AlignRight);
m1->addWidget(l3, 2, 0, TQt::AlignRight);
m1->addWidget(l4, 3, 0, TQt::AlignRight);
m1->addWidget(l5, 4, 0, TQt::AlignRight|TQt::AlignTop);
m1->addWidget(remoteroot_, 0, 1);
m1->addWidget(systemgroup_, 1, 1);
m1->addWidget(encryptcert_, 2, 1);

@ -97,13 +97,13 @@ CupsdServerPage::CupsdServerPage(TQWidget *parent, const char *name)
TQGridLayout *m1 = new TQGridLayout(this, 9, 2, 10, 7);
m1->setRowStretch(8, 1);
m1->setColStretch(1, 1);
m1->addWidget(l1, 0, 0, Qt::AlignRight);
m1->addWidget(l2, 1, 0, Qt::AlignRight);
m1->addWidget(l3, 2, 0, Qt::AlignRight);
m1->addWidget(l4, 4, 0, Qt::AlignRight);
m1->addWidget(l5, 5, 0, Qt::AlignRight);
m1->addWidget(l6, 6, 0, Qt::AlignRight);
m1->addWidget(l7, 7, 0, Qt::AlignRight);
m1->addWidget(l1, 0, 0, TQt::AlignRight);
m1->addWidget(l2, 1, 0, TQt::AlignRight);
m1->addWidget(l3, 2, 0, TQt::AlignRight);
m1->addWidget(l4, 4, 0, TQt::AlignRight);
m1->addWidget(l5, 5, 0, TQt::AlignRight);
m1->addWidget(l6, 6, 0, TQt::AlignRight);
m1->addWidget(l7, 7, 0, TQt::AlignRight);
m1->addWidget(servername_, 0, 1);
m1->addWidget(serveradmin_, 1, 1);
m1->addWidget(charset_, 4, 1);

@ -39,11 +39,11 @@ CupsdSplash::CupsdSplash(TQWidget *parent, const char *name)
TQLabel *cupslogo_ = new TQLabel(this);
TQString logopath = locate("data", TQString("tdeprint/cups_logo.png"));
cupslogo_->setPixmap(logopath.isEmpty() ? TQPixmap() : TQPixmap(logopath));
cupslogo_->setAlignment(Qt::AlignCenter);
cupslogo_->setAlignment(TQt::AlignCenter);
TQLabel *kupslogo_ = new TQLabel(this);
logopath = locate("data", TQString("tdeprint/kde_logo.png"));
kupslogo_->setPixmap(logopath.isEmpty() ? TQPixmap() : TQPixmap(logopath));
kupslogo_->setAlignment(Qt::AlignCenter);
kupslogo_->setAlignment(TQt::AlignCenter);
TQLabel *helptxt_ = new TQLabel(this);
helptxt_->setText(i18n( "<p>This tool will help you to configure graphically the server of the CUPS printing system. "

@ -80,14 +80,14 @@ LocationDialog::LocationDialog(TQWidget *parent, const char *name)
TQGridLayout *m1 = new TQGridLayout(dummy, 8, 2, 0, 5);
m1->setColStretch(1, 1);
m1->addWidget(l1, 0, 0, Qt::AlignRight);
m1->addWidget(l2, 1, 0, Qt::AlignRight);
m1->addWidget(l3, 2, 0, Qt::AlignRight);
m1->addWidget(l4, 3, 0, Qt::AlignRight);
m1->addWidget(l5, 4, 0, Qt::AlignRight);
m1->addWidget(l6, 5, 0, Qt::AlignRight);
m1->addWidget(l7, 6, 0, Qt::AlignRight);
m1->addWidget(l8, 7, 0, Qt::AlignRight|Qt::AlignTop);
m1->addWidget(l1, 0, 0, TQt::AlignRight);
m1->addWidget(l2, 1, 0, TQt::AlignRight);
m1->addWidget(l3, 2, 0, TQt::AlignRight);
m1->addWidget(l4, 3, 0, TQt::AlignRight);
m1->addWidget(l5, 4, 0, TQt::AlignRight);
m1->addWidget(l6, 5, 0, TQt::AlignRight);
m1->addWidget(l7, 6, 0, TQt::AlignRight);
m1->addWidget(l8, 7, 0, TQt::AlignRight|TQt::AlignTop);
m1->addWidget(resource_, 0, 1);
m1->addWidget(authtype_, 1, 1);
m1->addWidget(authclass_, 2, 1);

@ -46,8 +46,8 @@ PortDialog::PortDialog(TQWidget *parent, const char *name)
TQVBoxLayout *m1 = new TQVBoxLayout(dummy, 0, 10);
TQGridLayout *m2 = new TQGridLayout(0, 3, 2, 0, 5);
m1->addLayout(TQT_TQLAYOUT(m2));
m2->addWidget(l1, 0, 0, Qt::AlignRight);
m2->addWidget(l2, 1, 0, Qt::AlignRight);
m2->addWidget(l1, 0, 0, TQt::AlignRight);
m2->addWidget(l2, 1, 0, TQt::AlignRight);
m2->addMultiCellWidget(usessl_, 2, 2, 0, 1);
m2->addWidget(address_, 0, 1);
m2->addWidget(port_, 1, 1);

@ -25,16 +25,16 @@
static void draw3DPage(TQPainter *p, TQRect r)
{
// draw white page
p->fillRect(r,Qt::white);
p->fillRect(r,TQt::white);
// draw 3D border
p->setPen(Qt::black);
p->setPen(TQt::black);
p->moveTo(r.left(),r.bottom());
p->lineTo(r.right(),r.bottom());
p->lineTo(r.right(),r.top());
p->setPen(Qt::darkGray);
p->setPen(TQt::darkGray);
p->lineTo(r.left(),r.top());
p->lineTo(r.left(),r.bottom());
p->setPen(Qt::gray);
p->setPen(TQt::gray);
p->moveTo(r.left()+1,r.bottom()-1);
p->lineTo(r.right()-1,r.bottom()-1);
p->lineTo(r.right()-1,r.top()+1);

@ -62,7 +62,7 @@ void IppReportDlg::slotUser1()
rich.draw(&painter, margin, margin, r, colorGroup());
TQString s = caption() + ": " + TQString::number(page);
TQRect br = painter.fontMetrics().boundingRect(s);
painter.drawText(r.right()-br.width()-5, r.top()-br.height()-4, br.width()+5, br.height()+4, Qt::AlignRight|Qt::AlignTop, s);
painter.drawText(r.right()-br.width()-5, r.top()-br.height()-4, br.width()+5, br.height()+4, TQt::AlignRight|TQt::AlignTop, s);
r.moveBy(0, r.height()-10);
painter.translate(0, -(r.height()-10));
if (r.top() < hh)

@ -35,7 +35,7 @@ KMConfigCupsDir::KMConfigCupsDir(TQWidget *parent)
setPageHeader(i18n("CUPS Folder Settings"));
setPagePixmap("folder");
TQGroupBox *m_dirbox = new TQGroupBox(0, Qt::Vertical, i18n("Installation Folder"), this);
TQGroupBox *m_dirbox = new TQGroupBox(0, TQt::Vertical, i18n("Installation Folder"), this);
m_installdir = new KURLRequester(m_dirbox);
m_installdir->setMode((KFile::Mode)(KFile::Directory|KFile::ExistingOnly|KFile::LocalOnly));
m_stddir = new TQCheckBox(i18n("Standard installation (/)"), m_dirbox);

@ -62,8 +62,8 @@ KMCupsConfigWidget::KMCupsConfigWidget(TQWidget *parent, const char *name)
: TQWidget(parent,name)
{
// widget creation
TQGroupBox *m_hostbox = new TQGroupBox(0, Qt::Vertical, i18n("Server Information"), this);
TQGroupBox *m_loginbox = new TQGroupBox(0, Qt::Vertical, i18n("Account Information"), this);
TQGroupBox *m_hostbox = new TQGroupBox(0, TQt::Vertical, i18n("Server Information"), this);
TQGroupBox *m_loginbox = new TQGroupBox(0, TQt::Vertical, i18n("Account Information"), this);
TQLabel *m_hostlabel = new TQLabel(i18n("&Host:"), m_hostbox);
TQLabel *m_portlabel = new TQLabel(i18n("&Port:"), m_hostbox);
m_host = new TQLineEdit(m_hostbox);

@ -234,7 +234,7 @@ void KMCupsUiManager::setupPrintDialogPages(TQPtrList<KPrintDialogPage>* pages)
void KMCupsUiManager::setupJobViewer(TQListView *lv)
{
lv->addColumn(i18n("Priority"));
lv->setColumnAlignment(lv->columns()-1, Qt::AlignRight|Qt::AlignVCenter);
lv->setColumnAlignment(lv->columns()-1, TQt::AlignRight|TQt::AlignVCenter);
lv->addColumn(i18n("Billing Information"));
lv->setColumnAlignment(lv->columns()-1, Qt::AlignRight|Qt::AlignVCenter);
lv->setColumnAlignment(lv->columns()-1, TQt::AlignRight|TQt::AlignVCenter);
}

@ -110,7 +110,7 @@ KPHpgl2Page::KPHpgl2Page(TQWidget *parent, const char *name)
setTitle("HP-GL/2");
TQGroupBox *box = new TQGroupBox(0, Qt::Vertical, i18n("HP-GL/2 Options"), this);
TQGroupBox *box = new TQGroupBox(0, TQt::Vertical, i18n("HP-GL/2 Options"), this);
m_blackplot = new TQCheckBox(i18n("&Use only black pen"), box);
TQWhatsThis::add(m_blackplot, whatsThisBlackplotHpgl2Page);
@ -119,7 +119,7 @@ KPHpgl2Page::KPHpgl2Page(TQWidget *parent, const char *name)
TQWhatsThis::add(m_fitplot, whatsThisFitplotHpgl2Page);
m_penwidth = new KIntNumInput(1000, box);
m_penwidth->setLabel(i18n("&Pen width:"), Qt::AlignLeft|Qt::AlignVCenter);
m_penwidth->setLabel(i18n("&Pen width:"), TQt::AlignLeft|TQt::AlignVCenter);
m_penwidth->setSuffix(" [um]");
m_penwidth->setRange(0, 10000, 100, true);
TQWhatsThis::add(m_penwidth, whatsThisPenwidthHpgl2Page);

@ -236,11 +236,11 @@ KPImagePage::KPImagePage(DrMain *driver, TQWidget *parent, const char *name)
setTitle(i18n("Image"));
TQGroupBox *colorbox = new TQGroupBox(0, Qt::Vertical, i18n("Color Settings"), this);
TQGroupBox *colorbox = new TQGroupBox(0, TQt::Vertical, i18n("Color Settings"), this);
TQWhatsThis::add(this, whatsThisImagePage);
TQGroupBox *sizebox = new TQGroupBox(0, Qt::Vertical, i18n("Image Size"), this);
TQGroupBox *sizebox = new TQGroupBox(0, TQt::Vertical, i18n("Image Size"), this);
TQWhatsThis::add(sizebox, whatsThisSizeImagePage);
TQGroupBox *positionbox = new TQGroupBox(0, Qt::Vertical, i18n("Image Position"), this);
TQGroupBox *positionbox = new TQGroupBox(0, TQt::Vertical, i18n("Image Position"), this);
TQWhatsThis::add(positionbox, whatsThisPositionImagePage);
m_brightness = new KIntNumInput(100, colorbox);
@ -278,7 +278,7 @@ KPImagePage::KPImagePage(DrMain *driver, TQWidget *parent, const char *name)
TQImage img(locate("data", "tdeprint/preview.png"));
m_preview->setImage(img);
KSeparator *sep = new KSeparator(Qt::Horizontal, colorbox);
KSeparator *sep = new KSeparator(TQt::Horizontal, colorbox);
TQPushButton *defbtn = new TQPushButton(i18n("&Default Settings"), colorbox);
TQWhatsThis::add(defbtn, whatsThisResetButtonImagePage);
@ -374,12 +374,12 @@ KPImagePage::KPImagePage(DrMain *driver, TQWidget *parent, const char *name)
l3->addLayout(l4, 0, 1);
l3->addLayout(l5, 1, 0);
l3->addWidget(m_position, 1, 1);
l4->addWidget(left, Qt::AlignLeft);
l4->addWidget(hcenter, Qt::AlignCenter);
l4->addWidget(right, Qt::AlignRight);
l5->addWidget(top, Qt::AlignTop);
l5->addWidget(vcenter, Qt::AlignVCenter);
l5->addWidget(bottom, Qt::AlignBottom);
l4->addWidget(left, TQt::AlignLeft);
l4->addWidget(hcenter, TQt::AlignCenter);
l4->addWidget(right, TQt::AlignRight);
l5->addWidget(top, TQt::AlignTop);
l5->addWidget(vcenter, TQt::AlignVCenter);
l5->addWidget(bottom, TQt::AlignBottom);
}
KPImagePage::~KPImagePage()

@ -166,7 +166,7 @@ KPSchedulePage::KPSchedulePage(TQWidget *parent, const char *name)
TQLabel *lab2 = new TQLabel(i18n("T&op/Bottom page label:"), this);
TQWhatsThis::add(lab2, whatsThisPageLabel);
lab2->setBuddy(m_pagelabel);
m_priority->setLabel(i18n("&Job priority:"), Qt::AlignVCenter|Qt::AlignLeft);
m_priority->setLabel(i18n("&Job priority:"), TQt::AlignVCenter|TQt::AlignLeft);
TQWhatsThis::add(m_priority, whatsThisJobPriority);
KSeparator *sep0 = new KSeparator(this);

@ -188,31 +188,31 @@ KPTextPage::KPTextPage(DrMain *driver, TQWidget *parent, const char *name)
setTitle(i18n("Text"));
m_block = false;
TQGroupBox *formatbox = new TQGroupBox(0, Qt::Vertical, i18n("Text Format"), this);
TQGroupBox *formatbox = new TQGroupBox(0, TQt::Vertical, i18n("Text Format"), this);
TQWhatsThis::add(formatbox, whatsThisFormatTextPage);
TQGroupBox *prettybox = new TQGroupBox(0, Qt::Vertical, i18n("Syntax Highlighting"), this);
TQGroupBox *prettybox = new TQGroupBox(0, TQt::Vertical, i18n("Syntax Highlighting"), this);
TQWhatsThis::add(prettybox, whatsThisPrettyprintFrameTextPage);
TQGroupBox *marginbox = new TQGroupBox(0, Qt::Vertical, i18n("Margins"), this);
TQGroupBox *marginbox = new TQGroupBox(0, TQt::Vertical, i18n("Margins"), this);
TQWhatsThis::add(marginbox, whatsThisMarginsTextPage);
m_cpi = new KIntNumInput(10, formatbox);
TQWhatsThis::add(m_cpi, whatsThisCPITextPage);
m_cpi->setLabel(i18n("&Chars per inch:"), Qt::AlignLeft|Qt::AlignVCenter);
m_cpi->setLabel(i18n("&Chars per inch:"), TQt::AlignLeft|TQt::AlignVCenter);
m_cpi->setRange(1, 999, 1, false);
m_lpi = new KIntNumInput(m_cpi, 6, formatbox);
TQWhatsThis::add(m_lpi, whatsThisLPITextPage);
m_lpi->setLabel(i18n("&Lines per inch:"), Qt::AlignLeft|Qt::AlignVCenter);
m_lpi->setLabel(i18n("&Lines per inch:"), TQt::AlignLeft|TQt::AlignVCenter);
m_lpi->setRange(1, 999, 1, false);
m_columns = new KIntNumInput(m_lpi, 1, formatbox);
TQWhatsThis::add(m_columns, whatsThisColumnsTextPage);
m_columns->setLabel(i18n("C&olumns:"), Qt::AlignLeft|Qt::AlignVCenter);
m_columns->setLabel(i18n("C&olumns:"), TQt::AlignLeft|TQt::AlignVCenter);
m_columns->setRange(1, 10, 1, false);
KSeparator *sep = new KSeparator(Qt::Horizontal, formatbox);
KSeparator *sep = new KSeparator(TQt::Horizontal, formatbox);
connect(m_columns, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotColumnsChanged(int)));
m_prettypix = new TQLabel(prettybox);
TQWhatsThis::add(m_prettypix, whatsThisPrettyprintPreviewIconTextPage);
m_prettypix->setAlignment(Qt::AlignCenter);
m_prettypix->setAlignment(TQt::AlignCenter);
TQRadioButton *off = new TQRadioButton(i18n("&Disabled"), prettybox);
TQWhatsThis::add(off, whatsThisPrettyprintButtonOffTextPage);
TQRadioButton *on = new TQRadioButton(i18n("&Enabled"), prettybox);

@ -91,7 +91,7 @@ void DriverItem::paintCell(TQPainter *p, const TQColorGroup& cg, int, int width,
if (!m_item || !m_item->isOption() || isSelected())
{
p->setPen((isSelected() ? cg.highlightedText() : (m_conflict ? red : cg.text())));
p->drawText(w,0,width-w,height(),Qt::AlignLeft|Qt::AlignVCenter,text(0));
p->drawText(w,0,width-w,height(),TQt::AlignLeft|TQt::AlignVCenter,text(0));
}
else
{
@ -99,17 +99,17 @@ void DriverItem::paintCell(TQPainter *p, const TQColorGroup& cg, int, int width,
TQString s(m_item->get("text") + ": <");
w1 = p->fontMetrics().width(s);
p->setPen(cg.text());
p->drawText(w,0,w1,height(),Qt::AlignLeft|Qt::AlignVCenter,s);
p->drawText(w,0,w1,height(),TQt::AlignLeft|TQt::AlignVCenter,s);
w += w1;
p->setPen((m_conflict ? red : darkGreen));
s = m_item->prettyText();
w1 = p->fontMetrics().width(s);
p->drawText(w,0,w1,height(),Qt::AlignLeft|Qt::AlignVCenter,s);
p->drawText(w,0,w1,height(),TQt::AlignLeft|TQt::AlignVCenter,s);
w += w1;
p->setPen(cg.text());
s = TQString::fromLatin1(">");
w1 = p->fontMetrics().width(s);
p->drawText(w,0,w1,height(),Qt::AlignLeft|Qt::AlignVCenter,s);
p->drawText(w,0,w1,height(),TQt::AlignLeft|TQt::AlignVCenter,s);
}
}

@ -95,7 +95,7 @@ DriverView::DriverView(TQWidget *parent, const char *name)
m_driver = 0;
TQSplitter *splitter = new TQSplitter(this);
splitter->setOrientation(Qt::Vertical);
splitter->setOrientation(TQt::Vertical);
TQVBoxLayout *vbox = new TQVBoxLayout(this, 0, 10);
vbox->addWidget(splitter);

@ -56,7 +56,7 @@ OptionNumericView::OptionNumericView(TQWidget *parent, const char *name)
: OptionBaseView(parent,name)
{
m_edit = new TQLineEdit(this);
m_slider = new TQSlider(Qt::Horizontal,this);
m_slider = new TQSlider(TQt::Horizontal,this);
m_slider->setTickmarks(TQSlider::Below);
TQLabel *lab = new TQLabel(i18n("Value:"),this);
m_minval = new TQLabel(this);
@ -305,7 +305,7 @@ DrOptionView::DrOptionView(TQWidget *parent, const char *name)
m_stack->raiseWidget(w);
setTitle(i18n("No Option Selected"));
setColumnLayout(0, Qt::Vertical );
setColumnLayout(0, TQt::Vertical );
layout()->setSpacing( KDialog::spacingHint() );
layout()->setMargin( KDialog::marginHint() );
TQVBoxLayout *main_ = new TQVBoxLayout(TQT_TQLAYOUT(layout()), KDialog::marginHint());

@ -165,7 +165,7 @@ KPCopiesPage::KPCopiesPage(KPrinter *prt, TQWidget *parent, const char *name)
setId(KPrinter::CopiesPage);
// widget creation
TQButtonGroup *m_pagebox = new TQButtonGroup(0, Qt::Vertical, i18n("Page Selection"), this);
TQButtonGroup *m_pagebox = new TQButtonGroup(0, TQt::Vertical, i18n("Page Selection"), this);
TQWhatsThis::add(m_pagebox, whatsThisPageSelectionLabel);
m_all = new TQRadioButton(i18n("&All"), m_pagebox);
TQWhatsThis::add(m_all, whatsThisAllPagesLabel);
@ -180,14 +180,14 @@ KPCopiesPage::KPCopiesPage(KPrinter *prt, TQWidget *parent, const char *name)
// TQWhatsThis::add(m_rangeedit, i18n("<p>Enter pages or group of pages to print separated by commas (1,2-5,8).</p>"));
//TQLabel *m_rangeexpl = new TQLabel(m_pagebox);
//m_rangeexpl->setText(i18n("<p>Enter pages or group of pages to print separated by commas (1,2-5,8).</p>"));
TQGroupBox *m_copybox = new TQGroupBox(0, Qt::Vertical, i18n("Output Settings"), this);
TQGroupBox *m_copybox = new TQGroupBox(0, TQt::Vertical, i18n("Output Settings"), this);
TQWhatsThis::add(m_copybox, whatsThisCopiesLabel);
m_collate = new TQCheckBox(i18n("Co&llate"), m_copybox);
TQWhatsThis::add(m_collate, whatsThisCollateLabel);
m_order = new TQCheckBox(i18n("Re&verse"), m_copybox);
TQWhatsThis::add(m_order, whatsThisReverseLabel);
m_collatepix = new TQLabel(m_copybox);
m_collatepix->setAlignment(Qt::AlignCenter);
m_collatepix->setAlignment(TQt::AlignCenter);
m_collatepix->setMinimumHeight(70);
TQLabel *m_copieslabel = new TQLabel(i18n("Cop&ies:"), m_copybox);
m_copies = new TQSpinBox(m_copybox);
@ -203,7 +203,7 @@ KPCopiesPage::KPCopiesPage(KPrinter *prt, TQWidget *parent, const char *name)
TQLabel *m_pagesetlabel = new TQLabel(i18n("Page &set:"), m_pagebox);
m_pagesetlabel->setBuddy(m_pageset);
TQWhatsThis::add(m_pagesetlabel, whatsThisPageSetLabel);
KSeparator *sepline = new KSeparator(Qt::Horizontal, m_pagebox);
KSeparator *sepline = new KSeparator(TQt::Horizontal, m_pagebox);
sepline->setMinimumHeight(10);
TQWidget::setTabOrder( m_all, m_current );

@ -262,15 +262,15 @@ KPGeneralPage::KPGeneralPage(KMPrinter *pr, DrMain *dr, TQWidget *parent, const
// widget creation
TQLabel *m_pagesizelabel = new TQLabel(i18n("Page s&ize:"), this);
m_pagesizelabel->setAlignment(Qt::AlignVCenter|Qt::AlignRight);
m_pagesizelabel->setAlignment(TQt::AlignVCenter|TQt::AlignRight);
TQWhatsThis::add(m_pagesizelabel, whatsThisGeneralPageSizeLabel);
TQLabel *m_papertypelabel = new TQLabel(i18n("Paper t&ype:"), this);
m_papertypelabel->setAlignment(Qt::AlignVCenter|Qt::AlignRight);
m_papertypelabel->setAlignment(TQt::AlignVCenter|TQt::AlignRight);
TQWhatsThis::add(m_papertypelabel, whatsThisGeneralPaperTypeLabel);
TQLabel *m_inputslotlabel = new TQLabel(i18n("Paper so&urce:"), this);
m_inputslotlabel->setAlignment(Qt::AlignVCenter|Qt::AlignRight);
m_inputslotlabel->setAlignment(TQt::AlignVCenter|TQt::AlignRight);
TQWhatsThis::add(m_inputslotlabel, whatsThisGeneralPaperSourceLabel);
m_pagesize = new TQComboBox(this);
@ -286,16 +286,16 @@ KPGeneralPage::KPGeneralPage(KMPrinter *pr, DrMain *dr, TQWidget *parent, const
m_papertypelabel->setBuddy(m_papertype);
m_inputslotlabel->setBuddy(m_inputslot);
m_orientbox = new TQButtonGroup(0, Qt::Vertical, i18n("Orientation"), this);
m_orientbox = new TQButtonGroup(0, TQt::Vertical, i18n("Orientation"), this);
TQWhatsThis::add(m_orientbox, whatsThisGeneralOrientationLabel);
m_duplexbox = new TQButtonGroup(0, Qt::Vertical, i18n("Duplex Printing"), this);
m_duplexbox = new TQButtonGroup(0, TQt::Vertical, i18n("Duplex Printing"), this);
TQWhatsThis::add(m_duplexbox, whatsThisGeneralDuplexLabel);
m_nupbox = new TQButtonGroup(0, Qt::Vertical, i18n("Pages per Sheet"), this);
m_nupbox = new TQButtonGroup(0, TQt::Vertical, i18n("Pages per Sheet"), this);
TQWhatsThis::add(m_nupbox, whatsThisGeneralPagesPerSheetLabel);
m_bannerbox = new TQGroupBox(0, Qt::Vertical, i18n("Banners"), this);
m_bannerbox = new TQGroupBox(0, TQt::Vertical, i18n("Banners"), this);
TQWhatsThis::add(m_bannerbox, whatsThisGeneralBannersLabel);
TQRadioButton *m_portrait = new TQRadioButton(i18n("&Portrait"), m_orientbox);
@ -305,19 +305,19 @@ KPGeneralPage::KPGeneralPage(KMPrinter *pr, DrMain *dr, TQWidget *parent, const
m_portrait->setChecked(true);
m_orientpix = new TQLabel(m_orientbox);
m_orientpix->setAlignment(Qt::AlignCenter);
m_orientpix->setAlignment(TQt::AlignCenter);
TQRadioButton *m_dupnone = new TQRadioButton(i18n("duplex orientation", "&None"), m_duplexbox);
TQRadioButton *m_duplong = new TQRadioButton(i18n("duplex orientation", "Lon&g side"), m_duplexbox);
TQRadioButton *m_dupshort = new TQRadioButton(i18n("duplex orientation", "S&hort side"), m_duplexbox);
m_dupnone->setChecked(true);
m_duplexpix = new TQLabel(m_duplexbox);
m_duplexpix->setAlignment(Qt::AlignCenter);
m_duplexpix->setAlignment(TQt::AlignCenter);
TQRadioButton *m_nup1 = new TQRadioButton("&1", m_nupbox);
TQRadioButton *m_nup2 = new TQRadioButton("&2", m_nupbox);
TQRadioButton *m_nup4 = new TQRadioButton("&4", m_nupbox);
m_nup1->setChecked(true);
m_nuppix = new TQLabel(m_nupbox);
m_nuppix->setAlignment(Qt::AlignCenter);
m_nuppix->setAlignment(TQt::AlignCenter);
m_startbanner = new TQComboBox(m_bannerbox);
m_endbanner = new TQComboBox(m_bannerbox);
TQLabel *m_startbannerlabel = new TQLabel(i18n("S&tart:"), m_bannerbox);

@ -42,7 +42,7 @@ KPMarginPage::KPMarginPage(KPrinter *prt, DrMain *driver, TQWidget *parent, cons
setTitle(i18n("Margins"));
m_usedriver = true;
TQGroupBox *box = new TQGroupBox(1, Qt::Vertical, i18n("Margins"), this);
TQGroupBox *box = new TQGroupBox(1, TQt::Vertical, i18n("Margins"), this);
m_margin = new MarginWidget(box, "MarginWidget", (m_printer != 0));
//m_margin->setSymetricMargins(true);
//if (m_printer)

@ -116,11 +116,11 @@ void KPQtPage::init()
m_pagesize = new TQComboBox(this);
TQWhatsThis::add(m_pagesize, whatsThisPageSizeOtPageLabel);
TQLabel *m_pagesizelabel = new TQLabel(i18n("Page s&ize:"), this);
m_pagesizelabel->setAlignment(Qt::AlignVCenter|Qt::AlignRight);
m_pagesizelabel->setAlignment(TQt::AlignVCenter|TQt::AlignRight);
m_pagesizelabel->setBuddy(m_pagesize);
m_orientbox = new TQButtonGroup(0, Qt::Vertical, i18n("Orientation"), this);
m_orientbox = new TQButtonGroup(0, TQt::Vertical, i18n("Orientation"), this);
TQWhatsThis::add(m_orientbox, whatsThisOrientationOtPageLabel);
m_colorbox = new TQButtonGroup(0, Qt::Vertical, i18n("Color Mode"), this);
m_colorbox = new TQButtonGroup(0, TQt::Vertical, i18n("Color Mode"), this);
TQWhatsThis::add(m_colorbox, whatsThisColorModeOtPageLabel);
TQRadioButton *m_portrait = new TQRadioButton(i18n("&Portrait"), m_orientbox);
TQWhatsThis::add(m_portrait, whatsThisOrientationOtPageLabel);
@ -129,7 +129,7 @@ void KPQtPage::init()
TQWhatsThis::add(m_landscape, whatsThisOrientationOtPageLabel);
m_orientpix = new TQLabel(m_orientbox);
m_orientpix->setAlignment(Qt::AlignCenter);
m_orientpix->setAlignment(TQt::AlignCenter);
TQWhatsThis::add(m_orientpix, whatsThisOrientationOtPageLabel);
TQRadioButton *m_color = new TQRadioButton(i18n("Colo&r"), m_colorbox);
@ -137,10 +137,10 @@ void KPQtPage::init()
TQRadioButton *m_grayscale = new TQRadioButton(i18n("&Grayscale"), m_colorbox);
m_colorpix = new TQLabel(m_colorbox);
m_colorpix->setAlignment(Qt::AlignCenter);
m_colorpix->setAlignment(TQt::AlignCenter);
TQWhatsThis::add(m_colorpix, whatsThisColorModeOtPageLabel);
m_nupbox = new TQButtonGroup(0, Qt::Vertical, i18n("Pages per Sheet"), this);
m_nupbox = new TQButtonGroup(0, TQt::Vertical, i18n("Pages per Sheet"), this);
// TQWhatsThis::add(m_nupbox, whatsThisPagesPerSheetOtPageLabel);
TQRadioButton *m_nup1 = new TQRadioButton("&1", m_nupbox);
TQWhatsThis::add(m_nup1, whatsThisPagesPerSheetOtPageLabel);
@ -152,7 +152,7 @@ void KPQtPage::init()
TQWhatsThis::add(m_nupother, whatsThisPagesPerSheetOtPageLabel);
m_nuppix = new TQLabel(m_nupbox);
m_nuppix->setAlignment(Qt::AlignCenter);
m_nuppix->setAlignment(TQt::AlignCenter);
TQWhatsThis::add(m_nuppix, whatsThisPagesPerSheetOtPageLabel);
// layout creation

@ -262,7 +262,7 @@ KPrintDialog::KPrintDialog(TQWidget *parent, const char *name)
setCaption(i18n("Print"));
// widget creation
TQGroupBox *m_pbox = new TQGroupBox(0,Qt::Vertical,i18n("Printer"), this);
TQGroupBox *m_pbox = new TQGroupBox(0,TQt::Vertical,i18n("Printer"), this);
d->m_type = new TQLabel(m_pbox);
TQWhatsThis::add(d->m_type, whatsThisPrinterType);
d->m_state = new TQLabel(m_pbox);

@ -157,8 +157,8 @@ KPrintPreview::KPrintPreview(TQWidget *parent, bool previewOnly)
KStdAction::close(TQT_TQOBJECT(this), TQT_SLOT(reject()), d->actions_, "close_print");
else
{
new TDEAction(i18n("Print"), "document-print", Qt::Key_Return, TQT_TQOBJECT(this), TQT_SLOT(accept()), d->actions_, "continue_print");
new TDEAction(i18n("Cancel"), "process-stop", Qt::Key_Escape, TQT_TQOBJECT(this), TQT_SLOT(reject()), d->actions_, "stop_print");
new TDEAction(i18n("Print"), "document-print", TQt::Key_Return, TQT_TQOBJECT(this), TQT_SLOT(accept()), d->actions_, "continue_print");
new TDEAction(i18n("Cancel"), "process-stop", TQt::Key_Escape, TQT_TQOBJECT(this), TQT_SLOT(reject()), d->actions_, "stop_print");
}
}

@ -34,7 +34,7 @@ KMConfigLpr::KMConfigLpr(TQWidget *parent, const char *name)
setPageHeader(i18n("Spooler Settings"));
setPagePixmap("gear");
TQGroupBox *m_modebox = new TQGroupBox(1, Qt::Vertical, i18n("Spooler"), this);
TQGroupBox *m_modebox = new TQGroupBox(1, TQt::Vertical, i18n("Spooler"), this);
m_mode = new TQComboBox(m_modebox);
m_mode->insertItem("LPR (BSD compatible)");

@ -74,7 +74,7 @@ void CJanusWidget::CListBoxItem::paint(TQPainter *p)
int w1 = (listBox()->contentsWidth()-m_pix.width())/2;
p->drawPixmap(w1,5,m_pix);
p->drawText(0,7+m_pix.height(),listBox()->contentsWidth(),p->fontMetrics().lineSpacing(),Qt::AlignHCenter,text());
p->drawText(0,7+m_pix.height(),listBox()->contentsWidth(),p->fontMetrics().lineSpacing(),TQt::AlignHCenter,text());
}
//***********************************************************************************

@ -34,7 +34,7 @@ KMConfigCommand::KMConfigCommand(TQWidget *parent, const char *name)
setPageHeader(i18n("Command Settings"));
setPagePixmap("application-x-executable");
TQGroupBox *gb = new TQGroupBox(0, Qt::Horizontal, i18n("Edit/Create Commands"), this);
TQGroupBox *gb = new TQGroupBox(0, TQt::Horizontal, i18n("Edit/Create Commands"), this);
TQLabel *lab = new TQLabel(i18n(
"<p>Command objects perform a conversion from input to output.<br>"
"They are used as the basis to build both print filters "

@ -41,7 +41,7 @@ KMConfigFilter::KMConfigFilter(TQWidget *parent, const char *name)
setPageHeader(i18n("Printer Filtering Settings"));
setPagePixmap("filter");
TQGroupBox *box = new TQGroupBox(0, Qt::Vertical, i18n("Printer Filter"), this);
TQGroupBox *box = new TQGroupBox(0, TQt::Vertical, i18n("Printer Filter"), this);
m_list1 = new TDEListBox(box);
m_list1->setSelectionMode(TDEListBox::Extended);

@ -43,8 +43,8 @@ KMConfigFonts::KMConfigFonts(TQWidget *parent, const char *name)
setPageHeader(i18n("Font Settings"));
setPagePixmap("fonts");
TQGroupBox *box = new TQGroupBox(0, Qt::Vertical, i18n("Fonts Embedding"), this);
TQGroupBox *box2 = new TQGroupBox(0, Qt::Vertical, i18n("Fonts Path"), this);
TQGroupBox *box = new TQGroupBox(0, TQt::Vertical, i18n("Fonts Embedding"), this);
TQGroupBox *box2 = new TQGroupBox(0, TQt::Vertical, i18n("Fonts Path"), this);
m_embedfonts = new TQCheckBox(i18n("&Embed fonts in PostScript data when printing"), box);
m_fontpath = new TDEListView(box2);

@ -45,7 +45,7 @@ KMConfigGeneral::KMConfigGeneral(TQWidget *parent)
setPageHeader(i18n("General Settings"));
setPagePixmap("document-print");
TQGroupBox *m_timerbox = new TQGroupBox(0, Qt::Vertical, i18n("Refresh Interval"), this);
TQGroupBox *m_timerbox = new TQGroupBox(0, TQt::Vertical, i18n("Refresh Interval"), this);
m_timer = new KIntNumInput(m_timerbox,"Timer");
m_timer->setRange(0,30);
m_timer->setSuffix( i18n( " sec" ) );
@ -54,7 +54,7 @@ KMConfigGeneral::KMConfigGeneral(TQWidget *parent)
"<b>TDE Print</b> components like the print manager "
"and the job viewer."));
TQGroupBox *m_testpagebox = new TQGroupBox(0, Qt::Vertical, i18n("Test Page"), this);
TQGroupBox *m_testpagebox = new TQGroupBox(0, TQt::Vertical, i18n("Test Page"), this);
m_defaulttestpage = new TQCheckBox(i18n("&Specify personal test page"), m_testpagebox, "TestPageCheck");
m_testpage = new KURLRequester(m_testpagebox,"TestPage");
m_preview = new KPushButton(KGuiItem(i18n("Preview..."), "filefind"), m_testpagebox);
@ -66,7 +66,7 @@ KMConfigGeneral::KMConfigGeneral(TQWidget *parent)
m_preview->setDisabled(true);
m_defaulttestpage->setCursor(KCursor::handCursor());
TQGroupBox *m_statusbox = new TQGroupBox(0, Qt::Vertical, i18n("Miscellaneous"), this);
TQGroupBox *m_statusbox = new TQGroupBox(0, TQt::Vertical, i18n("Miscellaneous"), this);
m_statusmsg = new TQCheckBox(i18n("Sho&w printing status message box"), m_statusbox);
m_uselast = new TQCheckBox(i18n("De&faults to the last printer used in the application"), m_statusbox);

@ -34,7 +34,7 @@ KMConfigJobs::KMConfigJobs(TQWidget *parent, const char *name)
setPageHeader(i18n("Print Job Settings"));
setPagePixmap("application-x-executable");
TQGroupBox *box = new TQGroupBox(0, Qt::Vertical, i18n("Jobs Shown"), this);
TQGroupBox *box = new TQGroupBox(0, TQt::Vertical, i18n("Jobs Shown"), this);
m_limit = new KIntNumInput(box);
m_limit->setRange(0, 9999, 1, true);

@ -36,7 +36,7 @@ KMConfigPreview::KMConfigPreview(TQWidget *parent, const char *name)
setPageHeader(i18n("Preview Settings"));
setPagePixmap("filefind");
TQGroupBox *box = new TQGroupBox(0, Qt::Vertical, i18n("Preview Program"), this);
TQGroupBox *box = new TQGroupBox(0, TQt::Vertical, i18n("Preview Program"), this);
m_useext = new TQCheckBox(i18n("&Use external preview program"), box);
m_program = new KURLRequester(box);

@ -32,7 +32,7 @@ KMInfoPage::KMInfoPage(TQWidget *parent, const char *name)
{
m_title = new TQLabel(this);
m_titlepixmap = new TQLabel(this);
m_titlepixmap->setAlignment(Qt::AlignCenter);
m_titlepixmap->setAlignment(TQt::AlignCenter);
KSeparator* sep = new KSeparator( KSeparator::HLine, this);
m_type = new TQLabel(this);
m_description = new TQLabel(this);
@ -42,19 +42,19 @@ KMInfoPage::KMInfoPage(TQWidget *parent, const char *name)
m_uri = new TQLabel(this);
m_device = new TQLabel(this);
TQLabel *m_loclabel = new TQLabel(i18n("Physical Location", "Location:"), this);
m_loclabel->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
m_loclabel->setAlignment(TQt::AlignRight|TQt::AlignVCenter);
TQLabel *m_desclabel = new TQLabel(i18n("Description:"), this);
m_desclabel->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
m_desclabel->setAlignment(TQt::AlignRight|TQt::AlignVCenter);
TQLabel *m_typelabel = new TQLabel(i18n("Type:"), this);
m_typelabel->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
m_typelabel->setAlignment(TQt::AlignRight|TQt::AlignVCenter);
TQLabel *m_statelabel = new TQLabel(i18n("Status", "State:"), this);
m_statelabel->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
m_statelabel->setAlignment(TQt::AlignRight|TQt::AlignVCenter);
TQLabel *m_urilabel = new TQLabel(i18n("URI:"), this);
m_urilabel->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
m_urilabel->setAlignment(TQt::AlignRight|TQt::AlignVCenter);
m_devlabel = new TQLabel(i18n("Device:"), this);
m_devlabel->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
m_devlabel->setAlignment(TQt::AlignRight|TQt::AlignVCenter);
TQLabel *m_modellabel = new TQLabel(i18n("Model:"), this);
m_modellabel->setAlignment(Qt::AlignRight|Qt::AlignVCenter);
m_modellabel->setAlignment(TQt::AlignRight|TQt::AlignVCenter);
TQGridLayout *lay0 = new TQGridLayout(this, 11, 2, 0, 5);
TQHBoxLayout *lay1 = new TQHBoxLayout(0, 0, 10);

@ -240,10 +240,10 @@ void KMJobViewer::init()
m_view->addColumn(i18n("Status", "State"));
m_view->addColumn(i18n("Size (KB)"));
m_view->addColumn(i18n("Page(s)"));
m_view->setColumnAlignment(5,Qt::AlignRight|Qt::AlignVCenter);
m_view->setColumnAlignment(5,TQt::AlignRight|TQt::AlignVCenter);
connect( m_view, TQT_SIGNAL( dropped( TQDropEvent*, TQListViewItem* ) ), TQT_SLOT( slotDropped( TQDropEvent*, TQListViewItem* ) ) );
//m_view->addColumn(i18n("Printer"));
//m_view->setColumnAlignment(6,Qt::AlignRight|Qt::AlignVCenter);
//m_view->setColumnAlignment(6,TQt::AlignRight|TQt::AlignVCenter);
KMFactory::self()->uiManager()->setupJobViewer(m_view);
m_view->setFrameStyle(TQFrame::WinPanel|TQFrame::Sunken);
m_view->setLineWidth(1);
@ -263,7 +263,7 @@ void KMJobViewer::initActions()
// job actions
TDEAction *hact = new TDEAction(i18n("&Hold"),"process-stop",0,TQT_TQOBJECT(this),TQT_SLOT(slotHold()),actionCollection(),"job_hold");
TDEAction *ract = new TDEAction(i18n("&Resume"),"system-run",0,TQT_TQOBJECT(this),TQT_SLOT(slotResume()),actionCollection(),"job_resume");
TDEAction *dact = new TDEAction(i18n("Remo&ve"),"edittrash",Qt::Key_Delete,TQT_TQOBJECT(this),TQT_SLOT(slotRemove()),actionCollection(),"job_remove");
TDEAction *dact = new TDEAction(i18n("Remo&ve"),"edittrash",TQt::Key_Delete,TQT_TQOBJECT(this),TQT_SLOT(slotRemove()),actionCollection(),"job_remove");
TDEAction *sact = new TDEAction(i18n("Res&tart"),"edit-redo",0,TQT_TQOBJECT(this),TQT_SLOT(slotRestart()),actionCollection(),"job_restart");
TDEActionMenu *mact = new TDEActionMenu(i18n("&Move to Printer"),"document-print",actionCollection(),"job_move");
mact->setDelayed(false);

@ -148,7 +148,7 @@ void KMMainView::restoreSettings()
TDEConfig *conf = KMFactory::self()->printConfig();
conf->setGroup("General");
setViewType((KMPrinterView::ViewType)conf->readNumEntry("ViewType",KMPrinterView::Icons));
setOrientation(conf->readNumEntry("Orientation", Qt::Vertical));
setOrientation(conf->readNumEntry("Orientation", TQt::Vertical));
bool view = conf->readBoolEntry("ViewToolBar",false);
slotToggleToolBar(view);
((TDEToggleAction*)m_actions->action("view_toolbar"))->setChecked(view);
@ -608,13 +608,13 @@ void KMMainView::slotSoftDefault()
void KMMainView::setOrientation(int o)
{
int ID = (o == Qt::Horizontal ? 1 : 0);
int ID = (o == TQt::Horizontal ? 1 : 0);
((TDESelectAction*)m_actions->action("orientation_change"))->setCurrentItem(ID);
slotChangeDirection(ID);
}
int KMMainView::orientation() const
{ return (m_boxlayout->direction() == TQBoxLayout::LeftToRight ? Qt::Horizontal : Qt::Vertical); }
{ return (m_boxlayout->direction() == TQBoxLayout::LeftToRight ? TQt::Horizontal : TQt::Vertical); }
void KMMainView::slotChangeDirection(int d)
{

@ -44,7 +44,7 @@ KMPropDriver::KMPropDriver(TQWidget *parent, const char *name)
main_->setRowStretch(3,1);
main_->addWidget(l1,0,0);
main_->addWidget(l2,1,0);
main_->addWidget(l3,2,0,Qt::AlignTop|Qt::AlignLeft);
main_->addWidget(l3,2,0,TQt::AlignTop|TQt::AlignLeft);
main_->addWidget(m_manufacturer,0,1);
main_->addWidget(m_model,1,1);
main_->addWidget(m_driverinfo,2,1);

@ -63,10 +63,10 @@ KMSpecialPrinterDlg::KMSpecialPrinterDlg(TQWidget *parent, const char *name)
KSeparator* sep = new KSeparator( KSeparator::HLine, dummy);
sep->setFixedHeight(10);
TQGroupBox *m_gb = new TQGroupBox(1, Qt::Horizontal, i18n("Command &Settings"), dummy);
TQGroupBox *m_gb = new TQGroupBox(1, TQt::Horizontal, i18n("Command &Settings"), dummy);
m_command = new KXmlCommandSelector(true, m_gb, "CommandSelector", this);
TQGroupBox *m_outfile_gb = new TQGroupBox( 0, Qt::Horizontal, i18n( "Outp&ut File" ), dummy );
TQGroupBox *m_outfile_gb = new TQGroupBox( 0, TQt::Horizontal, i18n( "Outp&ut File" ), dummy );
m_usefile = new TQCheckBox( i18n("&Enable output file"), m_outfile_gb);
@ -128,7 +128,7 @@ KMSpecialPrinterDlg::KMSpecialPrinterDlg(TQWidget *parent, const char *name)
l0->addLayout(TQT_TQLAYOUT(l1));
l1->setColStretch(2,1);
l1->addColSpacing(0,60);
l1->addMultiCellWidget(m_icon, 0, 2, 0, 0, Qt::AlignCenter);
l1->addMultiCellWidget(m_icon, 0, 2, 0, 0, TQt::AlignCenter);
l1->addWidget(m_namelabel, 0, 1);
l1->addWidget(m_desclabel, 1, 1);
l1->addWidget(m_loclabel, 2, 1);

@ -72,7 +72,7 @@ KMWDriverTest::KMWDriverTest(TQWidget *parent, const char *name)
lay2->addColSpacing(1,10);
lay2->addWidget(l1,0,0);
lay2->addWidget(l2,1,0);
lay2->addWidget(l3,2,0,Qt::AlignLeft|Qt::AlignTop);
lay2->addWidget(l3,2,0,TQt::AlignLeft|TQt::AlignTop);
lay2->addWidget(m_manufacturer,0,2);
lay2->addWidget(m_model,1,2);
lay2->addWidget(m_driverinfo,2,2);

@ -58,7 +58,7 @@ SocketConfig::SocketConfig(KMWSocketUtil *util, TQWidget *parent, const char *na
mm->setFixedWidth(fontMetrics().width(mm->text())+10);
mask_ = new TQLineEdit(dummy);
mask_->setAlignment(Qt::AlignRight);
mask_->setAlignment(TQt::AlignRight);
port_ = new TQComboBox(true,dummy);
if ( port_->lineEdit() )
port_->lineEdit()->setValidator( val );

@ -125,7 +125,7 @@ KXmlCommandAdvancedDlg::KXmlCommandAdvancedDlg(TQWidget *parent, const char *nam
m_commandlab->setBuddy(m_command);
m_persistent = new TQCheckBox( i18n( "&Persistent option" ), m_dummy );
TQGroupBox *gb = new TQGroupBox(0, Qt::Horizontal, i18n("Va&lues"), m_dummy);
TQGroupBox *gb = new TQGroupBox(0, TQt::Horizontal, i18n("Va&lues"), m_dummy);
m_stack = new TQWidgetStack(gb);
TQWidget *w1 = new TQWidget(m_stack), *w2 = new TQWidget(m_stack), *w3 = new TQWidget(m_stack);
m_stack->addWidget(w1, 1);
@ -159,8 +159,8 @@ KXmlCommandAdvancedDlg::KXmlCommandAdvancedDlg(TQWidget *parent, const char *nam
KSeparator *sep1 = new KSeparator(KSeparator::HLine, m_dummy);
TQGroupBox *gb_input = new TQGroupBox(0, Qt::Horizontal, i18n("&Input From"), this);
TQGroupBox *gb_output = new TQGroupBox(0, Qt::Horizontal, i18n("O&utput To"), this);
TQGroupBox *gb_input = new TQGroupBox(0, TQt::Horizontal, i18n("&Input From"), this);
TQGroupBox *gb_output = new TQGroupBox(0, TQt::Horizontal, i18n("O&utput To"), this);
TQLabel *m_inputfilelab = new TQLabel(i18n("File:"), gb_input);
TQLabel *m_inputpipelab = new TQLabel(i18n("Pipe:"), gb_input);
TQLabel *m_outputfilelab = new TQLabel(i18n("File:"), gb_output);
@ -201,16 +201,16 @@ KXmlCommandAdvancedDlg::KXmlCommandAdvancedDlg(TQWidget *parent, const char *nam
l7->addStretch(1);
l0->addWidget(m_dummy, 1);
TQGridLayout *l1 = new TQGridLayout(m_dummy, 9, 2, 0, KDialog::spacingHint());
l1->addWidget(m_desclab, 0, 0, Qt::AlignRight|Qt::AlignVCenter);
l1->addWidget(m_desclab, 0, 0, TQt::AlignRight|TQt::AlignVCenter);
l1->addWidget(m_desc, 0, 1);
l1->addMultiCellWidget(sep1, 1, 1, 0, 1);
l1->addWidget(m_namelab, 2, 0, Qt::AlignRight|Qt::AlignVCenter);
l1->addWidget(m_namelab, 2, 0, TQt::AlignRight|TQt::AlignVCenter);
l1->addWidget(m_name, 2, 1);
l1->addWidget(m_typelab, 3, 0, Qt::AlignRight|Qt::AlignVCenter);
l1->addWidget(m_typelab, 3, 0, TQt::AlignRight|TQt::AlignVCenter);
l1->addWidget(m_type, 3, 1);
l1->addWidget(m_formatlab, 4, 0, Qt::AlignRight|Qt::AlignVCenter);
l1->addWidget(m_formatlab, 4, 0, TQt::AlignRight|TQt::AlignVCenter);
l1->addWidget(m_format, 4, 1);
l1->addWidget(m_defaultlab, 5, 0, Qt::AlignRight|Qt::AlignVCenter);
l1->addWidget(m_defaultlab, 5, 0, TQt::AlignRight|TQt::AlignVCenter);
l1->addWidget(m_default, 5, 1);
l1->addWidget( m_persistent, 6, 1 );
l1->addMultiCellWidget(gb, 7, 7, 0, 1);
@ -225,8 +225,8 @@ KXmlCommandAdvancedDlg::KXmlCommandAdvancedDlg(TQWidget *parent, const char *nam
l6->addStretch(1);
TQGridLayout *l5 = new TQGridLayout(w1, 3, 2, 0, KDialog::spacingHint());
l5->setRowStretch(2, 1);
l5->addWidget(m_editlab1, 0, 0, Qt::AlignRight|Qt::AlignVCenter);
l5->addWidget(m_editlab2, 1, 0, Qt::AlignRight|Qt::AlignVCenter);
l5->addWidget(m_editlab1, 0, 0, TQt::AlignRight|TQt::AlignVCenter);
l5->addWidget(m_editlab2, 1, 0, TQt::AlignRight|TQt::AlignVCenter);
l5->addWidget(m_edit1, 0, 1);
l5->addWidget(m_edit2, 1, 1);
@ -836,8 +836,8 @@ KXmlCommandDlg::KXmlCommandDlg(TQWidget *parent, const char *name)
TQWidget *dummy = new TQWidget(this, "TopDetail");
TQWidget *topmain = new TQWidget(this, "TopMain");
TQGroupBox *m_gb1 = new TQGroupBox(0, Qt::Horizontal, i18n("Supported &Input Formats"), dummy);
TQGroupBox *m_gb2 = new TQGroupBox(0, Qt::Horizontal, i18n("Requirements"), topmain);
TQGroupBox *m_gb1 = new TQGroupBox(0, TQt::Horizontal, i18n("Supported &Input Formats"), dummy);
TQGroupBox *m_gb2 = new TQGroupBox(0, TQt::Horizontal, i18n("Requirements"), topmain);
m_description = new TQLineEdit(topmain);
m_idname = new TQLabel(topmain);

@ -91,7 +91,7 @@ KXmlCommandSelector::KXmlCommandSelector(bool canBeNull, TQWidget *parent, const
l1->addWidget(m_line);
l1->addWidget(m_browse);
KSeparator *sep = new KSeparator(Qt::Horizontal, this);
KSeparator *sep = new KSeparator(TQt::Horizontal, this);
l0->addWidget(sep);
}
else

@ -344,7 +344,7 @@ NetworkScannerConfig::NetworkScannerConfig(NetworkScanner *scanner, const char *
mm->setFixedWidth(fontMetrics().width(mm->text())+10);
mask_ = new TQLineEdit(dummy);
mask_->setAlignment(Qt::AlignRight);
mask_->setAlignment(TQt::AlignRight);
port_ = new TQComboBox(true,dummy);
if ( port_->lineEdit() )
port_->lineEdit()->setValidator( val );

@ -37,16 +37,16 @@
static void draw3DPage(TQPainter *p, TQRect r)
{
// draw white page
p->fillRect(r,Qt::white);
p->fillRect(r,TQt::white);
// draw 3D border
p->setPen(Qt::black);
p->setPen(TQt::black);
p->moveTo(r.left(),r.bottom());
p->lineTo(r.right(),r.bottom());
p->lineTo(r.right(),r.top());
p->setPen(Qt::darkGray);
p->setPen(TQt::darkGray);
p->lineTo(r.left(),r.top());
p->lineTo(r.left(),r.bottom());
p->setPen(Qt::gray);
p->setPen(TQt::gray);
p->moveTo(r.left()+1,r.bottom()-1);
p->lineTo(r.right()-1,r.bottom()-1);
p->lineTo(r.right()-1,r.top()+1);
@ -189,7 +189,7 @@ void MarginPreview::mouseMoveEvent(TQMouseEvent *e)
if (nopreview_ || state_ == Fixed)
return;
int pos = locateMouse(e->pos());
if (state_ == None && e->button() == Qt::NoButton)
if (state_ == None && e->button() == TQt::NoButton)
{
switch (pos)
{
@ -262,7 +262,7 @@ void MarginPreview::drawTempLine(TQPainter *p)
void MarginPreview::mousePressEvent(TQMouseEvent *e)
{
if (e->button() != Qt::LeftButton || state_ != None)
if (e->button() != TQt::LeftButton || state_ != None)
return;
int mpos = locateMouse(e->pos());
if (mpos)

@ -155,10 +155,10 @@ MarginWidget::MarginWidget(TQWidget *parent, const char* name, bool allowMetricU
TQWhatsThis::add(m_left, whatsThisLeftMarginWidget);
m_right = new MarginValueWidget(m_left, 0.0, this);
TQWhatsThis::add(m_right, whatsThisRightMarginWidget);
m_top->setLabel(i18n("&Top:"), Qt::AlignLeft|Qt::AlignVCenter);
m_bottom->setLabel(i18n("&Bottom:"), Qt::AlignLeft|Qt::AlignVCenter);
m_left->setLabel(i18n("Le&ft:"), Qt::AlignLeft|Qt::AlignVCenter);
m_right->setLabel(i18n("&Right:"), Qt::AlignLeft|Qt::AlignVCenter);
m_top->setLabel(i18n("&Top:"), TQt::AlignLeft|TQt::AlignVCenter);
m_bottom->setLabel(i18n("&Bottom:"), TQt::AlignLeft|TQt::AlignVCenter);
m_left->setLabel(i18n("Le&ft:"), TQt::AlignLeft|TQt::AlignVCenter);
m_right->setLabel(i18n("&Right:"), TQt::AlignLeft|TQt::AlignVCenter);
m_units = new TQComboBox(this);
TQWhatsThis::add(m_units, whatsThisMeasurementUnitMarginWidget);
m_units->insertItem(i18n("Pixels (1/72nd in)"));

@ -144,9 +144,9 @@ void PosterPreview::drawContents( TQPainter *painter )
if ( pw > 0 && ph > 0 )
p->fillRect( x+m_mw+px, y+m_mh+py, TQMIN( pw, m_pw-2*m_mw-px ), TQMIN( ph, m_ph-2*m_mh-py ),
( selected ? TQColor(TDEGlobalSettings::highlightColor().dark( 160 )) : lightGray ) );
p->setPen( Qt::DotLine );
p->setPen( TQt::DotLine );
p->drawRect( x+m_mw, y+m_mh, m_pw-2*m_mw, m_ph-2*m_mh );
p->setPen( Qt::SolidLine );
p->setPen( TQt::SolidLine );
pw -= m_pw-2*m_mw-px;
px = 0;
@ -177,7 +177,7 @@ void PosterPreview::mouseMoveEvent( TQMouseEvent *e )
void PosterPreview::mousePressEvent( TQMouseEvent *e )
{
if ( e->button() == Qt::LeftButton && m_boundingrect.isValid() )
if ( e->button() == TQt::LeftButton && m_boundingrect.isValid() )
{
if ( m_boundingrect.contains( e->pos() ) )
{

@ -29,7 +29,7 @@
#include <kcursor.h>
KMProxyWidget::KMProxyWidget(TQWidget *parent, const char *name)
: TQGroupBox(0, Qt::Vertical, i18n("Proxy Settings"), parent, name)
: TQGroupBox(0, TQt::Vertical, i18n("Proxy Settings"), parent, name)
{
TQLabel *m_hostlabel = new TQLabel(i18n("&Host:"), this);
TQLabel *m_portlabel = new TQLabel(i18n("&Port:"), this);

@ -28,7 +28,7 @@ void drawColorWheel( TQPainter *p )
{
TQFont f( "times", 18, TQFont::Bold );
p->setFont( f );
p->setPen( Qt::black );
p->setPen( TQt::black );
p->setWindow( 0, 0, 500, 500 ); // defines coordinate system
for ( int i=0; i<36; i++ ) { // draws 36 rotated rectangles
@ -83,12 +83,12 @@ void drawFonts( TQPainter *p )
void drawShapes( TQPainter *p )
{
TQBrush b1( Qt::blue );
TQBrush b2( Qt::green, Qt::Dense6Pattern ); // green 12% fill
TQBrush b3( Qt::NoBrush ); // void brush
TQBrush b4( Qt::CrossPattern ); // black cross pattern
TQBrush b1( TQt::blue );