QTfrontend/ui/page/pageroomslist.cpp
changeset 6991 1ec44dde5eb9
parent 6989 4c35e9cf6057
child 6993 47830cf50574
equal deleted inserted replaced
6990:40e5af28d026 6991:1ec44dde5eb9
    61     QLabel * stateLabel = new QLabel(this);
    61     QLabel * stateLabel = new QLabel(this);
    62     CBState = new QComboBox(this);
    62     CBState = new QComboBox(this);
    63 
    63 
    64     filterLayout->addWidget(stateLabel);
    64     filterLayout->addWidget(stateLabel);
    65     filterLayout->addWidget(CBState);
    65     filterLayout->addWidget(CBState);
    66     filterLayout->addSpacing(30);
    66     filterLayout->addStretch(1);
    67 
    67 
    68     QLabel * ruleLabel = new QLabel(this);
    68     QLabel * ruleLabel = new QLabel(this);
    69     ruleLabel->setText(tr("Rules:"));
    69     ruleLabel->setText(tr("Rules:"));
    70     CBRules = new QComboBox(this);
    70     CBRules = new QComboBox(this);
    71 
    71 
    72     filterLayout->addWidget(ruleLabel);
    72     filterLayout->addWidget(ruleLabel);
    73     filterLayout->addWidget(CBRules);
    73     filterLayout->addWidget(CBRules);
    74     filterLayout->addSpacing(30);
    74     filterLayout->addStretch(1);
    75 
    75 
    76     QLabel * weaponLabel = new QLabel(this);
    76     QLabel * weaponLabel = new QLabel(this);
    77     weaponLabel->setText(tr("Weapons:"));
    77     weaponLabel->setText(tr("Weapons:"));
    78     CBWeapons = new QComboBox(this);
    78     CBWeapons = new QComboBox(this);
    79 
    79 
    80     filterLayout->addWidget(weaponLabel);
    80     filterLayout->addWidget(weaponLabel);
    81     filterLayout->addWidget(CBWeapons);
    81     filterLayout->addWidget(CBWeapons);
    82     filterLayout->addSpacing(30);
    82     filterLayout->addStretch(1);
    83 
    83 
    84     QLabel * searchLabel = new QLabel(this);
    84     QLabel * searchLabel = new QLabel(this);
    85     searchLabel->setText(tr("Search:"));
    85     searchLabel->setText(tr("Search:"));
    86     searchText = new QLineEdit(this);
    86     searchText = new QLineEdit(this);
    87     searchText->setMaxLength(60);
    87     searchText->setMaxLength(60);
       
    88     searchText->setMinimumWidth(100);
       
    89     searchText->setMaximumWidth(360);
    88     filterLayout->addWidget(searchLabel);
    90     filterLayout->addWidget(searchLabel);
    89     filterLayout->addWidget(searchText);
    91     filterLayout->addWidget(searchText);
       
    92     filterLayout->setStretchFactor(searchText, 2);
    90 
    93 
    91     pageLayout->addLayout(filterLayout, 4, 0, 1, 2);
    94     pageLayout->addLayout(filterLayout, 4, 0, 1, 2);
    92 
    95 
    93     chatWidget = new HWChatWidget(this, m_gameSettings, false);
    96     chatWidget = new HWChatWidget(this, m_gameSettings, false);
    94     pageLayout->addWidget(chatWidget, 5, 0, 1, 3);
    97     pageLayout->addWidget(chatWidget, 5, 0, 1, 3);