I am having problems getting a toolbar to appear in this simple app from the book kde 2.0 development by David Sweet.

Code:
Kaction *reposition ("&Reposition Text",QIconSet(BarIcon("idea")),CTRL-Key_R,this,
SLOT(slotRepositionText()),this);

....

reposition->plug(toolBar());
The problem may be that I'm using kde version 2.2.2 could anyone please help