You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
# pragma once
# include <QTabWidget>
# include "iPlugin_global.h"
// ZxTabWidget该类实现TabWidget相关附加功能
class I_PLUGIN_EXPORT ZxTabWidget :
public QTabWidget
{
Q_OBJECT
public :
ZxTabWidget ( QWidget * parent = 0 ) ;
~ ZxTabWidget ( ) ;
// Tab是否允许移动, 默认不移动
void setTabMovable ( bool b ) ;
bool isTabMovable ( ) ;
// TabBar
void setTabBarHorW ( int n ) ;
int getTabBarHorW ( ) ;
protected :
// virtual void mouseDoubleClickEvent(QMouseEvent *);
// event分发
virtual bool eventFilter ( QObject * , QEvent * ) ;
signals :
// 双击Item
void sigItemDoubleClicked ( int n ) ;
// 右击Item
void sigItemRightClicked ( int n , QPoint pos ) ;
private :
QTabBar * m_pTabBar ;
bool m_bTabMovable ; //TabItem允许移动
} ;