285 |
{ |
{ |
286 |
QPopupMenu *contextMenu = new QPopupMenu( this ); |
QPopupMenu *contextMenu = new QPopupMenu( this ); |
287 |
contextMenu->setCheckable( true ); |
contextMenu->setCheckable( true ); |
288 |
QLabel *sortCaption = new QLabel("<b><i>Sort algorithm</i></b>", this); |
QLabel *sortCaption = new QLabel("<b><i>Container class</i></b>", this); |
289 |
sortCaption->setAlignment( Qt::AlignCenter ); |
sortCaption->setAlignment( Qt::AlignCenter ); |
290 |
contextMenu->insertItem( sortCaption ); |
contextMenu->insertItem( sortCaption ); |
291 |
|
|
294 |
contextMenu->insertItem("Hash", this, SLOT( sortHash() ), 0, 3); |
contextMenu->insertItem("Hash", this, SLOT( sortHash() ), 0, 3); |
295 |
contextMenu->insertItem("M*N Vector", this, SLOT(sortMNVector()), 0, 4); |
contextMenu->insertItem("M*N Vector", this, SLOT(sortMNVector()), 0, 4); |
296 |
|
|
297 |
QLabel *storageCaption = new QLabel("<b><i>Storage class</i></b>", this); |
QLabel *storageCaption = new QLabel("<b><i>Solution class</i></b>", this); |
298 |
|
storageCaption->setAlignment( Qt::AlignCenter ); |
299 |
contextMenu->insertItem( storageCaption ); |
contextMenu->insertItem( storageCaption ); |
300 |
contextMenu->insertItem("Matrix Solution", this, SLOT( storageMatrix() ), 0, 5); |
contextMenu->insertItem("Matrix Solution", this, SLOT( storageMatrix() ), 0, 5); |
301 |
contextMenu->insertItem("Int Solution", this, SLOT( storageInt() ), 0, 6); |
contextMenu->insertItem("Int Solution", this, SLOT( storageInt() ), 0, 6); |