Actions
Bug #953
closed
ZS
KD
WTabWidget::tabClosed()
Bug #953:
WTabWidget::tabClosed()
Start date:
08/14/2011
Due date:
% Done:
0%
Estimated time:
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;
2. add the codes:
void WTabWidget::create(WFlags<AlignmentFlag> layoutAlignment) {
...
menu_->itemClosed().connect(this, &WTabWidget::onItemClosed);
...
}
void WTabWidget::onItemClosed(WMenuItem *item)
{
tabClosed_.emit(menu_->indexOf(item));
}
Thanks, Best Regards
Zhimin
KD Updated by Koen Deforche about 15 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
ZS Updated by Zhimin Song about 15 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?
KD Updated by Koen Deforche almost 15 years ago
- Status changed from Resolved to Closed
Resolved in Wt 3.1.11
Actions