summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-07-25 06:20:59 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-07-25 06:20:59 +0200
commit92a56e52f7d4e843aea375f687a0c829f4003abd (patch)
tree8da7ebccf5e7f40bac73ff5d56aa88bd6060a18a /facetracknoir
parent0a41cdc4d9bfaea20cfe07d71070f235c3bb8de6 (diff)
shortcuts: clarify binding dialog
Diffstat (limited to 'facetracknoir')
-rw-r--r--facetracknoir/keyboard_listener.ui2
-rw-r--r--facetracknoir/options-dialog.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/facetracknoir/keyboard_listener.ui b/facetracknoir/keyboard_listener.ui
index 69ec530d..b6977df0 100644
--- a/facetracknoir/keyboard_listener.ui
+++ b/facetracknoir/keyboard_listener.ui
@@ -23,7 +23,7 @@
<string>Bind a shortcut</string>
</property>
<property name="text">
- <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Press a key or close this window to cancel.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
+ <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Press a key or close this window to remove the keybinding.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="textFormat">
<enum>Qt::RichText</enum>
diff --git a/facetracknoir/options-dialog.cpp b/facetracknoir/options-dialog.cpp
index 8ac95b71..b90408a8 100644
--- a/facetracknoir/options-dialog.cpp
+++ b/facetracknoir/options-dialog.cpp
@@ -68,7 +68,7 @@ void OptionsDialog::bind_key(value<QString>& ret, QLabel* label)
auto k = new KeyboardListener;
l->addWidget(k);
d.setLayout(l);
- d.setFixedSize(QSize(500, 500));
+ d.setFixedSize(QSize(500, 300));
d.setWindowFlags(Qt::Dialog);
connect(k, &KeyboardListener::key_pressed, [&] (QKeySequence s) -> void { ret = s.toString(QKeySequence::PortableText); d.close(); });
d.exec();