mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-14 18:58:36 +12:00
Qt: Restrict trophy manager combo box size
This commit is contained in:
parent
05efa7d957
commit
4c03348e60
3 changed files with 29 additions and 0 deletions
|
@ -58,6 +58,7 @@ trophy_manager_dialog::trophy_manager_dialog(std::shared_ptr<gui_settings> gui_s
|
|||
|
||||
// Game chooser combo box
|
||||
m_game_combo = new QComboBox();
|
||||
m_game_combo->setSizeAdjustPolicy(QComboBox::AdjustToMinimumContentsLengthWithIcon);
|
||||
|
||||
// Game progression label
|
||||
m_game_progress = new QLabel(tr("Progress: %1% (%2/%3)").arg(0).arg(0).arg(0));
|
||||
|
@ -148,6 +149,8 @@ trophy_manager_dialog::trophy_manager_dialog(std::shared_ptr<gui_settings> gui_s
|
|||
m_game_table->setItem(i, GameColumns::GameProgress, new custom_table_widget_item(progress, Qt::UserRole, percentage));
|
||||
}
|
||||
|
||||
gui::utils::resize_combo_box_view(m_game_combo);
|
||||
|
||||
m_game_table->setSortingEnabled(true); // Enable sorting only after using setItem calls
|
||||
|
||||
// Checkboxes to control dialog
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue