hi, Koen
i remember that test case was based on wt-2.2.4, and now it does not work on
the 2.99.1, please check it, thanks.
zhimin


#include <iostream>
#include <boost/lexical_cast.hpp>

#include <WApplication>
#include <WContainerWidget>
#include <WText>
#include <WEvent>
#include <WStandardItemModel>
#include <Ext/TableView>
#include <Ext/ToolBar>
#include <Ext/Button>

using namespace Wt;


class Test : public WApplication {

public:

Test(const WEnvironment& env);

};


Test::Test(const WEnvironment& env)
: WApplication(env) {

WContainerWidget *ex = new WContainerWidget(root());
ex->resize(WLength(800), WLength(500));

Ext::ToolBar *topToolBar = new Ext::ToolBar(ex);
Ext::ToolBar *topToolBarMore = new Ext::ToolBar(ex);

WText *query_more_show = new WText("↓");
topToolBar->add(query_more_show);
query_more_show->clicked.connect(SLOT(topToolBarMore, WWidget::show));


topToolBar->addSeparator();
WText *query_more_hide = new WText("↑");
topToolBar->add(query_more_hide);
query_more_hide->clicked.connect(SLOT(topToolBarMore, WWidget::hide));

topToolBarMore->addSeparator();
// if hide topToolBarMore first, the WWidget::show() slot will not work;
// if comment this clause, the show() and hide() will perform correctly.
topToolBarMore->hide();

}


WApplication *createApplication(const WEnvironment& env)
{
return new Test(env);
}

int main(int argc, char **argv)
{

return WRun(argc, argv, &createApplication);
}


Thread View


 *Thread* *Author* *Date*  [Wt-interest] A Test Case about Ext::TooBar
hiding and showing  zhimin song <cnrob...@gm...>

  *Re: [Wt-interest] A Test Case about Ext::TooBar hiding and
showing<https://sourceforge.net/mailarchive/message.php?msg_name=205a79980901050226y68ca6a6crc53b9bbb9f514e54%40mail.gmail.com>
*
From: Koen Deforche <k...@em...> - 2009-01-05 10:26
  Hey Zhimin,

2008/12/26 zhimin song <cnrob...@gm...>:
> // if hide topToolBarMore first, the WWidget::show() slot will not work;
> // if comment this clause, the show() and hide() will perform correctly.
> topToolBarMore->hide();

Thanks for the reproducible bug report.
This has been fixed now in CVS.

Regards,
koen


  *Re: [Wt-interest] A Test Case about Ext::TooBar hiding and
showing<https://sourceforge.net/mailarchive/message.php?msg_name=4961F668.9070009%40eurofer.be>
*
From: Guy Deleeuw <g.de_le...@eu...> - 2009-01-05 12:21
  Hello all

>> // if hide topToolBarMore first, the WWidget::show() slot will not work;
>> // if comment this clause, the show() and hide() will perform correctly.
>> topToolBarMore->hide();
>>
>
> Thanks for the reproducible bug report.
> This has been fixed now in CVS.
>
With this correction, extkitchen forms example crash.

Regards

Guy


  *Re: [Wt-interest] A Test Case about Ext::TooBar hiding and
showing<https://sourceforge.net/mailarchive/message.php?msg_name=205a79980901050659k7ad441e1x2fd021060627ba13%40mail.gmail.com>
*
From: Koen Deforche <k...@em...> - 2009-01-05 14:59
  Hey Guy,

2009/1/5 Guy Deleeuw <g.de_le...@eu...>:
> Hello all
>
>>> // if hide topToolBarMore first, the WWidget::show() slot will not work;
>>> // if comment this clause, the show() and hide() will perform correctly.
>>> topToolBarMore->hide();
>>>
>>
>> Thanks for the reproducible bug report.
>> This has been fixed now in CVS.
>>
> With this correction, extkitchen forms example crash.

Oops. Fixed!

koen
------------------------------------------------------------------------------
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to