Commit d3f692ca authored by Daniel Teske's avatar Daniel Teske Committed by hjk
Browse files

Unconfigured Settings Page: Make a few more widgets unfocuseable



To ensure that the focus ends up in the right place.

Task-number: QTCREATORBUG-6908

Change-Id: Ieac8c7322620217af34f143946b827dbff16169b
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 3aab8bea
...@@ -94,7 +94,9 @@ public: ...@@ -94,7 +94,9 @@ public:
class RootWidget : public QWidget class RootWidget : public QWidget
{ {
public: public:
RootWidget(QWidget *parent) : QWidget(parent) {} RootWidget(QWidget *parent) : QWidget(parent) {
setFocusPolicy(Qt::NoFocus);
}
void paintEvent(QPaintEvent *); void paintEvent(QPaintEvent *);
}; };
......
...@@ -72,6 +72,8 @@ TargetSettingsPanelWidget::TargetSettingsPanelWidget(Project *project) : ...@@ -72,6 +72,8 @@ TargetSettingsPanelWidget::TargetSettingsPanelWidget(Project *project) :
m_addMenu = new QMenu(this); m_addMenu = new QMenu(this);
setFocusPolicy(Qt::NoFocus);
setupUi(); setupUi();
connect(m_project, SIGNAL(addedTarget(ProjectExplorer::Target*)), connect(m_project, SIGNAL(addedTarget(ProjectExplorer::Target*)),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment