Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
x64/
.vs/
.vscode/
*.user
.github/
build/
Expand Down
2 changes: 1 addition & 1 deletion src/data/PlayerTypeInstance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void PlayerTypeInstance::setupUI(QWidget* parent)

m_pTableView = new InputTableView();

m_pTableView->horizontalHeader()->setSectionResizeMode(QHeaderView::Fixed);
m_pTableView->horizontalHeader()->setSectionResizeMode(QHeaderView::Stretch);
m_pTableView->horizontalHeader()->setMinimumSectionSize(0); // prevents minimum column size enforcement
m_pTableView->setVisible(false);

Expand Down
3 changes: 0 additions & 3 deletions src/ui/TTKMainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ void TTKMainWindow::openFile(PlayerTypeInstance& typeInstance)
{
actionSwapFiles->setEnabled(true);
actionScrollTogether->setEnabled(true);
setMaximumWidth(DOUBLE_FILE_WINDOW_WIDTH);
setMinimumWidth(DOUBLE_FILE_WINDOW_WIDTH);
}
}
Expand Down Expand Up @@ -72,7 +71,6 @@ void TTKMainWindow::swapModels()
void TTKMainWindow::adjustUiOnClose()
{
setMinimumWidth(SINGLE_FILE_WINDOW_WIDTH);
setMaximumWidth(SINGLE_FILE_WINDOW_WIDTH);

actionSwapFiles->setEnabled(false);

Expand Down Expand Up @@ -146,7 +144,6 @@ void TTKMainWindow::setupUi()
{
// setup main window
setMinimumWidth(SINGLE_FILE_WINDOW_WIDTH);
setMaximumWidth(SINGLE_FILE_WINDOW_WIDTH);
resize(SINGLE_FILE_WINDOW_WIDTH, DEFAULT_WINDOW_HEIGHT);

addMenuItems();
Expand Down