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:
Cyrille Bollu
2016-02-25 16:45:28 +01:00
parent 857b6ed93f
commit 3f09440749
3 changed files with 15 additions and 11 deletions

View File

@@ -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;