Project

General

Profile

Actions

Bug #953

closed

WTabWidget::tabClosed()

Added by Zhimin Song over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
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;

  1. 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

Actions #1

Updated by Koen Deforche over 12 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

Actions #2

Updated by Zhimin Song over 12 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?

Actions #3

Updated by Koen Deforche over 12 years ago

  • Status changed from Resolved to Closed

Resolved in Wt 3.1.11

Actions

Also available in: Atom PDF