- if( !l )
- {
- QVBoxLayout *layout = new QVBoxLayout();
- layout->addWidget( label, 0 ); layout->addWidget( table, 1 );
- widget->setLayout( layout );
- }
- else
- {
- l->addWidget( label, line, 0, 1, 2 );
- l->addWidget( table, line+1, 0, 1,2 );
- }
+ gLayout->addWidget( label, 0, 0, 1, 4 );
+ /* deactivated for now
+ gLayout->addWidget( searchLabel, 1, 0, 1, 2 );
+ gLayout->addWidget( actionSearch, 1, 2, 1, 2 ); */
+ gLayout->addWidget( table, 2, 0, 1, 4 );
+ gLayout->addWidget( clearButton, 3, 0, 1, 1 );
+ gLayout->addWidget( shortcutValue, 3, 1, 1, 2 );
+ gLayout->addWidget( setButton, 3, 3, 1, 1 );
+
+ l->addWidget( keyContainer, line, 0, 1, 2 );
+
+ CONNECT( clearButton, clicked(), shortcutValue, clear() );
+ CONNECT( clearButton, clicked(), this, setTheKey() );
+ BUTTONACT( setButton, setTheKey() );