Vidalia
0.3.1
src
vidalia
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
22
class
VTabWidget
:
public
QTabWidget
23
{
24
Q_OBJECT
25
26
public
:
27
/** Default constructor */
28
VTabWidget
(QWidget *parent = 0);
29
/** Destructor */
30
~VTabWidget
();
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
37
protected
:
38
void
changeEvent
(QEvent *e);
39
void
retranslateUi
();
40
41
private
slots:
42
void
updateTop
(
int
index);
43
};
44
45
#endif
46
VTabWidget
Definition:
VTabWidget.h:23
VTabWidget::VTabWidget
VTabWidget(QWidget *parent=0)
Definition:
VTabWidget.cpp:4
VTabWidget::changeEvent
void changeEvent(QEvent *e)
Definition:
VTabWidget.cpp:32
VTabWidget::~VTabWidget
~VTabWidget()
Definition:
VTabWidget.cpp:9
VTabWidget::pinTab
void pinTab(int position)
Definition:
VTabWidget.cpp:15
VTabWidget::setTabButton
void setTabButton(int pos, QTabBar::ButtonPosition butpos, QWidget *w)
Definition:
VTabWidget.cpp:54
VTabWidget::retranslateUi
void retranslateUi()
Definition:
VTabWidget.cpp:43
VTabWidget::updateTop
void updateTop(int index)
Definition:
VTabWidget.cpp:22
Generated by
1.9.3