Hello,

Headers in WTableView are not rendered after commit:

65211323bc5fa29fca046b0f5ffcbe909b41e188
Date:   Tue Feb 1 17:32:19 2011 +0100

    more external CSS, fix plain HTML rendering not calling doneRerender()


For example, with the following test program, the table item "Item" is 
shown in browser, but the header "Header" is not visible.  Tested on 
Firefox and Chromium.  Is this the correct way to use headers?


#include <Wt/WApplication>
#include <Wt/WStandardItem>
#include <Wt/WStandardItemModel>
#include <Wt/WTableView>
#include <Wt/WVBoxLayout>

static Wt::WApplication *createApplication(Wt::WEnvironment const& environment)
{
  Wt::WApplication *application = new Wt::WApplication(environment);
  Wt::WStandardItemModel* model = new Wt::WStandardItemModel();

  model->insertColumns( 0, 1 );
  model->setHeaderData( 0, Wt::Horizontal, Wt::WString( "Header" ) );

  Wt::WStandardItem* item = new Wt::WStandardItem();
  item->setText( Wt::WString( "Item" ) );
  model->setItem( 0, 0, item );

  Wt::WTableView *view = new Wt::WTableView();
  view->setModel( model );

  Wt::WVBoxLayout* layout = new Wt::WVBoxLayout();
  application->root()->setLayout( layout );
  layout->addWidget( view );

  return application;
}

int main(int argc, char* argv[])
{
  return Wt::WRun(argc, argv, &createApplication);
}

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to