Bug #953
closedWTabWidget::tabClosed()
0%
Description
hey, wt group:
I found the WTabWidget::tabClosed() does not return the tab index. the way to resolve this may be :
1. Make the WMenu::indexOf() to be public;
add the codes:
void WTabWidget::create(WFlags layoutAlignment) {
...
menu_->itemClosed().connect(this, &WTabWidget::onItemClosed);
...
}void WTabWidget::onItemClosed(WMenuItem *item)
{
tabClosed_.emit(menu_->indexOf(item));
}
Thanks, Best Regards
Zhimin
Updated by Koen Deforche over 13 years ago
- Status changed from New to Resolved
- Assignee set to Koen Deforche
- Target version set to 3.1.11
Hey Zhimin,
You refer to the fact that the onTabClosed() wasn't called when needed?
In that case, I agree with your fix. Will be in git repo soon.
Regards,
koen
Updated by Zhimin Song about 13 years ago
Hey Koen:
Sorry to answer lately, because I did not understand the meaning of that clause, I thought that is a confirmation which doesn't need answer :-)
sure! onTabClosed() wasn't called when needed.
Thanks
Zhimin
Koen Deforche wrote:
You refer to the fact that the onTabClosed() wasn't called when needed?
Updated by Koen Deforche about 13 years ago
- Status changed from Resolved to Closed
Resolved in Wt 3.1.11