summaryrefslogtreecommitdiffstats
path: root/lib/kofficeui/tktoolbarbutton.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/kofficeui/tktoolbarbutton.cpp')
-rw-r--r--lib/kofficeui/tktoolbarbutton.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/kofficeui/tktoolbarbutton.cpp b/lib/kofficeui/tktoolbarbutton.cpp
index c1b2f8cba..92c42c10c 100644
--- a/lib/kofficeui/tktoolbarbutton.cpp
+++ b/lib/kofficeui/tktoolbarbutton.cpp
@@ -58,7 +58,7 @@ public:
m_disabledIconName = TQString();
m_defaultIconName = TQString();
- m_instance = KGlobal::instance();
+ m_instance = TDEGlobal::instance();
}
~TKToolBarButtonPrivate()
@@ -154,7 +154,7 @@ void TKToolBarButton::modeChange()
if ((d->m_iconMode==TK::IconAndText||d->m_iconMode==TK::TextOnly) && !d->m_text.isEmpty())
{
- TQFont tmp_font = KGlobalSettings::toolBarFont();
+ TQFont tmp_font = TDEGlobalSettings::toolBarFont();
TQFontMetrics fm(tmp_font);
h = TQMAX(h,fm.lineSpacing()+2*border);
@@ -254,7 +254,7 @@ void TKToolBarButton::setDisabledPixmap( const TQPixmap &pixmap )
void TKToolBarButton::setPopup(TQPopupMenu *p)
{
d->m_popup = p;
- d->m_popup->setFont(KGlobalSettings::toolBarFont());
+ d->m_popup->setFont(TDEGlobalSettings::toolBarFont());
p->installEventFilter(this);
modeChange();
@@ -359,7 +359,7 @@ void TKToolBarButton::drawButton( TQPainter* p )
}\
}\
if ((d->m_iconMode==TK::IconAndText||d->m_iconMode==TK::TextOnly) && !d->m_text.isEmpty()) {\
- TQFontMetrics fm(KGlobalSettings::toolBarFont());\
+ TQFontMetrics fm(TDEGlobalSettings::toolBarFont());\
style().drawItem( p, TQRect( x, 0, fm.width(d->m_text), height() ), AlignCenter, colorGroup(), isEnabled(), 0, d->m_text );\
}
@@ -443,7 +443,7 @@ TQSize TKToolBarButton::minimumSizeHint() const
void TKToolBarButton::showMenu()
{
TQPoint p ( mapToGlobal( TQPoint( 0, 0 ) ) );
- const int deskHeight = KGlobalSettings::desktopGeometry(this).height();
+ const int deskHeight = TDEGlobalSettings::desktopGeometry(this).height();
if ( p.y() + height() + d->m_popup->height() > deskHeight )
p.setY( p.y() - d->m_popup->height() );
else