1) Tabs in TabWidget class have now a "tooltip" attribute. So that they can now show
more meaningfull information then simply the tab's name. 2) Fixed the compilation problem with QT5
This commit is contained in:
@@ -38,7 +38,7 @@ public:
|
||||
TabWidget( const QString & _caption, QWidget * _parent, bool usePixmap = false );
|
||||
virtual ~TabWidget();
|
||||
|
||||
void addTab( QWidget *_w, const QString &_name, const char *activePixmap = NULL, const char *inactivePixmap = NULL, int _idx = -1 );
|
||||
void addTab( QWidget *_w, const QString &_name, const QString &_tooltip = NULL, const char *activePixmap = NULL, const char *inactivePixmap = NULL, int _idx = -1 );
|
||||
|
||||
void setActiveTab( int _idx );
|
||||
|
||||
@@ -65,6 +65,7 @@ private:
|
||||
const char *activePixmap; // artwork for the widget
|
||||
const char *inactivePixmap; // artwork for the widget
|
||||
QString name; // name for widget
|
||||
QString tooltip; // name for widget
|
||||
int nwidth; // width of name when painting (only valid for text tab)
|
||||
} ;
|
||||
typedef QMap<int, widgetDesc> widgetStack;
|
||||
|
||||
Reference in New Issue
Block a user