|
@@ -32,6 +32,7 @@
|
|
|
#include <QDragEnterEvent>
|
|
#include <QDragEnterEvent>
|
|
|
#include <QMimeData>
|
|
#include <QMimeData>
|
|
|
#include <QUrl>
|
|
#include <QUrl>
|
|
|
|
|
+#include <QShortcut>
|
|
|
|
|
|
|
|
#include "QCMake.h"
|
|
#include "QCMake.h"
|
|
|
#include "QCMakeCacheView.h"
|
|
#include "QCMakeCacheView.h"
|
|
@@ -96,6 +97,7 @@ CMakeSetupDialog::CMakeSetupDialog()
|
|
|
this->GenerateAction = ToolsMenu->addAction(tr("&Generate"));
|
|
this->GenerateAction = ToolsMenu->addAction(tr("&Generate"));
|
|
|
QObject::connect(this->GenerateAction, SIGNAL(triggered(bool)),
|
|
QObject::connect(this->GenerateAction, SIGNAL(triggered(bool)),
|
|
|
this, SLOT(doGenerate()));
|
|
this, SLOT(doGenerate()));
|
|
|
|
|
+
|
|
|
|
|
|
|
|
QMenu* HelpMenu = this->menuBar()->addMenu(tr("&Help"));
|
|
QMenu* HelpMenu = this->menuBar()->addMenu(tr("&Help"));
|
|
|
QAction* a = HelpMenu->addAction(tr("About"));
|
|
QAction* a = HelpMenu->addAction(tr("About"));
|
|
@@ -105,6 +107,10 @@ CMakeSetupDialog::CMakeSetupDialog()
|
|
|
QObject::connect(a, SIGNAL(triggered(bool)),
|
|
QObject::connect(a, SIGNAL(triggered(bool)),
|
|
|
this, SLOT(doHelp()));
|
|
this, SLOT(doHelp()));
|
|
|
|
|
|
|
|
|
|
+ QShortcut* filterShortcut = new QShortcut(QKeySequence::Find, this);
|
|
|
|
|
+ QObject::connect(filterShortcut, SIGNAL(activated()),
|
|
|
|
|
+ this, SLOT(startSearch()));
|
|
|
|
|
+
|
|
|
this->setAcceptDrops(true);
|
|
this->setAcceptDrops(true);
|
|
|
|
|
|
|
|
// get the saved binary directories
|
|
// get the saved binary directories
|
|
@@ -266,6 +272,7 @@ void CMakeSetupDialog::doConfigure()
|
|
|
this->enterState(Configuring);
|
|
this->enterState(Configuring);
|
|
|
|
|
|
|
|
this->Output->clear();
|
|
this->Output->clear();
|
|
|
|
|
+ this->CacheValues->selectionModel()->clear();
|
|
|
QMetaObject::invokeMethod(this->CMakeThread->cmakeInstance(),
|
|
QMetaObject::invokeMethod(this->CMakeThread->cmakeInstance(),
|
|
|
"setProperties", Qt::QueuedConnection,
|
|
"setProperties", Qt::QueuedConnection,
|
|
|
Q_ARG(QCMakeCachePropertyList,
|
|
Q_ARG(QCMakeCachePropertyList,
|
|
@@ -829,3 +836,10 @@ void CMakeSetupDialog::addCacheEntry()
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+void CMakeSetupDialog::startSearch()
|
|
|
|
|
+{
|
|
|
|
|
+ this->Search->setFocus(Qt::OtherFocusReason);
|
|
|
|
|
+ this->Search->selectAll();
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+
|