Replaced various '#define' with actual strings - part 3

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/30/head
Michele Calgaro 6 months ago
parent 632eac9517
commit 321ebe8275
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -112,7 +112,7 @@ void QDesignerToolBarSeparator::paintEvent( TQPaintEvent * )
if ( orientation() ==TQt::Horizontal ) if ( orientation() ==TQt::Horizontal )
flags |= TQStyle::Style_Horizontal; flags |= TQStyle::Style_Horizontal;
style().tqdrawPrimitive( TQStyle::PE_DockWindowSeparator, &p, rect(), style().drawPrimitive( TQStyle::PE_DockWindowSeparator, &p, rect(),
colorGroup(), flags ); colorGroup(), flags );
} }

@ -282,7 +282,7 @@ void PropertyItem::paintBranches( TQPainter * p, const TQColorGroup & cg,
void PropertyItem::paintFocus( TQPainter *p, const TQColorGroup &cg, const TQRect &r ) void PropertyItem::paintFocus( TQPainter *p, const TQColorGroup &cg, const TQRect &r )
{ {
p->save(); p->save();
TQApplication::style().tqdrawPrimitive(TQStyle::PE_Panel, p, r, cg, TQApplication::style().drawPrimitive(TQStyle::PE_Panel, p, r, cg,
TQStyle::Style_Sunken, TQStyleOption(1,1) ); TQStyle::Style_Sunken, TQStyleOption(1,1) );
p->restore(); p->restore();
} }

@ -145,12 +145,12 @@ void StyledButton::resizeEvent( TQResizeEvent* e )
void StyledButton::drawButton( TQPainter *paint ) void StyledButton::drawButton( TQPainter *paint )
{ {
style().tqdrawPrimitive(TQStyle::PE_ButtonBevel, paint, rect(), colorGroup(), style().drawPrimitive(TQStyle::PE_ButtonBevel, paint, rect(), colorGroup(),
isDown() ? TQStyle::Style_Sunken : TQStyle::Style_Raised); isDown() ? TQStyle::Style_Sunken : TQStyle::Style_Raised);
drawButtonLabel(paint); drawButtonLabel(paint);
if (hasFocus()) if (hasFocus())
style().tqdrawPrimitive(TQStyle::PE_FocusRect, paint, style().drawPrimitive(TQStyle::PE_FocusRect, paint,
style().subRect(TQStyle::SR_PushButtonFocusRect, this), style().subRect(TQStyle::SR_PushButtonFocusRect, this),
colorGroup(), TQStyle::Style_Default); colorGroup(), TQStyle::Style_Default);
} }

@ -206,7 +206,7 @@ void KDockWidgetHeaderDrag::paintEvent( TQPaintEvent* )
paint.begin( this ); paint.begin( this );
style().tqdrawPrimitive (TQStyle::PE_DockWindowHandle, &paint, TQRect(0,0,width(), height()), colorGroup()); style().drawPrimitive (TQStyle::PE_DockWindowHandle, &paint, TQRect(0,0,width(), height()), colorGroup());
paint.end(); paint.end();
} }
@ -580,7 +580,7 @@ void KDockWidget::paintEvent(TQPaintEvent* pe)
TQWidget::paintEvent(pe); TQWidget::paintEvent(pe);
TQPainter paint; TQPainter paint;
paint.begin( this ); paint.begin( this );
style().tqdrawPrimitive (TQStyle::PE_Panel, &paint, TQRect(0,0,width(), height()), colorGroup()); style().drawPrimitive (TQStyle::PE_Panel, &paint, TQRect(0,0,width(), height()), colorGroup());
paint.end(); paint.end();
} }

@ -174,7 +174,7 @@ unsigned int KTabWidget::tabBarWidthForMaxChars( uint maxLength )
int iw = 0; int iw = 0;
if ( tab->iconSet() ) if ( tab->iconSet() )
iw = tab->iconSet()->pixmap( TQIconSet::Small, TQIconSet::Normal ).width() + 4; iw = tab->iconSet()->pixmap( TQIconSet::Small, TQIconSet::Normal ).width() + 4;
x += ( tabBar()->style().tqsizeFromContents( TQStyle::CT_TabBarTab, this, x += ( tabBar()->style().sizeFromContents( TQStyle::CT_TabBarTab, this,
TQSize( TQMAX( lw + hframe + iw, TQApplication::globalStrut().width() ), 0 ), TQSize( TQMAX( lw + hframe + iw, TQApplication::globalStrut().width() ), 0 ),
TQStyleOption( tab ) ) ).width(); TQStyleOption( tab ) ) ).width();
} }

