Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
8eacd85d
Commit
8eacd85d
authored
Sep 16, 2015
by
marco
Browse files
Link to wiki: how to set shortcuts
parent
c7c84bca
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/sequenceEdit/ui_shortcutstab.h
View file @
8eacd85d
...
...
@@ -18,6 +18,8 @@
QT_BEGIN_NAMESPACE
#define WIKI "https://github.com/Cockatrice/Cockatrice/wiki/Custom-Keyboard-Shortcuts"
class
Ui_shortcutsTab
{
public:
...
...
@@ -267,6 +269,7 @@ public:
SequenceEdit
*
Player_aAlwaysRevealTopCard
;
QSpacerItem
*
verticalSpacer_3
;
QWidget
*
tab_4
;
QLabel
*
faqLabel
;
void
setupUi
(
QWidget
*
shortcutsTab
)
{
...
...
@@ -1402,7 +1405,13 @@ public:
grid
->
addItem
(
new
QSpacerItem
(
20
,
40
,
QSizePolicy
::
Minimum
,
QSizePolicy
::
Expanding
),
1
,
0
);
tabWidget
->
addTab
(
tab_4
,
QString
());
gridLayout_9
->
addWidget
(
tabWidget
,
0
,
0
,
1
,
1
);
faqLabel
=
new
QLabel
(
shortcutsTab
);
faqLabel
->
setTextInteractionFlags
(
Qt
::
LinksAccessibleByMouse
);
faqLabel
->
setOpenExternalLinks
(
true
);
gridLayout_9
->
addWidget
(
tabWidget
,
0
,
0
,
1
,
1
);
gridLayout_9
->
addWidget
(
faqLabel
,
1
,
0
,
1
,
1
);
tabWidget
->
setCurrentIndex
(
0
);
grid
->
setSpacing
(
3
);
...
...
@@ -1557,6 +1566,7 @@ public:
lbl_Player_aAlwaysRevealTopCard
->
setText
(
QApplication
::
translate
(
"shortcutsTab"
,
"Always reveal top card"
,
0
));
tabWidget
->
setTabText
(
tabWidget
->
indexOf
(
tab_3
),
QApplication
::
translate
(
"shortcutsTab"
,
"Draw | Move | View | Gameplay"
,
0
));
tabWidget
->
setTabText
(
tabWidget
->
indexOf
(
tab_4
),
QApplication
::
translate
(
"shortcutsTab"
,
"Counters"
,
0
));
faqLabel
->
setText
(
QString
(
"<a href='%1'>%2</a>"
).
arg
(
WIKI
).
arg
(
QApplication
::
translate
(
"shortcutsTab"
,
"How to set custom shortcuts"
,
0
)));
}
// retranslateUi
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment