Qt: minor fixes

This commit is contained in:
Megamouse 2018-03-28 04:30:02 +02:00 committed by Ani
parent fca6c4fb7f
commit 70cc2e3665
4 changed files with 9 additions and 11 deletions

View File

@ -58,8 +58,6 @@ game_list_frame::game_list_frame(std::shared_ptr<gui_settings> guiSettings, std:
m_gameList->verticalScrollBar()->setSingleStep(20);
m_gameList->horizontalScrollBar()->setSingleStep(20);
m_gameList->verticalHeader()->setSectionResizeMode(QHeaderView::Fixed);
m_gameList->verticalHeader()->setMinimumSectionSize(m_Icon_Size.height());
m_gameList->verticalHeader()->setMaximumSectionSize(m_Icon_Size.height());
m_gameList->verticalHeader()->setVisible(false);
m_gameList->horizontalHeader()->setContextMenuPolicy(Qt::CustomContextMenu);
m_gameList->horizontalHeader()->setHighlightSections(false);

View File

@ -263,11 +263,11 @@ private:
QString m_search_text;
// Icon Size
int m_icon_size_index;
int m_icon_size_index = 0;
// Icons
QColor m_Icon_Color;
QSize m_Icon_Size;
QSize m_Icon_Size = gui::gl_icon_size_min; // ensure a valid size
qreal m_Margin_Factor;
qreal m_Text_Factor;
};

View File

@ -30,9 +30,9 @@ class main_window : public QMainWindow
Ui::main_window *ui;
bool m_sys_menu_opened;
bool m_is_list_mode = false;
bool m_is_list_mode = true;
bool m_save_slider_pos = false;
int m_other_slider_pos;
int m_other_slider_pos = 0;
QIcon m_appIcon;
QIcon m_icon_play;

View File

@ -42,11 +42,11 @@
<attribute name="title">
<string>CPU</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_55">
<layout class="QVBoxLayout" name="coreTabLayout" stretch="1,0,0">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2" stretch="1,1,2">
<layout class="QHBoxLayout" name="coreTabItemLayout" stretch="1,1,2">
<item>
<layout class="QVBoxLayout" name="verticalLayout_8" stretch="1,1,1">
<layout class="QVBoxLayout" name="coreTabLeftLayout" stretch="1,1,0">
<item>
<widget class="QGroupBox" name="ppu">
<property name="title">
@ -132,7 +132,7 @@
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_10" stretch="1,1">
<layout class="QVBoxLayout" name="coreTabMiddleLayout" stretch="1,1">
<item>
<widget class="QGroupBox" name="lib_settings">
<property name="sizePolicy">
@ -240,7 +240,7 @@
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_9" stretch="1,0">
<layout class="QVBoxLayout" name="coreTabRightLayout" stretch="1,0">
<item>
<widget class="QGroupBox" name="groupBox_28">
<property name="sizePolicy">