From bea89a2a16bfad1977ad317dc4f6b7025699dcaf Mon Sep 17 00:00:00 2001 From: Bent Witthold Date: Thu, 12 Feb 2026 09:59:13 +0100 Subject: [PATCH] Setting the column 0 to a width of 30 on startup. --- UIs/BeetRoundWidgets/.gitignore | 83 ----------------------------- UIs/BeetRoundWidgets/mainwindow.cpp | 3 ++ 2 files changed, 3 insertions(+), 83 deletions(-) delete mode 100644 UIs/BeetRoundWidgets/.gitignore diff --git a/UIs/BeetRoundWidgets/.gitignore b/UIs/BeetRoundWidgets/.gitignore deleted file mode 100644 index 26333e1..0000000 --- a/UIs/BeetRoundWidgets/.gitignore +++ /dev/null @@ -1,83 +0,0 @@ -# This file is used to ignore files which are generated -# ---------------------------------------------------------------------------- - -*~ -*.autosave -*.a -*.core -*.moc -*.o -*.obj -*.orig -*.rej -*.so -*.so.* -*_pch.h.cpp -*_resource.rc -*.qm -.#* -*.*# -core -!core/ -tags -.DS_Store -.directory -*.debug -Makefile* -*.prl -*.app -moc_*.cpp -ui_*.h -qrc_*.cpp -Thumbs.db -*.res -*.rc -/.qmake.cache -/.qmake.stash - -# qtcreator generated files -*.pro.user* -*.qbs.user* -CMakeLists.txt.user* - -# xemacs temporary files -*.flc - -# Vim temporary files -.*.swp - -# Visual Studio generated files -*.ib_pdb_index -*.idb -*.ilk -*.pdb -*.sln -*.suo -*.vcproj -*vcproj.*.*.user -*.ncb -*.sdf -*.opensdf -*.vcxproj -*vcxproj.* - -# MinGW generated files -*.Debug -*.Release - -# Python byte code -*.pyc - -# Binaries -# -------- -*.dll -*.exe - -# Directories with generated files -.moc/ -.obj/ -.pch/ -.rcc/ -.uic/ -/build*/ -_build*/ diff --git a/UIs/BeetRoundWidgets/mainwindow.cpp b/UIs/BeetRoundWidgets/mainwindow.cpp index 7137be6..5b3985f 100644 --- a/UIs/BeetRoundWidgets/mainwindow.cpp +++ b/UIs/BeetRoundWidgets/mainwindow.cpp @@ -20,6 +20,8 @@ #include "widgets/comboboxdelegate.h" #include "widgets/spinboxdelegate.h" +static int intColumnWidth = 30; + static QStandardPaths::StandardLocation standardLocation = QStandardPaths::HomeLocation; static QString updateTextClean = "Do you want to update the application now?"; static QString updateTextDirty = "Do you want to save the tasks & update the application now?"; @@ -363,6 +365,7 @@ void MainWindow::setupModelViews() { ui->tableView->setModel((QAbstractItemModel*)m_proxyModel.get()); ui->tableView->setSortingEnabled(true); + ui->tableView->setColumnWidth(0, intColumnWidth); } void MainWindow::createActions() {