{
myTipGroup = new QToolTipGroup( this );
- myFrame = new QtxListFrame( qApp->mainWidget() );
+ myFrame = new QtxListFrame( this, qApp->mainWidget() );
myFrame->setMaxLines( 5 );
myFrame->setMaxLineChars( 7 );
/*!
Constructor
*/
-QtxListFrame::QtxListFrame( QWidget* parent, WFlags f )
+QtxListFrame::QtxListFrame( QtxListAction* a, QWidget* parent, WFlags f )
: QFrame( parent, 0, WStyle_Customize | WStyle_NoBorderEx | WType_Popup | WStyle_Tool | WStyle_StaysOnTop ),
myList( 0 ),
myOwner( 0 ),
+myAction( a ),
myComment( 0 ),
myMaxLines( 5 ),
myMaxLineChars( 10 ),
QtxListFrame::~QtxListFrame()
{
+ if ( myAction )
+ myAction->myFrame = 0;
}
/*!
QToolTipGroup* myTipGroup;
friend class ToolButton;
+ friend class QtxListFrame;
};
/*************************************
class ScrollEvent;
public:
- QtxListFrame( QWidget* parent, WFlags f = 0 );
+ QtxListFrame( QtxListAction*, QWidget* parent, WFlags f = 0 );
virtual ~QtxListFrame();
void clear();
QListBox* myList;
QStringList myNames;
QWidget* myOwner;
+ QtxListAction* myAction;
QLabel* myComment;
QString mySingleComment;