@@ -283,8 +283,10 @@ WWidget *FormWidgets::wInPlaceEdit()
283283 WContainerWidget * result = new WContainerWidget ();
284284
285285 topic ("WInPlaceEdit" , result );
286- new WText ("<p>This widget allows you to edit a string by clicking "
287- "on it. The text changes in a WLineEdit while editing.</p>" ,
286+ new WText ("<p>This widget allows you to edit a text in-place by clicking "
287+ "on it. You can enable the save/cancel buttons (like here below) "
288+ "or disable them (as used in the WCalendar widget to edit the "
289+ "year).</p>" ,
288290 result );
289291 new WText ("Try it here: " , result );
290292 WInPlaceEdit * ipe = new WInPlaceEdit ("This is editable text" , result );
@@ -380,17 +382,17 @@ WWidget *FormWidgets::wPopupMenu()
380382 new WText (tr ("formwidgets-WPopupMenu" ), result );
381383
382384 WPopupMenu * popup = new WPopupMenu ();
383- popup -> addItem ("icons/popupmenu.gif " , "String item with image " );
384- popup -> addItem ("Checkable string item " )-> setCheckable (true);
385- popup -> addItem ("Plain string item " );
385+ popup -> addItem ("icons/house.png " , "Build a house " );
386+ popup -> addItem ("Roof included " )-> setCheckable (true);
387+ popup -> addItem ("Add a door " );
386388 popup -> addSeparator ();
387- popup -> addItem ("Another plain string item " );
389+ popup -> addItem ("Add a window " );
388390 WPopupMenu * subMenu = new WPopupMenu ();
389- subMenu -> addItem ("Sub item" );
390- popup -> addMenu ("Sub menu" , subMenu );
391+ subMenu -> addItem ("Add a chair" );
392+ subMenu -> addItem ("Add a table" );
393+ popup -> addMenu ("Add furniture" , subMenu );
391394
392- WLabel * clickMe =
393- new WLabel ("Click me and a WPopupMenu will appear!" , result );
395+ WLabel * clickMe = new WLabel ("Clicking here will show a popup menu." , result );
394396 clickMe -> setStyleClass ("popupmenuLabel" );
395397 clickMe -> clicked ().connect (SLOT (popup , WPopupMenu ::popup ));
396398
0 commit comments