|
|
@ -49,6 +49,7 @@
|
|
|
|
#include "ntqpixmap.h"
|
|
|
|
#include "ntqpixmap.h"
|
|
|
|
#include "ntqpushbutton.h"
|
|
|
|
#include "ntqpushbutton.h"
|
|
|
|
#include "ntqtabbar.h"
|
|
|
|
#include "ntqtabbar.h"
|
|
|
|
|
|
|
|
#include "ntqtabwidget.h"
|
|
|
|
#include "ntqlineedit.h"
|
|
|
|
#include "ntqlineedit.h"
|
|
|
|
#include "ntqscrollbar.h"
|
|
|
|
#include "ntqscrollbar.h"
|
|
|
|
#include "ntqtoolbutton.h"
|
|
|
|
#include "ntqtoolbutton.h"
|
|
|
@ -333,6 +334,7 @@ TQStyleControlElementData populateControlElementDataFromWidget(const TQWidget* w
|
|
|
|
const TQTabBar *tb = dynamic_cast<const TQTabBar*>(widget);
|
|
|
|
const TQTabBar *tb = dynamic_cast<const TQTabBar*>(widget);
|
|
|
|
if (tb) {
|
|
|
|
if (tb) {
|
|
|
|
ceData.tabBarData.tabCount = tb->count();
|
|
|
|
ceData.tabBarData.tabCount = tb->count();
|
|
|
|
|
|
|
|
ceData.tabBarData.currentTabIndex = tb->currentTab();
|
|
|
|
ceData.tabBarData.shape = tb->shape();
|
|
|
|
ceData.tabBarData.shape = tb->shape();
|
|
|
|
ceData.tabBarData.identIndexMap.clear();
|
|
|
|
ceData.tabBarData.identIndexMap.clear();
|
|
|
|
const TQTab* currentTab;
|
|
|
|
const TQTab* currentTab;
|
|
|
@ -342,6 +344,38 @@ TQStyleControlElementData populateControlElementDataFromWidget(const TQWidget* w
|
|
|
|
ceData.tabBarData.identIndexMap[currentTab->identifier()] = tb->indexOf(currentTab->identifier());
|
|
|
|
ceData.tabBarData.identIndexMap[currentTab->identifier()] = tb->indexOf(currentTab->identifier());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
const TQTabWidget *tw = dynamic_cast<const TQTabWidget*>(tb->parent());
|
|
|
|
|
|
|
|
if (tw) {
|
|
|
|
|
|
|
|
TQWidget *cw;
|
|
|
|
|
|
|
|
cw = tw->cornerWidget(TQt::TopLeft);
|
|
|
|
|
|
|
|
if(cw) {
|
|
|
|
|
|
|
|
ceData.tabBarData.cornerWidgets[TQStyleControlElementTabBarData::CWL_TopLeft].widgetObjectTypes = getObjectTypeListForObject(cw);
|
|
|
|
|
|
|
|
ceData.tabBarData.cornerWidgets[TQStyleControlElementTabBarData::CWL_TopLeft].geometry = cw->geometry();
|
|
|
|
|
|
|
|
ceData.tabBarData.cornerWidgets[TQStyleControlElementTabBarData::CWL_TopLeft].rect = cw->rect();
|
|
|
|
|
|
|
|
ceData.tabBarData.cornerWidgets[TQStyleControlElementTabBarData::CWL_TopLeft].pos = cw->pos();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
cw = tw->cornerWidget(TQt::TopRight);
|
|
|
|
|
|
|
|
if(cw) {
|
|
|
|
|
|
|
|
ceData.tabBarData.cornerWidgets[TQStyleControlElementTabBarData::CWL_TopRight].widgetObjectTypes = getObjectTypeListForObject(cw);
|
|
|
|
|
|
|
|
ceData.tabBarData.cornerWidgets[TQStyleControlElementTabBarData::CWL_TopRight].geometry = cw->geometry();
|
|
|
|
|
|
|
|
ceData.tabBarData.cornerWidgets[TQStyleControlElementTabBarData::CWL_TopRight].rect = cw->rect();
|
|
|
|
|
|
|
|
ceData.tabBarData.cornerWidgets[TQStyleControlElementTabBarData::CWL_TopRight].pos = cw->pos();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
cw = tw->cornerWidget(TQt::BottomLeft);
|
|
|
|
|
|
|
|
if(cw) {
|
|
|
|
|
|
|
|
ceData.tabBarData.cornerWidgets[TQStyleControlElementTabBarData::CWL_BottomLeft].widgetObjectTypes = getObjectTypeListForObject(cw);
|
|
|
|
|
|
|
|
ceData.tabBarData.cornerWidgets[TQStyleControlElementTabBarData::CWL_BottomLeft].geometry = cw->geometry();
|
|
|
|
|
|
|
|
ceData.tabBarData.cornerWidgets[TQStyleControlElementTabBarData::CWL_BottomLeft].rect = cw->rect();
|
|
|
|
|
|
|
|
ceData.tabBarData.cornerWidgets[TQStyleControlElementTabBarData::CWL_BottomLeft].pos = cw->pos();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
cw = tw->cornerWidget(TQt::BottomRight);
|
|
|
|
|
|
|
|
if(cw) {
|
|
|
|
|
|
|
|
ceData.tabBarData.cornerWidgets[TQStyleControlElementTabBarData::CWL_BottomRight].widgetObjectTypes = getObjectTypeListForObject(cw);
|
|
|
|
|
|
|
|
ceData.tabBarData.cornerWidgets[TQStyleControlElementTabBarData::CWL_BottomRight].geometry = cw->geometry();
|
|
|
|
|
|
|
|
ceData.tabBarData.cornerWidgets[TQStyleControlElementTabBarData::CWL_BottomRight].rect = cw->rect();
|
|
|
|
|
|
|
|
ceData.tabBarData.cornerWidgets[TQStyleControlElementTabBarData::CWL_BottomRight].pos = cw->pos();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (ceData.widgetObjectTypes.contains("TQToolBox")) {
|
|
|
|
if (ceData.widgetObjectTypes.contains("TQToolBox")) {
|
|
|
|