summaryrefslogtreecommitdiffstats
path: root/src/tag.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tag.cpp')
-rw-r--r--src/tag.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/tag.cpp b/src/tag.cpp
index 1dce82b..b7e9ea7 100644
--- a/src/tag.cpp
+++ b/src/tag.cpp
@@ -755,13 +755,13 @@ void IndentedMenuItem::paint(TQPainter *painter, const TQColorGroup &cg, bool ac
* and keep the background to white, drawing a white text over it is... very bad. But I can't see what can be done.
*/
if (active && enabled)
- painter->setPen(KGlobalSettings::highlightedTextColor());
+ painter->setPen(TDEGlobalSettings::highlightedTextColor());
painter->drawText(x + iconSize + iconMargin, y, w - iconSize - iconMargin, h, AlignLeft | AlignVCenter | DontClip | ShowPrefix, m_text/*painter->pen().color().name()*/);
if (!m_shortcut.isEmpty()) {
painter->setPen(pen);
if (active && enabled)
- painter->setPen(KGlobalSettings::highlightedTextColor());
+ painter->setPen(TDEGlobalSettings::highlightedTextColor());
painter->setFont(font);
painter->setClipping(false);
painter->drawText(x + 5 + w, y, 3000, h, AlignLeft | AlignVCenter | DontClip | ShowPrefix, m_shortcut);
@@ -772,7 +772,7 @@ TQSize IndentedMenuItem::sizeHint()
{
int iconSize = KIcon::SizeSmall;
int iconMargin = StateMenuItem::iconMargin();
- TQSize textSize = TQFontMetrics(KGlobalSettings::menuFont()).size( AlignLeft | AlignVCenter | ShowPrefix | DontClip, m_text );
+ TQSize textSize = TQFontMetrics(TDEGlobalSettings::menuFont()).size( AlignLeft | AlignVCenter | ShowPrefix | DontClip, m_text );
return TQSize(iconSize + iconMargin + textSize.width(), textSize.height());
}
@@ -827,14 +827,14 @@ void StateMenuItem::paint(TQPainter *painter, const TQColorGroup &cg, bool activ
* and keep the background to white, drawing a white text over it is... very bad. But I can't see what can be done.
*/
if (active && enabled)
- painter->setPen(KGlobalSettings::highlightedTextColor());
+ painter->setPen(TDEGlobalSettings::highlightedTextColor());
painter->setFont( m_state->font(painter->font()) );
painter->drawText(x + iconSize + iconMargin(), y, w - iconSize - iconMargin(), h, AlignLeft | AlignVCenter | DontClip | ShowPrefix, m_name);
if (!m_shortcut.isEmpty()) {
painter->setPen(pen);
if (active && enabled)
- painter->setPen(KGlobalSettings::highlightedTextColor());
+ painter->setPen(TDEGlobalSettings::highlightedTextColor());
painter->setFont(font);
painter->setClipping(false);
painter->drawText(x + 5 + w, y, 3000, h, AlignLeft | AlignVCenter | DontClip | ShowPrefix, m_shortcut);
@@ -844,7 +844,7 @@ void StateMenuItem::paint(TQPainter *painter, const TQColorGroup &cg, bool activ
TQSize StateMenuItem::sizeHint()
{
int iconSize = 16; // We use 16 instead of KIcon::SizeSmall (the size of icons in menus) because tags will always be 16*16 icons
- TQFont theFont = m_state->font(KGlobalSettings::menuFont());
+ TQFont theFont = m_state->font(TDEGlobalSettings::menuFont());
TQSize textSize = TQFontMetrics(theFont).size( AlignLeft | AlignVCenter | ShowPrefix | DontClip, m_name );
return TQSize(iconSize + iconMargin() + textSize.width(), textSize.height());
}
@@ -871,7 +871,7 @@ TQIconSet StateMenuItem::checkBoxIconSet(bool checked, TQColorGroup cg)
pixmapHover.fill(menuBackgroundColor); // In case the pixelMetric() haven't returned a bigger rectangle than what drawPrimitive() draws
painter.begin(&pixmapHover);
style |= TQStyle::Style_MouseOver;
- cg.setColor(TQColorGroup::Background, KGlobalSettings::highlightColor());
+ cg.setColor(TQColorGroup::Background, TDEGlobalSettings::highlightColor());
kapp->style().tqdrawPrimitive(TQStyle::PE_Indicator, &painter, rect, cg, style);
painter.end();
@@ -923,7 +923,7 @@ TQIconSet StateMenuItem::radioButtonIconSet(bool checked, TQColorGroup cg)
painter.begin(&pixmapHover);
//kapp->style().tqdrawPrimitive(TQStyle::PE_ExclusiveIndicator, &painter, rect, cg, style);
style |= TQStyle::Style_MouseOver;
- cg.setColor(TQColorGroup::Background, KGlobalSettings::highlightColor());
+ cg.setColor(TQColorGroup::Background, TDEGlobalSettings::highlightColor());
kapp->style().drawControl(TQStyle::CE_RadioButton, &painter, &rb, rect, cg, style);
painter.end();
pixmapHover.setMask(pixmapHover.createHeuristicMask());