diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-02-27 20:09:57 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-02-27 20:09:57 -0800 |
commit | 76e6420f6b3503b76bd3eec00ab0e53d6ea17a20 (patch) | |
tree | 8b50298f41bd29d55bbd6f4301f36ad31dc0b008 /qt-ui/tableview.cpp | |
parent | 006265d7a088cff4fea665159dbb454956c2cd76 (diff) | |
download | subsurface-76e6420f6b3503b76bd3eec00ab0e53d6ea17a20.tar.gz |
Massive automated whitespace cleanup
I know everyone will hate it.
Go ahead. Complain. Call me names.
At least now things are consistent and reproducible.
If you want changes, have your complaint come with a patch to
scripts/whitespace.pl so that we can automate it.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/tableview.cpp')
-rw-r--r-- | qt-ui/tableview.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/qt-ui/tableview.cpp b/qt-ui/tableview.cpp index 6bb1944b8..f00f2ae48 100644 --- a/qt-ui/tableview.cpp +++ b/qt-ui/tableview.cpp @@ -21,7 +21,7 @@ TableView::TableView(QWidget *parent) : QWidget(parent) plusBtn = new QPushButton(plusIcon, QString(), ui.groupBox); plusBtn->setFlat(true); plusBtn->setToolTip(tr("Add Cylinder")); - plusBtn->setIconSize(QSize(16,16)); + plusBtn->setIconSize(QSize(16, 16)); connect(plusBtn, SIGNAL(clicked(bool)), this, SIGNAL(addButtonClicked())); } @@ -35,12 +35,12 @@ TableView::~TableView() s.endGroup(); } -void TableView::setBtnToolTip(const QString& tooltip) +void TableView::setBtnToolTip(const QString &tooltip) { plusBtn->setToolTip(tooltip); } -void TableView::setTitle(const QString& title) +void TableView::setTitle(const QString &title) { ui.groupBox->setTitle(title); } @@ -54,7 +54,7 @@ void TableView::setModel(QAbstractItemModel *model) s.beginGroup(objectName()); const int columnCount = ui.tableView->model()->columnCount(); for (int i = 0; i < columnCount; i++) { - QVariant width = s.value(QString("colwidth%1").arg(i), i == CylindersModel::REMOVE ? 30 : 80 ); + QVariant width = s.value(QString("colwidth%1").arg(i), i == CylindersModel::REMOVE ? 30 : 80); ui.tableView->setColumnWidth(i, width.toInt()); } s.endGroup(); @@ -65,23 +65,23 @@ void TableView::setModel(QAbstractItemModel *model) void TableView::fixPlusPosition() { - plusBtn->setGeometry(ui.groupBox->contentsRect().width() - 30, 2, 24,24); + plusBtn->setGeometry(ui.groupBox->contentsRect().width() - 30, 2, 24, 24); } // We need to manually position the 'plus' on cylinder and weight. -void TableView::resizeEvent(QResizeEvent* event) +void TableView::resizeEvent(QResizeEvent *event) { fixPlusPosition(); QWidget::resizeEvent(event); } -void TableView::showEvent(QShowEvent* event) +void TableView::showEvent(QShowEvent *event) { QWidget::showEvent(event); fixPlusPosition(); } -void TableView::edit(const QModelIndex& index) +void TableView::edit(const QModelIndex &index) { ui.tableView->edit(index); } |