#include <VP1TabBar.h>
Definition at line 41 of file VP1TabBar.h.
◆ VP1TabBar()
VP1TabBar::VP1TabBar |
( |
QWidget * |
parent = 0 | ) |
|
|
explicit |
Definition at line 66 of file VP1TabBar.cxx.
70 setAcceptDrops(
true );
71 setMouseTracking(
true );
◆ ~VP1TabBar()
VP1TabBar::~VP1TabBar |
( |
| ) |
|
|
virtual |
◆ activateDragSwitchTab
void VP1TabBar::activateDragSwitchTab |
( |
| ) |
|
|
protectedvirtualslot |
◆ closeRequest
void VP1TabBar::closeRequest |
( |
int |
| ) |
|
|
signal |
◆ contextMenu
void VP1TabBar::contextMenu |
( |
int |
, |
|
|
const QPoint & |
|
|
) |
| |
|
signal |
◆ dragEnterEvent()
void VP1TabBar::dragEnterEvent |
( |
QDragEnterEvent * |
event | ) |
|
|
protectedvirtual |
Definition at line 199 of file VP1TabBar.cxx.
201 event->setAccepted(
true );
202 QTabBar::dragEnterEvent(
event );
◆ dragMoveEvent()
void VP1TabBar::dragMoveEvent |
( |
QDragMoveEvent * |
event | ) |
|
|
protectedvirtual |
Definition at line 205 of file VP1TabBar.cxx.
213 if (
accept && tab != currentIndex() ) {
218 event->setAccepted(
accept );
222 event->setAccepted(
false );
223 QTabBar::dragMoveEvent(
event );
◆ dropEvent()
void VP1TabBar::dropEvent |
( |
QDropEvent * |
event | ) |
|
|
protectedvirtual |
◆ initiateDrag
void VP1TabBar::initiateDrag |
( |
int |
| ) |
|
|
signal |
◆ isTabReorderingEnabled()
bool VP1TabBar::isTabReorderingEnabled |
( |
| ) |
const |
◆ mouseDoubleClick
void VP1TabBar::mouseDoubleClick |
( |
int |
| ) |
|
|
signal |
◆ mouseDoubleClickEvent()
void VP1TabBar::mouseDoubleClickEvent |
( |
QMouseEvent * |
event | ) |
|
|
protectedvirtual |
Definition at line 88 of file VP1TabBar.cxx.
90 if (
event->button() != Qt::LeftButton )
99 QTabBar::mouseDoubleClickEvent(
event );
◆ mouseMiddleClick
void VP1TabBar::mouseMiddleClick |
( |
int |
| ) |
|
|
signal |
◆ mouseMoveEvent()
void VP1TabBar::mouseMoveEvent |
( |
QMouseEvent * |
event | ) |
|
|
protectedvirtual |
Definition at line 118 of file VP1TabBar.cxx.
120 if (
event->buttons() == Qt::LeftButton ) {
128 QPoint newPos =
event->pos();
136 }
else if (
event->buttons() == Qt::MiddleButton ) {
139 QPoint newPos =
event->pos();
146 grabMouse( Qt::SizeAllCursor );
153 int reorderStopTab = tab;
166 QTabBar::mouseMoveEvent(
event );
◆ mousePressEvent()
void VP1TabBar::mousePressEvent |
( |
QMouseEvent * |
event | ) |
|
|
protectedvirtual |
Definition at line 102 of file VP1TabBar.cxx.
104 if (
event->button() == Qt::LeftButton ) {
107 }
else if(
event->button() == Qt::RightButton ) {
115 QTabBar::mousePressEvent(
event );
◆ mouseReleaseEvent()
void VP1TabBar::mouseReleaseEvent |
( |
QMouseEvent * |
event | ) |
|
|
protectedvirtual |
Definition at line 179 of file VP1TabBar.cxx.
181 if (
event->button() == Qt::MiddleButton ) {
190 setCursor( Qt::ArrowCursor );
196 QTabBar::mouseReleaseEvent(
event );
◆ moveTab
void VP1TabBar::moveTab |
( |
int |
, |
|
|
int |
|
|
) |
| |
|
signal |
◆ receivedDropEvent
void VP1TabBar::receivedDropEvent |
( |
int |
, |
|
|
QDropEvent * |
|
|
) |
| |
|
signal |
◆ selectTab()
int VP1TabBar::selectTab |
( |
const QPoint & |
position | ) |
const |
◆ setTabCloseActivatePrevious()
void VP1TabBar::setTabCloseActivatePrevious |
( |
bool |
on | ) |
|
◆ setTabReorderingEnabled()
void VP1TabBar::setTabReorderingEnabled |
( |
bool |
enable | ) |
|
◆ tabCloseActivatePrevious()
bool VP1TabBar::tabCloseActivatePrevious |
( |
| ) |
const |
◆ tabLayoutChange()
void VP1TabBar::tabLayoutChange |
( |
| ) |
|
|
protectedvirtual |
◆ testCanDecode
void VP1TabBar::testCanDecode |
( |
const QDragMoveEvent * |
, |
|
|
bool & |
|
|
) |
| |
|
signal |
◆ wheelDelta
void VP1TabBar::wheelDelta |
( |
int |
| ) |
|
|
signal |
◆ wheelEvent()
void VP1TabBar::wheelEvent |
( |
QWheelEvent * |
event | ) |
|
|
protectedvirtual |
◆ m_d
The documentation for this class was generated from the following files: