Commit 8eacd85d authored by marco's avatar marco
Browse files

Link to wiki: how to set shortcuts

parent c7c84bca
......@@ -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
};
......
Supports Markdown
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