@ -492,7 +492,7 @@ TQSize KMultiTabBarButton::sizeHint() const
h = TQMAX(h, sz.height()); h = TQMAX(h, sz.height());
} }
return (style().tqsizeFromContents(TQStyle::CT_ToolButton, this, TQSize(w, h)). return (style().sizeFromContents(TQStyle::CT_ToolButton, this, TQSize(w, h)).
expandedTo(TQApplication::globalStrut())); expandedTo(TQApplication::globalStrut()));
} }

@ -324,7 +324,7 @@ void AnnotationOutput::updateAnnotationForFile(const KURL& url)
} else } else
pos++; pos++;
int pos2 = line.find(rx); int pos2 = line.find(rx);
annotations.insert(i, tqMakePair(line.mid(pos, pos2 - pos).stripWhiteSpace(), receiver)); annotations.insert(i, qMakePair(line.mid(pos, pos2 - pos).stripWhiteSpace(), receiver));
} }
++i; ++i;
} }

@ -3115,7 +3115,7 @@ void Document::setAnnotationText(uint line, const TQString& text)
markIf->removeMark(line, KTextEditor::MarkInterface::markType08); markIf->removeMark(line, KTextEditor::MarkInterface::markType08);
} else } else
{ {
m_annotations.insert(line, tqMakePair(text, TQString(""))); m_annotations.insert(line, qMakePair(text, TQString("")));
if (markIf) if (markIf)
markIf->setMark(line, KTextEditor::MarkInterface::markType08); markIf->setMark(line, KTextEditor::MarkInterface::markType08);
uint line, column; uint line, column;
@ -3147,7 +3147,7 @@ void Document::setAnnotationText(uint line, const TQString& text)
s.prepend(commentBegin + " "); s.prepend(commentBegin + " ");
s.append(" " + commentEnd + "\n"); s.append(" " + commentEnd + "\n");
insertText(s, true, true); insertText(s, true, true);
emit showAnnotation(line, "", tqMakePair(text, TQString(""))); emit showAnnotation(line, "", qMakePair(text, TQString("")));
} }
} }

@ -1794,7 +1794,7 @@ TQWidget* QuantaApp::createContainer( TQWidget *parent, int index, const TQDomEl
if ( element.tagName().lower() == "toolbar" && !tabname.isEmpty()) if ( element.tagName().lower() == "toolbar" && !tabname.isEmpty())
{ {
//avoid TQToolBar warning in the log //avoid TQToolBar warning in the log
TQtMsgHandler oldHandler = tqInstallMsgHandler( silenceTQToolBar ); TQtMsgHandler oldHandler = qInstallMsgHandler( silenceTQToolBar );
ToolbarTabWidget *toolbarTab = ToolbarTabWidget::ref(); ToolbarTabWidget *toolbarTab = ToolbarTabWidget::ref();
TQWidget *w = new TQWidget(toolbarTab, TQString("ToolbarHoldingWidget" + element.attribute("name")).ascii()); TQWidget *w = new TQWidget(toolbarTab, TQString("ToolbarHoldingWidget" + element.attribute("name")).ascii());
QuantaToolBar *tb = new QuantaToolBar(w, element.attribute("name").ascii(), true, true); QuantaToolBar *tb = new QuantaToolBar(w, element.attribute("name").ascii(), true, true);
@ -1817,7 +1817,7 @@ TQWidget* QuantaApp::createContainer( TQWidget *parent, int index, const TQDomEl
kdDebug(24000) << "toolbarTab->tabHeight() " << toolbarTab->tabHeight() << endl; kdDebug(24000) << "toolbarTab->tabHeight() " << toolbarTab->tabHeight() << endl;
*/ */
toolbarTab->insertTab(tb, tabname, idStr); toolbarTab->insertTab(tb, tabname, idStr);
tqInstallMsgHandler( oldHandler ); qInstallMsgHandler( oldHandler );
connect(tb, TQT_SIGNAL(removeAction(const TQString&, const TQString&)), connect(tb, TQT_SIGNAL(removeAction(const TQString&, const TQString&)),
TQT_SLOT(slotRemoveAction(const TQString&, const TQString&))); TQT_SLOT(slotRemoveAction(const TQString&, const TQString&)));
@ -4047,7 +4047,7 @@ void QuantaApp::slotReloadStructTreeView(bool groupOnly)
n->next->tag->beginPos(l, c); n->next->tag->beginPos(l, c);
else else
n->tag->endPos(l, c); n->tag->endPos(l, c);
commentTag->write()->addAnnotation(l, tqMakePair(text, receiver)); commentTag->write()->addAnnotation(l, qMakePair(text, receiver));
} }
} }
node = node->nextSibling(); node = node->nextSibling();

Loading…
Cancel
Save