|
ATLAS Offline Software
|
Go to the documentation of this file.
37 #include <QApplication>
38 #include <QMouseEvent>
70 setAcceptDrops(
true );
71 setMouseTracking(
true );
90 if (
event->button() != Qt::LeftButton )
99 QTabBar::mouseDoubleClickEvent(
event );
104 if (
event->button() == Qt::LeftButton ) {
107 }
else if(
event->button() == Qt::RightButton ) {
115 QTabBar::mousePressEvent(
event );
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 );
181 if (
event->button() == Qt::MiddleButton ) {
190 setCursor( Qt::ArrowCursor );
196 QTabBar::mouseReleaseEvent(
event );
201 event->setAccepted(
true );
202 QTabBar::dragEnterEvent(
event );
213 if (
accept && tab != currentIndex() ) {
218 event->setAccepted(
accept );
222 event->setAccepted(
false );
223 QTabBar::dragMoveEvent(
event );
236 QTabBar::dropEvent(
event );
239 #ifndef QT_NO_WHEELEVENT
276 if ( tabRect(
i ).contains(
pos ) )
virtual void mouseReleaseEvent(QMouseEvent *event)
void mouseDoubleClick(int)
void mouseMiddleClick(int)
virtual void tabLayoutChange()
void testCanDecode(const QDragMoveEvent *, bool &)
StatusCode accept(const xAOD::Muon *mu)
bool mTabCloseActivatePrevious
virtual void dragMoveEvent(QDragMoveEvent *event)
virtual void mousePressEvent(QMouseEvent *event)
void setTabCloseActivatePrevious(bool)
virtual void dragEnterEvent(QDragEnterEvent *event)
bool isTabReorderingEnabled() const
virtual void mouseDoubleClickEvent(QMouseEvent *event)
bool mTabReorderingEnabled
int selectTab(const QPoint &position) const
virtual void activateDragSwitchTab()
POOL::TEvent event(POOL::TEvent::kClassAccess)
virtual void dropEvent(QDropEvent *event)
QTimer * mActivateDragSwitchTabTimer
double delay(std::size_t d)
void receivedDropEvent(int, QDropEvent *)
void setTabReorderingEnabled(bool enable)
VP1TabBar(QWidget *parent=0)
bool tabCloseActivatePrevious() const
virtual void mouseMoveEvent(QMouseEvent *event)
void contextMenu(int, const QPoint &)
virtual void wheelEvent(QWheelEvent *event)