Mercurial > hg > svgui
comparison widgets/PropertyStack.cpp @ 241:fe4fd011ef5d
...
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2007 12:17:56 +0000 |
parents | 101f71a97df4 |
children | 50c0a548d23e |
comparison
equal
deleted
inserted
replaced
240:101f71a97df4 | 241:fe4fd011ef5d |
---|---|
39 connect(bar, SIGNAL(activeTabClicked()), this, SLOT(activeTabClicked())); | 39 connect(bar, SIGNAL(activeTabClicked()), this, SLOT(activeTabClicked())); |
40 | 40 |
41 setTabBar(bar); | 41 setTabBar(bar); |
42 | 42 |
43 // setElideMode(Qt::ElideRight); | 43 // setElideMode(Qt::ElideRight); |
44 setUsesScrollButtons(true); | 44 tabBar()->setUsesScrollButtons(true); |
45 setIconSize(QSize(16, 16)); | 45 tabBar()->setIconSize(QSize(16, 16)); |
46 | 46 |
47 repopulate(); | 47 repopulate(); |
48 | 48 |
49 connect(this, SIGNAL(currentChanged(int)), | 49 connect(this, SIGNAL(currentChanged(int)), |
50 this, SLOT(selectedContainerChanged(int))); | 50 this, SLOT(selectedContainerChanged(int))); |
106 QIcon icon(QString(":/icons/%1.png").arg(iconName)); | 106 QIcon icon(QString(":/icons/%1.png").arg(iconName)); |
107 if (icon.isNull()) { | 107 if (icon.isNull()) { |
108 addTab(box, name); | 108 addTab(box, name); |
109 } else { | 109 } else { |
110 addTab(box, icon, QString("&%1").arg(i + 1)); | 110 addTab(box, icon, QString("&%1").arg(i + 1)); |
111 setTabToolTip(count() - 1, name); | 111 tabBar()->setTabToolTip(count() - 1, name); |
112 setTabIcon(count() - 1, icon); | 112 tabBar()->setTabIcon(count() - 1, icon); |
113 } | 113 } |
114 | 114 |
115 m_boxes.push_back(box); | 115 m_boxes.push_back(box); |
116 } | 116 } |
117 | 117 |