80 SchemeWidgetLayout->addWidget(new QLabel(QLabel::tr("Scheme"), SchemeWidget), 0, 0); |
80 SchemeWidgetLayout->addWidget(new QLabel(QLabel::tr("Scheme"), SchemeWidget), 0, 0); |
81 |
81 |
82 QPixmap pmEdit(":/res/edit.png"); |
82 QPixmap pmEdit(":/res/edit.png"); |
83 |
83 |
84 QPushButton * goToSchemePage = new QPushButton(SchemeWidget); |
84 QPushButton * goToSchemePage = new QPushButton(SchemeWidget); |
85 goToSchemePage->setToolTip(tr("Edit schemes")); |
85 goToSchemePage->setWhatsThis(tr("Edit schemes")); |
86 goToSchemePage->setIconSize(pmEdit.size()); |
86 goToSchemePage->setIconSize(pmEdit.size()); |
87 goToSchemePage->setIcon(pmEdit); |
87 goToSchemePage->setIcon(pmEdit); |
88 goToSchemePage->setMaximumWidth(pmEdit.width() + 6); |
88 goToSchemePage->setMaximumWidth(pmEdit.width() + 6); |
89 SchemeWidgetLayout->addWidget(goToSchemePage, 0, 3); |
89 SchemeWidgetLayout->addWidget(goToSchemePage, 0, 3); |
90 connect(goToSchemePage, SIGNAL(clicked()), this, SLOT(jumpToSchemes())); |
90 connect(goToSchemePage, SIGNAL(clicked()), this, SLOT(jumpToSchemes())); |
95 SchemeWidgetLayout->addWidget(WeaponsName, 1, 2); |
95 SchemeWidgetLayout->addWidget(WeaponsName, 1, 2); |
96 |
96 |
97 connect(WeaponsName, SIGNAL(currentIndexChanged(int)), this, SLOT(ammoChanged(int))); |
97 connect(WeaponsName, SIGNAL(currentIndexChanged(int)), this, SLOT(ammoChanged(int))); |
98 |
98 |
99 QPushButton * goToWeaponPage = new QPushButton(SchemeWidget); |
99 QPushButton * goToWeaponPage = new QPushButton(SchemeWidget); |
100 goToWeaponPage->setToolTip(tr("Edit weapons")); |
100 goToWeaponPage->setWhatsThis(tr("Edit weapons")); |
101 goToWeaponPage->setIconSize(pmEdit.size()); |
101 goToWeaponPage->setIconSize(pmEdit.size()); |
102 goToWeaponPage->setIcon(pmEdit); |
102 goToWeaponPage->setIcon(pmEdit); |
103 goToWeaponPage->setMaximumWidth(pmEdit.width() + 6); |
103 goToWeaponPage->setMaximumWidth(pmEdit.width() + 6); |
104 SchemeWidgetLayout->addWidget(goToWeaponPage, 1, 3); |
104 SchemeWidgetLayout->addWidget(goToWeaponPage, 1, 3); |
105 connect(goToWeaponPage, SIGNAL(clicked()), this, SLOT(jumpToWeapons())); |
105 connect(goToWeaponPage, SIGNAL(clicked()), this, SLOT(jumpToWeapons())); |
106 |
106 |
107 bindEntries = new QCheckBox(SchemeWidget); |
107 bindEntries = new QCheckBox(SchemeWidget); |
108 bindEntries->setToolTip(tr("When this option is enabled selecting a game scheme will auto-select a weapon")); |
108 bindEntries->setWhatsThis(tr("Game scheme will auto-select a weapon")); |
109 bindEntries->setChecked(true); |
109 bindEntries->setChecked(true); |
110 bindEntries->setMaximumWidth(42); |
110 bindEntries->setMaximumWidth(42); |
111 bindEntries->setStyleSheet( "QCheckBox::indicator:checked { image: url(\":/res/lock.png\"); }" |
111 bindEntries->setStyleSheet( "QCheckBox::indicator:checked { image: url(\":/res/lock.png\"); }" |
112 "QCheckBox::indicator:unchecked { image: url(\":/res/unlock.png\"); }" ); |
112 "QCheckBox::indicator:unchecked { image: url(\":/res/unlock.png\"); }" ); |
113 SchemeWidgetLayout->addWidget(bindEntries, 0, 1, 0, 1, Qt::AlignVCenter); |
113 SchemeWidgetLayout->addWidget(bindEntries, 0, 1, 0, 1, Qt::AlignVCenter); |