QTfrontend/ui/page/pageoptions.cpp
branchui-scaling
changeset 15693 f28ca5a87682
parent 15685 d92eeb468dad
child 15705 0d0f48f098f4
equal deleted inserted replaced
15686:0b99e220568a 15693:f28ca5a87682
   396 
   396 
   397             WeaponTooltip = new QCheckBox(groupGame);
   397             WeaponTooltip = new QCheckBox(groupGame);
   398             WeaponTooltip->setText(QCheckBox::tr("Show ammo menu tooltips"));
   398             WeaponTooltip->setText(QCheckBox::tr("Show ammo menu tooltips"));
   399             groupGame->layout()->addWidget(WeaponTooltip, 10, 0, 1, 2);
   399             groupGame->layout()->addWidget(WeaponTooltip, 10, 0, 1, 2);
   400 
   400 
   401             groupGame->addDivider();
   401             // Chat size adjustment
       
   402             QLabel *labelChatSize = new QLabel(groupGame);
       
   403             labelChatSize->setText(QLabel::tr("Initial chat size (%)"));
       
   404             labelChatSize->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
       
   405             groupGame->layout()->addWidget(labelChatSize, 11, 0);
       
   406 
       
   407             sbChatSize = new QSpinBox(groupGame);
       
   408             sbChatSize->setSingleStep(5);
       
   409             sbChatSize->setMinimum(80);
       
   410             sbChatSize->setMaximum(2000);
       
   411             sbChatSize->setValue(100);
       
   412             groupGame->layout()->addWidget(sbChatSize, 11, 1, Qt::AlignLeft);
       
   413 
       
   414             groupGame->addDivider(); // row 12
   402 
   415 
   403             lblTags = new QLabel(groupGame);
   416             lblTags = new QLabel(groupGame);
   404             lblTags->setText(QLabel::tr("Displayed tags above hogs and translucent tags"));
   417             lblTags->setText(QLabel::tr("Displayed tags above hogs and translucent tags"));
   405             groupGame->layout()->addWidget(lblTags, 12, 0, 1, 2);
   418             groupGame->layout()->addWidget(lblTags, 13, 0, 1, 2);
   406 
   419 
   407             tagsContainer = new QWidget();
   420             tagsContainer = new QWidget();
   408             QHBoxLayout * tagsLayout = new QHBoxLayout(tagsContainer);
   421             QHBoxLayout * tagsLayout = new QHBoxLayout(tagsContainer);
   409             tagsLayout->setSpacing(0);
   422             tagsLayout->setSpacing(0);
   410             groupGame->layout()->addWidget(tagsContainer, 13, 0, 1, 2);
   423             groupGame->layout()->addWidget(tagsContainer, 14, 0, 1, 2);
   411 
   424 
   412             CBTeamTag = new QCheckBox(groupGame);
   425             CBTeamTag = new QCheckBox(groupGame);
   413             CBTeamTag->setText(QCheckBox::tr("Team"));
   426             CBTeamTag->setText(QCheckBox::tr("Team"));
   414             CBTeamTag->setWhatsThis(QCheckBox::tr("Enable team tags by default"));
   427             CBTeamTag->setWhatsThis(QCheckBox::tr("Enable team tags by default"));
   415 
   428 
   712             BtnAssociateFiles = new QPushButton(groupMisc);
   725             BtnAssociateFiles = new QPushButton(groupMisc);
   713             BtnAssociateFiles->setText(QPushButton::tr("Associate file extensions"));
   726             BtnAssociateFiles->setText(QPushButton::tr("Associate file extensions"));
   714             BtnAssociateFiles->setVisible(!custom_data && !custom_config);
   727             BtnAssociateFiles->setVisible(!custom_data && !custom_config);
   715             groupMisc->layout()->addWidget(BtnAssociateFiles, 4, 0, 1, 2);
   728             groupMisc->layout()->addWidget(BtnAssociateFiles, 4, 0, 1, 2);
   716 
   729 
   717             // Divider
       
   718 
       
   719             groupMisc->addDivider(); // row 5
       
   720 
       
   721             QLabel *labelChatSize = new QLabel(groupMisc);
       
   722             labelChatSize->setText(QLabel::tr("Initial in-game chat size (%)"));
       
   723             groupMisc->layout()->addWidget(labelChatSize, 6, 0);
       
   724 
       
   725             // Chat size adjustment
       
   726             sbChatSize = new QSpinBox(groupMisc);
       
   727             sbChatSize->setMinimum(80);
       
   728             sbChatSize->setMaximum(2000);
       
   729             sbChatSize->setValue(100);
       
   730             groupMisc->layout()->addWidget(sbChatSize, 6, 1);
       
   731 
       
   732         }
   730         }
   733 
   731 
   734 #ifdef __APPLE__
   732 #ifdef __APPLE__
   735 #ifdef SPARKLE_ENABLED
   733 #ifdef SPARKLE_ENABLED
   736         { // group: updates
   734         { // group: updates