sortBar = new THBlackBar(this);
mostRelevantAction = new QAction(tr("Most relevant"), this);
+ mostRelevantAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_1));
+ addAction(mostRelevantAction);
connect(mostRelevantAction, SIGNAL(triggered()), this, SLOT(searchMostRelevant()), Qt::QueuedConnection);
sortBar->addAction(mostRelevantAction);
mostRecentAction = new QAction(tr("Most recent"), this);
+ mostRecentAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_2));
+ addAction(mostRecentAction);
connect(mostRecentAction, SIGNAL(triggered()), this, SLOT(searchMostRecent()), Qt::QueuedConnection);
sortBar->addAction(mostRecentAction);
mostViewedAction = new QAction(tr("Most viewed"), this);
+ mostViewedAction->setShortcut(QKeySequence(Qt::CTRL + Qt::Key_3));
+ addAction(mostViewedAction);
connect(mostViewedAction, SIGNAL(triggered()), this, SLOT(searchMostViewed()), Qt::QueuedConnection);
sortBar->addAction(mostViewedAction);