summaryrefslogtreecommitdiffstats
path: root/src/linklabel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/linklabel.cpp')
-rw-r--r--src/linklabel.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/linklabel.cpp b/src/linklabel.cpp
index fa67c54..77d5cd2 100644
--- a/src/linklabel.cpp
+++ b/src/linklabel.cpp
@@ -132,7 +132,7 @@ LinkLook* LinkLook::lookForURL(const KURL &url)
TQString LinkLook::toCSS(const TQString &cssClass, const TQColor &defaultTextColor) const
{
// Set the link class:
- TQString css = TQString(" .%1 a { display: block; width: 100%;").tqarg(cssClass);
+ TQString css = TQString(" .%1 a { display: block; width: 100%;").arg(cssClass);
if (underlineOutside())
css += " text-decoration: underline;";
else
@@ -142,7 +142,7 @@ TQString LinkLook::toCSS(const TQString &cssClass, const TQColor &defaultTextCol
if (m_bold == true)
css += " font-weight: bold;";
TQColor textColor = (color().isValid() || m_useLinkColor ? effectiveColor() : defaultTextColor);
- css += TQString(" color: %1; }\n").tqarg(textColor.name());
+ css += TQString(" color: %1; }\n").arg(textColor.name());
// Set the hover state class:
TQString hover;
@@ -153,12 +153,12 @@ TQString LinkLook::toCSS(const TQString &cssClass, const TQColor &defaultTextCol
if (effectiveHoverColor() != effectiveColor()) {
if (!hover.isEmpty())
hover += " ";
- hover += TQString("color: %4;").tqarg(effectiveHoverColor().name());
+ hover += TQString("color: %4;").arg(effectiveHoverColor().name());
}
// But include it only if it contain a different style than non-hover state:
if (!hover.isEmpty())
- css += TQString(" .%1 a:hover { %2 }\n").tqarg(cssClass, hover);
+ css += TQString(" .%1 a:hover { %2 }\n").arg(cssClass, hover);
return css;
}
@@ -246,7 +246,7 @@ void LinkLabel::setAlign(int hAlign, int vAlign)
if (!m_look)
return;
- // Define tqalignment flags :
+ // Define alignment flags :
//FIXME TODO: Use directly flags !
int hFlag, vFlag, wBreak;
switch (hAlign) {
@@ -540,16 +540,16 @@ TQString LinkDisplay::toHtml(HTMLExporter *exporter, const KURL &url, const TQSt
TQString fullPath = exporter->iconsFolderPath + fileName;
m_preview.save(fullPath, "PNG");
linkIcon = TQString("<img src=\"%1\" width=\"%2\" height=\"%3\" alt=\"\">")
- .tqarg(exporter->iconsFolderName + fileName, TQString::number(m_preview.width()), TQString::number(m_preview.height()));
+ .arg(exporter->iconsFolderName + fileName, TQString::number(m_preview.width()), TQString::number(m_preview.height()));
} else {
linkIcon = exporter->iconsFolderName + exporter->copyIcon(m_icon, m_look->iconSize());
linkIcon = TQString("<img src=\"%1\" width=\"%2\" height=\"%3\" alt=\"\">")
- .tqarg(linkIcon, TQString::number(m_look->iconSize()), TQString::number(m_look->iconSize()));
+ .arg(linkIcon, TQString::number(m_look->iconSize()), TQString::number(m_look->iconSize()));
}
TQString linkTitle = Tools::textToHTMLWithoutP(title.isEmpty() ? m_title : title);
- return TQString("<a href=\"%1\">%2 %3</a>").tqarg(url.prettyURL(), linkIcon, linkTitle);
+ return TQString("<a href=\"%1\">%2 %3</a>").arg(url.prettyURL(), linkIcon, linkTitle);
}
/** LinkLookEditWidget **/
@@ -614,7 +614,7 @@ LinkLookEditWidget::LinkLookEditWidget(KCModule *module, const TQString exTitle,
"<p>If you do not want the application to create notes depending on the content of the files you drop, "
"go to the \"General\" page and uncheck \"Image or animation\" in the \"View Content of Added Files for the Following Types\" group.</p>")
// TODO: Note: you can resize down maximum size of images...
- .tqarg(kapp->aboutData()->programName(), kapp->aboutData()->programName()),
+ .arg(kapp->aboutData()->programName(), kapp->aboutData()->programName()),
this);
gl->addWidget(m_label, 4, 0);
gl->addWidget(m_preview, 4, 1);