Link to wiki: how to set shortcuts
This commit is contained in:
parent
c7c84bca8f
commit
8eacd85d68
1 changed files with 11 additions and 1 deletions
|
@ -18,6 +18,8 @@
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
|
|
||||||
|
#define WIKI "https://github.com/Cockatrice/Cockatrice/wiki/Custom-Keyboard-Shortcuts"
|
||||||
|
|
||||||
class Ui_shortcutsTab
|
class Ui_shortcutsTab
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -267,6 +269,7 @@ public:
|
||||||
SequenceEdit *Player_aAlwaysRevealTopCard;
|
SequenceEdit *Player_aAlwaysRevealTopCard;
|
||||||
QSpacerItem *verticalSpacer_3;
|
QSpacerItem *verticalSpacer_3;
|
||||||
QWidget * tab_4;
|
QWidget * tab_4;
|
||||||
|
QLabel *faqLabel;
|
||||||
|
|
||||||
void setupUi(QWidget *shortcutsTab)
|
void setupUi(QWidget *shortcutsTab)
|
||||||
{
|
{
|
||||||
|
@ -1402,7 +1405,13 @@ public:
|
||||||
grid->addItem(new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding),1,0);
|
grid->addItem(new QSpacerItem(20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding),1,0);
|
||||||
|
|
||||||
tabWidget->addTab(tab_4, QString());
|
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);
|
tabWidget->setCurrentIndex(0);
|
||||||
|
|
||||||
grid->setSpacing(3);
|
grid->setSpacing(3);
|
||||||
|
@ -1557,6 +1566,7 @@ public:
|
||||||
lbl_Player_aAlwaysRevealTopCard->setText(QApplication::translate("shortcutsTab", "Always reveal top card", 0));
|
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_3), QApplication::translate("shortcutsTab", "Draw | Move | View | Gameplay", 0));
|
||||||
tabWidget->setTabText(tabWidget->indexOf(tab_4), QApplication::translate("shortcutsTab","Counters", 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
|
} // retranslateUi
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue