Vidalia 0.3.1
VTabWidget.h
Go to the documentation of this file.
1/*
2** This file is part of Vidalia, and is subject to the license terms in the
3** LICENSE file, found in the top level directory of this distribution. If you
4** did not receive the LICENSE file with this file, you may obtain it from the
5** Vidalia source package distributed by the Vidalia Project at
6** http://www.vidalia-project.net/. No part of Vidalia, including this file,
7** may be copied, modified, propagated, or distributed except according to the
8** terms described in the LICENSE file.
9*/
10
11/*
12** \file VTabWidget.h
13** \brief Implements a tab bar for more flexible handle of tabs
14*/
15
16#ifndef _VTABWIDGET_H
17#define _VTABWIDGET_H
18
19#include <QTabWidget>
20#include <QTabBar>
21
22class VTabWidget : public QTabWidget
23{
24 Q_OBJECT
25
26public:
27 /** Default constructor */
28 VTabWidget(QWidget *parent = 0);
29 /** Destructor */
31
32 /** Makes the tab at position unclosable */
33 void pinTab(int position);
34
35 void setTabButton(int pos, QTabBar::ButtonPosition butpos, QWidget *w);
36
37protected:
38 void changeEvent(QEvent *e);
39 void retranslateUi();
40
41private slots:
42 void updateTop(int index);
43};
44
45#endif
46
VTabWidget(QWidget *parent=0)
Definition: VTabWidget.cpp:4
void changeEvent(QEvent *e)
Definition: VTabWidget.cpp:32
void pinTab(int position)
Definition: VTabWidget.cpp:15
void setTabButton(int pos, QTabBar::ButtonPosition butpos, QWidget *w)
Definition: VTabWidget.cpp:54
void retranslateUi()
Definition: VTabWidget.cpp:43
void updateTop(int index)
Definition: VTabWidget.cpp:22