diff options
Diffstat (limited to 'krusader/paneltabbar.cpp')
-rw-r--r-- | krusader/paneltabbar.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/krusader/paneltabbar.cpp b/krusader/paneltabbar.cpp index 75ba7c3..7ec8c34 100644 --- a/krusader/paneltabbar.cpp +++ b/krusader/paneltabbar.cpp @@ -32,7 +32,7 @@ #define DISPLAY(X) (X.isLocalFile() ? X.path() : X.prettyURL()) PanelTabBar::PanelTabBar(TQWidget *parent): TQTabBar(parent), _maxTabLength(0) { - _panelActionMenu = new TDEActionMenu( i18n("Panel"), TQT_TQOBJECT(this) ); + _panelActionMenu = new TDEActionMenu( i18n("Panel"), this ); setAcceptDrops(true); insertAction(krNewTab); @@ -172,7 +172,7 @@ TQString PanelTabBar::squeeze(TQString text, int index) { TQFontMetrics fm(fontMetrics()); // set the real max length - _maxTabLength = (TQT_TQWIDGET(parent())->width()-(6*fm.width("W")))/fm.width("W"); + _maxTabLength = (static_cast<TQWidget*>(parent())->width()-(6*fm.width("W")))/fm.width("W"); // each tab gets a fair share of the max tab length int _effectiveTabLength = _maxTabLength / (count() == 0 ? 1 : count()); |