diff options
Diffstat (limited to 'src/tabbar.cpp')
-rw-r--r-- | src/tabbar.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/tabbar.cpp b/src/tabbar.cpp index d00a95ce..43940f7d 100644 --- a/src/tabbar.cpp +++ b/src/tabbar.cpp @@ -42,8 +42,8 @@ TabBar::TabBar(QWidget *parent) - : KTabBar(parent) - , m_parent(parent) + : KTabBar(parent) + , m_parent(parent) { setElideMode(Qt::ElideRight); setContextMenuPolicy(Qt::CustomContextMenu); @@ -53,7 +53,7 @@ TabBar::TabBar(QWidget *parent) QFont standardFont = KGlobalSettings::generalFont(); QString fontFamily = standardFont.family(); int dim = standardFont.pointSize(); - setFont( QFont(fontFamily, dim-1) ); + setFont(QFont(fontFamily, dim - 1)); } @@ -62,12 +62,12 @@ TabBar::~TabBar() } -QSize TabBar::tabSizeHint (int index) const +QSize TabBar::tabSizeHint(int index) const { Q_UNUSED(index); QSize s = m_parent->sizeHint(); int w; - if ( count() > 3 ) + if (count() > 3) { w = s.width() / 4; } @@ -77,7 +77,7 @@ QSize TabBar::tabSizeHint (int index) const } int h = KTabBar::tabSizeHint(index).height(); - QSize ts = QSize(w,h); + QSize ts = QSize(w, h); return ts; } @@ -98,20 +98,20 @@ void TabBar::contextMenuRequested(const QPoint &position) { // FIXME: use right actions KMenu menu; - menu.addAction(i18n("New &Tab"), this, SIGNAL( newTab() ), QKeySequence::AddTab); + menu.addAction(i18n("New &Tab"), this, SIGNAL(newTab()), QKeySequence::AddTab); int index = tabAt(position); if (-1 != index) { m_actualIndex = index; - KAction *action = (KAction * ) menu.addAction(i18n("Clone Tab"), this, SLOT(cloneTab())); + KAction *action = (KAction *) menu.addAction(i18n("Clone Tab"), this, SLOT(cloneTab())); menu.addSeparator(); - action = (KAction * ) menu.addAction(i18n("&Close Tab"), this, SLOT(closeTab()), QKeySequence::Close); - action = (KAction * ) menu.addAction(i18n("Close &Other Tabs"), this, SLOT(closeOtherTabs())); + action = (KAction *) menu.addAction(i18n("&Close Tab"), this, SLOT(closeTab()), QKeySequence::Close); + action = (KAction *) menu.addAction(i18n("Close &Other Tabs"), this, SLOT(closeOtherTabs())); menu.addSeparator(); - action = (KAction * ) menu.addAction(i18n("Reload Tab"), this, SLOT(reloadTab()), QKeySequence::Refresh); - } - else + action = (KAction *) menu.addAction(i18n("Reload Tab"), this, SLOT(reloadTab()), QKeySequence::Refresh); + } + else { menu.addSeparator(); } |