From 3a777274cc0ae59a285ec1082fb43913111fc92e Mon Sep 17 00:00:00 2001 From: lordmulder Date: Sat, 24 Oct 2015 18:28:45 +0200 Subject: [PATCH] Changed the resize-mode for the "Status" and "Progress" columns to "ResizeToContents". --- HISTORY.txt | 4 ++++ src/version.h | 4 ++-- src/win_main.cpp | 7 +++---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/HISTORY.txt b/HISTORY.txt index bd7bc9d..49ced57 100644 --- a/HISTORY.txt +++ b/HISTORY.txt @@ -2,6 +2,10 @@ Simple x264/x265 Launcher version history ----------------------------------------- +Version 2.62 [unreleased] +* Changed mode for the Status/Progress columns to "ResizeToContents" +* Updated x265 to version 1.8+49 + Version 2.61 [2015-10-19] * Refined custom parameters validation code, again * Fixed processing of CLI arguments for Launcher (regression in v2.60) diff --git a/src/version.h b/src/version.h index b58dbcf..b37dfb8 100644 --- a/src/version.h +++ b/src/version.h @@ -25,8 +25,8 @@ #define VER_X264_MAJOR 2 #define VER_X264_MINOR 6 -#define VER_X264_PATCH 1 -#define VER_X264_BUILD 986 +#define VER_X264_PATCH 2 +#define VER_X264_BUILD 990 #define VER_X264_PORTABLE_EDITION (0) diff --git a/src/win_main.cpp b/src/win_main.cpp index e9ae9fb..963dfa8 100644 --- a/src/win_main.cpp +++ b/src/win_main.cpp @@ -165,10 +165,9 @@ MainWindow::MainWindow(const MUtils::CPUFetaures::cpu_info_t &cpuFeatures, MUtil //Setup view ui->jobsView->horizontalHeader()->setSectionHidden(3, true); ui->jobsView->horizontalHeader()->setResizeMode(0, QHeaderView::Stretch); - ui->jobsView->horizontalHeader()->setResizeMode(1, QHeaderView::Fixed); - ui->jobsView->horizontalHeader()->setResizeMode(2, QHeaderView::Fixed); - ui->jobsView->horizontalHeader()->resizeSection(1, 150); - ui->jobsView->horizontalHeader()->resizeSection(2, 90); + ui->jobsView->horizontalHeader()->setResizeMode(1, QHeaderView::ResizeToContents); + ui->jobsView->horizontalHeader()->setResizeMode(2, QHeaderView::ResizeToContents); + ui->jobsView->horizontalHeader()->setMinimumSectionSize(96); ui->jobsView->verticalHeader()->setResizeMode(QHeaderView::ResizeToContents); connect(ui->jobsView->selectionModel(), SIGNAL(currentChanged(QModelIndex, QModelIndex)), this, SLOT(jobSelected(QModelIndex, QModelIndex)));