Setting the column 0 to a width of 30 on startup.
This commit is contained in:
@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user